[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:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41: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:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42: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]accept exits with 7 [06:51:34]New connection [06:51:34]New thread 3066957156 created [06:51:34]Thread 3066813796 joined [06:51:34]Waiting for new connection... [06:51:34] Sock 7.Parse request [06:51:34]Sock 7.Check first char [06:51:34]Sock 7.First char is OK [06:51:34]request: POST /json_proto HTTP/1.0 [06:51:34]Method: POST [06:51:34]URL: /json_proto [06:51:34]Method is POST - this is cgi request [06:51:34]url: /json_proto [06:51:34]query_string will be loaded in cgi processing [06:51:34]execute_cgi json_proto POST (null) [06:51:34]execute_cgi path=json_proto method=POST [06:51:34]POST find Content-Length [06:51:34]Host: 172.17.59.68:8080 [06:51:34]Content-Length: 677 [06:51:34]Content-Type: application/json [06:51:34] [06:51:34]POST finish read [06:51:34]Found Content-Length = 677 [06:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320798", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:34]execute_script... [06:51: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)320798", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:34]POST & json_proto [06:51:34]process_json_proto [06:51:34]json parsed OK: [06:51:34]protocol is kg_v1.0 [06:51:34]action value=close_receipt [06:51:34]process_action close_receipt [06:51:34]cmd_close_receipt [06:51:34]MH_GetDate [06:51:34]Write to MH i2c: F0 00 00 A4 15 A8 [06:51:34]Write i2c OK [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: F0 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: F0 09 00 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: F0 09 00 A4 15 00 85 74 76 66 BC EC 60 65 F3 [06:51:34]GetLastDocTimeStamp 1719030205 [06:51:34]current date 1719039109 [06:51:34]FM_GetShiftState [06:51:34]SAM_PROTO_GetShiftState [06:51:34]wFMCommunicate request_size=4 [06:51:34]MH_SAM_APDU [06:51:34]CAPDU: 80 13 01 00 [06:51:34]Write to MH i2c: E2 08 00 A5 15 80 13 01 00 00 00 00 00 37 [06:51:34]Write i2c OK [06:51:34]MH_I2C_Read... [06:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:34]Read from MH i2c: E2 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: E2 0E 00 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: E2 0E 00 A5 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6C [06:51:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [06:51:34]wFMCommunicate OK [06:51:34]SAM_PROTO_GetShiftState done [06:51:34]FM_GetShiftState done [06:51:34]opened in 1719020067 [06:51:34]opened+sec_in_day 1719106467 [06:51:34]quantity*price = 50065 [06:51:34]sum+1 = 50067 [06:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 4 22.06.2024 06:51 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112138 ФПД: 152583639683027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T065149&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112138&fm=152583639683027&tin=02508201610067®Number=0000000000092771&sum=50000 [06:51:35]StoreToDocumentArchive [06:51:35]shift 391 fd 112138 [06:51:35]save to /storage/0391/doc_00112138 [06:51:35]save last doc name /storage/0391/doc_00112138 to /storage/kkm_last_doc_name [06:51:35]save OK [06:51:35]Clear old archive folders... [06:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:51:35]tlvbuf is B6F59970 [06:51:35]SAM_PROTO_ClearQueue [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 09 00 00 [06:51:35]Write to MH i2c: E2 08 00 B2 15 80 09 00 00 00 00 00 00 39 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [06:51:35]RAPDU: 90 00 [06:51:35]wFMCommunicate OK [06:51:35]SAM_PROTO_ClearQueue done [06:51:35]KKMCreateOFDPacket [06:51:35]OFDProtocolAddRootSTLVToBuf [06:51:35]FM_MakeSignedData [06:51:35]FM_MakeSignedData [06:51:35]SAM_PROTO_SignData [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 0D 01 02 [06:51:35]Write to MH i2c: E2 08 00 B3 15 80 0D 01 02 00 00 00 00 41 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [06:51:35]RAPDU: 90 00 [06:51:35]wFMCommunicate OK [06:51:35]wFMCommunicate request_size=255 [06:51:35]MH_SAM_APDU [06:51: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 74 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B6 01 00 35 04 06 00 8A [06:51:35]Write to MH i2c: E2 02 01 B4 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 74 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B6 01 00 35 04 06 00 8A 00 00 A1 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [06:51:35]RAPDU: 90 00 [06:51:35]wFMCommunicate OK [06:51:35]wFMCommunicate request_size=10 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 0D 02 02 05 C6 25 A4 4F D3 [06:51:35]Write to MH i2c: E2 0D 00 B5 15 80 0D 02 02 05 00 C6 25 A4 4F D3 00 00 FF [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 03 00 B5 15 00 90 00 3E [06:51:35]RAPDU: 90 00 [06:51:35]wFMCommunicate OK [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 0D 03 02 [06:51:35]Write to MH i2c: E2 08 00 B6 15 80 0D 03 02 00 00 00 00 46 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 0B 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 0B 00 B6 15 00 75 A4 E6 21 86 38 F4 A5 90 00 BE [06:51:35]RAPDU: 75 A4 E6 21 86 38 F4 A5 90 00 [06:51:35]wFMCommunicate OK [06:51:35]SAM_PROTO_SignData done [06:51:35]FM_MakeSignedData done [06:51:35]CreateOFDProtocolMessage [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 11 00 00 [06:51:35]Write to MH i2c: E2 08 00 B7 15 80 11 00 00 00 00 00 00 46 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 17 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 17 00 B7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 98 [06:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [06:51:35]wFMCommunicate OK [06:51:35]CreateOFDProtocolMessage done [06:51:35]OFDSenderStorePacket 112138 [06:51:35]StoreOFDPacket docnum=112138 [06:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 00 07 01 BF 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 74 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B6 01 00 35 04 06 00 8A C6 25 A4 4F D3 75 A4 E6 21 86 38 F4 A5 [06:51:35]CheckFolder [06:51:35]dirname=/storage/ofd_packets [06:51:35]CheckFolder done [06:51:35]ProducePacketName [06:51:35]name=ofd_packets/00112138 [06:51:35]NVStorageSaveData ofd_packets/00112138 [06:51:35]File name is /storage/ofd_packets/00112138 [06:51:35]Write 301 bytes [06:51:35]NVStorageSaveData done [06:51:35]OFDSenderStorePacket done [06:51:35]KKMCreateOFDPacket done [06:51:35]NVStorageSaveData kkm_last_timestamp [06:51:35]File name is /storage/kkm_last_timestamp [06:51:35]Write 4 bytes [06:51:35]NVStorageSaveData done [06:51:35]ExternCall_PrintAddStr [06:51:35]wPrintStart [06:51:35]Write to MH i2c: 01 00 00 B8 15 CD [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: 01 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: 01 07 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: 01 07 00 B8 15 00 00 00 00 00 FF 0F E2 [06:51:35]RasterBufferAndPrint [06:51:35]line Счет N : (1)320798 [06:51:35]line ИНН: 02508201610067 [06:51:35]line Контрольно-Кассовый Чек [06:51:35]line ПРОДАЖА [06:51:35]line ТРК (МРК, ГНК) : 11 [06:51:35]line Товар: 2710124130 [06:51:35]line Аи-92-К-5 [06:51:35]line 7.540 * 66.40 [06:51:35]line = 500.66 [06:51:35]line НДС 12% НСП 1% [06:51:35]line > о реализуемом товаре [06:51:35]line ОКРУГЛЕНИЕ: -0.66 [06:51:35]line ИТОГО: 500.00 [06:51:35]line Внесено: 500.00 [06:51:35]line СДАЧА: 0.00 [06:51:35]line НСП 1% : 4.43 [06:51:35]line НДС 12% : 53.17 [06:51:35]line Наличными: 500.00 [06:51:35]line Безнал.: 0.00 [06:51:35]line Место: АЗС № 65 "Партнер Нефть" [06:51:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [06:51:35]line СНО: Общий режим [06:51:35]line Чек 4 22.06.2024 06:51 [06:51:35]line Смена: 391 ФФД: 1.0 [06:51:35]line ЗНМ: 0300000198 [06:51:35]line РНМ: 0000000000092771 [06:51:35]line Версия ККМ: 001 [06:51:35]line ФМ: 0000000000875083 [06:51:35]line ФД: 112138 [06:51:35]line ФПД: 152583639683027 [06:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T065149&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112138&fm=152583639683027&tin=02508201610067®Number=0000000000092771&sum=50000 [06:51:36]OFD Sender: Processing packet 112138 [packets to send 38, broken 37] [06:51:36]ProducePacketName [06:51:36]name=ofd_packets/00112138 [06:51:36]OFD Sender: To server: pG, [06:51:36]CommunicateWithHost lk.salyk.kg:30040 [06:51:36]ConnectInit lk.salyk.kg [06:51:36]written 0, free lines is 4095 [06:51:36]Connected sock=10 [06:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 00 07 01 BF 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 85 74 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B6 01 00 35 04 06 00 8A C6 25 A4 4F D3 75 A4 E6 21 86 38 F4 A5 [06:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB D8 47 00 83 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B6 01 00 F4 03 04 00 99 0B 76 66 B6 04 01 00 00 08 EB 69 9E B0 92 7B 5D [06:51:36]CommunicateWithHost err = 0 [06:51:36]CheckOFDResponse [06:51:36]1017 (14) - 77093643461234 [06:51:36]1041 (16) - 0000000000875083 [06:51:36]1040 (4) - 112138 [06:51:36]1012 (4) - 21.06.2024 23:24 [06:51:36]1206 (1) - 0 [06:51:36]OFD Sender: Remove packet 112138 [06:51:36]ProducePacketName [06:51:36]name=ofd_packets/00112138 [06:51:36]NVStorageDeleteData [06:51:36]Write to MH i2c: 01 00 00 E3 15 F8 [06:51:36]Write i2c OK [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: 01 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: 01 07 00 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 D3 0C DE [06:51:36]RasterBufferAndPrint [06:51:36]line [06:51:36]line [06:51:36]line [06:51:36]line [06:51:36]line [06:51:36]written 0, free lines is 3290 [06:51:36]MH_Cut [06:51:36]Write to MH i2c: D1 01 00 EA 15 01 D1 [06:51:36]Write i2c OK [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: D1 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: D1 01 00 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: D1 01 00 EA 15 00 D0 [06:51:36]Write to MH i2c: 01 00 00 EB 15 00 [06:51:36]Write i2c OK [06:51:36]MH_I2C_Read... [06:51:37]OFD Sender: No OFD packet to send [06:51:37]*** Cut start [06:51:37]*** Partial cut [06:51:37]*** CUTSNS_PIN = 1 [06:51:37]*** CUTSNS_PIN = 0 [06:51:37]*** Brake cut motor [06:51:38]Read from MH i2c: 01 [06:51:38]MH_I2C_Read... [06:51:38]*** Stop cut motor [06:51:38]*** Cut end [06:51:38]Read from MH i2c: 01 07 00 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: 01 07 00 EB 15 00 00 00 00 00 FF 0F 15 [06:51:38]process_action close_receipt done [06:51:38]requested_data is exist [06:51:38]produce_requested_data [06:51:38]requested_item fm.sn is exist - process it [06:51:38]wFMCommunicate request_size=4 [06:51:38]MH_SAM_APDU [06:51:38]CAPDU: 80 11 00 00 [06:51:38]Write to MH i2c: E2 08 00 EC 15 80 11 00 00 00 00 00 00 7B [06:51:38]Write i2c OK [06:51:38]MH_I2C_Read... [06:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:38]Read from MH i2c: E2 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: E2 17 00 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: E2 17 00 EC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CD [06:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [06:51:38]wFMCommunicate OK [06:51:38]requested_item fd.num is exist - process it [06:51:38]SAM_PROTO_GetFieldsCounters [06:51:38]wFMCommunicate request_size=4 [06:51:38]MH_SAM_APDU [06:51:38]CAPDU: 80 13 00 00 [06:51:38]Write to MH i2c: E2 08 00 ED 15 80 13 00 00 00 00 00 00 7E [06:51:38]Write i2c OK [06:51:38]MH_I2C_Read... [06:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:38]Read from MH i2c: E2 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: E2 62 00 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: E2 62 00 ED 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [06:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:38]wFMCommunicate OK [06:51:38]SAM_PROTO_GetFieldsCounters done [06:51:38]requested_item shift.num is exist - process it [06:51:38]requested_item shift.opened is exist - process it [06:51:38]req_shift_opened [06:51:38]FM_GetShiftState [06:51:38]SAM_PROTO_GetShiftState [06:51:38]wFMCommunicate request_size=4 [06:51:38]MH_SAM_APDU [06:51:38]CAPDU: 80 13 01 00 [06:51:38]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [06:51:38]Write i2c OK [06:51:38]MH_I2C_Read... [06:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:38]Read from MH i2c: E2 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: E2 0E 00 [06:51:38]MH_I2C_Read... [06:51:38]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B5 [06:51:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [06:51:38]wFMCommunicate OK [06:51:38]SAM_PROTO_GetShiftState done [06:51:38]FM_GetShiftState done [06:51:38]req_shift_opened done [06:51:38]requested_item shift.open_date is exist - process it [06:51:38]req_shift_open_date [06:51:38]req_shift_open_date done [06:51:38]produce_requested_data done [06:51:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112138,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [06:51:38]process_action_free close_receipt [06:51:38]json_value_free [06:51:38]json_value_free done [06:51:38]process_json_proto returns [06:51:38]Send response to host [06:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112138,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [06:51:38]free response buf [06:51:38]execute_script done [06:51:38]execute_script returns [06:51:38]free content buf [06:51:38]Sock 7.Close socket [06:51:38]Sock 7.Thread stoped [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]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:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:47]accept exits with 9 [07:14:47]New connection [07:14:47]New thread 3066813796 created [07:14:47]Thread 3066957156 joined [07:14:47]Waiting for new connection... [07:14:47] Sock 9.Parse request [07:14:47]Sock 9.Check first char [07:14:47]Sock 9.First char is OK [07:14:47]request: POST /json_proto HTTP/1.0 [07:14:47]Method: POST [07:14:47]URL: /json_proto [07:14:47]Method is POST - this is cgi request [07:14:47]url: /json_proto [07:14:47]query_string will be loaded in cgi processing [07:14:47]execute_cgi json_proto POST (null) [07:14:47]execute_cgi path=json_proto method=POST [07:14:47]POST find Content-Length [07:14:47]Host: 172.17.59.68:8080 [07:14:47]Content-Length: 677 [07:14:47]Content-Type: application/json [07:14:47] [07:14:47]POST finish read [07:14:47]Found Content-Length = 677 [07:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320799", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:47]execute_script... [07:14: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)320799", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:47]POST & json_proto [07:14:47]process_json_proto [07:14:47]json parsed OK: [07:14:47]protocol is kg_v1.0 [07:14:47]action value=close_receipt [07:14:47]process_action close_receipt [07:14:47]cmd_close_receipt [07:14:47]MH_GetDate [07:14:47]Write to MH i2c: F0 00 00 EF 15 F3 [07:14:47]Write i2c OK [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: F0 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: F0 09 00 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: F0 09 00 EF 15 00 F6 79 76 66 BC EC 60 65 B4 [07:14:47]GetLastDocTimeStamp 1719039109 [07:14:47]current date 1719040502 [07:14:47]FM_GetShiftState [07:14:47]SAM_PROTO_GetShiftState [07:14:47]wFMCommunicate request_size=4 [07:14:47]MH_SAM_APDU [07:14:47]CAPDU: 80 13 01 00 [07:14:47]Write to MH i2c: E2 08 00 F0 15 80 13 01 00 00 00 00 00 82 [07:14:47]Write i2c OK [07:14:47]MH_I2C_Read... [07:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:47]Read from MH i2c: E2 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: E2 0E 00 [07:14:47]MH_I2C_Read... [07:14:47]Read from MH i2c: E2 0E 00 F0 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B7 [07:14:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:14:47]wFMCommunicate OK [07:14:47]SAM_PROTO_GetShiftState done [07:14:47]FM_GetShiftState done [07:14:47]opened in 1719020067 [07:14:47]opened+sec_in_day 1719106467 [07:14:47]quantity*price = 50065 [07:14:47]sum+1 = 50067 [07:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 5 22.06.2024 07:15 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112139 ФПД: 183241594930029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071502&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112139&fm=183241594930029&tin=02508201610067®Number=0000000000092771&sum=50000 [07:14:48]StoreToDocumentArchive [07:14:48]shift 391 fd 112139 [07:14:48]save to /storage/0391/doc_00112139 [07:14:48]save last doc name /storage/0391/doc_00112139 to /storage/kkm_last_doc_name [07:14:48]save OK [07:14:48]Clear old archive folders... [07:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:48]tlvbuf is 01121020 [07:14:48]SAM_PROTO_ClearQueue [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 09 00 00 [07:14:48]Write to MH i2c: E2 08 00 FD 15 80 09 00 00 00 00 00 00 84 [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [07:14:48]RAPDU: 90 00 [07:14:48]wFMCommunicate OK [07:14:48]SAM_PROTO_ClearQueue done [07:14:48]KKMCreateOFDPacket [07:14:48]OFDProtocolAddRootSTLVToBuf [07:14:48]FM_MakeSignedData [07:14:48]FM_MakeSignedData [07:14:48]SAM_PROTO_SignData [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 0D 01 02 [07:14:48]Write to MH i2c: E2 08 00 FE 15 80 0D 01 02 00 00 00 00 8C [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [07:14:48]RAPDU: 90 00 [07:14:48]wFMCommunicate OK [07:14:48]wFMCommunicate request_size=255 [07:14:48]MH_SAM_APDU [07:14: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F6 79 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B6 01 00 35 04 06 00 A6 [07:14:48]Write to MH i2c: E2 02 01 FF 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F6 79 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B6 01 00 35 04 06 00 A6 00 00 80 [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]OFD Sender: No OFD packet to send [07:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [07:14:48]RAPDU: 90 00 [07:14:48]wFMCommunicate OK [07:14:48]wFMCommunicate request_size=10 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 0D 02 02 05 A8 42 2C 83 6D [07:14:48]Write to MH i2c: E2 0D 00 00 16 80 0D 02 02 05 00 A8 42 2C 83 6D 00 00 A0 [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 03 00 00 16 00 90 00 8A [07:14:48]RAPDU: 90 00 [07:14:48]wFMCommunicate OK [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 0D 03 02 [07:14:48]Write to MH i2c: E2 08 00 01 16 80 0D 03 02 00 00 00 00 92 [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 0B 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 0B 00 01 16 00 CB D9 ED D8 DC B6 DD F4 90 00 5F [07:14:48]RAPDU: CB D9 ED D8 DC B6 DD F4 90 00 [07:14:48]wFMCommunicate OK [07:14:48]SAM_PROTO_SignData done [07:14:48]FM_MakeSignedData done [07:14:48]CreateOFDProtocolMessage [07:14:48]wFMCommunicate request_size=4 [07:14:48]MH_SAM_APDU [07:14:48]CAPDU: 80 11 00 00 [07:14:48]Write to MH i2c: E2 08 00 02 16 80 11 00 00 00 00 00 00 92 [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:48]Read from MH i2c: E2 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 17 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: E2 17 00 02 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [07:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:14:48]wFMCommunicate OK [07:14:48]CreateOFDProtocolMessage done [07:14:48]OFDSenderStorePacket 112139 [07:14:48]StoreOFDPacket docnum=112139 [07:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 E7 07 01 D5 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F6 79 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B6 01 00 35 04 06 00 A6 A8 42 2C 83 6D CB D9 ED D8 DC B6 DD F4 [07:14:48]CheckFolder [07:14:48]dirname=/storage/ofd_packets [07:14:48]CheckFolder done [07:14:48]ProducePacketName [07:14:48]name=ofd_packets/00112139 [07:14:48]NVStorageSaveData ofd_packets/00112139 [07:14:48]File name is /storage/ofd_packets/00112139 [07:14:48]Write 301 bytes [07:14:48]NVStorageSaveData done [07:14:48]OFDSenderStorePacket done [07:14:48]KKMCreateOFDPacket done [07:14:48]NVStorageSaveData kkm_last_timestamp [07:14:48]File name is /storage/kkm_last_timestamp [07:14:48]Write 4 bytes [07:14:48]NVStorageSaveData done [07:14:48]ExternCall_PrintAddStr [07:14:48]wPrintStart [07:14:48]Write to MH i2c: 01 00 00 03 16 19 [07:14:48]Write i2c OK [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: 01 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: 01 07 00 [07:14:48]MH_I2C_Read... [07:14:48]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0F 2E [07:14:48]RasterBufferAndPrint [07:14:48]line Счет N : (1)320799 [07:14:48]line ИНН: 02508201610067 [07:14:48]line Контрольно-Кассовый Чек [07:14:48]line ПРОДАЖА [07:14:48]line ТРК (МРК, ГНК) : 11 [07:14:48]line Товар: 2710124130 [07:14:48]line Аи-92-К-5 [07:14:48]line 7.540 * 66.40 [07:14:48]line = 500.66 [07:14:48]line НДС 12% НСП 1% [07:14:48]line > о реализуемом товаре [07:14:48]line ОКРУГЛЕНИЕ: -0.66 [07:14:48]line ИТОГО: 500.00 [07:14:48]line Внесено: 500.00 [07:14:48]line СДАЧА: 0.00 [07:14:48]line НСП 1% : 4.43 [07:14:48]line НДС 12% : 53.17 [07:14:48]line Наличными: 500.00 [07:14:48]line Безнал.: 0.00 [07:14:48]line Место: АЗС № 65 "Партнер Нефть" [07:14:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:14:48]line СНО: Общий режим [07:14:48]line Чек 5 22.06.2024 07:15 [07:14:48]line Смена: 391 ФФД: 1.0 [07:14:48]line ЗНМ: 0300000198 [07:14:48]line РНМ: 0000000000092771 [07:14:48]line Версия ККМ: 001 [07:14:48]line ФМ: 0000000000875083 [07:14:48]line ФД: 112139 [07:14:48]line ФПД: 183241594930029 [07:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071502&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112139&fm=183241594930029&tin=02508201610067®Number=0000000000092771&sum=50000 [07:14:49]OFD Sender: Processing packet 112139 [packets to send 38, broken 37] [07:14:49]ProducePacketName [07:14:49]name=ofd_packets/00112139 [07:14:49]OFD Sender: To server: pG, [07:14:49]CommunicateWithHost lk.salyk.kg:30040 [07:14:49]ConnectInit lk.salyk.kg [07:14:49]written 0, free lines is 4095 [07:14:49]Connected sock=10 [07:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 E7 07 01 D5 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F6 79 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B6 01 00 35 04 06 00 A6 A8 42 2C 83 6D CB D9 ED D8 DC B6 DD F4 [07:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC 8C 47 00 53 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B6 01 00 F4 03 04 00 09 11 76 66 B6 04 01 00 00 57 0F 5F E1 34 AF FC 77 [07:14:49]CommunicateWithHost err = 0 [07:14:49]CheckOFDResponse [07:14:49]1017 (14) - 77093643461234 [07:14:49]1041 (16) - 0000000000875083 [07:14:49]1040 (4) - 112139 [07:14:49]1012 (4) - 21.06.2024 23:47 [07:14:49]1206 (1) - 0 [07:14:49]OFD Sender: Remove packet 112139 [07:14:49]ProducePacketName [07:14:49]name=ofd_packets/00112139 [07:14:49]NVStorageDeleteData [07:14:49]Write to MH i2c: 01 00 00 2E 16 44 [07:14:49]Write i2c OK [07:14:49]MH_I2C_Read... [07:14:49]Read from MH i2c: 01 [07:14:49]MH_I2C_Read... [07:14:49]Read from MH i2c: 01 07 00 [07:14:49]MH_I2C_Read... [07:14:49]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 CD 0C 24 [07:14:49]RasterBufferAndPrint [07:14:49]line [07:14:49]line [07:14:49]line [07:14:49]line [07:14:49]line [07:14:49]written 0, free lines is 3281 [07:14:49]MH_Cut [07:14:49]Write to MH i2c: D1 01 00 35 16 01 1D [07:14:49]Write i2c OK [07:14:49]MH_I2C_Read... [07:14:49]Read from MH i2c: D1 [07:14:49]MH_I2C_Read... [07:14:49]Read from MH i2c: D1 01 00 [07:14:49]MH_I2C_Read... [07:14:49]Read from MH i2c: D1 01 00 35 16 00 1C [07:14:49]Write to MH i2c: 01 00 00 36 16 4C [07:14:49]Write i2c OK [07:14:49]MH_I2C_Read... [07:14:49]OFD Sender: No OFD packet to send [07:14:50]*** Cut start [07:14:50]*** Partial cut [07:14:50]*** CUTSNS_PIN = 1 [07:14:50]*** CUTSNS_PIN = 0 [07:14:50]*** Brake cut motor [07:14:50]Read from MH i2c: 01 [07:14:50]MH_I2C_Read... [07:14:50]*** Stop cut motor [07:14:50]*** Cut end [07:14:50]Read from MH i2c: 01 07 00 [07:14:50]MH_I2C_Read... [07:14:50]Read from MH i2c: 01 07 00 36 16 00 00 00 00 00 FF 0F 61 [07:14:50]process_action close_receipt done [07:14:50]requested_data is exist [07:14:50]produce_requested_data [07:14:50]requested_item fm.sn is exist - process it [07:14:50]wFMCommunicate request_size=4 [07:14:50]MH_SAM_APDU [07:14:50]CAPDU: 80 11 00 00 [07:14:50]Write to MH i2c: E2 08 00 37 16 80 11 00 00 00 00 00 00 C7 [07:14:50]Write i2c OK [07:14:50]MH_I2C_Read... [07:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:50]Read from MH i2c: E2 [07:14:50]MH_I2C_Read... [07:14:50]Read from MH i2c: E2 17 00 [07:14:50]MH_I2C_Read... [07:14:50]Read from MH i2c: E2 17 00 37 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 19 [07:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:14:50]wFMCommunicate OK [07:14:50]requested_item fd.num is exist - process it [07:14:50]SAM_PROTO_GetFieldsCounters [07:14:50]wFMCommunicate request_size=4 [07:14:50]MH_SAM_APDU [07:14:50]CAPDU: 80 13 00 00 [07:14:50]Write to MH i2c: E2 08 00 38 16 80 13 00 00 00 00 00 00 CA [07:14:50]Write i2c OK [07:14:50]MH_I2C_Read... [07:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:51]Read from MH i2c: E2 [07:14:51]MH_I2C_Read... [07:14:51]Read from MH i2c: E2 62 00 [07:14:51]MH_I2C_Read... [07:14:51]Read from MH i2c: E2 62 00 38 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [07:14:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:51]wFMCommunicate OK [07:14:51]SAM_PROTO_GetFieldsCounters done [07:14:51]requested_item shift.num is exist - process it [07:14:51]requested_item shift.opened is exist - process it [07:14:51]req_shift_opened [07:14:51]FM_GetShiftState [07:14:51]SAM_PROTO_GetShiftState [07:14:51]wFMCommunicate request_size=4 [07:14:51]MH_SAM_APDU [07:14:51]CAPDU: 80 13 01 00 [07:14:51]Write to MH i2c: E2 08 00 39 16 80 13 01 00 00 00 00 00 CC [07:14:51]Write i2c OK [07:14:51]MH_I2C_Read... [07:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:51]Read from MH i2c: E2 [07:14:51]MH_I2C_Read... [07:14:51]Read from MH i2c: E2 0E 00 [07:14:51]MH_I2C_Read... [07:14:51]Read from MH i2c: E2 0E 00 39 16 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 01 [07:14:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:14:51]wFMCommunicate OK [07:14:51]SAM_PROTO_GetShiftState done [07:14:51]FM_GetShiftState done [07:14:51]req_shift_opened done [07:14:51]requested_item shift.open_date is exist - process it [07:14:51]req_shift_open_date [07:14:51]req_shift_open_date done [07:14:51]produce_requested_data done [07:14:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112139,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:14:51]process_action_free close_receipt [07:14:51]json_value_free [07:14:51]json_value_free done [07:14:51]process_json_proto returns [07:14:51]Send response to host [07:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112139,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:14:51]free response buf [07:14:51]execute_script done [07:14:51]execute_script returns [07:14:51]free content buf [07:14:51]Sock 9.Close socket [07:14:51]Sock 9.Thread stoped [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:33]accept exits with 7 [07:41:33]New connection [07:41:33]New thread 3066957156 created [07:41:33]Thread 3066813796 joined [07:41:33]Waiting for new connection... [07:41:33] Sock 7.Parse request [07:41:33]Sock 7.Check first char [07:41:33]Sock 7.First char is OK [07:41:33]request: POST /json_proto HTTP/1.0 [07:41:33]Method: POST [07:41:33]URL: /json_proto [07:41:33]Method is POST - this is cgi request [07:41:33]url: /json_proto [07:41:33]query_string will be loaded in cgi processing [07:41:33]execute_cgi json_proto POST (null) [07:41:33]execute_cgi path=json_proto method=POST [07:41:33]POST find Content-Length [07:41:33]Host: 172.17.59.68:8080 [07:41:33]Content-Length: 805 [07:41:33]Content-Type: application/json [07:41:33] [07:41:33]POST finish read [07:41:33]Found Content-Length = 805 [07:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:33]execute_script... [07:41: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)320800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:33]POST & json_proto [07:41:33]process_json_proto [07:41:33]json parsed OK: [07:41:33]protocol is kg_v1.0 [07:41:33]action value=close_receipt [07:41:33]process_action close_receipt [07:41:33]cmd_close_receipt [07:41:33]MH_GetDate [07:41:33]Write to MH i2c: F0 00 00 3A 16 3F [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: F0 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: F0 09 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: F0 09 00 3A 16 00 3D 80 76 66 BC EC 60 65 4E [07:41:33]GetLastDocTimeStamp 1719040502 [07:41:33]current date 1719042109 [07:41:33]FM_GetShiftState [07:41:33]SAM_PROTO_GetShiftState [07:41:33]wFMCommunicate request_size=4 [07:41:33]MH_SAM_APDU [07:41:33]CAPDU: 80 13 01 00 [07:41:33]Write to MH i2c: E2 08 00 3B 16 80 13 01 00 00 00 00 00 CE [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:33]Read from MH i2c: E2 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 0E 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 0E 00 3B 16 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 03 [07:41:33]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:41:33]wFMCommunicate OK [07:41:33]SAM_PROTO_GetShiftState done [07:41:33]FM_GetShiftState done [07:41:33]opened in 1719020067 [07:41:33]opened+sec_in_day 1719106467 [07:41:33]quantity*price = 100018 [07:41:33]sum+1 = 100020 [07:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 6 22.06.2024 07:41 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112140 ФПД: 175750040731152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074149&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112140&fm=175750040731152&tin=02508201610067®Number=0000000000092771&sum=100019 [07:41:34]StoreToDocumentArchive [07:41:34]shift 391 fd 112140 [07:41:34]save to /storage/0391/doc_00112140 [07:41:34]save last doc name /storage/0391/doc_00112140 to /storage/kkm_last_doc_name [07:41:34]save OK [07:41:34]Clear old archive folders... [07:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:41:34]tlvbuf is 01173010 [07:41:34]SAM_PROTO_ClearQueue [07:41:34]wFMCommunicate request_size=4 [07:41:34]MH_SAM_APDU [07:41:34]CAPDU: 80 09 00 00 [07:41:34]Write to MH i2c: E2 08 00 48 16 80 09 00 00 00 00 00 00 D0 [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:34]Read from MH i2c: E2 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 03 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [07:41:34]RAPDU: 90 00 [07:41:34]wFMCommunicate OK [07:41:34]SAM_PROTO_ClearQueue done [07:41:34]KKMCreateOFDPacket [07:41:34]OFDProtocolAddRootSTLVToBuf [07:41:34]FM_MakeSignedData [07:41:34]FM_MakeSignedData [07:41:34]SAM_PROTO_SignData [07:41:34]wFMCommunicate request_size=4 [07:41:34]MH_SAM_APDU [07:41:34]CAPDU: 80 0D 01 02 [07:41:34]Write to MH i2c: E2 08 00 49 16 80 0D 01 02 00 00 00 00 D8 [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:34]Read from MH i2c: E2 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 03 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [07:41:34]RAPDU: 90 00 [07:41:34]wFMCommunicate OK [07:41:34]wFMCommunicate request_size=255 [07:41:34]MH_SAM_APDU [07:41: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B6 01 00 35 04 06 00 9F D7 FE BF [07:41:34]Write to MH i2c: E2 02 01 4A 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B6 01 00 35 04 06 00 9F D7 FE BF 00 00 81 [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:35]Read from MH i2c: E2 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 4A 16 00 90 00 D4 [07:41:35]RAPDU: 90 00 [07:41:35]wFMCommunicate OK [07:41:35]wFMCommunicate request_size=7 [07:41:35]MH_SAM_APDU [07:41:35]CAPDU: 80 0D 02 02 02 3E 10 [07:41:35]Write to MH i2c: E2 0A 00 4B 16 80 0D 02 02 02 00 3E 10 00 00 2D [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:35]Read from MH i2c: E2 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 4B 16 00 90 00 D5 [07:41:35]RAPDU: 90 00 [07:41:35]wFMCommunicate OK [07:41:35]wFMCommunicate request_size=4 [07:41:35]MH_SAM_APDU [07:41:35]CAPDU: 80 0D 03 02 [07:41:35]Write to MH i2c: E2 08 00 4C 16 80 0D 03 02 00 00 00 00 DD [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:35]Read from MH i2c: E2 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 0B 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 0B 00 4C 16 00 36 29 9A 50 A5 8C F2 89 90 00 D3 [07:41:35]RAPDU: 36 29 9A 50 A5 8C F2 89 90 00 [07:41:35]wFMCommunicate OK [07:41:35]SAM_PROTO_SignData done [07:41:35]FM_MakeSignedData done [07:41:35]CreateOFDProtocolMessage [07:41:35]wFMCommunicate request_size=4 [07:41:35]MH_SAM_APDU [07:41:35]CAPDU: 80 11 00 00 [07:41:35]Write to MH i2c: E2 08 00 4D 16 80 11 00 00 00 00 00 00 DD [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:35]Read from MH i2c: E2 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 17 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 17 00 4D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [07:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:41:35]wFMCommunicate OK [07:41:35]CreateOFDProtocolMessage done [07:41:35]OFDSenderStorePacket 112140 [07:41:35]StoreOFDPacket docnum=112140 [07:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6F 57 04 01 A6 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B6 01 00 35 04 06 00 9F D7 FE BF 3E 10 36 29 9A 50 A5 8C F2 89 [07:41:35]CheckFolder [07:41:35]dirname=/storage/ofd_packets [07:41:35]CheckFolder done [07:41:35]ProducePacketName [07:41:35]name=ofd_packets/00112140 [07:41:35]NVStorageSaveData ofd_packets/00112140 [07:41:35]File name is /storage/ofd_packets/00112140 [07:41:35]Write 298 bytes [07:41:35]NVStorageSaveData done [07:41:35]OFDSenderStorePacket done [07:41:35]KKMCreateOFDPacket done [07:41:35]NVStorageSaveData kkm_last_timestamp [07:41:35]File name is /storage/kkm_last_timestamp [07:41:35]Write 4 bytes [07:41:35]NVStorageSaveData done [07:41:35]ExternCall_PrintAddStr [07:41:35]wPrintStart [07:41:35]Write to MH i2c: 01 00 00 4E 16 64 [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: 01 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: 01 07 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: 01 07 00 4E 16 00 00 00 00 00 FF 0F 79 [07:41:35]RasterBufferAndPrint [07:41:35]line Счет N : (1)320800 [07:41:35]line ИНН: 02508201610067 [07:41:35]line Контрольно-Кассовый Чек [07:41:35]line ПРОДАЖА [07:41:35]line ТРК (МРК, ГНК) : 22 [07:41:35]line Товар: 2710194210 [07:41:35]line ДТ-К-5 [07:41:35]line 13.720 * 72.90 [07:41:35]line = 1000.19 [07:41:35]line НДС 12% НСП 1% [07:41:35]line > о реализуемом товаре [07:41:35]line ИТОГО: 1000.19 [07:41:35]line НСП 1% : 8.85 [07:41:35]line НДС 12% : 106.21 [07:41:35]line Наличными: 0.00 [07:41:35]line Безнал.: 1000.19 [07:41:35]line Место: АЗС № 65 "Партнер Нефть" [07:41:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:41:35]line СНО: Общий режим [07:41:35]line Чек 6 22.06.2024 07:41 [07:41:35]line Смена: 391 ФФД: 1.0 [07:41:35]line ЗНМ: 0300000198 [07:41:35]line РНМ: 0000000000092771 [07:41:35]line Версия ККМ: 001 [07:41:35]line Платежная система: О! деньги [07:41:35]line ФМ: 0000000000875083 [07:41:35]line ФД: 112140 [07:41:35]line ФПД: 175750040731152 [07:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074149&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112140&fm=175750040731152&tin=02508201610067®Number=0000000000092771&sum=100019 [07:41:35]OFD Sender: Processing packet 112140 [packets to send 38, broken 37] [07:41:35]ProducePacketName [07:41:35]name=ofd_packets/00112140 [07:41:35]OFD Sender: To server: pG, [07:41:35]CommunicateWithHost lk.salyk.kg:30040 [07:41:35]ConnectInit lk.salyk.kg [07:41:35]written 0, free lines is 4095 [07:41:35]Connected sock=10 [07:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6F 57 04 01 A6 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B6 01 00 35 04 06 00 9F D7 FE BF 3E 10 36 29 9A 50 A5 8C F2 89 [07:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D 62 47 00 05 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B6 01 00 F4 03 04 00 50 17 76 66 B6 04 01 00 00 04 62 5B DA 9E B8 4F 42 [07:41:35]CommunicateWithHost err = 0 [07:41:35]CheckOFDResponse [07:41:35]1017 (14) - 77093643461234 [07:41:35]1041 (16) - 0000000000875083 [07:41:35]1040 (4) - 112140 [07:41:35]1012 (4) - 22.06.2024 00:14 [07:41:35]1206 (1) - 0 [07:41:35]OFD Sender: Remove packet 112140 [07:41:35]ProducePacketName [07:41:35]name=ofd_packets/00112140 [07:41:35]NVStorageDeleteData [07:41:36]Write to MH i2c: 01 00 00 78 16 8E [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 07 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 07 00 78 16 00 00 00 00 00 E6 0C 87 [07:41:36]RasterBufferAndPrint [07:41:36]line [07:41:36]line [07:41:36]line [07:41:36]line [07:41:36]line [07:41:36]written 0, free lines is 3309 [07:41:36]MH_Cut [07:41:36]Write to MH i2c: D1 01 00 7F 16 01 67 [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: D1 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: D1 01 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: D1 01 00 7F 16 00 66 [07:41:36]Write to MH i2c: 01 00 00 80 16 96 [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]OFD Sender: No OFD packet to send [07:41:36]*** Cut start [07:41:36]*** Partial cut [07:41:36]*** CUTSNS_PIN = 1 [07:41:36]*** CUTSNS_PIN = 0 [07:41:37]*** Brake cut motor [07:41:37]Read from MH i2c: 01 [07:41:37]MH_I2C_Read... [07:41:37]*** Stop cut motor [07:41:37]*** Cut end [07:41:37]Read from MH i2c: 01 07 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: 01 07 00 80 16 00 00 00 00 00 FF 0F AB [07:41:37]process_action close_receipt done [07:41:37]requested_data is exist [07:41:37]produce_requested_data [07:41:37]requested_item fm.sn is exist - process it [07:41:37]wFMCommunicate request_size=4 [07:41:37]MH_SAM_APDU [07:41:37]CAPDU: 80 11 00 00 [07:41:37]Write to MH i2c: E2 08 00 81 16 80 11 00 00 00 00 00 00 11 [07:41:37]Write i2c OK [07:41:37]MH_I2C_Read... [07:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:37]Read from MH i2c: E2 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 17 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 17 00 81 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [07:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:41:37]wFMCommunicate OK [07:41:37]requested_item fd.num is exist - process it [07:41:37]SAM_PROTO_GetFieldsCounters [07:41:37]wFMCommunicate request_size=4 [07:41:37]MH_SAM_APDU [07:41:37]CAPDU: 80 13 00 00 [07:41:37]Write to MH i2c: E2 08 00 82 16 80 13 00 00 00 00 00 00 14 [07:41:37]Write i2c OK [07:41:37]MH_I2C_Read... [07:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:37]Read from MH i2c: E2 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 62 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 62 00 82 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [07:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:37]wFMCommunicate OK [07:41:37]SAM_PROTO_GetFieldsCounters done [07:41:37]requested_item shift.num is exist - process it [07:41:37]requested_item shift.opened is exist - process it [07:41:37]req_shift_opened [07:41:37]FM_GetShiftState [07:41:37]SAM_PROTO_GetShiftState [07:41:37]wFMCommunicate request_size=4 [07:41:37]MH_SAM_APDU [07:41:37]CAPDU: 80 13 01 00 [07:41:37]Write to MH i2c: E2 08 00 83 16 80 13 01 00 00 00 00 00 16 [07:41:37]Write i2c OK [07:41:37]MH_I2C_Read... [07:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:37]Read from MH i2c: E2 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 0E 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 0E 00 83 16 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4B [07:41:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:41:37]wFMCommunicate OK [07:41:37]SAM_PROTO_GetShiftState done [07:41:37]FM_GetShiftState done [07:41:37]req_shift_opened done [07:41:37]requested_item shift.open_date is exist - process it [07:41:37]req_shift_open_date [07:41:37]req_shift_open_date done [07:41:37]produce_requested_data done [07:41:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112140,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:41:37]process_action_free close_receipt [07:41:37]json_value_free [07:41:37]json_value_free done [07:41:37]process_json_proto returns [07:41:37]Send response to host [07:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112140,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:41:37]free response buf [07:41:37]execute_script done [07:41:37]execute_script returns [07:41:37]free content buf [07:41:37]Sock 7.Close socket [07:41:37]Sock 7.Thread stoped [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:37]accept exits with 9 [07:42:37]New connection [07:42:37]New thread 3066813796 created [07:42:37]Thread 3066957156 joined [07:42:37]Waiting for new connection... [07:42:37] Sock 9.Parse request [07:42:37]Sock 9.Check first char [07:42:37]Sock 9.First char is OK [07:42:37]request: POST /json_proto HTTP/1.0 [07:42:37]Method: POST [07:42:37]URL: /json_proto [07:42:37]Method is POST - this is cgi request [07:42:37]url: /json_proto [07:42:37]query_string will be loaded in cgi processing [07:42:37]execute_cgi json_proto POST (null) [07:42:37]execute_cgi path=json_proto method=POST [07:42:37]POST find Content-Length [07:42:37]Host: 172.17.59.68:8080 [07:42:37]Content-Length: 679 [07:42:37]Content-Type: application/json [07:42:37] [07:42:37]POST finish read [07:42:37]Found Content-Length = 679 [07:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:37]execute_script... [07:42:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:37]POST & json_proto [07:42:37]process_json_proto [07:42:37]json parsed OK: [07:42:37]protocol is kg_v1.0 [07:42:37]action value=close_receipt [07:42:37]process_action close_receipt [07:42:37]cmd_close_receipt [07:42:37]MH_GetDate [07:42:37]Write to MH i2c: F0 00 00 84 16 89 [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: F0 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: F0 09 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: F0 09 00 84 16 00 7D 80 76 66 BC EC 60 65 D8 [07:42:37]GetLastDocTimeStamp 1719042109 [07:42:37]current date 1719042173 [07:42:37]FM_GetShiftState [07:42:37]SAM_PROTO_GetShiftState [07:42:37]wFMCommunicate request_size=4 [07:42:37]MH_SAM_APDU [07:42:37]CAPDU: 80 13 01 00 [07:42:37]Write to MH i2c: E2 08 00 85 16 80 13 01 00 00 00 00 00 18 [07:42:37]Write i2c OK [07:42:37]MH_I2C_Read... [07:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:37]Read from MH i2c: E2 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 0E 00 [07:42:37]MH_I2C_Read... [07:42:37]Read from MH i2c: E2 0E 00 85 16 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4D [07:42:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:42:37]wFMCommunicate OK [07:42:37]SAM_PROTO_GetShiftState done [07:42:37]FM_GetShiftState done [07:42:37]opened in 1719020067 [07:42:37]opened+sec_in_day 1719106467 [07:42:37]quantity*price = 200037 [07:42:37]sum+1 = 200039 [07:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 7 22.06.2024 07:42 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112141 ФПД: 258194623870116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074253&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112141&fm=258194623870116&tin=02508201610067®Number=0000000000092771&sum=200000 [07:42:38]StoreToDocumentArchive [07:42:38]shift 391 fd 112141 [07:42:38]save to /storage/0391/doc_00112141 [07:42:38]save last doc name /storage/0391/doc_00112141 to /storage/kkm_last_doc_name [07:42:38]save OK [07:42:38]Clear old archive folders... [07:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:42:38]tlvbuf is 01179C60 [07:42:38]SAM_PROTO_ClearQueue [07:42:38]wFMCommunicate request_size=4 [07:42:38]MH_SAM_APDU [07:42:38]CAPDU: 80 09 00 00 [07:42:38]Write to MH i2c: E2 08 00 92 16 80 09 00 00 00 00 00 00 1A [07:42:38]Write i2c OK [07:42:38]MH_I2C_Read... [07:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:38]Read from MH i2c: E2 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 03 00 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [07:42:38]RAPDU: 90 00 [07:42:38]wFMCommunicate OK [07:42:38]SAM_PROTO_ClearQueue done [07:42:38]KKMCreateOFDPacket [07:42:38]OFDProtocolAddRootSTLVToBuf [07:42:38]FM_MakeSignedData [07:42:38]FM_MakeSignedData [07:42:38]SAM_PROTO_SignData [07:42:38]wFMCommunicate request_size=4 [07:42:38]MH_SAM_APDU [07:42:38]CAPDU: 80 0D 01 02 [07:42:38]Write to MH i2c: E2 08 00 93 16 80 0D 01 02 00 00 00 00 22 [07:42:38]Write i2c OK [07:42:38]MH_I2C_Read... [07:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:38]Read from MH i2c: E2 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 03 00 [07:42:38]MH_I2C_Read... [07:42:38]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [07:42:38]RAPDU: 90 00 [07:42:38]wFMCommunicate OK [07:42:38]wFMCommunicate request_size=255 [07:42:38]MH_SAM_APDU [07:42:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B6 01 00 35 04 06 00 EA D3 9E D6 [07:42:38]Write to MH i2c: E2 02 01 94 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 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B6 01 00 35 04 06 00 EA D3 9E D6 00 00 60 [07:42:38]Write i2c OK [07:42:38]MH_I2C_Read... [07:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:39]Read from MH i2c: E2 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 03 00 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 03 00 94 16 00 90 00 1E [07:42:39]RAPDU: 90 00 [07:42:39]wFMCommunicate OK [07:42:39]wFMCommunicate request_size=7 [07:42:39]MH_SAM_APDU [07:42:39]CAPDU: 80 0D 02 02 02 B4 A4 [07:42:39]Write to MH i2c: E2 0A 00 95 16 80 0D 02 02 02 00 B4 A4 00 00 81 [07:42:39]Write i2c OK [07:42:39]MH_I2C_Read... [07:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:39]Read from MH i2c: E2 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 03 00 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 03 00 95 16 00 90 00 1F [07:42:39]RAPDU: 90 00 [07:42:39]wFMCommunicate OK [07:42:39]wFMCommunicate request_size=4 [07:42:39]MH_SAM_APDU [07:42:39]CAPDU: 80 0D 03 02 [07:42:39]Write to MH i2c: E2 08 00 96 16 80 0D 03 02 00 00 00 00 27 [07:42:39]Write i2c OK [07:42:39]MH_I2C_Read... [07:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:39]Read from MH i2c: E2 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 0B 00 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 0B 00 96 16 00 56 7A FF 93 4B 47 98 22 90 00 D6 [07:42:39]RAPDU: 56 7A FF 93 4B 47 98 22 90 00 [07:42:39]wFMCommunicate OK [07:42:39]SAM_PROTO_SignData done [07:42:39]FM_MakeSignedData done [07:42:39]CreateOFDProtocolMessage [07:42:39]wFMCommunicate request_size=4 [07:42:39]MH_SAM_APDU [07:42:39]CAPDU: 80 11 00 00 [07:42:39]Write to MH i2c: E2 08 00 97 16 80 11 00 00 00 00 00 00 27 [07:42:39]Write i2c OK [07:42:39]MH_I2C_Read... [07:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:39]Read from MH i2c: E2 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 17 00 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: E2 17 00 97 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [07:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:42:39]wFMCommunicate OK [07:42:39]CreateOFDProtocolMessage done [07:42:39]OFDSenderStorePacket 112141 [07:42:39]StoreOFDPacket docnum=112141 [07:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1C FA 04 01 29 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B6 01 00 35 04 06 00 EA D3 9E D6 B4 A4 56 7A FF 93 4B 47 98 22 [07:42:39]CheckFolder [07:42:39]dirname=/storage/ofd_packets [07:42:39]CheckFolder done [07:42:39]ProducePacketName [07:42:39]name=ofd_packets/00112141 [07:42:39]NVStorageSaveData ofd_packets/00112141 [07:42:39]File name is /storage/ofd_packets/00112141 [07:42:39]Write 298 bytes [07:42:39]NVStorageSaveData done [07:42:39]OFDSenderStorePacket done [07:42:39]KKMCreateOFDPacket done [07:42:39]NVStorageSaveData kkm_last_timestamp [07:42:39]File name is /storage/kkm_last_timestamp [07:42:39]Write 4 bytes [07:42:39]NVStorageSaveData done [07:42:39]ExternCall_PrintAddStr [07:42:39]wPrintStart [07:42:39]Write to MH i2c: 01 00 00 98 16 AE [07:42:39]Write i2c OK [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: 01 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: 01 07 00 [07:42:39]MH_I2C_Read... [07:42:39]Read from MH i2c: 01 07 00 98 16 00 00 00 00 00 FF 0F C3 [07:42:39]RasterBufferAndPrint [07:42:39]line Счет N : (1)320801 [07:42:39]line ИНН: 02508201610067 [07:42:39]line Контрольно-Кассовый Чек [07:42:39]line ПРОДАЖА [07:42:39]line ТРК (МРК, ГНК) : 22 [07:42:39]line Товар: 2710194210 [07:42:39]line ДТ-К-5 [07:42:39]line 27.440 * 72.90 [07:42:39]line = 2000.38 [07:42:39]line НДС 12% НСП 1% [07:42:39]line > о реализуемом товаре [07:42:39]line ОКРУГЛЕНИЕ: -0.38 [07:42:39]line ИТОГО: 2000.00 [07:42:39]line Внесено: 2000.00 [07:42:39]line СДАЧА: 0.00 [07:42:39]line НСП 1% : 17.70 [07:42:39]line НДС 12% : 212.43 [07:42:39]line Наличными: 2000.00 [07:42:39]line Безнал.: 0.00 [07:42:39]line Место: АЗС № 65 "Партнер Нефть" [07:42:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:42:39]line СНО: Общий режим [07:42:39]line Чек 7 22.06.2024 07:42 [07:42:39]line Смена: 391 ФФД: 1.0 [07:42:39]line ЗНМ: 0300000198 [07:42:39]line РНМ: 0000000000092771 [07:42:39]line Версия ККМ: 001 [07:42:39]line ФМ: 0000000000875083 [07:42:39]line ФД: 112141 [07:42:39]line ФПД: 258194623870116 [07:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074253&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112141&fm=258194623870116&tin=02508201610067®Number=0000000000092771&sum=200000 [07:42:39]OFD Sender: Processing packet 112141 [packets to send 38, broken 37] [07:42:39]ProducePacketName [07:42:39]name=ofd_packets/00112141 [07:42:39]OFD Sender: To server: pG, [07:42:39]CommunicateWithHost lk.salyk.kg:30040 [07:42:39]ConnectInit lk.salyk.kg [07:42:39]written 0, free lines is 4095 [07:42:39]Connected sock=10 [07:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1C FA 04 01 29 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 80 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B6 01 00 35 04 06 00 EA D3 9E D6 B4 A4 56 7A FF 93 4B 47 98 22 [07:42:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 50 08 47 00 35 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B6 01 00 F4 03 04 00 90 17 76 66 B6 04 01 00 00 D0 E0 93 6F AC DB F1 D2 [07:42:39]CommunicateWithHost err = 0 [07:42:39]CheckOFDResponse [07:42:39]1017 (14) - 77093643461234 [07:42:39]1041 (16) - 0000000000875083 [07:42:39]1040 (4) - 112141 [07:42:39]1012 (4) - 22.06.2024 00:15 [07:42:39]1206 (1) - 0 [07:42:39]OFD Sender: Remove packet 112141 [07:42:39]ProducePacketName [07:42:39]name=ofd_packets/00112141 [07:42:39]NVStorageDeleteData [07:42:40]Write to MH i2c: 01 00 00 C3 16 D9 [07:42:40]Write i2c OK [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: 01 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: 01 07 00 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: 01 07 00 C3 16 00 00 00 00 00 DE 0C CA [07:42:40]RasterBufferAndPrint [07:42:40]line [07:42:40]line [07:42:40]line [07:42:40]line [07:42:40]line [07:42:40]written 0, free lines is 3300 [07:42:40]MH_Cut [07:42:40]Write to MH i2c: D1 01 00 CA 16 01 B2 [07:42:40]Write i2c OK [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: D1 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: D1 01 00 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: D1 01 00 CA 16 00 B1 [07:42:40]Write to MH i2c: 01 00 00 CB 16 E1 [07:42:40]Write i2c OK [07:42:40]MH_I2C_Read... [07:42:40]OFD Sender: No OFD packet to send [07:42:40]*** Cut start [07:42:40]*** Partial cut [07:42:40]*** CUTSNS_PIN = 1 [07:42:40]*** CUTSNS_PIN = 0 [07:42:41]*** Brake cut motor [07:42:41]Read from MH i2c: 01 [07:42:41]MH_I2C_Read... [07:42:41]*** Stop cut motor [07:42:41]*** Cut end [07:42:41]Read from MH i2c: 01 07 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: 01 07 00 CB 16 00 00 00 00 00 FF 0F F6 [07:42:41]process_action close_receipt done [07:42:41]requested_data is exist [07:42:41]produce_requested_data [07:42:41]requested_item fm.sn is exist - process it [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 11 00 00 [07:42:41]Write to MH i2c: E2 08 00 CC 16 80 11 00 00 00 00 00 00 5C [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 17 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 17 00 CC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [07:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:42:41]wFMCommunicate OK [07:42:41]requested_item fd.num is exist - process it [07:42:41]SAM_PROTO_GetFieldsCounters [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 13 00 00 [07:42:41]Write to MH i2c: E2 08 00 CD 16 80 13 00 00 00 00 00 00 5F [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 62 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 62 00 CD 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [07:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:41]wFMCommunicate OK [07:42:41]SAM_PROTO_GetFieldsCounters done [07:42:41]requested_item shift.num is exist - process it [07:42:41]requested_item shift.opened is exist - process it [07:42:41]req_shift_opened [07:42:41]FM_GetShiftState [07:42:41]SAM_PROTO_GetShiftState [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 13 01 00 [07:42:41]Write to MH i2c: E2 08 00 CE 16 80 13 01 00 00 00 00 00 61 [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 0E 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 0E 00 CE 16 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 96 [07:42:41]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:42:41]wFMCommunicate OK [07:42:41]SAM_PROTO_GetShiftState done [07:42:41]FM_GetShiftState done [07:42:41]req_shift_opened done [07:42:41]requested_item shift.open_date is exist - process it [07:42:41]req_shift_open_date [07:42:41]req_shift_open_date done [07:42:41]produce_requested_data done [07:42:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112141,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:42:41]process_action_free close_receipt [07:42:41]json_value_free [07:42:41]json_value_free done [07:42:41]process_json_proto returns [07:42:41]Send response to host [07:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112141,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:42:41]free response buf [07:42:41]execute_script done [07:42:41]execute_script returns [07:42:41]free content buf [07:42:41]Sock 9.Close socket [07:42:41]Sock 9.Thread stoped [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:19]accept exits with 7 [07:45:19]New connection [07:45:19]New thread 3066957156 created [07:45:19]Thread 3066813796 joined [07:45:19]Waiting for new connection... [07:45:19] Sock 7.Parse request [07:45:19]Sock 7.Check first char [07:45:19]Sock 7.First char is OK [07:45:19]request: POST /json_proto HTTP/1.0 [07:45:19]Method: POST [07:45:19]URL: /json_proto [07:45:19]Method is POST - this is cgi request [07:45:19]url: /json_proto [07:45:19]query_string will be loaded in cgi processing [07:45:19]execute_cgi json_proto POST (null) [07:45:19]execute_cgi path=json_proto method=POST [07:45:19]POST find Content-Length [07:45:19]Host: 172.17.59.68:8080 [07:45:19]Content-Length: 679 [07:45:19]Content-Type: application/json [07:45:19] [07:45:19]POST finish read [07:45:19]Found Content-Length = 679 [07:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:19]execute_script... [07:45: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)320802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:19]POST & json_proto [07:45:19]process_json_proto [07:45:19]json parsed OK: [07:45:19]protocol is kg_v1.0 [07:45:19]action value=close_receipt [07:45:19]process_action close_receipt [07:45:19]cmd_close_receipt [07:45:19]MH_GetDate [07:45:19]Write to MH i2c: F0 00 00 CF 16 D4 [07:45:19]Write i2c OK [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: F0 [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: F0 09 00 [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: F0 09 00 CF 16 00 1F 81 76 66 BC EC 60 65 C6 [07:45:19]GetLastDocTimeStamp 1719042173 [07:45:19]current date 1719042335 [07:45:19]FM_GetShiftState [07:45:19]SAM_PROTO_GetShiftState [07:45:19]wFMCommunicate request_size=4 [07:45:19]MH_SAM_APDU [07:45:19]CAPDU: 80 13 01 00 [07:45:19]Write to MH i2c: E2 08 00 D0 16 80 13 01 00 00 00 00 00 63 [07:45:19]Write i2c OK [07:45:19]MH_I2C_Read... [07:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:19]Read from MH i2c: E2 [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: E2 0E 00 [07:45:19]MH_I2C_Read... [07:45:19]Read from MH i2c: E2 0E 00 D0 16 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 98 [07:45:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:45:19]wFMCommunicate OK [07:45:19]SAM_PROTO_GetShiftState done [07:45:19]FM_GetShiftState done [07:45:19]opened in 1719020067 [07:45:19]opened+sec_in_day 1719106467 [07:45:19]quantity*price = 250047 [07:45:19]sum+1 = 250048 [07:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 8 22.06.2024 07:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112142 ФПД: 59294532113782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074535&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112142&fm=59294532113782&tin=02508201610067®Number=0000000000092771&sum=250000 [07:45:20]StoreToDocumentArchive [07:45:20]shift 391 fd 112142 [07:45:20]save to /storage/0391/doc_00112142 [07:45:20]save last doc name /storage/0391/doc_00112142 to /storage/kkm_last_doc_name [07:45:20]save OK [07:45:20]Clear old archive folders... [07:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:45:20]tlvbuf is 01121140 [07:45:20]SAM_PROTO_ClearQueue [07:45:20]wFMCommunicate request_size=4 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 09 00 00 [07:45:20]Write to MH i2c: E2 08 00 DD 16 80 09 00 00 00 00 00 00 65 [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:20]Read from MH i2c: E2 03 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [07:45:20]RAPDU: 90 00 [07:45:20]wFMCommunicate OK [07:45:20]SAM_PROTO_ClearQueue done [07:45:20]KKMCreateOFDPacket [07:45:20]OFDProtocolAddRootSTLVToBuf [07:45:20]FM_MakeSignedData [07:45:20]FM_MakeSignedData [07:45:20]SAM_PROTO_SignData [07:45:20]wFMCommunicate request_size=4 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 0D 01 02 [07:45:20]Write to MH i2c: E2 08 00 DE 16 80 0D 01 02 00 00 00 00 6D [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [07:45:20]RAPDU: 90 00 [07:45:20]wFMCommunicate OK [07:45:20]wFMCommunicate request_size=255 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 08 00 00 00 F4 03 04 00 1F 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B6 01 00 35 04 06 00 35 ED 95 86 [07:45:20]Write to MH i2c: E2 02 01 DF 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 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 08 00 00 00 F4 03 04 00 1F 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B6 01 00 35 04 06 00 35 ED 95 86 00 00 15 [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 DF 16 00 90 00 69 [07:45:20]RAPDU: 90 00 [07:45:20]wFMCommunicate OK [07:45:20]wFMCommunicate request_size=7 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 0D 02 02 02 15 76 [07:45:20]Write to MH i2c: E2 0A 00 E0 16 80 0D 02 02 02 00 15 76 00 00 FF [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]OFD Sender: No OFD packet to send [07:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 03 00 E0 16 00 90 00 6A [07:45:20]RAPDU: 90 00 [07:45:20]wFMCommunicate OK [07:45:20]wFMCommunicate request_size=4 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 0D 03 02 [07:45:20]Write to MH i2c: E2 08 00 E1 16 80 0D 03 02 00 00 00 00 72 [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 0B 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 0B 00 E1 16 00 A7 91 75 F4 4C 3D 1C 32 90 00 EB [07:45:20]RAPDU: A7 91 75 F4 4C 3D 1C 32 90 00 [07:45:20]wFMCommunicate OK [07:45:20]SAM_PROTO_SignData done [07:45:20]FM_MakeSignedData done [07:45:20]CreateOFDProtocolMessage [07:45:20]wFMCommunicate request_size=4 [07:45:20]MH_SAM_APDU [07:45:20]CAPDU: 80 11 00 00 [07:45:20]Write to MH i2c: E2 08 00 E2 16 80 11 00 00 00 00 00 00 72 [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:20]Read from MH i2c: E2 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 17 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: E2 17 00 E2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [07:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:45:20]wFMCommunicate OK [07:45:20]CreateOFDProtocolMessage done [07:45:20]OFDSenderStorePacket 112142 [07:45:20]StoreOFDPacket docnum=112142 [07:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 56 54 04 01 B7 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 08 00 00 00 F4 03 04 00 1F 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B6 01 00 35 04 06 00 35 ED 95 86 15 76 A7 91 75 F4 4C 3D 1C 32 [07:45:20]CheckFolder [07:45:20]dirname=/storage/ofd_packets [07:45:20]CheckFolder done [07:45:20]ProducePacketName [07:45:20]name=ofd_packets/00112142 [07:45:20]NVStorageSaveData ofd_packets/00112142 [07:45:20]File name is /storage/ofd_packets/00112142 [07:45:20]Write 298 bytes [07:45:20]NVStorageSaveData done [07:45:20]OFDSenderStorePacket done [07:45:20]KKMCreateOFDPacket done [07:45:20]NVStorageSaveData kkm_last_timestamp [07:45:20]File name is /storage/kkm_last_timestamp [07:45:20]Write 4 bytes [07:45:20]NVStorageSaveData done [07:45:20]ExternCall_PrintAddStr [07:45:20]wPrintStart [07:45:20]Write to MH i2c: 01 00 00 E3 16 F9 [07:45:20]Write i2c OK [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: 01 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: 01 07 00 [07:45:20]MH_I2C_Read... [07:45:20]Read from MH i2c: 01 07 00 E3 16 00 00 00 00 00 FF 0F 0E [07:45:20]RasterBufferAndPrint [07:45:20]line Счет N : (1)320802 [07:45:20]line ИНН: 02508201610067 [07:45:20]line Контрольно-Кассовый Чек [07:45:20]line ПРОДАЖА [07:45:20]line ТРК (МРК, ГНК) : 22 [07:45:20]line Товар: 2710194210 [07:45:20]line ДТ-К-5 [07:45:20]line 34.300 * 72.90 [07:45:20]line = 2500.47 [07:45:20]line НДС 12% НСП 1% [07:45:20]line > о реализуемом товаре [07:45:20]line ОКРУГЛЕНИЕ: -0.47 [07:45:20]line ИТОГО: 2500.00 [07:45:20]line Внесено: 2500.00 [07:45:20]line СДАЧА: 0.00 [07:45:20]line НСП 1% : 22.13 [07:45:20]line НДС 12% : 265.54 [07:45:20]line Наличными: 2500.00 [07:45:20]line Безнал.: 0.00 [07:45:20]line Место: АЗС № 65 "Партнер Нефть" [07:45:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:45:20]line СНО: Общий режим [07:45:20]line Чек 8 22.06.2024 07:45 [07:45:20]line Смена: 391 ФФД: 1.0 [07:45:20]line ЗНМ: 0300000198 [07:45:20]line РНМ: 0000000000092771 [07:45:20]line Версия ККМ: 001 [07:45:20]line ФМ: 0000000000875083 [07:45:20]line ФД: 112142 [07:45:20]line ФПД: 59294532113782 [07:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074535&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112142&fm=59294532113782&tin=02508201610067®Number=0000000000092771&sum=250000 [07:45:21]OFD Sender: Processing packet 112142 [packets to send 38, broken 37] [07:45:21]ProducePacketName [07:45:21]name=ofd_packets/00112142 [07:45:21]OFD Sender: To server: pG, [07:45:21]CommunicateWithHost lk.salyk.kg:30040 [07:45:21]ConnectInit lk.salyk.kg [07:45:21]written 0, free lines is 4095 [07:45:21]Connected sock=10 [07:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 56 54 04 01 B7 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 08 00 00 00 F4 03 04 00 1F 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B6 01 00 35 04 06 00 35 ED 95 86 15 76 A7 91 75 F4 4C 3D 1C 32 [07:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F 9B 47 00 30 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B6 01 00 F4 03 04 00 31 18 76 66 B6 04 01 00 00 DD 01 89 98 39 B5 6E FC [07:45:21]CommunicateWithHost err = 0 [07:45:21]CheckOFDResponse [07:45:21]1017 (14) - 77093643461234 [07:45:21]1041 (16) - 0000000000875083 [07:45:21]1040 (4) - 112142 [07:45:21]1012 (4) - 22.06.2024 00:17 [07:45:21]1206 (1) - 0 [07:45:21]OFD Sender: Remove packet 112142 [07:45:21]ProducePacketName [07:45:21]name=ofd_packets/00112142 [07:45:21]NVStorageDeleteData [07:45:21]Write to MH i2c: 01 00 00 0E 17 25 [07:45:21]Write i2c OK [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: 01 [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: 01 07 00 [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: 01 07 00 0E 17 00 00 00 00 00 DC 0C 14 [07:45:21]RasterBufferAndPrint [07:45:21]line [07:45:21]line [07:45:21]line [07:45:21]line [07:45:21]line [07:45:21]written 0, free lines is 3298 [07:45:21]MH_Cut [07:45:21]Write to MH i2c: D1 01 00 15 17 01 FE [07:45:21]Write i2c OK [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: D1 [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: D1 01 00 [07:45:21]MH_I2C_Read... [07:45:21]Read from MH i2c: D1 01 00 15 17 00 FD [07:45:21]Write to MH i2c: 01 00 00 16 17 2D [07:45:21]Write i2c OK [07:45:21]MH_I2C_Read... [07:45:21]OFD Sender: No OFD packet to send [07:45:22]*** Cut start [07:45:22]*** Partial cut [07:45:22]*** CUTSNS_PIN = 1 [07:45:22]*** CUTSNS_PIN = 0 [07:45:22]*** Brake cut motor [07:45:22]Read from MH i2c: 01 [07:45:22]MH_I2C_Read... [07:45:22]*** Stop cut motor [07:45:22]*** Cut end [07:45:22]Read from MH i2c: 01 07 00 [07:45:22]MH_I2C_Read... [07:45:22]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 FF 0F 42 [07:45:22]process_action close_receipt done [07:45:22]requested_data is exist [07:45:22]produce_requested_data [07:45:22]requested_item fm.sn is exist - process it [07:45:22]wFMCommunicate request_size=4 [07:45:22]MH_SAM_APDU [07:45:22]CAPDU: 80 11 00 00 [07:45:22]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [07:45:22]Write i2c OK [07:45:22]MH_I2C_Read... [07:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:22]Read from MH i2c: E2 [07:45:22]MH_I2C_Read... [07:45:22]Read from MH i2c: E2 17 00 [07:45:22]MH_I2C_Read... [07:45:22]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [07:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:45:22]wFMCommunicate OK [07:45:22]requested_item fd.num is exist - process it [07:45:22]SAM_PROTO_GetFieldsCounters [07:45:22]wFMCommunicate request_size=4 [07:45:22]MH_SAM_APDU [07:45:22]CAPDU: 80 13 00 00 [07:45:22]Write to MH i2c: E2 08 00 18 17 80 13 00 00 00 00 00 00 AB [07:45:22]Write i2c OK [07:45:22]MH_I2C_Read... [07:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:23]Read from MH i2c: E2 [07:45:23]MH_I2C_Read... [07:45:23]Read from MH i2c: E2 62 00 [07:45:23]MH_I2C_Read... [07:45:23]Read from MH i2c: E2 62 00 18 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [07:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:23]wFMCommunicate OK [07:45:23]SAM_PROTO_GetFieldsCounters done [07:45:23]requested_item shift.num is exist - process it [07:45:23]requested_item shift.opened is exist - process it [07:45:23]req_shift_opened [07:45:23]FM_GetShiftState [07:45:23]SAM_PROTO_GetShiftState [07:45:23]wFMCommunicate request_size=4 [07:45:23]MH_SAM_APDU [07:45:23]CAPDU: 80 13 01 00 [07:45:23]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [07:45:23]Write i2c OK [07:45:23]MH_I2C_Read... [07:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:23]Read from MH i2c: E2 [07:45:23]MH_I2C_Read... [07:45:23]Read from MH i2c: E2 0E 00 [07:45:23]MH_I2C_Read... [07:45:23]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E2 [07:45:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:45:23]wFMCommunicate OK [07:45:23]SAM_PROTO_GetShiftState done [07:45:23]FM_GetShiftState done [07:45:23]req_shift_opened done [07:45:23]requested_item shift.open_date is exist - process it [07:45:23]req_shift_open_date [07:45:23]req_shift_open_date done [07:45:23]produce_requested_data done [07:45:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112142,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:45:23]process_action_free close_receipt [07:45:23]json_value_free [07:45:23]json_value_free done [07:45:23]process_json_proto returns [07:45:23]Send response to host [07:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112142,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:45:23]free response buf [07:45:23]execute_script done [07:45:23]execute_script returns [07:45:23]free content buf [07:45:23]Sock 7.Close socket [07:45:23]Sock 7.Thread stoped [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:08]accept exits with 9 [07:46:08]New connection [07:46:08]New thread 3066813796 created [07:46:08]Thread 3066957156 joined [07:46:08]Waiting for new connection... [07:46:08] Sock 9.Parse request [07:46:08]Sock 9.Check first char [07:46:08]Sock 9.First char is OK [07:46:08]request: POST /json_proto HTTP/1.0 [07:46:08]Method: POST [07:46:08]URL: /json_proto [07:46:08]Method is POST - this is cgi request [07:46:08]url: /json_proto [07:46:08]query_string will be loaded in cgi processing [07:46:08]execute_cgi json_proto POST (null) [07:46:08]execute_cgi path=json_proto method=POST [07:46:08]POST find Content-Length [07:46:08]Host: 172.17.59.68:8080 [07:46:08]Content-Length: 677 [07:46:08]Content-Type: application/json [07:46:08] [07:46:08]POST finish read [07:46:08]Found Content-Length = 677 [07:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320803", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:46:08]execute_script... [07:46: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)320803", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:46:08]POST & json_proto [07:46:08]process_json_proto [07:46:08]json parsed OK: [07:46:08]protocol is kg_v1.0 [07:46:08]action value=close_receipt [07:46:08]process_action close_receipt [07:46:08]cmd_close_receipt [07:46:08]MH_GetDate [07:46:08]Write to MH i2c: F0 00 00 1A 17 20 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: F0 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: F0 09 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: F0 09 00 1A 17 00 51 81 76 66 BC EC 60 65 44 [07:46:08]GetLastDocTimeStamp 1719042335 [07:46:08]current date 1719042385 [07:46:08]FM_GetShiftState [07:46:08]SAM_PROTO_GetShiftState [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 13 01 00 [07:46:08]Write to MH i2c: E2 08 00 1B 17 80 13 01 00 00 00 00 00 AF [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 0E 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 0E 00 1B 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E4 [07:46:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:46:08]wFMCommunicate OK [07:46:08]SAM_PROTO_GetShiftState done [07:46:08]FM_GetShiftState done [07:46:08]opened in 1719020067 [07:46:08]opened+sec_in_day 1719106467 [07:46:08]quantity*price = 20052 [07:46:08]sum+1 = 20054 [07:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 9 22.06.2024 07:46 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112143 ФПД: 196837210452275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074625&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112143&fm=196837210452275&tin=02508201610067®Number=0000000000092771&sum=20000 [07:46:09]StoreToDocumentArchive [07:46:09]shift 391 fd 112143 [07:46:09]save to /storage/0391/doc_00112143 [07:46:09]save last doc name /storage/0391/doc_00112143 to /storage/kkm_last_doc_name [07:46:09]save OK [07:46:09]Clear old archive folders... [07:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:09]tlvbuf is 0111F1B0 [07:46:09]SAM_PROTO_ClearQueue [07:46:09]wFMCommunicate request_size=4 [07:46:09]MH_SAM_APDU [07:46:09]CAPDU: 80 09 00 00 [07:46:09]Write to MH i2c: E2 08 00 28 17 80 09 00 00 00 00 00 00 B1 [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_ClearQueue done [07:46:10]KKMCreateOFDPacket [07:46:10]OFDProtocolAddRootSTLVToBuf [07:46:10]FM_MakeSignedData [07:46:10]FM_MakeSignedData [07:46:10]SAM_PROTO_SignData [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 01 02 [07:46:10]Write to MH i2c: E2 08 00 29 17 80 0D 01 02 00 00 00 00 B9 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=255 [07:46:10]MH_SAM_APDU [07:46: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 51 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B6 01 00 35 04 06 00 B3 [07:46:10]Write to MH i2c: E2 02 01 2A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 51 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B6 01 00 35 04 06 00 B3 00 00 E4 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=10 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 02 02 05 05 BC 01 F1 33 [07:46:10]Write to MH i2c: E2 0D 00 2B 17 80 0D 02 02 05 00 05 BC 01 F1 33 00 00 AC [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 03 02 [07:46:10]Write to MH i2c: E2 08 00 2C 17 80 0D 03 02 00 00 00 00 BE [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 0B 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 0B 00 2C 17 00 A3 22 C7 60 EA 62 6F 31 90 00 97 [07:46:10]RAPDU: A3 22 C7 60 EA 62 6F 31 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_SignData done [07:46:10]FM_MakeSignedData done [07:46:10]CreateOFDProtocolMessage [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 11 00 00 [07:46:10]Write to MH i2c: E2 08 00 2D 17 80 11 00 00 00 00 00 00 BE [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 2D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [07:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:46:10]wFMCommunicate OK [07:46:10]CreateOFDProtocolMessage done [07:46:10]OFDSenderStorePacket 112143 [07:46:10]StoreOFDPacket docnum=112143 [07:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 82 07 01 0A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 51 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B6 01 00 35 04 06 00 B3 05 BC 01 F1 33 A3 22 C7 60 EA 62 6F 31 [07:46:10]CheckFolder [07:46:10]dirname=/storage/ofd_packets [07:46:10]CheckFolder done [07:46:10]ProducePacketName [07:46:10]name=ofd_packets/00112143 [07:46:10]NVStorageSaveData ofd_packets/00112143 [07:46:10]File name is /storage/ofd_packets/00112143 [07:46:10]Write 301 bytes [07:46:10]NVStorageSaveData done [07:46:10]OFDSenderStorePacket done [07:46:10]KKMCreateOFDPacket done [07:46:10]NVStorageSaveData kkm_last_timestamp [07:46:10]File name is /storage/kkm_last_timestamp [07:46:10]Write 4 bytes [07:46:10]NVStorageSaveData done [07:46:10]ExternCall_PrintAddStr [07:46:10]wPrintStart [07:46:10]Write to MH i2c: 01 00 00 2E 17 45 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 07 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 FF 0F 5A [07:46:10]RasterBufferAndPrint [07:46:10]line Счет N : (1)320803 [07:46:10]line ИНН: 02508201610067 [07:46:10]line Контрольно-Кассовый Чек [07:46:10]line ПРОДАЖА [07:46:10]line ТРК (МРК, ГНК) : 11 [07:46:10]line Товар: 2710124130 [07:46:10]line Аи-92-К-5 [07:46:10]line 3.020 * 66.40 [07:46:10]line = 200.53 [07:46:10]line НДС 12% НСП 1% [07:46:10]line > о реализуемом товаре [07:46:10]line ОКРУГЛЕНИЕ: -0.53 [07:46:10]line ИТОГО: 200.00 [07:46:10]line Внесено: 200.00 [07:46:10]line СДАЧА: 0.00 [07:46:10]line НСП 1% : 1.77 [07:46:10]line НДС 12% : 21.29 [07:46:10]line Наличными: 200.00 [07:46:10]line Безнал.: 0.00 [07:46:10]line Место: АЗС № 65 "Партнер Нефть" [07:46:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:46:10]line СНО: Общий режим [07:46:10]line Чек 9 22.06.2024 07:46 [07:46:10]line Смена: 391 ФФД: 1.0 [07:46:10]line ЗНМ: 0300000198 [07:46:10]line РНМ: 0000000000092771 [07:46:10]line Версия ККМ: 001 [07:46:10]line ФМ: 0000000000875083 [07:46:10]line ФД: 112143 [07:46:10]line ФПД: 196837210452275 [07:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074625&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112143&fm=196837210452275&tin=02508201610067®Number=0000000000092771&sum=20000 [07:46:10]OFD Sender: Processing packet 112143 [packets to send 38, broken 37] [07:46:10]ProducePacketName [07:46:10]name=ofd_packets/00112143 [07:46:10]OFD Sender: To server: pG, [07:46:10]CommunicateWithHost lk.salyk.kg:30040 [07:46:10]ConnectInit lk.salyk.kg [07:46:10]written 0, free lines is 4095 [07:46:10]Connected sock=10 [07:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 82 07 01 0A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 51 81 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B6 01 00 35 04 06 00 B3 05 BC 01 F1 33 A3 22 C7 60 EA 62 6F 31 [07:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 89 4D 47 00 6B 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B6 01 00 F4 03 04 00 63 18 76 66 B6 04 01 00 00 28 34 A7 05 E1 9E 5A 7E [07:46:11]CommunicateWithHost err = 0 [07:46:11]CheckOFDResponse [07:46:11]1017 (14) - 77093643461234 [07:46:11]1041 (16) - 0000000000875083 [07:46:11]1040 (4) - 112143 [07:46:11]1012 (4) - 22.06.2024 00:18 [07:46:11]1206 (1) - 0 [07:46:11]OFD Sender: Remove packet 112143 [07:46:11]ProducePacketName [07:46:11]name=ofd_packets/00112143 [07:46:11]NVStorageDeleteData [07:46:11]Write to MH i2c: 01 00 00 59 17 70 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 07 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 07 00 59 17 00 00 00 00 00 E8 0C 6B [07:46:11]RasterBufferAndPrint [07:46:11]line [07:46:11]line [07:46:11]line [07:46:11]line [07:46:11]line [07:46:11]written 0, free lines is 3311 [07:46:11]MH_Cut [07:46:11]Write to MH i2c: D1 01 00 60 17 01 49 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: D1 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: D1 01 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: D1 01 00 60 17 00 48 [07:46:11]Write to MH i2c: 01 00 00 61 17 78 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]OFD Sender: No OFD packet to send [07:46:12]*** Cut start [07:46:12]*** Partial cut [07:46:12]*** CUTSNS_PIN = 1 [07:46:12]*** CUTSNS_PIN = 0 [07:46:12]*** Brake cut motor [07:46:12]Read from MH i2c: 01 [07:46:12]MH_I2C_Read... [07:46:12]*** Stop cut motor [07:46:12]*** Cut end [07:46:12]Read from MH i2c: 01 07 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 07 00 61 17 00 00 00 00 00 FF 0F 8D [07:46:12]process_action close_receipt done [07:46:12]requested_data is exist [07:46:12]produce_requested_data [07:46:12]requested_item fm.sn is exist - process it [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 11 00 00 [07:46:12]Write to MH i2c: E2 08 00 62 17 80 11 00 00 00 00 00 00 F3 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 17 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 17 00 62 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [07:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:46:12]wFMCommunicate OK [07:46:12]requested_item fd.num is exist - process it [07:46:12]SAM_PROTO_GetFieldsCounters [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 13 00 00 [07:46:12]Write to MH i2c: E2 08 00 63 17 80 13 00 00 00 00 00 00 F6 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 62 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 62 00 63 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [07:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:12]wFMCommunicate OK [07:46:12]SAM_PROTO_GetFieldsCounters done [07:46:12]requested_item shift.num is exist - process it [07:46:12]requested_item shift.opened is exist - process it [07:46:12]req_shift_opened [07:46:12]FM_GetShiftState [07:46:12]SAM_PROTO_GetShiftState [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 13 01 00 [07:46:12]Write to MH i2c: E2 08 00 64 17 80 13 01 00 00 00 00 00 F8 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0E 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0E 00 64 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2D [07:46:12]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:46:12]wFMCommunicate OK [07:46:12]SAM_PROTO_GetShiftState done [07:46:12]FM_GetShiftState done [07:46:12]req_shift_opened done [07:46:12]requested_item shift.open_date is exist - process it [07:46:12]req_shift_open_date [07:46:12]req_shift_open_date done [07:46:12]produce_requested_data done [07:46:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:46:12]process_action_free close_receipt [07:46:12]json_value_free [07:46:12]json_value_free done [07:46:12]process_json_proto returns [07:46:12]Send response to host [07:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:46:12]free response buf [07:46:12]execute_script done [07:46:12]execute_script returns [07:46:12]free content buf [07:46:12]Sock 9.Close socket [07:46:12]Sock 9.Thread stoped [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:43]accept exits with 7 [07:47:43]New connection [07:47:43]New thread 3066957156 created [07:47:43]Thread 3066813796 joined [07:47:43]Waiting for new connection... [07:47:43] Sock 7.Parse request [07:47:43]Sock 7.Check first char [07:47:43]Sock 7.First char is OK [07:47:43]request: POST /json_proto HTTP/1.0 [07:47:43]Method: POST [07:47:43]URL: /json_proto [07:47:43]Method is POST - this is cgi request [07:47:43]url: /json_proto [07:47:43]query_string will be loaded in cgi processing [07:47:43]execute_cgi json_proto POST (null) [07:47:43]execute_cgi path=json_proto method=POST [07:47:43]POST find Content-Length [07:47:43]Host: 172.17.59.68:8080 [07:47:43]Content-Length: 1195 [07:47:43]Content-Type: application/json [07:47:43] [07:47:43]POST finish read [07:47:43]Found Content-Length = 1195 [07:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320804\u000A22.06.2024 06:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:43]execute_script... [07:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320804\u000A22.06.2024 06:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:43]POST & json_proto [07:47:43]process_json_proto [07:47:43]json parsed OK: [07:47:43]protocol is kg_v1.0 [07:47:43]action value=print_text [07:47:43]process_action print_text [07:47:43]cmd_print_text [07:47:43]ExternCall_PrintAddStr [07:47:43]wPrintStart [07:47:43]Write to MH i2c: 01 00 00 65 17 7C [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 07 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 07 00 65 17 00 00 00 00 00 FF 0F 91 [07:47:43]RasterBufferAndPrint [07:47:43]line *****ТОВАРНЫЙ ЧЕК***** [07:47:43]line АЗС 65 [07:47:43]line Партнер нефть [07:47:43]line 02508201610067 [07:47:43]line Кассир : Амантуров Р. [07:47:43]line Счет N : (1)320804 [07:47:43]line 22.06.2024 06:14 [07:47:43]line ПРОДАЖА [07:47:43]line ТРК (МРК, ГНК): 11 [07:47:43]line Вид ГСМ : 2710124130 [07:47:43]line Аи-92-К-5 [07:47:43]line 10.000 x 66.40 [07:47:43]line ИТОГ: 664.00 [07:47:43]line Тип оплаты: Технологический отпуск: [07:47:43]line ______________________ [07:47:43]line (подпись) [07:47:43]written 0, free lines is 4095 [07:47:43]Write to MH i2c: 01 00 00 78 17 8F [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 07 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: 01 07 00 78 17 00 00 00 00 00 2B 0E CF [07:47:43]RasterBufferAndPrint [07:47:43]line [07:47:43]line [07:47:43]line [07:47:43]line [07:47:43]line [07:47:43]written 0, free lines is 3628 [07:47:43]MH_Cut [07:47:43]Write to MH i2c: D1 01 00 7F 17 01 68 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: D1 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: D1 01 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: D1 01 00 7F 17 00 67 [07:47:43]Write to MH i2c: 01 00 00 80 17 97 [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** Cut start [07:47:43]*** Partial cut [07:47:43]*** CUTSNS_PIN = 1 [07:47:43]*** CUTSNS_PIN = 0 [07:47:44]*** Brake cut motor [07:47:44]Read from MH i2c: 01 [07:47:44]MH_I2C_Read... [07:47:44]*** Stop cut motor [07:47:44]*** Cut end [07:47:44]Read from MH i2c: 01 07 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 80 17 00 00 00 00 00 FF 0F AC [07:47:44]process_action print_text done [07:47:44]requested_data is exist [07:47:44]produce_requested_data [07:47:44]requested_item fm.sn is exist - process it [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 11 00 00 [07:47:44]Write to MH i2c: E2 08 00 81 17 80 11 00 00 00 00 00 00 12 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 81 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 64 [07:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:47:44]wFMCommunicate OK [07:47:44]requested_item fd.num is exist - process it [07:47:44]SAM_PROTO_GetFieldsCounters [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 13 00 00 [07:47:44]Write to MH i2c: E2 08 00 82 17 80 13 00 00 00 00 00 00 15 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 62 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 62 00 82 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [07:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_GetFieldsCounters done [07:47:44]requested_item shift.num is exist - process it [07:47:44]requested_item shift.opened is exist - process it [07:47:44]req_shift_opened [07:47:44]FM_GetShiftState [07:47:44]SAM_PROTO_GetShiftState [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 13 01 00 [07:47:44]Write to MH i2c: E2 08 00 83 17 80 13 01 00 00 00 00 00 17 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0E 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0E 00 83 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4C [07:47:44]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_GetShiftState done [07:47:44]FM_GetShiftState done [07:47:44]req_shift_opened done [07:47:44]requested_item shift.open_date is exist - process it [07:47:44]req_shift_open_date [07:47:44]req_shift_open_date done [07:47:44]produce_requested_data done [07:47:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:47:44]process_action_free print_text [07:47:44]json_value_free [07:47:44]json_value_free done [07:47:44]process_json_proto returns [07:47:44]Send response to host [07:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:47:44]free response buf [07:47:44]execute_script done [07:47:44]execute_script returns [07:47:44]free content buf [07:47:44]Sock 7.Close socket [07:47:44]Sock 7.Thread stoped [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:14]accept exits with 9 [07:48:14]New connection [07:48:14]New thread 3066813796 created [07:48:14]Thread 3066957156 joined [07:48:14]Waiting for new connection... [07:48:14] Sock 9.Parse request [07:48:14]Sock 9.Check first char [07:48:14]Sock 9.First char is OK [07:48:14]request: POST /json_proto HTTP/1.0 [07:48:14]Method: POST [07:48:14]URL: /json_proto [07:48:14]Method is POST - this is cgi request [07:48:14]url: /json_proto [07:48:14]query_string will be loaded in cgi processing [07:48:14]execute_cgi json_proto POST (null) [07:48:14]execute_cgi path=json_proto method=POST [07:48:14]POST find Content-Length [07:48:14]Host: 172.17.59.68:8080 [07:48:14]Content-Length: 1195 [07:48:14]Content-Type: application/json [07:48:14] [07:48:14]POST finish read [07:48:14]Found Content-Length = 1195 [07:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320805\u000A22.06.2024 06:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:14]execute_script... [07:48:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320805\u000A22.06.2024 06:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:14]POST & json_proto [07:48:14]process_json_proto [07:48:14]json parsed OK: [07:48:14]protocol is kg_v1.0 [07:48:14]action value=print_text [07:48:14]process_action print_text [07:48:14]cmd_print_text [07:48:14]ExternCall_PrintAddStr [07:48:14]wPrintStart [07:48:14]Write to MH i2c: 01 00 00 84 17 9B [07:48:14]Write i2c OK [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: 01 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: 01 07 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: 01 07 00 84 17 00 00 00 00 00 FF 0F B0 [07:48:14]RasterBufferAndPrint [07:48:14]line *****ТОВАРНЫЙ ЧЕК***** [07:48:14]line АЗС 65 [07:48:14]line Партнер нефть [07:48:14]line 02508201610067 [07:48:14]line Кассир : Амантуров Р. [07:48:14]line Счет N : (1)320805 [07:48:14]line 22.06.2024 06:15 [07:48:14]line ПРОДАЖА [07:48:14]line ТРК (МРК, ГНК): 11 [07:48:14]line Вид ГСМ : 2710124130 [07:48:14]line Аи-92-К-5 [07:48:14]line 10.000 x 66.40 [07:48:14]line ИТОГ: 664.00 [07:48:14]line Тип оплаты: Технологический отпуск: [07:48:14]line ______________________ [07:48:14]line (подпись) [07:48:14]written 0, free lines is 4095 [07:48:15]Write to MH i2c: 01 00 00 97 17 AE [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: 01 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: 01 07 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: 01 07 00 97 17 00 00 00 00 00 2B 0E EE [07:48:15]RasterBufferAndPrint [07:48:15]line [07:48:15]line [07:48:15]line [07:48:15]line [07:48:15]line [07:48:15]written 0, free lines is 3628 [07:48:15]MH_Cut [07:48:15]Write to MH i2c: D1 01 00 9E 17 01 87 [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: D1 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: D1 01 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: D1 01 00 9E 17 00 86 [07:48:15]Write to MH i2c: 01 00 00 9F 17 B6 [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** Cut start [07:48:15]*** Partial cut [07:48:15]*** CUTSNS_PIN = 1 [07:48:15]*** CUTSNS_PIN = 0 [07:48:15]*** Brake cut motor [07:48:16]Read from MH i2c: 01 [07:48:16]MH_I2C_Read... [07:48:16]*** Stop cut motor [07:48:16]*** Cut end [07:48:16]Read from MH i2c: 01 07 00 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 FF 0F CB [07:48:16]process_action print_text done [07:48:16]requested_data is exist [07:48:16]produce_requested_data [07:48:16]requested_item fm.sn is exist - process it [07:48:16]wFMCommunicate request_size=4 [07:48:16]MH_SAM_APDU [07:48:16]CAPDU: 80 11 00 00 [07:48:16]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [07:48:16]Write i2c OK [07:48:16]MH_I2C_Read... [07:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:16]Read from MH i2c: E2 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: E2 17 00 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [07:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:48:16]wFMCommunicate OK [07:48:16]requested_item fd.num is exist - process it [07:48:16]SAM_PROTO_GetFieldsCounters [07:48:16]wFMCommunicate request_size=4 [07:48:16]MH_SAM_APDU [07:48:16]CAPDU: 80 13 00 00 [07:48:16]Write to MH i2c: E2 08 00 A1 17 80 13 00 00 00 00 00 00 34 [07:48:16]Write i2c OK [07:48:16]MH_I2C_Read... [07:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:16]Read from MH i2c: E2 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: E2 62 00 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: E2 62 00 A1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [07:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:16]wFMCommunicate OK [07:48:16]SAM_PROTO_GetFieldsCounters done [07:48:16]requested_item shift.num is exist - process it [07:48:16]requested_item shift.opened is exist - process it [07:48:16]req_shift_opened [07:48:16]FM_GetShiftState [07:48:16]SAM_PROTO_GetShiftState [07:48:16]wFMCommunicate request_size=4 [07:48:16]MH_SAM_APDU [07:48:16]CAPDU: 80 13 01 00 [07:48:16]Write to MH i2c: E2 08 00 A2 17 80 13 01 00 00 00 00 00 36 [07:48:16]Write i2c OK [07:48:16]MH_I2C_Read... [07:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:16]Read from MH i2c: E2 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: E2 0E 00 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: E2 0E 00 A2 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6B [07:48:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:48:16]wFMCommunicate OK [07:48:16]SAM_PROTO_GetShiftState done [07:48:16]FM_GetShiftState done [07:48:16]req_shift_opened done [07:48:16]requested_item shift.open_date is exist - process it [07:48:16]req_shift_open_date [07:48:16]req_shift_open_date done [07:48:16]produce_requested_data done [07:48:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:48:16]process_action_free print_text [07:48:16]json_value_free [07:48:16]json_value_free done [07:48:16]process_json_proto returns [07:48:16]Send response to host [07:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:48:16]free response buf [07:48:16]execute_script done [07:48:16]execute_script returns [07:48:16]free content buf [07:48:16]Sock 9.Close socket [07:48:16]Sock 9.Thread stoped [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:47]accept exits with 7 [07:48:47]New connection [07:48:47]New thread 3066957156 created [07:48:47]Thread 3066813796 joined [07:48:47]Waiting for new connection... [07:48:47] Sock 7.Parse request [07:48:47]Sock 7.Check first char [07:48:47]Sock 7.First char is OK [07:48:47]request: POST /json_proto HTTP/1.0 [07:48:47]Method: POST [07:48:47]URL: /json_proto [07:48:47]Method is POST - this is cgi request [07:48:47]url: /json_proto [07:48:47]query_string will be loaded in cgi processing [07:48:47]execute_cgi json_proto POST (null) [07:48:47]execute_cgi path=json_proto method=POST [07:48:47]POST find Content-Length [07:48:47]Host: 172.17.59.68:8080 [07:48:47]Content-Length: 1195 [07:48:47]Content-Type: application/json [07:48:47] [07:48:47]POST finish read [07:48:47]Found Content-Length = 1195 [07:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320806\u000A22.06.2024 06:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:47]execute_script... [07:48:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320806\u000A22.06.2024 06:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:47]POST & json_proto [07:48:47]process_json_proto [07:48:47]json parsed OK: [07:48:47]protocol is kg_v1.0 [07:48:47]action value=print_text [07:48:47]process_action print_text [07:48:47]cmd_print_text [07:48:47]ExternCall_PrintAddStr [07:48:47]wPrintStart [07:48:47]Write to MH i2c: 01 00 00 A3 17 BA [07:48:47]Write i2c OK [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: 01 [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: 01 07 00 [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: 01 07 00 A3 17 00 00 00 00 00 FF 0F CF [07:48:47]RasterBufferAndPrint [07:48:47]line *****ТОВАРНЫЙ ЧЕК***** [07:48:47]line АЗС 65 [07:48:47]line Партнер нефть [07:48:47]line 02508201610067 [07:48:47]line Кассир : Амантуров Р. [07:48:47]line Счет N : (1)320806 [07:48:47]line 22.06.2024 06:15 [07:48:47]line ПРОДАЖА [07:48:47]line ТРК (МРК, ГНК): 11 [07:48:47]line Вид ГСМ : 2710124130 [07:48:47]line Аи-92-К-5 [07:48:47]line 10.000 x 66.40 [07:48:47]line ИТОГ: 664.00 [07:48:47]line Тип оплаты: Технологический отпуск: [07:48:47]line ______________________ [07:48:47]line (подпись) [07:48:47]written 0, free lines is 4095 [07:48:47]Write to MH i2c: 01 00 00 B6 17 CD [07:48:47]Write i2c OK [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: 01 [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: 01 07 00 [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: 01 07 00 B6 17 00 00 00 00 00 2B 0E 0D [07:48:47]RasterBufferAndPrint [07:48:47]line [07:48:47]line [07:48:47]line [07:48:47]line [07:48:47]line [07:48:47]written 0, free lines is 3629 [07:48:47]MH_Cut [07:48:47]Write to MH i2c: D1 01 00 BD 17 01 A6 [07:48:47]Write i2c OK [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: D1 [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: D1 01 00 [07:48:47]MH_I2C_Read... [07:48:47]Read from MH i2c: D1 01 00 BD 17 00 A5 [07:48:47]Write to MH i2c: 01 00 00 BE 17 D5 [07:48:47]Write i2c OK [07:48:47]MH_I2C_Read... [07:48:47]*** Cut start [07:48:47]*** Partial cut [07:48:47]*** CUTSNS_PIN = 1 [07:48:47]*** CUTSNS_PIN = 0 [07:48:48]*** Brake cut motor [07:48:48]Read from MH i2c: 01 [07:48:48]MH_I2C_Read... [07:48:48]*** Stop cut motor [07:48:48]*** Cut end [07:48:48]Read from MH i2c: 01 07 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: 01 07 00 BE 17 00 00 00 00 00 FF 0F EA [07:48:48]process_action print_text done [07:48:48]requested_data is exist [07:48:48]produce_requested_data [07:48:48]requested_item fm.sn is exist - process it [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 11 00 00 [07:48:48]Write to MH i2c: E2 08 00 BF 17 80 11 00 00 00 00 00 00 50 [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 17 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 17 00 BF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [07:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:48:48]wFMCommunicate OK [07:48:48]requested_item fd.num is exist - process it [07:48:48]SAM_PROTO_GetFieldsCounters [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 13 00 00 [07:48:48]Write to MH i2c: E2 08 00 C0 17 80 13 00 00 00 00 00 00 53 [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 62 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 62 00 C0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [07:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:48]wFMCommunicate OK [07:48:48]SAM_PROTO_GetFieldsCounters done [07:48:48]requested_item shift.num is exist - process it [07:48:48]requested_item shift.opened is exist - process it [07:48:48]req_shift_opened [07:48:48]FM_GetShiftState [07:48:48]SAM_PROTO_GetShiftState [07:48:48]wFMCommunicate request_size=4 [07:48:48]MH_SAM_APDU [07:48:48]CAPDU: 80 13 01 00 [07:48:48]Write to MH i2c: E2 08 00 C1 17 80 13 01 00 00 00 00 00 55 [07:48:48]Write i2c OK [07:48:48]MH_I2C_Read... [07:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:48]Read from MH i2c: E2 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 0E 00 [07:48:48]MH_I2C_Read... [07:48:48]Read from MH i2c: E2 0E 00 C1 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8A [07:48:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:48:48]wFMCommunicate OK [07:48:48]SAM_PROTO_GetShiftState done [07:48:48]FM_GetShiftState done [07:48:48]req_shift_opened done [07:48:48]requested_item shift.open_date is exist - process it [07:48:48]req_shift_open_date [07:48:48]req_shift_open_date done [07:48:48]produce_requested_data done [07:48:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:48:48]process_action_free print_text [07:48:48]json_value_free [07:48:48]json_value_free done [07:48:48]process_json_proto returns [07:48:48]Send response to host [07:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112143,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:48:48]free response buf [07:48:48]execute_script done [07:48:48]execute_script returns [07:48:48]free content buf [07:48:48]Sock 7.Close socket [07:48:48]Sock 7.Thread stoped [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:39]accept exits with 9 [07:49:39]New connection [07:49:39]New thread 3066813796 created [07:49:39]Thread 3066957156 joined [07:49:39]Waiting for new connection... [07:49:39] Sock 9.Parse request [07:49:39]Sock 9.Check first char [07:49:39]Sock 9.First char is OK [07:49:39]request: POST /json_proto HTTP/1.0 [07:49:39]Method: POST [07:49:39]URL: /json_proto [07:49:39]Method is POST - this is cgi request [07:49:39]url: /json_proto [07:49:39]query_string will be loaded in cgi processing [07:49:39]execute_cgi json_proto POST (null) [07:49:39]execute_cgi path=json_proto method=POST [07:49:39]POST find Content-Length [07:49:39]Host: 172.17.59.68:8080 [07:49:39]Content-Length: 682 [07:49:39]Content-Type: application/json [07:49:39] [07:49:39]POST finish read [07:49:39]Found Content-Length = 682 [07:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320807", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:39]execute_script... [07:49: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)320807", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:39]POST & json_proto [07:49:39]process_json_proto [07:49:39]json parsed OK: [07:49:39]protocol is kg_v1.0 [07:49:39]action value=close_receipt [07:49:39]process_action close_receipt [07:49:39]cmd_close_receipt [07:49:39]MH_GetDate [07:49:39]Write to MH i2c: F0 00 00 C2 17 C8 [07:49:39]Write i2c OK [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: F0 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: F0 09 00 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: F0 09 00 C2 17 00 23 82 76 66 BC EC 60 65 BF [07:49:39]GetLastDocTimeStamp 1719042385 [07:49:39]current date 1719042595 [07:49:39]FM_GetShiftState [07:49:39]SAM_PROTO_GetShiftState [07:49:39]wFMCommunicate request_size=4 [07:49:39]MH_SAM_APDU [07:49:39]CAPDU: 80 13 01 00 [07:49:39]Write to MH i2c: E2 08 00 C3 17 80 13 01 00 00 00 00 00 57 [07:49:39]Write i2c OK [07:49:39]MH_I2C_Read... [07:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:39]Read from MH i2c: E2 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: E2 0E 00 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: E2 0E 00 C3 17 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8C [07:49:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:49:39]wFMCommunicate OK [07:49:39]SAM_PROTO_GetShiftState done [07:49:39]FM_GetShiftState done [07:49:39]opened in 1719020067 [07:49:39]opened+sec_in_day 1719106467 [07:49:39]quantity*price = 100064 [07:49:39]sum+1 = 100066 [07:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 10 22.06.2024 07:49 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112144 ФПД: 181881449191277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112144&fm=181881449191277&tin=02508201610067®Number=0000000000092771&sum=100000 [07:49:40]StoreToDocumentArchive [07:49:40]shift 391 fd 112144 [07:49:40]save to /storage/0391/doc_00112144 [07:49:40]save last doc name /storage/0391/doc_00112144 to /storage/kkm_last_doc_name [07:49:40]save OK [07:49:40]Clear old archive folders... [07:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:40]tlvbuf is 01121560 [07:49:40]SAM_PROTO_ClearQueue [07:49:40]wFMCommunicate request_size=4 [07:49:40]MH_SAM_APDU [07:49:40]CAPDU: 80 09 00 00 [07:49:40]Write to MH i2c: E2 08 00 D0 17 80 09 00 00 00 00 00 00 59 [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:40]Read from MH i2c: E2 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [07:49:40]RAPDU: 90 00 [07:49:40]wFMCommunicate OK [07:49:40]SAM_PROTO_ClearQueue done [07:49:40]KKMCreateOFDPacket [07:49:40]OFDProtocolAddRootSTLVToBuf [07:49:40]FM_MakeSignedData [07:49:40]FM_MakeSignedData [07:49:40]SAM_PROTO_SignData [07:49:40]wFMCommunicate request_size=4 [07:49:40]MH_SAM_APDU [07:49:40]CAPDU: 80 0D 01 02 [07:49:40]Write to MH i2c: E2 08 00 D1 17 80 0D 01 02 00 00 00 00 61 [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:40]Read from MH i2c: E2 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [07:49:40]RAPDU: 90 00 [07:49:40]wFMCommunicate OK [07:49:40]wFMCommunicate request_size=255 [07:49:40]MH_SAM_APDU [07:49: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 23 82 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B6 01 00 35 04 06 00 A5 [07:49:40]Write to MH i2c: E2 02 01 D2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 23 82 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B6 01 00 35 04 06 00 A5 00 00 E4 [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:40]Read from MH i2c: E2 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [07:49:40]RAPDU: 90 00 [07:49:40]wFMCommunicate OK [07:49:40]wFMCommunicate request_size=10 [07:49:40]MH_SAM_APDU [07:49:40]CAPDU: 80 0D 02 02 05 6B 93 2B 97 6D [07:49:40]Write to MH i2c: E2 0D 00 D3 17 80 0D 02 02 05 00 6B 93 2B 97 6D 00 00 9B [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:40]Read from MH i2c: E2 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [07:49:40]RAPDU: 90 00 [07:49:40]wFMCommunicate OK [07:49:40]wFMCommunicate request_size=4 [07:49:40]MH_SAM_APDU [07:49:40]CAPDU: 80 0D 03 02 [07:49:40]Write to MH i2c: E2 08 00 D4 17 80 0D 03 02 00 00 00 00 66 [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:40]Read from MH i2c: E2 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 0B 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 0B 00 D4 17 00 04 06 EE 3E 85 D3 7D ED 90 00 5F [07:49:40]RAPDU: 04 06 EE 3E 85 D3 7D ED 90 00 [07:49:40]wFMCommunicate OK [07:49:40]SAM_PROTO_SignData done [07:49:40]FM_MakeSignedData done [07:49:40]CreateOFDProtocolMessage [07:49:40]wFMCommunicate request_size=4 [07:49:40]MH_SAM_APDU [07:49:40]CAPDU: 80 11 00 00 [07:49:40]Write to MH i2c: E2 08 00 D5 17 80 11 00 00 00 00 00 00 66 [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:40]Read from MH i2c: E2 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 17 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: E2 17 00 D5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [07:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:49:40]wFMCommunicate OK [07:49:40]CreateOFDProtocolMessage done [07:49:40]OFDSenderStorePacket 112144 [07:49:40]StoreOFDPacket docnum=112144 [07:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 72 07 01 6C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 23 82 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B6 01 00 35 04 06 00 A5 6B 93 2B 97 6D 04 06 EE 3E 85 D3 7D ED [07:49:40]CheckFolder [07:49:40]dirname=/storage/ofd_packets [07:49:40]CheckFolder done [07:49:40]ProducePacketName [07:49:40]name=ofd_packets/00112144 [07:49:40]NVStorageSaveData ofd_packets/00112144 [07:49:40]File name is /storage/ofd_packets/00112144 [07:49:40]Write 301 bytes [07:49:40]NVStorageSaveData done [07:49:40]OFDSenderStorePacket done [07:49:40]KKMCreateOFDPacket done [07:49:40]NVStorageSaveData kkm_last_timestamp [07:49:40]File name is /storage/kkm_last_timestamp [07:49:40]Write 4 bytes [07:49:40]NVStorageSaveData done [07:49:40]ExternCall_PrintAddStr [07:49:40]wPrintStart [07:49:40]Write to MH i2c: 01 00 00 D6 17 ED [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 D6 17 00 00 00 00 00 FF 0F 02 [07:49:40]RasterBufferAndPrint [07:49:40]line Счет N : (1)320807 [07:49:40]line ИНН: 02508201610067 [07:49:40]line Контрольно-Кассовый Чек [07:49:40]line ПРОДАЖА [07:49:40]line ТРК (МРК, ГНК) : 11 [07:49:40]line Товар: 2710124130 [07:49:40]line Аи-92-К-5 [07:49:40]line 15.070 * 66.40 [07:49:40]line = 1000.65 [07:49:40]line НДС 12% НСП 1% [07:49:40]line > о реализуемом товаре [07:49:40]line ОКРУГЛЕНИЕ: -0.65 [07:49:40]line ИТОГО: 1000.00 [07:49:40]line Внесено: 1000.00 [07:49:40]line СДАЧА: 0.00 [07:49:40]line НСП 1% : 8.85 [07:49:40]line НДС 12% : 106.26 [07:49:40]line Наличными: 1000.00 [07:49:40]line Безнал.: 0.00 [07:49:40]line Место: АЗС № 65 "Партнер Нефть" [07:49:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:49:40]line СНО: Общий режим [07:49:40]line Чек 10 22.06.2024 07:49 [07:49:40]line Смена: 391 ФФД: 1.0 [07:49:40]line ЗНМ: 0300000198 [07:49:40]line РНМ: 0000000000092771 [07:49:40]line Версия ККМ: 001 [07:49:40]line ФМ: 0000000000875083 [07:49:40]line ФД: 112144 [07:49:40]line ФПД: 181881449191277 [07:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T074955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112144&fm=181881449191277&tin=02508201610067®Number=0000000000092771&sum=100000 [07:49:41]OFD Sender: Processing packet 112144 [packets to send 38, broken 37] [07:49:41]ProducePacketName [07:49:41]name=ofd_packets/00112144 [07:49:41]OFD Sender: To server: pG, [07:49:41]CommunicateWithHost lk.salyk.kg:30040 [07:49:41]ConnectInit lk.salyk.kg [07:49:41]written 0, free lines is 4095 [07:49:41]Connected sock=10 [07:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 72 07 01 6C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 23 82 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B6 01 00 35 04 06 00 A5 6B 93 2B 97 6D 04 06 EE 3E 85 D3 7D ED [07:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 89 47 00 CE 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B6 01 00 F4 03 04 00 36 19 76 66 B6 04 01 00 00 B3 AC 9F 64 51 9A A6 16 [07:49:41]CommunicateWithHost err = 0 [07:49:41]CheckOFDResponse [07:49:41]1017 (14) - 77093643461234 [07:49:41]1041 (16) - 0000000000875083 [07:49:41]1040 (4) - 112144 [07:49:41]1012 (4) - 22.06.2024 00:22 [07:49:41]1206 (1) - 0 [07:49:41]OFD Sender: Remove packet 112144 [07:49:41]ProducePacketName [07:49:41]name=ofd_packets/00112144 [07:49:41]NVStorageDeleteData [07:49:41]Write to MH i2c: 01 00 00 01 18 19 [07:49:41]Write i2c OK [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: 01 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: 01 07 00 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: 01 07 00 01 18 00 00 00 00 00 EE 0C 1A [07:49:41]RasterBufferAndPrint [07:49:41]line [07:49:41]line [07:49:41]line [07:49:41]line [07:49:41]line [07:49:41]written 0, free lines is 3316 [07:49:41]MH_Cut [07:49:41]Write to MH i2c: D1 01 00 08 18 01 F2 [07:49:41]Write i2c OK [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: D1 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: D1 01 00 [07:49:41]MH_I2C_Read... [07:49:41]Read from MH i2c: D1 01 00 08 18 00 F1 [07:49:41]Write to MH i2c: 01 00 00 09 18 21 [07:49:41]Write i2c OK [07:49:41]MH_I2C_Read... [07:49:42]OFD Sender: No OFD packet to send [07:49:42]*** Cut start [07:49:42]*** Partial cut [07:49:42]*** CUTSNS_PIN = 1 [07:49:42]*** CUTSNS_PIN = 0 [07:49:42]*** Brake cut motor [07:49:43]Read from MH i2c: 01 [07:49:43]MH_I2C_Read... [07:49:43]*** Stop cut motor [07:49:43]*** Cut end [07:49:43]Read from MH i2c: 01 07 00 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [07:49:43]process_action close_receipt done [07:49:43]requested_data is exist [07:49:43]produce_requested_data [07:49:43]requested_item fm.sn is exist - process it [07:49:43]wFMCommunicate request_size=4 [07:49:43]MH_SAM_APDU [07:49:43]CAPDU: 80 11 00 00 [07:49:43]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [07:49:43]Write i2c OK [07:49:43]MH_I2C_Read... [07:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:43]Read from MH i2c: E2 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: E2 17 00 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [07:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:49:43]wFMCommunicate OK [07:49:43]requested_item fd.num is exist - process it [07:49:43]SAM_PROTO_GetFieldsCounters [07:49:43]wFMCommunicate request_size=4 [07:49:43]MH_SAM_APDU [07:49:43]CAPDU: 80 13 00 00 [07:49:43]Write to MH i2c: E2 08 00 0B 18 80 13 00 00 00 00 00 00 9F [07:49:43]Write i2c OK [07:49:43]MH_I2C_Read... [07:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:43]Read from MH i2c: E2 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: E2 62 00 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: E2 62 00 0B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [07:49:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:43]wFMCommunicate OK [07:49:43]SAM_PROTO_GetFieldsCounters done [07:49:43]requested_item shift.num is exist - process it [07:49:43]requested_item shift.opened is exist - process it [07:49:43]req_shift_opened [07:49:43]FM_GetShiftState [07:49:43]SAM_PROTO_GetShiftState [07:49:43]wFMCommunicate request_size=4 [07:49:43]MH_SAM_APDU [07:49:43]CAPDU: 80 13 01 00 [07:49:43]Write to MH i2c: E2 08 00 0C 18 80 13 01 00 00 00 00 00 A1 [07:49:43]Write i2c OK [07:49:43]MH_I2C_Read... [07:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:43]Read from MH i2c: E2 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: E2 0E 00 [07:49:43]MH_I2C_Read... [07:49:43]Read from MH i2c: E2 0E 00 0C 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D6 [07:49:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [07:49:43]wFMCommunicate OK [07:49:43]SAM_PROTO_GetShiftState done [07:49:43]FM_GetShiftState done [07:49:43]req_shift_opened done [07:49:43]requested_item shift.open_date is exist - process it [07:49:43]req_shift_open_date [07:49:43]req_shift_open_date done [07:49:43]produce_requested_data done [07:49:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112144,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [07:49:43]process_action_free close_receipt [07:49:43]json_value_free [07:49:43]json_value_free done [07:49:43]process_json_proto returns [07:49:43]Send response to host [07:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112144,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [07:49:43]free response buf [07:49:43]execute_script done [07:49:43]execute_script returns [07:49:43]free content buf [07:49:43]Sock 9.Close socket [07:49:43]Sock 9.Thread stoped [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07: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:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:00]accept exits with 7 [08:34:00]New connection [08:34:00]New thread 3066957156 created [08:34:00]Thread 3066813796 joined [08:34:00]Waiting for new connection... [08:34:00] Sock 7.Parse request [08:34:00]Sock 7.Check first char [08:34:00]Sock 7.First char is OK [08:34:00]request: POST /json_proto HTTP/1.0 [08:34:00]Method: POST [08:34:00]URL: /json_proto [08:34:00]Method is POST - this is cgi request [08:34:00]url: /json_proto [08:34:00]query_string will be loaded in cgi processing [08:34:00]execute_cgi json_proto POST (null) [08:34:00]execute_cgi path=json_proto method=POST [08:34:00]POST find Content-Length [08:34:00]Host: 172.17.59.68:8080 [08:34:00]Content-Length: 677 [08:34:00]Content-Type: application/json [08:34:00] [08:34:00]POST finish read [08:34:00]Found Content-Length = 677 [08:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320808", "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.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [08:34:00]execute_script... [08:34: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)320808", "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.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [08:34:00]POST & json_proto [08:34:00]process_json_proto [08:34:00]json parsed OK: [08:34:00]protocol is kg_v1.0 [08:34:00]action value=close_receipt [08:34:00]process_action close_receipt [08:34:00]cmd_close_receipt [08:34:00]MH_GetDate [08:34:00]Write to MH i2c: F0 00 00 0D 18 14 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 09 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: F0 09 00 0D 18 00 89 8C 76 66 BC EC 60 65 7B [08:34:00]GetLastDocTimeStamp 1719042595 [08:34:00]current date 1719045257 [08:34:00]FM_GetShiftState [08:34:00]SAM_PROTO_GetShiftState [08:34:00]wFMCommunicate request_size=4 [08:34:00]MH_SAM_APDU [08:34:00]CAPDU: 80 13 01 00 [08:34:00]Write to MH i2c: E2 08 00 0E 18 80 13 01 00 00 00 00 00 A3 [08:34:00]Write i2c OK [08:34:00]MH_I2C_Read... [08:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:00]Read from MH i2c: E2 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 0E 00 [08:34:00]MH_I2C_Read... [08:34:00]Read from MH i2c: E2 0E 00 0E 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D8 [08:34:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:34:00]wFMCommunicate OK [08:34:00]SAM_PROTO_GetShiftState done [08:34:00]FM_GetShiftState done [08:34:00]opened in 1719020067 [08:34:00]opened+sec_in_day 1719106467 [08:34:00]quantity*price = 65005 [08:34:00]sum+1 = 65007 [08:34:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 11 22.06.2024 08:34 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112145 ФПД: 58163306600762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T083417&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112145&fm=58163306600762&tin=02508201610067®Number=0000000000092771&sum=65000 [08:34:01]StoreToDocumentArchive [08:34:01]shift 391 fd 112145 [08:34:01]save to /storage/0391/doc_00112145 [08:34:01]save last doc name /storage/0391/doc_00112145 to /storage/kkm_last_doc_name [08:34:01]save OK [08:34:01]Clear old archive folders... [08:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:01]tlvbuf is 0111F080 [08:34:01]SAM_PROTO_ClearQueue [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 09 00 00 [08:34:01]Write to MH i2c: E2 08 00 1B 18 80 09 00 00 00 00 00 00 A5 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]SAM_PROTO_ClearQueue done [08:34:01]KKMCreateOFDPacket [08:34:01]OFDProtocolAddRootSTLVToBuf [08:34:01]FM_MakeSignedData [08:34:01]FM_MakeSignedData [08:34:01]SAM_PROTO_SignData [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 01 02 [08:34:01]Write to MH i2c: E2 08 00 1C 18 80 0D 01 02 00 00 00 00 AD [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 1C 18 00 90 00 A8 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=255 [08:34:01]MH_SAM_APDU [08:34: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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 89 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B6 01 00 35 04 06 00 34 [08:34:01]Write to MH i2c: E2 02 01 1D 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 89 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B6 01 00 35 04 06 00 34 00 00 AB [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 1D 18 00 90 00 A9 [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=10 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 02 02 05 E6 33 3A 99 3A [08:34:01]Write to MH i2c: E2 0D 00 1E 18 80 0D 02 02 05 00 E6 33 3A 99 3A 00 00 E0 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [08:34:01]RAPDU: 90 00 [08:34:01]wFMCommunicate OK [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 0D 03 02 [08:34:01]Write to MH i2c: E2 08 00 1F 18 80 0D 03 02 00 00 00 00 B2 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0B 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0B 00 1F 18 00 28 45 36 9B 13 06 EC 3A 90 00 30 [08:34:01]RAPDU: 28 45 36 9B 13 06 EC 3A 90 00 [08:34:01]wFMCommunicate OK [08:34:01]SAM_PROTO_SignData done [08:34:01]FM_MakeSignedData done [08:34:01]CreateOFDProtocolMessage [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 11 00 00 [08:34:01]Write to MH i2c: E2 08 00 20 18 80 11 00 00 00 00 00 00 B2 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 17 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 17 00 20 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [08:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:34:01]wFMCommunicate OK [08:34:01]CreateOFDProtocolMessage done [08:34:01]OFDSenderStorePacket 112145 [08:34:01]StoreOFDPacket docnum=112145 [08:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 F1 07 01 2C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 89 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B6 01 00 35 04 06 00 34 E6 33 3A 99 3A 28 45 36 9B 13 06 EC 3A [08:34:01]CheckFolder [08:34:01]dirname=/storage/ofd_packets [08:34:01]CheckFolder done [08:34:01]ProducePacketName [08:34:01]name=ofd_packets/00112145 [08:34:01]NVStorageSaveData ofd_packets/00112145 [08:34:01]File name is /storage/ofd_packets/00112145 [08:34:01]Write 301 bytes [08:34:01]NVStorageSaveData done [08:34:01]OFDSenderStorePacket done [08:34:01]KKMCreateOFDPacket done [08:34:01]NVStorageSaveData kkm_last_timestamp [08:34:01]File name is /storage/kkm_last_timestamp [08:34:01]Write 4 bytes [08:34:01]NVStorageSaveData done [08:34:01]ExternCall_PrintAddStr [08:34:01]wPrintStart [08:34:01]Write to MH i2c: 01 00 00 21 18 39 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: 01 07 00 21 18 00 00 00 00 00 FF 0F 4E [08:34:01]RasterBufferAndPrint [08:34:01]line Счет N : (1)320808 [08:34:01]line ИНН: 02508201610067 [08:34:01]line Контрольно-Кассовый Чек [08:34:01]line ПРОДАЖА [08:34:01]line ТРК (МРК, ГНК) : 11 [08:34:01]line Товар: 2710124130 [08:34:01]line Аи-92-К-5 [08:34:01]line 9.790 * 66.40 [08:34:01]line = 650.06 [08:34:01]line НДС 12% НСП 1% [08:34:01]line > о реализуемом товаре [08:34:01]line ОКРУГЛЕНИЕ: -0.06 [08:34:01]line ИТОГО: 650.00 [08:34:01]line Внесено: 650.00 [08:34:01]line СДАЧА: 0.00 [08:34:01]line НСП 1% : 5.75 [08:34:01]line НДС 12% : 69.03 [08:34:01]line Наличными: 650.00 [08:34:01]line Безнал.: 0.00 [08:34:01]line Место: АЗС № 65 "Партнер Нефть" [08:34:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:34:01]line СНО: Общий режим [08:34:01]line Чек 11 22.06.2024 08:34 [08:34:01]line Смена: 391 ФФД: 1.0 [08:34:01]line ЗНМ: 0300000198 [08:34:01]line РНМ: 0000000000092771 [08:34:01]line Версия ККМ: 001 [08:34:01]line ФМ: 0000000000875083 [08:34:01]line ФД: 112145 [08:34:01]line ФПД: 58163306600762 [08:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T083417&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112145&fm=58163306600762&tin=02508201610067®Number=0000000000092771&sum=65000 [08:34:02]OFD Sender: Processing packet 112145 [packets to send 38, broken 37] [08:34:02]ProducePacketName [08:34:02]name=ofd_packets/00112145 [08:34:02]OFD Sender: To server: pG, [08:34:02]CommunicateWithHost lk.salyk.kg:30040 [08:34:02]ConnectInit lk.salyk.kg [08:34:02]written 0, free lines is 4095 [08:34:02]Connected sock=10 [08:34:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 F1 07 01 2C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 89 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B6 01 00 35 04 06 00 34 E6 33 3A 99 3A 28 45 36 9B 13 06 EC 3A [08:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB 4E 47 00 6F 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B6 01 00 F4 03 04 00 9B 23 76 66 B6 04 01 00 00 02 49 65 B9 D0 DD 32 57 [08:34:02]CommunicateWithHost err = 0 [08:34:02]CheckOFDResponse [08:34:02]1017 (14) - 77093643461234 [08:34:02]1041 (16) - 0000000000875083 [08:34:02]1040 (4) - 112145 [08:34:02]1012 (4) - 22.06.2024 01:06 [08:34:02]1206 (1) - 0 [08:34:02]OFD Sender: Remove packet 112145 [08:34:02]ProducePacketName [08:34:02]name=ofd_packets/00112145 [08:34:02]NVStorageDeleteData [08:34:02]Write to MH i2c: 01 00 00 4C 18 64 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 07 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 07 00 4C 18 00 00 00 00 00 CC 0C 43 [08:34:02]RasterBufferAndPrint [08:34:02]line [08:34:02]line [08:34:02]line [08:34:02]line [08:34:02]line [08:34:02]written 0, free lines is 3282 [08:34:02]MH_Cut [08:34:02]Write to MH i2c: D1 01 00 53 18 01 3D [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: D1 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: D1 01 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: D1 01 00 53 18 00 3C [08:34:02]Write to MH i2c: 01 00 00 54 18 6C [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]OFD Sender: No OFD packet to send [08:34:03]*** Cut start [08:34:03]*** Partial cut [08:34:03]*** CUTSNS_PIN = 1 [08:34:03]*** CUTSNS_PIN = 0 [08:34:03]*** Brake cut motor [08:34:03]Read from MH i2c: 01 [08:34:04]MH_I2C_Read... [08:34:04]*** Stop cut motor [08:34:04]*** Cut end [08:34:04]Read from MH i2c: 01 07 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 FF 0F 81 [08:34:04]process_action close_receipt done [08:34:04]requested_data is exist [08:34:04]produce_requested_data [08:34:04]requested_item fm.sn is exist - process it [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 11 00 00 [08:34:04]Write to MH i2c: E2 08 00 55 18 80 11 00 00 00 00 00 00 E7 [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 17 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 17 00 55 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [08:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:34:04]wFMCommunicate OK [08:34:04]requested_item fd.num is exist - process it [08:34:04]SAM_PROTO_GetFieldsCounters [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 13 00 00 [08:34:04]Write to MH i2c: E2 08 00 56 18 80 13 00 00 00 00 00 00 EA [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 62 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 62 00 56 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [08:34:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetFieldsCounters done [08:34:04]requested_item shift.num is exist - process it [08:34:04]requested_item shift.opened is exist - process it [08:34:04]req_shift_opened [08:34:04]FM_GetShiftState [08:34:04]SAM_PROTO_GetShiftState [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 13 01 00 [08:34:04]Write to MH i2c: E2 08 00 57 18 80 13 01 00 00 00 00 00 EC [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 57 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 21 [08:34:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetShiftState done [08:34:04]FM_GetShiftState done [08:34:04]req_shift_opened done [08:34:04]requested_item shift.open_date is exist - process it [08:34:04]req_shift_open_date [08:34:04]req_shift_open_date done [08:34:04]produce_requested_data done [08:34:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112145,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [08:34:04]process_action_free close_receipt [08:34:04]json_value_free [08:34:04]json_value_free done [08:34:04]process_json_proto returns [08:34:04]Send response to host [08:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112145,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [08:34:04]free response buf [08:34:04]execute_script done [08:34:04]execute_script returns [08:34:04]free content buf [08:34:04]Sock 7.Close socket [08:34:04]Sock 7.Thread stoped [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:49]accept exits with 9 [08:34:49]New connection [08:34:49]New thread 3066813796 created [08:34:49]Thread 3066957156 joined [08:34:49]Waiting for new connection... [08:34:49] Sock 9.Parse request [08:34:49]Sock 9.Check first char [08:34:49]Sock 9.First char is OK [08:34:49]request: POST /json_proto HTTP/1.0 [08:34:49]Method: POST [08:34:49]URL: /json_proto [08:34:49]Method is POST - this is cgi request [08:34:49]url: /json_proto [08:34:49]query_string will be loaded in cgi processing [08:34:49]execute_cgi json_proto POST (null) [08:34:49]execute_cgi path=json_proto method=POST [08:34:49]POST find Content-Length [08:34:49]Host: 172.17.59.68:8080 [08:34:49]Content-Length: 682 [08:34:49]Content-Type: application/json [08:34:49] [08:34:49]POST finish read [08:34:49]Found Content-Length = 682 [08:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320809", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:49]execute_script... [08:34: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)320809", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:49]POST & json_proto [08:34:49]process_json_proto [08:34:49]json parsed OK: [08:34:49]protocol is kg_v1.0 [08:34:49]action value=close_receipt [08:34:49]process_action close_receipt [08:34:49]cmd_close_receipt [08:34:49]MH_GetDate [08:34:49]Write to MH i2c: F0 00 00 58 18 5F [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: F0 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: F0 09 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: F0 09 00 58 18 00 BB 8C 76 66 BC EC 60 65 F8 [08:34:49]GetLastDocTimeStamp 1719045257 [08:34:49]current date 1719045307 [08:34:49]FM_GetShiftState [08:34:49]SAM_PROTO_GetShiftState [08:34:49]wFMCommunicate request_size=4 [08:34:49]MH_SAM_APDU [08:34:49]CAPDU: 80 13 01 00 [08:34:49]Write to MH i2c: E2 08 00 59 18 80 13 01 00 00 00 00 00 EE [08:34:49]Write i2c OK [08:34:49]MH_I2C_Read... [08:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:49]Read from MH i2c: E2 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 0E 00 [08:34:49]MH_I2C_Read... [08:34:49]Read from MH i2c: E2 0E 00 59 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 23 [08:34:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:34:49]wFMCommunicate OK [08:34:49]SAM_PROTO_GetShiftState done [08:34:49]FM_GetShiftState done [08:34:49]opened in 1719020067 [08:34:49]opened+sec_in_day 1719106467 [08:34:49]quantity*price = 100064 [08:34:49]sum+1 = 100066 [08:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 12 22.06.2024 08:35 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112146 ФПД: 260025413190255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T083507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112146&fm=260025413190255&tin=02508201610067®Number=0000000000092771&sum=100000 [08:34:51]StoreToDocumentArchive [08:34:51]shift 391 fd 112146 [08:34:51]save to /storage/0391/doc_00112146 [08:34:51]save last doc name /storage/0391/doc_00112146 to /storage/kkm_last_doc_name [08:34:51]save OK [08:34:51]Clear old archive folders... [08:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:51]tlvbuf is 01178F20 [08:34:51]SAM_PROTO_ClearQueue [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 09 00 00 [08:34:51]Write to MH i2c: E2 08 00 66 18 80 09 00 00 00 00 00 00 F0 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]SAM_PROTO_ClearQueue done [08:34:51]KKMCreateOFDPacket [08:34:51]OFDProtocolAddRootSTLVToBuf [08:34:51]FM_MakeSignedData [08:34:51]FM_MakeSignedData [08:34:51]SAM_PROTO_SignData [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 01 02 [08:34:51]Write to MH i2c: E2 08 00 67 18 80 0D 01 02 00 00 00 00 F8 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]wFMCommunicate request_size=255 [08:34:51]MH_SAM_APDU [08:34: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BB 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B6 01 00 35 04 06 00 EC [08:34:51]Write to MH i2c: E2 02 01 68 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BB 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B6 01 00 35 04 06 00 EC 00 00 68 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]wFMCommunicate request_size=10 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 02 02 05 7D E2 62 C2 6F [08:34:51]Write to MH i2c: E2 0D 00 69 18 80 0D 02 02 05 00 7D E2 62 C2 6F 00 00 F7 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [08:34:51]RAPDU: 90 00 [08:34:51]wFMCommunicate OK [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 0D 03 02 [08:34:51]Write to MH i2c: E2 08 00 6A 18 80 0D 03 02 00 00 00 00 FD [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 0B 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 0B 00 6A 18 00 6F 24 1E 65 53 9A D3 8A 90 00 5E [08:34:51]RAPDU: 6F 24 1E 65 53 9A D3 8A 90 00 [08:34:51]wFMCommunicate OK [08:34:51]SAM_PROTO_SignData done [08:34:51]FM_MakeSignedData done [08:34:51]CreateOFDProtocolMessage [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 11 00 00 [08:34:51]Write to MH i2c: E2 08 00 6B 18 80 11 00 00 00 00 00 00 FD [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 17 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 17 00 6B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [08:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:34:51]wFMCommunicate OK [08:34:51]CreateOFDProtocolMessage done [08:34:51]OFDSenderStorePacket 112146 [08:34:51]StoreOFDPacket docnum=112146 [08:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9D 42 07 01 17 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BB 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B6 01 00 35 04 06 00 EC 7D E2 62 C2 6F 6F 24 1E 65 53 9A D3 8A [08:34:51]CheckFolder [08:34:51]dirname=/storage/ofd_packets [08:34:51]CheckFolder done [08:34:51]ProducePacketName [08:34:51]name=ofd_packets/00112146 [08:34:51]NVStorageSaveData ofd_packets/00112146 [08:34:51]File name is /storage/ofd_packets/00112146 [08:34:51]Write 301 bytes [08:34:51]NVStorageSaveData done [08:34:51]OFDSenderStorePacket done [08:34:51]KKMCreateOFDPacket done [08:34:51]NVStorageSaveData kkm_last_timestamp [08:34:51]File name is /storage/kkm_last_timestamp [08:34:51]Write 4 bytes [08:34:51]NVStorageSaveData done [08:34:51]ExternCall_PrintAddStr [08:34:51]wPrintStart [08:34:51]Write to MH i2c: 01 00 00 6C 18 84 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 6C 18 00 00 00 00 00 FF 0F 99 [08:34:51]RasterBufferAndPrint [08:34:51]line Счет N : (1)320809 [08:34:51]line ИНН: 02508201610067 [08:34:51]line Контрольно-Кассовый Чек [08:34:51]line ПРОДАЖА [08:34:51]line ТРК (МРК, ГНК) : 11 [08:34:51]line Товар: 2710124130 [08:34:51]line Аи-92-К-5 [08:34:51]line 15.070 * 66.40 [08:34:51]line = 1000.65 [08:34:51]line НДС 12% НСП 1% [08:34:51]line > о реализуемом товаре [08:34:51]line ОКРУГЛЕНИЕ: -0.65 [08:34:51]line ИТОГО: 1000.00 [08:34:51]line Внесено: 1000.00 [08:34:51]line СДАЧА: 0.00 [08:34:51]line НСП 1% : 8.85 [08:34:51]line НДС 12% : 106.26 [08:34:51]line Наличными: 1000.00 [08:34:51]line Безнал.: 0.00 [08:34:51]line Место: АЗС № 65 "Партнер Нефть" [08:34:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:34:51]line СНО: Общий режим [08:34:51]line Чек 12 22.06.2024 08:35 [08:34:51]line Смена: 391 ФФД: 1.0 [08:34:51]line ЗНМ: 0300000198 [08:34:51]line РНМ: 0000000000092771 [08:34:51]line Версия ККМ: 001 [08:34:51]line ФМ: 0000000000875083 [08:34:51]line ФД: 112146 [08:34:51]line ФПД: 260025413190255 [08:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T083507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112146&fm=260025413190255&tin=02508201610067®Number=0000000000092771&sum=100000 [08:34:51]OFD Sender: Processing packet 112146 [packets to send 38, broken 37] [08:34:51]ProducePacketName [08:34:51]name=ofd_packets/00112146 [08:34:51]OFD Sender: To server: pG, [08:34:51]CommunicateWithHost lk.salyk.kg:30040 [08:34:51]ConnectInit lk.salyk.kg [08:34:51]written 0, free lines is 4095 [08:34:52]Connected sock=10 [08:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9D 42 07 01 17 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 BB 8C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B6 01 00 35 04 06 00 EC 7D E2 62 C2 6F 6F 24 1E 65 53 9A D3 8A [08:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 23 44 47 00 73 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B6 01 00 F4 03 04 00 CC 23 76 66 B6 04 01 00 00 CD 9E 34 FB A6 CE 92 79 [08:34:52]CommunicateWithHost err = 0 [08:34:52]CheckOFDResponse [08:34:52]1017 (14) - 77093643461234 [08:34:52]1041 (16) - 0000000000875083 [08:34:52]1040 (4) - 112146 [08:34:52]1012 (4) - 22.06.2024 01:07 [08:34:52]1206 (1) - 0 [08:34:52]OFD Sender: Remove packet 112146 [08:34:52]ProducePacketName [08:34:52]name=ofd_packets/00112146 [08:34:52]NVStorageDeleteData [08:34:52]Write to MH i2c: 01 00 00 97 18 AF [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: 01 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: 01 07 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: 01 07 00 97 18 00 00 00 00 00 CD 0C 8F [08:34:52]RasterBufferAndPrint [08:34:52]line [08:34:52]line [08:34:52]line [08:34:52]line [08:34:52]line [08:34:52]written 0, free lines is 3283 [08:34:52]MH_Cut [08:34:52]Write to MH i2c: D1 01 00 9E 18 01 88 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: D1 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: D1 01 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: D1 01 00 9E 18 00 87 [08:34:52]Write to MH i2c: 01 00 00 9F 18 B7 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]OFD Sender: No OFD packet to send [08:34:53]*** Cut start [08:34:53]*** Partial cut [08:34:53]*** CUTSNS_PIN = 1 [08:34:53]*** CUTSNS_PIN = 0 [08:34:53]*** Brake cut motor [08:34:53]Read from MH i2c: 01 [08:34:53]MH_I2C_Read... [08:34:53]*** Stop cut motor [08:34:53]*** Cut end [08:34:53]Read from MH i2c: 01 07 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 07 00 9F 18 00 00 00 00 00 FF 0F CC [08:34:53]process_action close_receipt done [08:34:53]requested_data is exist [08:34:53]produce_requested_data [08:34:53]requested_item fm.sn is exist - process it [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 11 00 00 [08:34:53]Write to MH i2c: E2 08 00 A0 18 80 11 00 00 00 00 00 00 32 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 17 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 17 00 A0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [08:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:34:53]wFMCommunicate OK [08:34:53]requested_item fd.num is exist - process it [08:34:53]SAM_PROTO_GetFieldsCounters [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 13 00 00 [08:34:53]Write to MH i2c: E2 08 00 A1 18 80 13 00 00 00 00 00 00 35 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 62 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 62 00 A1 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [08:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:53]wFMCommunicate OK [08:34:53]SAM_PROTO_GetFieldsCounters done [08:34:53]requested_item shift.num is exist - process it [08:34:53]requested_item shift.opened is exist - process it [08:34:53]req_shift_opened [08:34:53]FM_GetShiftState [08:34:53]SAM_PROTO_GetShiftState [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 13 01 00 [08:34:53]Write to MH i2c: E2 08 00 A2 18 80 13 01 00 00 00 00 00 37 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:54]Read from MH i2c: E2 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 0E 00 [08:34:54]MH_I2C_Read... [08:34:54]Read from MH i2c: E2 0E 00 A2 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6C [08:34:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:34:54]wFMCommunicate OK [08:34:54]SAM_PROTO_GetShiftState done [08:34:54]FM_GetShiftState done [08:34:54]req_shift_opened done [08:34:54]requested_item shift.open_date is exist - process it [08:34:54]req_shift_open_date [08:34:54]req_shift_open_date done [08:34:54]produce_requested_data done [08:34:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112146,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [08:34:54]process_action_free close_receipt [08:34:54]json_value_free [08:34:54]json_value_free done [08:34:54]process_json_proto returns [08:34:54]Send response to host [08:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112146,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [08:34:54]free response buf [08:34:54]execute_script done [08:34:54]execute_script returns [08:34:54]free content buf [08:34:54]Sock 9.Close socket [08:34:54]Sock 9.Thread stoped [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]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:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:02]accept exits with 7 [08:45:02]New connection [08:45:02]New thread 3066957156 created [08:45:02]Thread 3066813796 joined [08:45:02]Waiting for new connection... [08:45:02] Sock 7.Parse request [08:45:02]Sock 7.Check first char [08:45:02]Sock 7.First char is OK [08:45:02]request: POST /json_proto HTTP/1.0 [08:45:02]Method: POST [08:45:02]URL: /json_proto [08:45:02]Method is POST - this is cgi request [08:45:02]url: /json_proto [08:45:02]query_string will be loaded in cgi processing [08:45:02]execute_cgi json_proto POST (null) [08:45:02]execute_cgi path=json_proto method=POST [08:45:02]POST find Content-Length [08:45:02]Host: 172.17.59.68:8080 [08:45:02]Content-Length: 678 [08:45:02]Content-Type: application/json [08:45:02] [08:45:02]POST finish read [08:45:02]Found Content-Length = 678 [08:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320810", "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.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:02]execute_script... [08:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320810", "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.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:02]POST & json_proto [08:45:02]process_json_proto [08:45:02]json parsed OK: [08:45:02]protocol is kg_v1.0 [08:45:02]action value=close_receipt [08:45:02]process_action close_receipt [08:45:02]cmd_close_receipt [08:45:02]MH_GetDate [08:45:02]Write to MH i2c: F0 00 00 A3 18 AA [08:45:02]Write i2c OK [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 09 00 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 09 00 A3 18 00 20 8F 76 66 BC EC 60 65 AB [08:45:02]GetLastDocTimeStamp 1719045307 [08:45:02]current date 1719045920 [08:45:02]FM_GetShiftState [08:45:02]SAM_PROTO_GetShiftState [08:45:02]wFMCommunicate request_size=4 [08:45:02]MH_SAM_APDU [08:45:02]CAPDU: 80 13 01 00 [08:45:02]Write to MH i2c: E2 08 00 A4 18 80 13 01 00 00 00 00 00 39 [08:45:02]Write i2c OK [08:45:02]MH_I2C_Read... [08:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:02]Read from MH i2c: E2 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: E2 0E 00 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: E2 0E 00 A4 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6E [08:45:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:45:02]wFMCommunicate OK [08:45:02]SAM_PROTO_GetShiftState done [08:45:02]FM_GetShiftState done [08:45:02]opened in 1719020067 [08:45:02]opened+sec_in_day 1719106467 [08:45:02]quantity*price = 68060 [08:45:02]sum+1 = 68061 [08:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.28 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 13 22.06.2024 08:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112147 ФПД: 151779381108691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084520&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112147&fm=151779381108691&tin=02508201610067®Number=0000000000092771&sum=68000 [08:45:03]StoreToDocumentArchive [08:45:03]shift 391 fd 112147 [08:45:03]save to /storage/0391/doc_00112147 [08:45:03]save last doc name /storage/0391/doc_00112147 to /storage/kkm_last_doc_name [08:45:03]save OK [08:45:03]Clear old archive folders... [08:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:03]tlvbuf is 01121D10 [08:45:03]SAM_PROTO_ClearQueue [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 09 00 00 [08:45:03]Write to MH i2c: E2 08 00 B1 18 80 09 00 00 00 00 00 00 3B [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]SAM_PROTO_ClearQueue done [08:45:03]KKMCreateOFDPacket [08:45:03]OFDProtocolAddRootSTLVToBuf [08:45:03]FM_MakeSignedData [08:45:03]FM_MakeSignedData [08:45:03]SAM_PROTO_SignData [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 01 02 [08:45:03]Write to MH i2c: E2 08 00 B2 18 80 0D 01 02 00 00 00 00 43 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=255 [08:45:03]MH_SAM_APDU [08:45: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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B6 01 00 35 04 06 00 8A [08:45:03]Write to MH i2c: E2 02 01 B3 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 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B6 01 00 35 04 06 00 8A 00 00 EA [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=10 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 02 02 05 0A E4 18 5F D3 [08:45:03]Write to MH i2c: E2 0D 00 B4 18 80 0D 02 02 05 00 0A E4 18 5F D3 00 00 88 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 03 02 [08:45:03]Write to MH i2c: E2 08 00 B5 18 80 0D 03 02 00 00 00 00 48 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 0B 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 0B 00 B5 18 00 FD 7D 90 01 AD D1 7C E2 90 00 30 [08:45:04]RAPDU: FD 7D 90 01 AD D1 7C E2 90 00 [08:45:04]wFMCommunicate OK [08:45:04]SAM_PROTO_SignData done [08:45:04]FM_MakeSignedData done [08:45:04]CreateOFDProtocolMessage [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 11 00 00 [08:45:04]Write to MH i2c: E2 08 00 B6 18 80 11 00 00 00 00 00 00 48 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 17 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 17 00 B6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [08:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:45:04]wFMCommunicate OK [08:45:04]CreateOFDProtocolMessage done [08:45:04]OFDSenderStorePacket 112147 [08:45:04]StoreOFDPacket docnum=112147 [08:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 01 07 01 B0 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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B6 01 00 35 04 06 00 8A 0A E4 18 5F D3 FD 7D 90 01 AD D1 7C E2 [08:45:04]CheckFolder [08:45:04]dirname=/storage/ofd_packets [08:45:04]CheckFolder done [08:45:04]ProducePacketName [08:45:04]name=ofd_packets/00112147 [08:45:04]NVStorageSaveData ofd_packets/00112147 [08:45:04]File name is /storage/ofd_packets/00112147 [08:45:04]Write 301 bytes [08:45:04]NVStorageSaveData done [08:45:04]OFDSenderStorePacket done [08:45:04]KKMCreateOFDPacket done [08:45:04]NVStorageSaveData kkm_last_timestamp [08:45:04]File name is /storage/kkm_last_timestamp [08:45:04]Write 4 bytes [08:45:04]NVStorageSaveData done [08:45:04]ExternCall_PrintAddStr [08:45:04]wPrintStart [08:45:04]Write to MH i2c: 01 00 00 B7 18 CF [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 B7 18 00 00 00 00 00 FF 0F E4 [08:45:04]RasterBufferAndPrint [08:45:04]line Счет N : (1)320810 [08:45:04]line ИНН: 02508201610067 [08:45:04]line Контрольно-Кассовый Чек [08:45:04]line ПРОДАЖА [08:45:04]line ТРК (МРК, ГНК) : 11 [08:45:04]line Товар: 2710124130 [08:45:04]line Аи-92-К-5 [08:45:04]line 10.250 * 66.40 [08:45:04]line = 680.60 [08:45:04]line НДС 12% НСП 1% [08:45:04]line > о реализуемом товаре [08:45:04]line ОКРУГЛЕНИЕ: -0.60 [08:45:04]line ИТОГО: 680.00 [08:45:04]line Внесено: 680.00 [08:45:04]line СДАЧА: 0.00 [08:45:04]line НСП 1% : 6.02 [08:45:04]line НДС 12% : 72.28 [08:45:04]line Наличными: 680.00 [08:45:04]line Безнал.: 0.00 [08:45:04]line Место: АЗС № 65 "Партнер Нефть" [08:45:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:45:04]line СНО: Общий режим [08:45:04]line Чек 13 22.06.2024 08:45 [08:45:04]line Смена: 391 ФФД: 1.0 [08:45:04]line ЗНМ: 0300000198 [08:45:04]line РНМ: 0000000000092771 [08:45:04]line Версия ККМ: 001 [08:45:04]line ФМ: 0000000000875083 [08:45:04]line ФД: 112147 [08:45:04]line ФПД: 151779381108691 [08:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084520&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112147&fm=151779381108691&tin=02508201610067®Number=0000000000092771&sum=68000 [08:45:04]OFD Sender: Processing packet 112147 [packets to send 38, broken 37] [08:45:04]ProducePacketName [08:45:04]name=ofd_packets/00112147 [08:45:04]OFD Sender: To server: pG, [08:45:04]CommunicateWithHost lk.salyk.kg:30040 [08:45:04]ConnectInit lk.salyk.kg [08:45:04]written 0, free lines is 4095 [08:45:04]Connected sock=10 [08:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 01 07 01 B0 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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 20 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B6 01 00 35 04 06 00 8A 0A E4 18 5F D3 FD 7D 90 01 AD D1 7C E2 [08:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AA 3D 47 00 B9 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B6 01 00 F4 03 04 00 31 26 76 66 B6 04 01 00 00 93 67 9A D2 8A F8 01 EE [08:45:04]CommunicateWithHost err = 0 [08:45:04]CheckOFDResponse [08:45:04]1017 (14) - 77093643461234 [08:45:04]1041 (16) - 0000000000875083 [08:45:04]1040 (4) - 112147 [08:45:04]1012 (4) - 22.06.2024 01:17 [08:45:04]1206 (1) - 0 [08:45:04]OFD Sender: Remove packet 112147 [08:45:04]ProducePacketName [08:45:04]name=ofd_packets/00112147 [08:45:04]NVStorageDeleteData [08:45:04]Write to MH i2c: 01 00 00 E2 18 FA [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 CD 0C DA [08:45:04]RasterBufferAndPrint [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]written 0, free lines is 3287 [08:45:04]MH_Cut [08:45:04]Write to MH i2c: D1 01 00 E9 18 01 D3 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: D1 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: D1 01 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: D1 01 00 E9 18 00 D2 [08:45:04]Write to MH i2c: 01 00 00 EA 18 02 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:05]OFD Sender: No OFD packet to send [08:45:05]*** Cut start [08:45:05]*** Partial cut [08:45:05]*** CUTSNS_PIN = 1 [08:45:05]*** CUTSNS_PIN = 0 [08:45:05]*** Brake cut motor [08:45:06]Read from MH i2c: 01 [08:45:06]*** Stop cut motor [08:45:06]*** Cut end [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 07 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 FF 0F 17 [08:45:06]process_action close_receipt done [08:45:06]requested_data is exist [08:45:06]produce_requested_data [08:45:06]requested_item fm.sn is exist - process it [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 11 00 00 [08:45:06]Write to MH i2c: E2 08 00 EB 18 80 11 00 00 00 00 00 00 7D [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 17 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 17 00 EB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [08:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:45:06]wFMCommunicate OK [08:45:06]requested_item fd.num is exist - process it [08:45:06]SAM_PROTO_GetFieldsCounters [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 13 00 00 [08:45:06]Write to MH i2c: E2 08 00 EC 18 80 13 00 00 00 00 00 00 80 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 62 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 62 00 EC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [08:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:06]wFMCommunicate OK [08:45:06]SAM_PROTO_GetFieldsCounters done [08:45:06]requested_item shift.num is exist - process it [08:45:06]requested_item shift.opened is exist - process it [08:45:06]req_shift_opened [08:45:06]FM_GetShiftState [08:45:06]SAM_PROTO_GetShiftState [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 13 01 00 [08:45:06]Write to MH i2c: E2 08 00 ED 18 80 13 01 00 00 00 00 00 82 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 0E 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 0E 00 ED 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B7 [08:45:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:45:06]wFMCommunicate OK [08:45:06]SAM_PROTO_GetShiftState done [08:45:06]FM_GetShiftState done [08:45:06]req_shift_opened done [08:45:06]requested_item shift.open_date is exist - process it [08:45:06]req_shift_open_date [08:45:06]req_shift_open_date done [08:45:06]produce_requested_data done [08:45:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112147,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [08:45:06]process_action_free close_receipt [08:45:06]json_value_free [08:45:06]json_value_free done [08:45:06]process_json_proto returns [08:45:06]Send response to host [08:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112147,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [08:45:06]free response buf [08:45:06]execute_script done [08:45:06]execute_script returns [08:45:06]free content buf [08:45:06]Sock 7.Close socket [08:45:06]Sock 7.Thread stoped [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:22]accept exits with 9 [08:48:22]New connection [08:48:22]New thread 3066813796 created [08:48:22]Thread 3066957156 joined [08:48:22]Waiting for new connection... [08:48:22] Sock 9.Parse request [08:48:22]Sock 9.Check first char [08:48:22]Sock 9.First char is OK [08:48:22]request: POST /json_proto HTTP/1.0 [08:48:22]Method: POST [08:48:22]URL: /json_proto [08:48:22]Method is POST - this is cgi request [08:48:22]url: /json_proto [08:48:22]query_string will be loaded in cgi processing [08:48:22]execute_cgi json_proto POST (null) [08:48:22]execute_cgi path=json_proto method=POST [08:48:22]POST find Content-Length [08:48:22]Host: 172.17.59.68:8080 [08:48:22]Content-Length: 679 [08:48:22]Content-Type: application/json [08:48:22] [08:48:22]POST finish read [08:48:22]Found Content-Length = 679 [08:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:22]execute_script... [08:48: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)320811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:22]POST & json_proto [08:48:22]process_json_proto [08:48:22]json parsed OK: [08:48:22]protocol is kg_v1.0 [08:48:22]action value=close_receipt [08:48:22]process_action close_receipt [08:48:22]cmd_close_receipt [08:48:22]MH_GetDate [08:48:22]Write to MH i2c: F0 00 00 EE 18 F5 [08:48:22]Write i2c OK [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: F0 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: F0 09 00 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: F0 09 00 EE 18 00 E8 8F 76 66 BC EC 60 65 BE [08:48:22]GetLastDocTimeStamp 1719045920 [08:48:22]current date 1719046120 [08:48:22]FM_GetShiftState [08:48:22]SAM_PROTO_GetShiftState [08:48:22]wFMCommunicate request_size=4 [08:48:22]MH_SAM_APDU [08:48:22]CAPDU: 80 13 01 00 [08:48:22]Write to MH i2c: E2 08 00 EF 18 80 13 01 00 00 00 00 00 84 [08:48:22]Write i2c OK [08:48:22]MH_I2C_Read... [08:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:22]Read from MH i2c: E2 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: E2 0E 00 [08:48:22]MH_I2C_Read... [08:48:22]Read from MH i2c: E2 0E 00 EF 18 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B9 [08:48:22]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:48:22]wFMCommunicate OK [08:48:22]SAM_PROTO_GetShiftState done [08:48:22]FM_GetShiftState done [08:48:22]opened in 1719020067 [08:48:22]opened+sec_in_day 1719106467 [08:48:22]quantity*price = 100018 [08:48:22]sum+1 = 100020 [08:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 14 22.06.2024 08:48 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112148 ФПД: 88748730094694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112148&fm=88748730094694&tin=02508201610067®Number=0000000000092771&sum=100000 [08:48:24]StoreToDocumentArchive [08:48:24]shift 391 fd 112148 [08:48:24]save to /storage/0391/doc_00112148 [08:48:24]save last doc name /storage/0391/doc_00112148 to /storage/kkm_last_doc_name [08:48:24]save OK [08:48:24]Clear old archive folders... [08:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:24]tlvbuf is 0111E300 [08:48:24]SAM_PROTO_ClearQueue [08:48:24]wFMCommunicate request_size=4 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 09 00 00 [08:48:24]Write to MH i2c: E2 08 00 FC 18 80 09 00 00 00 00 00 00 86 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:24]Read from MH i2c: E2 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [08:48:24]RAPDU: 90 00 [08:48:24]wFMCommunicate OK [08:48:24]SAM_PROTO_ClearQueue done [08:48:24]KKMCreateOFDPacket [08:48:24]OFDProtocolAddRootSTLVToBuf [08:48:24]FM_MakeSignedData [08:48:24]FM_MakeSignedData [08:48:24]SAM_PROTO_SignData [08:48:24]wFMCommunicate request_size=4 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 0D 01 02 [08:48:24]Write to MH i2c: E2 08 00 FD 18 80 0D 01 02 00 00 00 00 8E [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:24]Read from MH i2c: E2 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [08:48:24]RAPDU: 90 00 [08:48:24]wFMCommunicate OK [08:48:24]wFMCommunicate request_size=255 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E8 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B6 01 00 35 04 06 00 50 B7 6C 88 [08:48:24]Write to MH i2c: E2 02 01 FE 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E8 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B6 01 00 35 04 06 00 50 B7 6C 88 00 00 A3 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:24]Read from MH i2c: E2 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [08:48:24]RAPDU: 90 00 [08:48:24]wFMCommunicate OK [08:48:24]wFMCommunicate request_size=7 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 0D 02 02 02 14 66 [08:48:24]Write to MH i2c: E2 0A 00 FF 18 80 0D 02 02 02 00 14 66 00 00 0F [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:24]Read from MH i2c: E2 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [08:48:24]RAPDU: 90 00 [08:48:24]wFMCommunicate OK [08:48:24]wFMCommunicate request_size=4 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 0D 03 02 [08:48:24]Write to MH i2c: E2 08 00 00 19 80 0D 03 02 00 00 00 00 94 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:24]Read from MH i2c: E2 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 0B 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 0B 00 00 19 00 4E 06 BB 77 32 1C F7 6D 90 00 CD [08:48:24]RAPDU: 4E 06 BB 77 32 1C F7 6D 90 00 [08:48:24]wFMCommunicate OK [08:48:24]SAM_PROTO_SignData done [08:48:24]FM_MakeSignedData done [08:48:24]CreateOFDProtocolMessage [08:48:24]wFMCommunicate request_size=4 [08:48:24]MH_SAM_APDU [08:48:24]CAPDU: 80 11 00 00 [08:48:24]Write to MH i2c: E2 08 00 01 19 80 11 00 00 00 00 00 00 94 [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:24]Read from MH i2c: E2 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 17 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: E2 17 00 01 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [08:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:48:24]wFMCommunicate OK [08:48:24]CreateOFDProtocolMessage done [08:48:24]OFDSenderStorePacket 112148 [08:48:24]StoreOFDPacket docnum=112148 [08:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EC 9A 04 01 00 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E8 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B6 01 00 35 04 06 00 50 B7 6C 88 14 66 4E 06 BB 77 32 1C F7 6D [08:48:24]CheckFolder [08:48:24]dirname=/storage/ofd_packets [08:48:24]CheckFolder done [08:48:24]ProducePacketName [08:48:24]name=ofd_packets/00112148 [08:48:24]NVStorageSaveData ofd_packets/00112148 [08:48:24]File name is /storage/ofd_packets/00112148 [08:48:24]Write 298 bytes [08:48:24]NVStorageSaveData done [08:48:24]OFDSenderStorePacket done [08:48:24]KKMCreateOFDPacket done [08:48:24]NVStorageSaveData kkm_last_timestamp [08:48:24]File name is /storage/kkm_last_timestamp [08:48:24]Write 4 bytes [08:48:24]NVStorageSaveData done [08:48:24]ExternCall_PrintAddStr [08:48:24]wPrintStart [08:48:24]Write to MH i2c: 01 00 00 02 19 1B [08:48:24]Write i2c OK [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: 01 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: 01 07 00 [08:48:24]MH_I2C_Read... [08:48:24]Read from MH i2c: 01 07 00 02 19 00 00 00 00 00 FF 0F 30 [08:48:24]RasterBufferAndPrint [08:48:24]line Счет N : (1)320811 [08:48:24]line ИНН: 02508201610067 [08:48:24]line Контрольно-Кассовый Чек [08:48:24]line ПРОДАЖА [08:48:24]line ТРК (МРК, ГНК) : 22 [08:48:24]line Товар: 2710194210 [08:48:24]line ДТ-К-5 [08:48:24]line 13.720 * 72.90 [08:48:24]line = 1000.19 [08:48:24]line НДС 12% НСП 1% [08:48:24]line > о реализуемом товаре [08:48:24]line ОКРУГЛЕНИЕ: -0.19 [08:48:24]line ИТОГО: 1000.00 [08:48:24]line Внесено: 1000.00 [08:48:24]line СДАЧА: 0.00 [08:48:24]line НСП 1% : 8.85 [08:48:24]line НДС 12% : 106.21 [08:48:24]line Наличными: 1000.00 [08:48:24]line Безнал.: 0.00 [08:48:24]line Место: АЗС № 65 "Партнер Нефть" [08:48:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:48:24]line СНО: Общий режим [08:48:24]line Чек 14 22.06.2024 08:48 [08:48:24]line Смена: 391 ФФД: 1.0 [08:48:24]line ЗНМ: 0300000198 [08:48:24]line РНМ: 0000000000092771 [08:48:24]line Версия ККМ: 001 [08:48:24]line ФМ: 0000000000875083 [08:48:24]line ФД: 112148 [08:48:24]line ФПД: 88748730094694 [08:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T084840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112148&fm=88748730094694&tin=02508201610067®Number=0000000000092771&sum=100000 [08:48:24]OFD Sender: Processing packet 112148 [packets to send 38, broken 37] [08:48:24]ProducePacketName [08:48:24]name=ofd_packets/00112148 [08:48:24]OFD Sender: To server: pG, [08:48:24]CommunicateWithHost lk.salyk.kg:30040 [08:48:24]ConnectInit lk.salyk.kg [08:48:24]written 0, free lines is 4095 [08:48:25]Connected sock=10 [08:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EC 9A 04 01 00 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E8 8F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B6 01 00 35 04 06 00 50 B7 6C 88 14 66 4E 06 BB 77 32 1C F7 6D [08:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC 0E 47 00 D4 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B6 01 00 F4 03 04 00 F9 26 76 66 B6 04 01 00 00 E3 81 84 F2 A0 83 0D 15 [08:48:25]CommunicateWithHost err = 0 [08:48:25]CheckOFDResponse [08:48:25]1017 (14) - 77093643461234 [08:48:25]1041 (16) - 0000000000875083 [08:48:25]1040 (4) - 112148 [08:48:25]1012 (4) - 22.06.2024 01:20 [08:48:25]1206 (1) - 0 [08:48:25]OFD Sender: Remove packet 112148 [08:48:25]ProducePacketName [08:48:25]name=ofd_packets/00112148 [08:48:25]NVStorageDeleteData [08:48:25]Write to MH i2c: 01 00 00 2D 19 46 [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: 01 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: 01 07 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: 01 07 00 2D 19 00 00 00 00 00 D0 0C 29 [08:48:25]RasterBufferAndPrint [08:48:25]line [08:48:25]line [08:48:25]line [08:48:25]line [08:48:25]line [08:48:25]written 0, free lines is 3286 [08:48:25]MH_Cut [08:48:25]Write to MH i2c: D1 01 00 34 19 01 1F [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: D1 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: D1 01 00 [08:48:25]MH_I2C_Read... [08:48:25]Read from MH i2c: D1 01 00 34 19 00 1E [08:48:25]Write to MH i2c: 01 00 00 35 19 4E [08:48:25]Write i2c OK [08:48:25]MH_I2C_Read... [08:48:25]OFD Sender: No OFD packet to send [08:48:26]*** Cut start [08:48:26]*** Partial cut [08:48:26]*** CUTSNS_PIN = 1 [08:48:26]*** CUTSNS_PIN = 0 [08:48:26]*** Brake cut motor [08:48:26]Read from MH i2c: 01 [08:48:26]MH_I2C_Read... [08:48:26]*** Stop cut motor [08:48:26]*** Cut end [08:48:26]Read from MH i2c: 01 07 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 35 19 00 00 00 00 00 FF 0F 63 [08:48:26]process_action close_receipt done [08:48:26]requested_data is exist [08:48:26]produce_requested_data [08:48:26]requested_item fm.sn is exist - process it [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 11 00 00 [08:48:26]Write to MH i2c: E2 08 00 36 19 80 11 00 00 00 00 00 00 C9 [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 17 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 17 00 36 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [08:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:48:26]wFMCommunicate OK [08:48:26]requested_item fd.num is exist - process it [08:48:26]SAM_PROTO_GetFieldsCounters [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 13 00 00 [08:48:26]Write to MH i2c: E2 08 00 37 19 80 13 00 00 00 00 00 00 CC [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:26]Read from MH i2c: E2 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 62 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: E2 62 00 37 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:26]wFMCommunicate OK [08:48:26]SAM_PROTO_GetFieldsCounters done [08:48:26]requested_item shift.num is exist - process it [08:48:26]requested_item shift.opened is exist - process it [08:48:26]req_shift_opened [08:48:26]FM_GetShiftState [08:48:26]SAM_PROTO_GetShiftState [08:48:26]wFMCommunicate request_size=4 [08:48:26]MH_SAM_APDU [08:48:26]CAPDU: 80 13 01 00 [08:48:26]Write to MH i2c: E2 08 00 38 19 80 13 01 00 00 00 00 00 CE [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:27]Read from MH i2c: E2 [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: E2 0E 00 [08:48:27]MH_I2C_Read... [08:48:27]Read from MH i2c: E2 0E 00 38 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 03 [08:48:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:48:27]wFMCommunicate OK [08:48:27]SAM_PROTO_GetShiftState done [08:48:27]FM_GetShiftState done [08:48:27]req_shift_opened done [08:48:27]requested_item shift.open_date is exist - process it [08:48:27]req_shift_open_date [08:48:27]req_shift_open_date done [08:48:27]produce_requested_data done [08:48:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112148,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [08:48:27]process_action_free close_receipt [08:48:27]json_value_free [08:48:27]json_value_free done [08:48:27]process_json_proto returns [08:48:27]Send response to host [08:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112148,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [08:48:27]free response buf [08:48:27]execute_script done [08:48:27]execute_script returns [08:48:27]free content buf [08:48:27]Sock 9.Close socket [08:48:27]Sock 9.Thread stoped [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:17]accept exits with 7 [08:50:17]New connection [08:50:17]New thread 3066957156 created [08:50:17]Thread 3066813796 joined [08:50:17]Waiting for new connection... [08:50:17] Sock 7.Parse request [08:50:17]Sock 7.Check first char [08:50:17]Sock 7.First char is OK [08:50:17]request: POST /json_proto HTTP/1.0 [08:50:17]Method: POST [08:50:17]URL: /json_proto [08:50:17]Method is POST - this is cgi request [08:50:17]url: /json_proto [08:50:17]query_string will be loaded in cgi processing [08:50:17]execute_cgi json_proto POST (null) [08:50:17]execute_cgi path=json_proto method=POST [08:50:17]POST find Content-Length [08:50:17]Host: 172.17.59.68:8080 [08:50:17]Content-Length: 679 [08:50:17]Content-Type: application/json [08:50:17] [08:50:17]POST finish read [08:50:17]Found Content-Length = 679 [08:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:17]execute_script... [08:50: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)320812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:17]POST & json_proto [08:50:17]process_json_proto [08:50:17]json parsed OK: [08:50:17]protocol is kg_v1.0 [08:50:17]action value=close_receipt [08:50:17]process_action close_receipt [08:50:17]cmd_close_receipt [08:50:17]MH_GetDate [08:50:17]Write to MH i2c: F0 00 00 39 19 41 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: F0 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: F0 09 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: F0 09 00 39 19 00 5B 90 76 66 BC EC 60 65 7E [08:50:17]GetLastDocTimeStamp 1719046120 [08:50:17]current date 1719046235 [08:50:17]FM_GetShiftState [08:50:17]SAM_PROTO_GetShiftState [08:50:17]wFMCommunicate request_size=4 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 13 01 00 [08:50:17]Write to MH i2c: E2 08 00 3A 19 80 13 01 00 00 00 00 00 D0 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 0E 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 0E 00 3A 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 05 [08:50:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:50:17]wFMCommunicate OK [08:50:17]SAM_PROTO_GetShiftState done [08:50:17]FM_GetShiftState done [08:50:17]opened in 1719020067 [08:50:17]opened+sec_in_day 1719106467 [08:50:17]quantity*price = 300056 [08:50:17]sum+1 = 300057 [08:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 15 22.06.2024 08:50 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112149 ФПД: 25633873567945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T085035&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112149&fm=25633873567945&tin=02508201610067®Number=0000000000092771&sum=300000 [08:50:18]StoreToDocumentArchive [08:50:18]shift 391 fd 112149 [08:50:18]save to /storage/0391/doc_00112149 [08:50:18]save last doc name /storage/0391/doc_00112149 to /storage/kkm_last_doc_name [08:50:18]save OK [08:50:18]Clear old archive folders... [08:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:50:18]tlvbuf is 01121A70 [08:50:18]SAM_PROTO_ClearQueue [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 09 00 00 [08:50:18]Write to MH i2c: E2 08 00 47 19 80 09 00 00 00 00 00 00 D2 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]SAM_PROTO_ClearQueue done [08:50:18]KKMCreateOFDPacket [08:50:18]OFDProtocolAddRootSTLVToBuf [08:50:18]FM_MakeSignedData [08:50:18]FM_MakeSignedData [08:50:18]SAM_PROTO_SignData [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 01 02 [08:50:18]Write to MH i2c: E2 08 00 48 19 80 0D 01 02 00 00 00 00 DA [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=255 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B 90 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B6 01 00 35 04 06 00 17 50 59 ED [08:50:18]Write to MH i2c: E2 02 01 49 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 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B 90 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B6 01 00 35 04 06 00 17 50 59 ED 00 00 07 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=7 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 02 02 02 A0 C9 [08:50:18]Write to MH i2c: E2 0A 00 4A 19 80 0D 02 02 02 00 A0 C9 00 00 4A [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 03 02 [08:50:18]Write to MH i2c: E2 08 00 4B 19 80 0D 03 02 00 00 00 00 DF [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0B 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0B 00 4B 19 00 1B 84 5B F1 37 A3 B5 80 90 00 DA [08:50:18]RAPDU: 1B 84 5B F1 37 A3 B5 80 90 00 [08:50:18]wFMCommunicate OK [08:50:18]SAM_PROTO_SignData done [08:50:18]FM_MakeSignedData done [08:50:18]CreateOFDProtocolMessage [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 11 00 00 [08:50:18]Write to MH i2c: E2 08 00 4C 19 80 11 00 00 00 00 00 00 DF [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 17 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 17 00 4C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [08:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:50:19]wFMCommunicate OK [08:50:19]CreateOFDProtocolMessage done [08:50:19]OFDSenderStorePacket 112149 [08:50:19]StoreOFDPacket docnum=112149 [08:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 86 AA 04 01 31 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 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B 90 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B6 01 00 35 04 06 00 17 50 59 ED A0 C9 1B 84 5B F1 37 A3 B5 80 [08:50:19]CheckFolder [08:50:19]dirname=/storage/ofd_packets [08:50:19]CheckFolder done [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00112149 [08:50:19]NVStorageSaveData ofd_packets/00112149 [08:50:19]File name is /storage/ofd_packets/00112149 [08:50:19]Write 298 bytes [08:50:19]NVStorageSaveData done [08:50:19]OFDSenderStorePacket done [08:50:19]KKMCreateOFDPacket done [08:50:19]NVStorageSaveData kkm_last_timestamp [08:50:19]File name is /storage/kkm_last_timestamp [08:50:19]Write 4 bytes [08:50:19]NVStorageSaveData done [08:50:19]ExternCall_PrintAddStr [08:50:19]wPrintStart [08:50:19]Write to MH i2c: 01 00 00 4D 19 66 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 4D 19 00 00 00 00 00 FF 0F 7B [08:50:19]RasterBufferAndPrint [08:50:19]line Счет N : (1)320812 [08:50:19]line ИНН: 02508201610067 [08:50:19]line Контрольно-Кассовый Чек [08:50:19]line ПРОДАЖА [08:50:19]line ТРК (МРК, ГНК) : 22 [08:50:19]line Товар: 2710194210 [08:50:19]line ДТ-К-5 [08:50:19]line 41.160 * 72.90 [08:50:19]line = 3000.56 [08:50:19]line НДС 12% НСП 1% [08:50:19]line > о реализуемом товаре [08:50:19]line ОКРУГЛЕНИЕ: -0.56 [08:50:19]line ИТОГО: 3000.00 [08:50:19]line Внесено: 3000.00 [08:50:19]line СДАЧА: 0.00 [08:50:19]line НСП 1% : 26.55 [08:50:19]line НДС 12% : 318.64 [08:50:19]line Наличными: 3000.00 [08:50:19]line Безнал.: 0.00 [08:50:19]line Место: АЗС № 65 "Партнер Нефть" [08:50:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:50:19]line СНО: Общий режим [08:50:19]line Чек 15 22.06.2024 08:50 [08:50:19]line Смена: 391 ФФД: 1.0 [08:50:19]line ЗНМ: 0300000198 [08:50:19]line РНМ: 0000000000092771 [08:50:19]line Версия ККМ: 001 [08:50:19]line ФМ: 0000000000875083 [08:50:19]line ФД: 112149 [08:50:19]line ФПД: 25633873567945 [08:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T085035&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112149&fm=25633873567945&tin=02508201610067®Number=0000000000092771&sum=300000 [08:50:19]OFD Sender: Processing packet 112149 [packets to send 38, broken 37] [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00112149 [08:50:19]OFD Sender: To server: pG, [08:50:19]CommunicateWithHost lk.salyk.kg:30040 [08:50:19]ConnectInit lk.salyk.kg [08:50:19]written 0, free lines is 4095 [08:50:19]Connected sock=10 [08:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 86 AA 04 01 31 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 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B 90 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B6 01 00 35 04 06 00 17 50 59 ED A0 C9 1B 84 5B F1 37 A3 B5 80 [08:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 B6 47 00 C0 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B6 01 00 F4 03 04 00 6C 27 76 66 B6 04 01 00 00 DB 47 B9 C1 E8 89 94 38 [08:50:19]CommunicateWithHost err = 0 [08:50:19]CheckOFDResponse [08:50:19]1017 (14) - 77093643461234 [08:50:19]1041 (16) - 0000000000875083 [08:50:19]1040 (4) - 112149 [08:50:19]1012 (4) - 22.06.2024 01:22 [08:50:19]1206 (1) - 0 [08:50:19]OFD Sender: Remove packet 112149 [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00112149 [08:50:19]NVStorageDeleteData [08:50:19]Write to MH i2c: 01 00 00 78 19 91 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 78 19 00 00 00 00 00 DF 0C 83 [08:50:19]RasterBufferAndPrint [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]written 0, free lines is 3300 [08:50:19]MH_Cut [08:50:19]Write to MH i2c: D1 01 00 7F 19 01 6A [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 01 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 01 00 7F 19 00 69 [08:50:19]Write to MH i2c: 01 00 00 80 19 99 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:20]OFD Sender: No OFD packet to send [08:50:20]*** Cut start [08:50:20]*** Partial cut [08:50:20]*** CUTSNS_PIN = 1 [08:50:20]*** CUTSNS_PIN = 0 [08:50:20]*** Brake cut motor [08:50:21]Read from MH i2c: 01 [08:50:21]MH_I2C_Read... [08:50:21]*** Stop cut motor [08:50:21]*** Cut end [08:50:21]Read from MH i2c: 01 07 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: 01 07 00 80 19 00 00 00 00 00 FF 0F AE [08:50:21]process_action close_receipt done [08:50:21]requested_data is exist [08:50:21]produce_requested_data [08:50:21]requested_item fm.sn is exist - process it [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 11 00 00 [08:50:21]Write to MH i2c: E2 08 00 81 19 80 11 00 00 00 00 00 00 14 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 17 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 17 00 81 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [08:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:50:21]wFMCommunicate OK [08:50:21]requested_item fd.num is exist - process it [08:50:21]SAM_PROTO_GetFieldsCounters [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 13 00 00 [08:50:21]Write to MH i2c: E2 08 00 82 19 80 13 00 00 00 00 00 00 17 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 62 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 62 00 82 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [08:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_GetFieldsCounters done [08:50:21]requested_item shift.num is exist - process it [08:50:21]requested_item shift.opened is exist - process it [08:50:21]req_shift_opened [08:50:21]FM_GetShiftState [08:50:21]SAM_PROTO_GetShiftState [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 13 01 00 [08:50:21]Write to MH i2c: E2 08 00 83 19 80 13 01 00 00 00 00 00 19 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:21]Read from MH i2c: E2 0E 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0E 00 83 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4E [08:50:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_GetShiftState done [08:50:21]FM_GetShiftState done [08:50:21]req_shift_opened done [08:50:21]requested_item shift.open_date is exist - process it [08:50:21]req_shift_open_date [08:50:21]req_shift_open_date done [08:50:21]produce_requested_data done [08:50:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112149,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [08:50:21]process_action_free close_receipt [08:50:21]json_value_free [08:50:21]json_value_free done [08:50:21]process_json_proto returns [08:50:21]Send response to host [08:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112149,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [08:50:21]free response buf [08:50:21]execute_script done [08:50:21]execute_script returns [08:50:21]free content buf [08:50:21]Sock 7.Close socket [08:50:21]Sock 7.Thread stoped [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]accept exits with 9 [08:57:20]New connection [08:57:20]New thread 3066813796 created [08:57:20]Thread 3066957156 joined [08:57:20]Waiting for new connection... [08:57:20] Sock 9.Parse request [08:57:20]Sock 9.Check first char [08:57:20]Sock 9.First char is OK [08:57:20]request: POST /json_proto HTTP/1.0 [08:57:20]Method: POST [08:57:20]URL: /json_proto [08:57:20]Method is POST - this is cgi request [08:57:20]url: /json_proto [08:57:20]query_string will be loaded in cgi processing [08:57:20]execute_cgi json_proto POST (null) [08:57:20]execute_cgi path=json_proto method=POST [08:57:20]POST find Content-Length [08:57:20]Host: 172.17.59.68:8080 [08:57:20]Content-Length: 1198 [08:57:20]Content-Type: application/json [08:57:20] [08:57:20]POST finish read [08:57:20]Found Content-Length = 1198 [08:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320813\u000A22.06.2024 07:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 16.470 x 72.90\u000A\u0418\u0422\u041E\u0413: 1200.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:20]execute_script... [08:57:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320813\u000A22.06.2024 07:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 16.470 x 72.90\u000A\u0418\u0422\u041E\u0413: 1200.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:20]POST & json_proto [08:57:20]process_json_proto [08:57:20]json parsed OK: [08:57:20]protocol is kg_v1.0 [08:57:20]action value=print_text [08:57:20]process_action print_text [08:57:20]cmd_print_text [08:57:20]ExternCall_PrintAddStr [08:57:20]wPrintStart [08:57:20]Write to MH i2c: 01 00 00 84 19 9D [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 84 19 00 00 00 00 00 FF 0F B2 [08:57:20]RasterBufferAndPrint [08:57:20]line *****ТОВАРНЫЙ ЧЕК***** [08:57:20]line АЗС 65 [08:57:20]line Партнер нефть [08:57:20]line 02508201610067 [08:57:20]line Кассир : Амантуров Р. [08:57:20]line Счет N : (1)320813 [08:57:20]line 22.06.2024 07:24 [08:57:20]line ПРОДАЖА [08:57:20]line ТРК (МРК, ГНК): 22 [08:57:20]line Вид ГСМ : 2710194210 [08:57:20]line ДТ-К-5 [08:57:20]line 16.470 x 72.90 [08:57:20]line ИТОГ: 1200.66 [08:57:20]line Тип оплаты: Талоны: Топливная Карта [08:57:20]line 01591 [08:57:20]line ______________________ [08:57:20]line (подпись) [08:57:20]written 0, free lines is 4095 [08:57:20]Write to MH i2c: 01 00 00 98 19 B1 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 98 19 00 00 00 00 00 0F 0E D5 [08:57:20]RasterBufferAndPrint [08:57:20]line [08:57:20]line [08:57:20]line [08:57:20]line [08:57:20]line [08:57:20]written 0, free lines is 3600 [08:57:20]MH_Cut [08:57:20]Write to MH i2c: D1 01 00 9F 19 01 8A [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: D1 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: D1 01 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: D1 01 00 9F 19 00 89 [08:57:20]Write to MH i2c: 01 00 00 A0 19 B9 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]OFD Sender: No OFD packet to send [08:57:20]*** Cut start [08:57:20]*** Partial cut [08:57:20]*** CUTSNS_PIN = 1 [08:57:20]*** CUTSNS_PIN = 0 [08:57:21]*** Brake cut motor [08:57:21]Read from MH i2c: 01 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: 01 07 00 [08:57:21]MH_I2C_Read... [08:57:21]*** Stop cut motor [08:57:21]*** Cut end [08:57:21]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 FF 0F CE [08:57:21]process_action print_text done [08:57:21]requested_data is exist [08:57:21]produce_requested_data [08:57:21]requested_item fm.sn is exist - process it [08:57:21]wFMCommunicate request_size=4 [08:57:21]MH_SAM_APDU [08:57:21]CAPDU: 80 11 00 00 [08:57:21]Write to MH i2c: E2 08 00 A1 19 80 11 00 00 00 00 00 00 34 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:21]Read from MH i2c: E2 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 17 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 17 00 A1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [08:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:57:21]wFMCommunicate OK [08:57:21]requested_item fd.num is exist - process it [08:57:21]SAM_PROTO_GetFieldsCounters [08:57:21]wFMCommunicate request_size=4 [08:57:21]MH_SAM_APDU [08:57:21]CAPDU: 80 13 00 00 [08:57:21]Write to MH i2c: E2 08 00 A2 19 80 13 00 00 00 00 00 00 37 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:21]Read from MH i2c: E2 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 62 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 62 00 A2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [08:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:21]wFMCommunicate OK [08:57:21]SAM_PROTO_GetFieldsCounters done [08:57:21]requested_item shift.num is exist - process it [08:57:21]requested_item shift.opened is exist - process it [08:57:21]req_shift_opened [08:57:21]FM_GetShiftState [08:57:21]SAM_PROTO_GetShiftState [08:57:21]wFMCommunicate request_size=4 [08:57:21]MH_SAM_APDU [08:57:21]CAPDU: 80 13 01 00 [08:57:21]Write to MH i2c: E2 08 00 A3 19 80 13 01 00 00 00 00 00 39 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:21]Read from MH i2c: E2 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 0E 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 0E 00 A3 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6E [08:57:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [08:57:21]wFMCommunicate OK [08:57:21]SAM_PROTO_GetShiftState done [08:57:21]FM_GetShiftState done [08:57:21]req_shift_opened done [08:57:21]requested_item shift.open_date is exist - process it [08:57:21]req_shift_open_date [08:57:21]req_shift_open_date done [08:57:21]produce_requested_data done [08:57:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112149,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [08:57:21]process_action_free print_text [08:57:21]json_value_free [08:57:21]json_value_free done [08:57:21]process_json_proto returns [08:57:21]Send response to host [08:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112149,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [08:57:21]free response buf [08:57:21]execute_script done [08:57:21]execute_script returns [08:57:21]free content buf [08:57:21]Sock 9.Close socket [08:57:21]Sock 9.Thread stoped [08:57:25]OFD Sender: No OFD packet to send [08:57:26]int [08:57:26]Write to MH i2c: 01 00 00 A4 19 BD [08:57:26]*** FLAG_PRN_KEY set [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 A4 19 00 08 00 00 00 FF 0F DA [08:57:26]state=0 [08:57:26]Key pressed [08:57:26]Feed [08:57:26]Write to MH i2c: D8 00 00 A5 19 95 [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D8 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D8 01 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: D8 01 00 A5 19 00 96 [08:57:26]int [08:57:26]Write to MH i2c: 01 00 00 A6 19 BF [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 A6 19 00 48 00 00 00 3C 00 4A [08:57:26]state=2 [08:57:26]Key pressed [08:57:26]int [08:57:26]Write to MH i2c: 01 00 00 A7 19 C0 [08:57:26]*** FLAG_PRN_KEY reset [08:57:26]Write i2c OK [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 [08:57:26]MH_I2C_Read... [08:57:26]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 F6 0F CC [08:57:26]state=2 [08:57:26]Stop feed [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:23]accept exits with 7 [09:01:23]New connection [09:01:23]New thread 3066957156 created [09:01:23]Thread 3066813796 joined [09:01:23]Waiting for new connection... [09:01:23] Sock 7.Parse request [09:01:23]Sock 7.Check first char [09:01:23]Sock 7.First char is OK [09:01:23]request: POST /json_proto HTTP/1.0 [09:01:23]Method: POST [09:01:23]URL: /json_proto [09:01:23]Method is POST - this is cgi request [09:01:23]url: /json_proto [09:01:23]query_string will be loaded in cgi processing [09:01:23]execute_cgi json_proto POST (null) [09:01:23]execute_cgi path=json_proto method=POST [09:01:23]POST find Content-Length [09:01:23]Host: 172.17.59.68:8080 [09:01:23]Content-Length: 677 [09:01:23]Content-Type: application/json [09:01:23] [09:01:23]POST finish read [09:01:23]Found Content-Length = 677 [09:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320814", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:23]execute_script... [09:01: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)320814", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:23]POST & json_proto [09:01:23]process_json_proto [09:01:23]json parsed OK: [09:01:23]protocol is kg_v1.0 [09:01:23]action value=close_receipt [09:01:23]process_action close_receipt [09:01:23]cmd_close_receipt [09:01:23]MH_GetDate [09:01:23]Write to MH i2c: F0 00 00 A8 19 B0 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: F0 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: F0 09 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: F0 09 00 A8 19 00 F5 92 76 66 BC EC 60 65 89 [09:01:23]GetLastDocTimeStamp 1719046235 [09:01:23]current date 1719046901 [09:01:23]FM_GetShiftState [09:01:23]SAM_PROTO_GetShiftState [09:01:23]wFMCommunicate request_size=4 [09:01:23]MH_SAM_APDU [09:01:23]CAPDU: 80 13 01 00 [09:01:23]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:23]Read from MH i2c: E2 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 0E 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 74 [09:01:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:01:23]wFMCommunicate OK [09:01:23]SAM_PROTO_GetShiftState done [09:01:23]FM_GetShiftState done [09:01:23]opened in 1719020067 [09:01:23]opened+sec_in_day 1719106467 [09:01:23]quantity*price = 50065 [09:01:23]sum+1 = 50067 [09:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 16 22.06.2024 09:01 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112150 ФПД: 1094682165684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090141&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112150&fm=1094682165684&tin=02508201610067®Number=0000000000092771&sum=50000 [09:01:24]StoreToDocumentArchive [09:01:24]shift 391 fd 112150 [09:01:24]save to /storage/0391/doc_00112150 [09:01:24]save last doc name /storage/0391/doc_00112150 to /storage/kkm_last_doc_name [09:01:24]save OK [09:01:24]Clear old archive folders... [09:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:24]tlvbuf is B6EC2500 [09:01:24]SAM_PROTO_ClearQueue [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 09 00 00 [09:01:24]Write to MH i2c: E2 08 00 B6 19 80 09 00 00 00 00 00 00 41 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:25]Read from MH i2c: E2 03 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [09:01:25]RAPDU: 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_ClearQueue done [09:01:25]KKMCreateOFDPacket [09:01:25]OFDProtocolAddRootSTLVToBuf [09:01:25]FM_MakeSignedData [09:01:25]FM_MakeSignedData [09:01:25]SAM_PROTO_SignData [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 0D 01 02 [09:01:25]Write to MH i2c: E2 08 00 B7 19 80 0D 01 02 00 00 00 00 49 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [09:01:25]RAPDU: 90 00 [09:01:25]wFMCommunicate OK [09:01:25]wFMCommunicate request_size=255 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F5 92 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B6 01 00 35 04 06 00 00 [09:01:25]Write to MH i2c: E2 02 01 B8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F5 92 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B6 01 00 35 04 06 00 00 00 00 C5 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [09:01:25]RAPDU: 90 00 [09:01:25]wFMCommunicate OK [09:01:25]wFMCommunicate request_size=10 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 0D 02 02 05 FE E0 24 41 B4 [09:01:25]Write to MH i2c: E2 0D 00 B9 19 80 0D 02 02 05 00 FE E0 24 41 B4 00 00 4D [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [09:01:25]RAPDU: 90 00 [09:01:25]wFMCommunicate OK [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 0D 03 02 [09:01:25]Write to MH i2c: E2 08 00 BA 19 80 0D 03 02 00 00 00 00 4E [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0B 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0B 00 BA 19 00 8A 69 9E 62 A0 79 A3 12 90 00 10 [09:01:25]RAPDU: 8A 69 9E 62 A0 79 A3 12 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_SignData done [09:01:25]FM_MakeSignedData done [09:01:25]CreateOFDProtocolMessage [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 11 00 00 [09:01:25]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 17 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [09:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:01:25]wFMCommunicate OK [09:01:25]CreateOFDProtocolMessage done [09:01:25]OFDSenderStorePacket 112150 [09:01:25]StoreOFDPacket docnum=112150 [09:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC F7 07 01 6D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F5 92 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B6 01 00 35 04 06 00 00 FE E0 24 41 B4 8A 69 9E 62 A0 79 A3 12 [09:01:25]CheckFolder [09:01:25]dirname=/storage/ofd_packets [09:01:25]CheckFolder done [09:01:25]ProducePacketName [09:01:25]name=ofd_packets/00112150 [09:01:25]NVStorageSaveData ofd_packets/00112150 [09:01:25]File name is /storage/ofd_packets/00112150 [09:01:25]Write 301 bytes [09:01:25]NVStorageSaveData done [09:01:25]OFDSenderStorePacket done [09:01:25]KKMCreateOFDPacket done [09:01:25]NVStorageSaveData kkm_last_timestamp [09:01:25]File name is /storage/kkm_last_timestamp [09:01:25]Write 4 bytes [09:01:25]NVStorageSaveData done [09:01:25]ExternCall_PrintAddStr [09:01:25]wPrintStart [09:01:25]Write to MH i2c: 01 00 00 BC 19 D5 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 07 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [09:01:25]RasterBufferAndPrint [09:01:25]line Счет N : (1)320814 [09:01:25]line ИНН: 02508201610067 [09:01:25]line Контрольно-Кассовый Чек [09:01:25]line ПРОДАЖА [09:01:25]line ТРК (МРК, ГНК) : 11 [09:01:25]line Товар: 2710124130 [09:01:25]line Аи-92-К-5 [09:01:25]line 7.540 * 66.40 [09:01:25]line = 500.66 [09:01:25]line НДС 12% НСП 1% [09:01:25]line > о реализуемом товаре [09:01:25]line ОКРУГЛЕНИЕ: -0.66 [09:01:25]line ИТОГО: 500.00 [09:01:25]line Внесено: 500.00 [09:01:25]line СДАЧА: 0.00 [09:01:25]line НСП 1% : 4.43 [09:01:25]line НДС 12% : 53.17 [09:01:25]line Наличными: 500.00 [09:01:25]line Безнал.: 0.00 [09:01:25]line Место: АЗС № 65 "Партнер Нефть" [09:01:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:01:25]line СНО: Общий режим [09:01:25]line Чек 16 22.06.2024 09:01 [09:01:25]line Смена: 391 ФФД: 1.0 [09:01:25]line ЗНМ: 0300000198 [09:01:25]line РНМ: 0000000000092771 [09:01:25]line Версия ККМ: 001 [09:01:25]line ФМ: 0000000000875083 [09:01:25]line ФД: 112150 [09:01:25]line ФПД: 1094682165684 [09:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090141&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112150&fm=1094682165684&tin=02508201610067®Number=0000000000092771&sum=50000 [09:01:25]OFD Sender: Processing packet 112150 [packets to send 38, broken 37] [09:01:25]ProducePacketName [09:01:25]name=ofd_packets/00112150 [09:01:25]OFD Sender: To server: pG, [09:01:25]CommunicateWithHost lk.salyk.kg:30040 [09:01:25]ConnectInit lk.salyk.kg [09:01:25]written 0, free lines is 4095 [09:01:25]Connected sock=10 [09:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC F7 07 01 6D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F5 92 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B6 01 00 35 04 06 00 00 FE E0 24 41 B4 8A 69 9E 62 A0 79 A3 12 [09:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC 8A 47 00 C6 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 35 30 38 33 10 04 04 00 16 B6 01 00 F4 03 04 00 06 2A 76 66 B6 04 01 00 00 2D C8 17 B3 4D AE 27 A9 [09:01:26]CommunicateWithHost err = 0 [09:01:26]CheckOFDResponse [09:01:26]1017 (14) - 77093643461234 [09:01:26]1041 (16) - 0000000000875083 [09:01:26]1040 (4) - 112150 [09:01:26]1012 (4) - 22.06.2024 01:33 [09:01:26]1206 (1) - 0 [09:01:26]OFD Sender: Remove packet 112150 [09:01:26]ProducePacketName [09:01:26]name=ofd_packets/00112150 [09:01:26]NVStorageDeleteData [09:01:26]Write to MH i2c: 01 00 00 E7 19 00 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 07 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 CD 0C E0 [09:01:26]RasterBufferAndPrint [09:01:26]line [09:01:26]line [09:01:26]line [09:01:26]line [09:01:26]line [09:01:26]written 0, free lines is 3283 [09:01:26]MH_Cut [09:01:26]Write to MH i2c: D1 01 00 EE 19 01 D9 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: D1 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: D1 01 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: D1 01 00 EE 19 00 D8 [09:01:26]Write to MH i2c: 01 00 00 EF 19 08 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]OFD Sender: No OFD packet to send [09:01:27]*** Cut start [09:01:27]*** Partial cut [09:01:27]*** CUTSNS_PIN = 1 [09:01:27]*** CUTSNS_PIN = 0 [09:01:27]*** Brake cut motor [09:01:27]Read from MH i2c: 01 [09:01:27]MH_I2C_Read... [09:01:27]*** Stop cut motor [09:01:27]*** Cut end [09:01:27]Read from MH i2c: 01 07 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 EF 19 00 00 00 00 00 FF 0F 1D [09:01:27]process_action close_receipt done [09:01:27]requested_data is exist [09:01:27]produce_requested_data [09:01:27]requested_item fm.sn is exist - process it [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 11 00 00 [09:01:27]Write to MH i2c: E2 08 00 F0 19 80 11 00 00 00 00 00 00 83 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 F0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [09:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:01:27]wFMCommunicate OK [09:01:27]requested_item fd.num is exist - process it [09:01:27]SAM_PROTO_GetFieldsCounters [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 00 00 [09:01:27]Write to MH i2c: E2 08 00 F1 19 80 13 00 00 00 00 00 00 86 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 62 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 62 00 F1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetFieldsCounters done [09:01:27]requested_item shift.num is exist - process it [09:01:27]requested_item shift.opened is exist - process it [09:01:27]req_shift_opened [09:01:27]FM_GetShiftState [09:01:27]SAM_PROTO_GetShiftState [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 01 00 [09:01:27]Write to MH i2c: E2 08 00 F2 19 80 13 01 00 00 00 00 00 88 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:27]Read from MH i2c: E2 0E 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 F2 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BD [09:01:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetShiftState done [09:01:27]FM_GetShiftState done [09:01:27]req_shift_opened done [09:01:27]requested_item shift.open_date is exist - process it [09:01:27]req_shift_open_date [09:01:27]req_shift_open_date done [09:01:27]produce_requested_data done [09:01:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112150,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:01:27]process_action_free close_receipt [09:01:27]json_value_free [09:01:27]json_value_free done [09:01:27]process_json_proto returns [09:01:27]Send response to host [09:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112150,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:01:27]free response buf [09:01:27]execute_script done [09:01:27]execute_script returns [09:01:27]free content buf [09:01:27]Sock 7.Close socket [09:01:27]Sock 7.Thread stoped [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03: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:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:55]accept exits with 9 [09:05:55]New connection [09:05:55]New thread 3066813796 created [09:05:55]Thread 3066957156 joined [09:05:55]Waiting for new connection... [09:05:55] Sock 9.Parse request [09:05:55]Sock 9.Check first char [09:05:55]Sock 9.First char is OK [09:05:55]request: POST /json_proto HTTP/1.0 [09:05:55]Method: POST [09:05:55]URL: /json_proto [09:05:55]Method is POST - this is cgi request [09:05:55]url: /json_proto [09:05:55]query_string will be loaded in cgi processing [09:05:55]execute_cgi json_proto POST (null) [09:05:55]execute_cgi path=json_proto method=POST [09:05:55]POST find Content-Length [09:05:55]Host: 172.17.59.68:8080 [09:05:55]Content-Length: 677 [09:05:55]Content-Type: application/json [09:05:55] [09:05:55]POST finish read [09:05:55]Found Content-Length = 677 [09:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320815", "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.40, "quantity" : 3.790, "sum" : 251.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 251.00, "total" : 251.00, "payments": [ { "type": 0, "sum" : 251.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:55]execute_script... [09:05: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)320815", "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.40, "quantity" : 3.790, "sum" : 251.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 251.00, "total" : 251.00, "payments": [ { "type": 0, "sum" : 251.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:55]POST & json_proto [09:05:55]process_json_proto [09:05:55]json parsed OK: [09:05:55]protocol is kg_v1.0 [09:05:55]action value=close_receipt [09:05:55]process_action close_receipt [09:05:55]cmd_close_receipt [09:05:55]MH_GetDate [09:05:55]Write to MH i2c: F0 00 00 F3 19 FB [09:05:55]Write i2c OK [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: F0 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: F0 09 00 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: F0 09 00 F3 19 00 05 94 76 66 BC EC 60 65 E6 [09:05:55]GetLastDocTimeStamp 1719046901 [09:05:55]current date 1719047173 [09:05:55]FM_GetShiftState [09:05:55]SAM_PROTO_GetShiftState [09:05:55]wFMCommunicate request_size=4 [09:05:55]MH_SAM_APDU [09:05:55]CAPDU: 80 13 01 00 [09:05:55]Write to MH i2c: E2 08 00 F4 19 80 13 01 00 00 00 00 00 8A [09:05:55]Write i2c OK [09:05:55]MH_I2C_Read... [09:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:55]Read from MH i2c: E2 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: E2 0E 00 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: E2 0E 00 F4 19 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BF [09:05:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:05:55]wFMCommunicate OK [09:05:55]SAM_PROTO_GetShiftState done [09:05:55]FM_GetShiftState done [09:05:55]opened in 1719020067 [09:05:55]opened+sec_in_day 1719106467 [09:05:55]quantity*price = 25165 [09:05:55]sum+1 = 25167 [09:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 251.00 Внесено: 251.00 СДАЧА: 0.00 НСП 1% : 2.23 НДС 12% : 26.72 Наличными: 251.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 17 22.06.2024 09:06 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112151 ФПД: 87155265493254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090613&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112151&fm=87155265493254&tin=02508201610067®Number=0000000000092771&sum=25100 [09:05:56]StoreToDocumentArchive [09:05:56]shift 391 fd 112151 [09:05:56]save to /storage/0391/doc_00112151 [09:05:56]save last doc name /storage/0391/doc_00112151 to /storage/kkm_last_doc_name [09:05:56]save OK [09:05:56]Clear old archive folders... [09:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:56]tlvbuf is 01159AA0 [09:05:56]SAM_PROTO_ClearQueue [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 09 00 00 [09:05:56]Write to MH i2c: E2 08 00 01 1A 80 09 00 00 00 00 00 00 8D [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]SAM_PROTO_ClearQueue done [09:05:56]KKMCreateOFDPacket [09:05:56]OFDProtocolAddRootSTLVToBuf [09:05:56]FM_MakeSignedData [09:05:56]FM_MakeSignedData [09:05:56]SAM_PROTO_SignData [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 01 02 [09:05:56]Write to MH i2c: E2 08 00 02 1A 80 0D 01 02 00 00 00 00 95 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]wFMCommunicate request_size=255 [09:05:56]MH_SAM_APDU [09:05: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 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 05 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B6 01 00 35 04 06 00 4F [09:05:56]Write to MH i2c: E2 02 01 03 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 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 05 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B6 01 00 35 04 06 00 4F 00 00 94 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]wFMCommunicate request_size=10 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 02 02 05 44 6A A3 D9 06 [09:05:56]Write to MH i2c: E2 0D 00 04 1A 80 0D 02 02 05 00 44 6A A3 D9 06 00 00 D2 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 03 02 [09:05:56]Write to MH i2c: E2 08 00 05 1A 80 0D 03 02 00 00 00 00 9A [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]OFD Sender: No OFD packet to send [09:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 0B 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 0B 00 05 1A 00 F4 AA D5 74 09 11 53 42 90 00 31 [09:05:56]RAPDU: F4 AA D5 74 09 11 53 42 90 00 [09:05:56]wFMCommunicate OK [09:05:56]SAM_PROTO_SignData done [09:05:56]FM_MakeSignedData done [09:05:56]CreateOFDProtocolMessage [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 11 00 00 [09:05:56]Write to MH i2c: E2 08 00 06 1A 80 11 00 00 00 00 00 00 9A [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 17 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 17 00 06 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [09:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:05:56]wFMCommunicate OK [09:05:56]CreateOFDProtocolMessage done [09:05:56]OFDSenderStorePacket 112151 [09:05:56]StoreOFDPacket docnum=112151 [09:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 54 07 01 B6 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 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 05 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B6 01 00 35 04 06 00 4F 44 6A A3 D9 06 F4 AA D5 74 09 11 53 42 [09:05:56]CheckFolder [09:05:56]dirname=/storage/ofd_packets [09:05:56]CheckFolder done [09:05:57]ProducePacketName [09:05:57]name=ofd_packets/00112151 [09:05:57]NVStorageSaveData ofd_packets/00112151 [09:05:57]File name is /storage/ofd_packets/00112151 [09:05:57]Write 301 bytes [09:05:57]NVStorageSaveData done [09:05:57]OFDSenderStorePacket done [09:05:57]KKMCreateOFDPacket done [09:05:57]NVStorageSaveData kkm_last_timestamp [09:05:57]File name is /storage/kkm_last_timestamp [09:05:57]Write 4 bytes [09:05:57]NVStorageSaveData done [09:05:57]ExternCall_PrintAddStr [09:05:57]wPrintStart [09:05:57]Write to MH i2c: 01 00 00 07 1A 21 [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [09:05:57]RasterBufferAndPrint [09:05:57]line Счет N : (1)320815 [09:05:57]line ИНН: 02508201610067 [09:05:57]line Контрольно-Кассовый Чек [09:05:57]line ПРОДАЖА [09:05:57]line ТРК (МРК, ГНК) : 11 [09:05:57]line Товар: 2710124130 [09:05:57]line Аи-92-К-5 [09:05:57]line 3.790 * 66.40 [09:05:57]line = 251.66 [09:05:57]line НДС 12% НСП 1% [09:05:57]line > о реализуемом товаре [09:05:57]line ОКРУГЛЕНИЕ: -0.66 [09:05:57]line ИТОГО: 251.00 [09:05:57]line Внесено: 251.00 [09:05:57]line СДАЧА: 0.00 [09:05:57]line НСП 1% : 2.23 [09:05:57]line НДС 12% : 26.72 [09:05:57]line Наличными: 251.00 [09:05:57]line Безнал.: 0.00 [09:05:57]line Место: АЗС № 65 "Партнер Нефть" [09:05:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:05:57]line СНО: Общий режим [09:05:57]line Чек 17 22.06.2024 09:06 [09:05:57]line Смена: 391 ФФД: 1.0 [09:05:57]line ЗНМ: 0300000198 [09:05:57]line РНМ: 0000000000092771 [09:05:57]line Версия ККМ: 001 [09:05:57]line ФМ: 0000000000875083 [09:05:57]line ФД: 112151 [09:05:57]line ФПД: 87155265493254 [09:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090613&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112151&fm=87155265493254&tin=02508201610067®Number=0000000000092771&sum=25100 [09:05:57]OFD Sender: Processing packet 112151 [packets to send 38, broken 37] [09:05:57]ProducePacketName [09:05:57]name=ofd_packets/00112151 [09:05:57]OFD Sender: To server: pG, [09:05:57]CommunicateWithHost lk.salyk.kg:30040 [09:05:57]ConnectInit lk.salyk.kg [09:05:57]written 0, free lines is 4095 [09:05:57]Connected sock=10 [09:05:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 54 07 01 B6 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 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 05 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B6 01 00 35 04 06 00 4F 44 6A A3 D9 06 F4 AA D5 74 09 11 53 42 [09:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A 80 47 00 A3 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B6 01 00 F4 03 04 00 16 2B 76 66 B6 04 01 00 00 DF 3D 44 99 E4 E7 DB 59 [09:05:57]CommunicateWithHost err = 0 [09:05:57]CheckOFDResponse [09:05:57]1017 (14) - 77093643461234 [09:05:57]1041 (16) - 0000000000875083 [09:05:57]1040 (4) - 112151 [09:05:57]1012 (4) - 22.06.2024 01:38 [09:05:57]1206 (1) - 0 [09:05:57]OFD Sender: Remove packet 112151 [09:05:57]ProducePacketName [09:05:57]name=ofd_packets/00112151 [09:05:57]NVStorageDeleteData [09:05:57]Write to MH i2c: 01 00 00 32 1A 4C [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 32 1A 00 00 00 00 00 CD 0C 2C [09:05:57]RasterBufferAndPrint [09:05:57]line [09:05:57]line [09:05:57]line [09:05:57]line [09:05:57]line [09:05:57]written 0, free lines is 3283 [09:05:57]MH_Cut [09:05:57]Write to MH i2c: D1 01 00 39 1A 01 25 [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: D1 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: D1 01 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: D1 01 00 39 1A 00 24 [09:05:57]Write to MH i2c: 01 00 00 3A 1A 54 [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:58]OFD Sender: No OFD packet to send [09:05:58]*** Cut start [09:05:58]*** Partial cut [09:05:58]*** CUTSNS_PIN = 1 [09:05:58]*** CUTSNS_PIN = 0 [09:05:58]*** Brake cut motor [09:05:59]Read from MH i2c: 01 [09:05:59]MH_I2C_Read... [09:05:59]*** Stop cut motor [09:05:59]*** Cut end [09:05:59]Read from MH i2c: 01 07 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: 01 07 00 3A 1A 00 00 00 00 00 FF 0F 69 [09:05:59]process_action close_receipt done [09:05:59]requested_data is exist [09:05:59]produce_requested_data [09:05:59]requested_item fm.sn is exist - process it [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 11 00 00 [09:05:59]Write to MH i2c: E2 08 00 3B 1A 80 11 00 00 00 00 00 00 CF [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 17 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 17 00 3B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [09:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:05:59]wFMCommunicate OK [09:05:59]requested_item fd.num is exist - process it [09:05:59]SAM_PROTO_GetFieldsCounters [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 13 00 00 [09:05:59]Write to MH i2c: E2 08 00 3C 1A 80 13 00 00 00 00 00 00 D2 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 62 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 62 00 3C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [09:05:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:59]wFMCommunicate OK [09:05:59]SAM_PROTO_GetFieldsCounters done [09:05:59]requested_item shift.num is exist - process it [09:05:59]requested_item shift.opened is exist - process it [09:05:59]req_shift_opened [09:05:59]FM_GetShiftState [09:05:59]SAM_PROTO_GetShiftState [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 13 01 00 [09:05:59]Write to MH i2c: E2 08 00 3D 1A 80 13 01 00 00 00 00 00 D4 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 0E 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 0E 00 3D 1A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 09 [09:05:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:05:59]wFMCommunicate OK [09:05:59]SAM_PROTO_GetShiftState done [09:05:59]FM_GetShiftState done [09:05:59]req_shift_opened done [09:05:59]requested_item shift.open_date is exist - process it [09:05:59]req_shift_open_date [09:05:59]req_shift_open_date done [09:05:59]produce_requested_data done [09:05:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112151,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:05:59]process_action_free close_receipt [09:05:59]json_value_free [09:05:59]json_value_free done [09:05:59]process_json_proto returns [09:05:59]Send response to host [09:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112151,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:05:59]free response buf [09:05:59]execute_script done [09:05:59]execute_script returns [09:05:59]free content buf [09:05:59]Sock 9.Close socket [09:05:59]Sock 9.Thread stoped [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:23]accept exits with 7 [09:08:23]New connection [09:08:23]New thread 3066957156 created [09:08:23]Thread 3066813796 joined [09:08:23]Waiting for new connection... [09:08:23] Sock 7.Parse request [09:08:23]Sock 7.Check first char [09:08:23]Sock 7.First char is OK [09:08:23]request: POST /json_proto HTTP/1.0 [09:08:23]Method: POST [09:08:23]URL: /json_proto [09:08:23]Method is POST - this is cgi request [09:08:23]url: /json_proto [09:08:23]query_string will be loaded in cgi processing [09:08:23]execute_cgi json_proto POST (null) [09:08:23]execute_cgi path=json_proto method=POST [09:08:23]POST find Content-Length [09:08:23]Host: 172.17.59.68:8080 [09:08:23]Content-Length: 677 [09:08:23]Content-Type: application/json [09:08:23] [09:08:23]POST finish read [09:08:23]Found Content-Length = 677 [09:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320816", "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.40, "quantity" : 7.230, "sum" : 480.07, "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" ] } } [09:08:23]execute_script... [09: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)320816", "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.40, "quantity" : 7.230, "sum" : 480.07, "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" ] } } [09:08:23]POST & json_proto [09:08:23]process_json_proto [09:08:23]json parsed OK: [09:08:23]protocol is kg_v1.0 [09:08:23]action value=close_receipt [09:08:23]process_action close_receipt [09:08:23]cmd_close_receipt [09:08:23]MH_GetDate [09:08:23]Write to MH i2c: F0 00 00 3E 1A 47 [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: F0 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: F0 09 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: F0 09 00 3E 1A 00 99 94 76 66 BC EC 60 65 C6 [09:08:23]GetLastDocTimeStamp 1719047173 [09:08:23]current date 1719047321 [09:08:23]FM_GetShiftState [09:08:23]SAM_PROTO_GetShiftState [09:08:23]wFMCommunicate request_size=4 [09:08:23]MH_SAM_APDU [09:08:23]CAPDU: 80 13 01 00 [09:08:23]Write to MH i2c: E2 08 00 3F 1A 80 13 01 00 00 00 00 00 D6 [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 0E 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 0E 00 3F 1A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0B [09:08:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:08:23]wFMCommunicate OK [09:08:23]SAM_PROTO_GetShiftState done [09:08:23]FM_GetShiftState done [09:08:23]opened in 1719020067 [09:08:23]opened+sec_in_day 1719106467 [09:08:23]quantity*price = 48007 [09:08:23]sum+1 = 48008 [09:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 50.98 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 18 22.06.2024 09:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112152 ФПД: 10085996409729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090841&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112152&fm=10085996409729&tin=02508201610067®Number=0000000000092771&sum=48000 [09:08:24]StoreToDocumentArchive [09:08:24]shift 391 fd 112152 [09:08:24]save to /storage/0391/doc_00112152 [09:08:24]save last doc name /storage/0391/doc_00112152 to /storage/kkm_last_doc_name [09:08:24]save OK [09:08:24]Clear old archive folders... [09:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:24]tlvbuf is 01179FB0 [09:08:24]SAM_PROTO_ClearQueue [09:08:24]wFMCommunicate request_size=4 [09:08:24]MH_SAM_APDU [09:08:24]CAPDU: 80 09 00 00 [09:08:24]Write to MH i2c: E2 08 00 4C 1A 80 09 00 00 00 00 00 00 D8 [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:24]Read from MH i2c: E2 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [09:08:24]RAPDU: 90 00 [09:08:24]wFMCommunicate OK [09:08:24]SAM_PROTO_ClearQueue done [09:08:24]KKMCreateOFDPacket [09:08:24]OFDProtocolAddRootSTLVToBuf [09:08:24]FM_MakeSignedData [09:08:24]FM_MakeSignedData [09:08:24]SAM_PROTO_SignData [09:08:24]wFMCommunicate request_size=4 [09:08:24]MH_SAM_APDU [09:08:24]CAPDU: 80 0D 01 02 [09:08:24]Write to MH i2c: E2 08 00 4D 1A 80 0D 01 02 00 00 00 00 E0 [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:24]Read from MH i2c: E2 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [09:08:24]RAPDU: 90 00 [09:08:24]wFMCommunicate OK [09:08:24]wFMCommunicate request_size=255 [09:08:24]MH_SAM_APDU [09: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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 12 00 00 00 F4 03 04 00 99 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B6 01 00 35 04 06 00 09 [09:08:24]Write to MH i2c: E2 02 01 4E 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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 12 00 00 00 F4 03 04 00 99 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B6 01 00 35 04 06 00 09 00 00 27 [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:24]Read from MH i2c: E2 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [09:08:24]RAPDU: 90 00 [09:08:24]wFMCommunicate OK [09:08:24]wFMCommunicate request_size=10 [09:08:24]MH_SAM_APDU [09:08:24]CAPDU: 80 0D 02 02 05 2C 54 3B B3 81 [09:08:24]Write to MH i2c: E2 0D 00 4F 1A 80 0D 02 02 05 00 2C 54 3B B3 81 00 00 DC [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:24]Read from MH i2c: E2 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [09:08:24]RAPDU: 90 00 [09:08:24]wFMCommunicate OK [09:08:24]wFMCommunicate request_size=4 [09:08:24]MH_SAM_APDU [09:08:24]CAPDU: 80 0D 03 02 [09:08:24]Write to MH i2c: E2 08 00 50 1A 80 0D 03 02 00 00 00 00 E5 [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:24]Read from MH i2c: E2 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 0B 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: E2 0B 00 50 1A 00 75 51 D0 25 6F C7 24 35 90 00 30 [09:08:24]RAPDU: 75 51 D0 25 6F C7 24 35 90 00 [09:08:24]wFMCommunicate OK [09:08:24]SAM_PROTO_SignData done [09:08:24]FM_MakeSignedData done [09:08:24]CreateOFDProtocolMessage [09:08:24]wFMCommunicate request_size=4 [09:08:24]MH_SAM_APDU [09:08:24]CAPDU: 80 11 00 00 [09:08:24]Write to MH i2c: E2 08 00 51 1A 80 11 00 00 00 00 00 00 E5 [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:25]Read from MH i2c: E2 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 17 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 17 00 51 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [09:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:08:25]wFMCommunicate OK [09:08:25]CreateOFDProtocolMessage done [09:08:25]OFDSenderStorePacket 112152 [09:08:25]StoreOFDPacket docnum=112152 [09:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 49 07 01 C8 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 12 00 00 00 F4 03 04 00 99 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B6 01 00 35 04 06 00 09 2C 54 3B B3 81 75 51 D0 25 6F C7 24 35 [09:08:25]CheckFolder [09:08:25]dirname=/storage/ofd_packets [09:08:25]CheckFolder done [09:08:25]ProducePacketName [09:08:25]name=ofd_packets/00112152 [09:08:25]NVStorageSaveData ofd_packets/00112152 [09:08:25]File name is /storage/ofd_packets/00112152 [09:08:25]Write 301 bytes [09:08:25]NVStorageSaveData done [09:08:25]OFDSenderStorePacket done [09:08:25]KKMCreateOFDPacket done [09:08:25]NVStorageSaveData kkm_last_timestamp [09:08:25]File name is /storage/kkm_last_timestamp [09:08:25]Write 4 bytes [09:08:25]NVStorageSaveData done [09:08:25]ExternCall_PrintAddStr [09:08:25]wPrintStart [09:08:25]Write to MH i2c: 01 00 00 52 1A 6C [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 07 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 07 00 52 1A 00 00 00 00 00 FF 0F 81 [09:08:25]RasterBufferAndPrint [09:08:25]line Счет N : (1)320816 [09:08:25]line ИНН: 02508201610067 [09:08:25]line Контрольно-Кассовый Чек [09:08:25]line ПРОДАЖА [09:08:25]line ТРК (МРК, ГНК) : 11 [09:08:25]line Товар: 2710124130 [09:08:25]line Аи-92-К-5 [09:08:25]line 7.230 * 66.40 [09:08:25]line = 480.07 [09:08:25]line НДС 12% НСП 1% [09:08:25]line > о реализуемом товаре [09:08:25]line ОКРУГЛЕНИЕ: -0.07 [09:08:25]line ИТОГО: 480.00 [09:08:25]line Внесено: 480.00 [09:08:25]line СДАЧА: 0.00 [09:08:25]line НСП 1% : 4.25 [09:08:25]line НДС 12% : 50.98 [09:08:25]line Наличными: 480.00 [09:08:25]line Безнал.: 0.00 [09:08:25]line Место: АЗС № 65 "Партнер Нефть" [09:08:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:08:25]line СНО: Общий режим [09:08:25]line Чек 18 22.06.2024 09:08 [09:08:25]line Смена: 391 ФФД: 1.0 [09:08:25]line ЗНМ: 0300000198 [09:08:25]line РНМ: 0000000000092771 [09:08:25]line Версия ККМ: 001 [09:08:25]line ФМ: 0000000000875083 [09:08:25]line ФД: 112152 [09:08:25]line ФПД: 10085996409729 [09:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090841&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112152&fm=10085996409729&tin=02508201610067®Number=0000000000092771&sum=48000 [09:08:25]OFD Sender: Processing packet 112152 [packets to send 38, broken 37] [09:08:25]ProducePacketName [09:08:25]name=ofd_packets/00112152 [09:08:25]OFD Sender: To server: pG, [09:08:25]CommunicateWithHost lk.salyk.kg:30040 [09:08:25]ConnectInit lk.salyk.kg [09:08:25]written 0, free lines is 4095 [09:08:25]Connected sock=10 [09: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 35 30 38 33 0F 01 00 00 82 49 07 01 C8 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 12 00 00 00 F4 03 04 00 99 94 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B6 01 00 35 04 06 00 09 2C 54 3B B3 81 75 51 D0 25 6F C7 24 35 [09:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FA 97 47 00 A4 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B6 01 00 F4 03 04 00 AA 2B 76 66 B6 04 01 00 00 F7 FF 9F 58 B4 78 E3 56 [09:08:25]CommunicateWithHost err = 0 [09:08:25]CheckOFDResponse [09:08:25]1017 (14) - 77093643461234 [09:08:25]1041 (16) - 0000000000875083 [09:08:25]1040 (4) - 112152 [09:08:25]1012 (4) - 22.06.2024 01:40 [09:08:25]1206 (1) - 0 [09:08:25]OFD Sender: Remove packet 112152 [09:08:25]ProducePacketName [09:08:25]name=ofd_packets/00112152 [09:08:25]NVStorageDeleteData [09:08:25]Write to MH i2c: 01 00 00 7D 1A 97 [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 07 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 07 00 7D 1A 00 00 00 00 00 CE 0C 78 [09:08:25]RasterBufferAndPrint [09:08:25]line [09:08:25]line [09:08:25]line [09:08:25]line [09:08:25]line [09:08:25]written 0, free lines is 3285 [09:08:25]MH_Cut [09:08:25]Write to MH i2c: D1 01 00 84 1A 01 70 [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: D1 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: D1 01 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: D1 01 00 84 1A 00 6F [09:08:25]Write to MH i2c: 01 00 00 85 1A 9F [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:26]OFD Sender: No OFD packet to send [09:08:26]*** Cut start [09:08:26]*** Partial cut [09:08:26]*** CUTSNS_PIN = 1 [09:08:26]*** CUTSNS_PIN = 0 [09:08:26]*** Brake cut motor [09:08:27]Read from MH i2c: 01 [09:08:27]MH_I2C_Read... [09:08:27]*** Stop cut motor [09:08:27]*** Cut end [09:08:27]Read from MH i2c: 01 07 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 FF 0F B4 [09:08:27]process_action close_receipt done [09:08:27]requested_data is exist [09:08:27]produce_requested_data [09:08:27]requested_item fm.sn is exist - process it [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 11 00 00 [09:08:27]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 86 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [09:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:08:27]wFMCommunicate OK [09:08:27]requested_item fd.num is exist - process it [09:08:27]SAM_PROTO_GetFieldsCounters [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 13 00 00 [09:08:27]Write to MH i2c: E2 08 00 87 1A 80 13 00 00 00 00 00 00 1D [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 62 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 62 00 87 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [09:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_GetFieldsCounters done [09:08:27]requested_item shift.num is exist - process it [09:08:27]requested_item shift.opened is exist - process it [09:08:27]req_shift_opened [09:08:27]FM_GetShiftState [09:08:27]SAM_PROTO_GetShiftState [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 13 01 00 [09:08:27]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0E 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 54 [09:08:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_GetShiftState done [09:08:27]FM_GetShiftState done [09:08:27]req_shift_opened done [09:08:27]requested_item shift.open_date is exist - process it [09:08:27]req_shift_open_date [09:08:27]req_shift_open_date done [09:08:27]produce_requested_data done [09:08:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112152,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:08:27]process_action_free close_receipt [09:08:27]json_value_free [09:08:27]json_value_free done [09:08:27]process_json_proto returns [09:08:27]Send response to host [09:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112152,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:08:27]free response buf [09:08:27]execute_script done [09:08:27]execute_script returns [09:08:27]free content buf [09:08:27]Sock 7.Close socket [09:08:27]Sock 7.Thread stoped [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:03]accept exits with 9 [09:17:03]New connection [09:17:03]New thread 3066813796 created [09:17:03]Thread 3066957156 joined [09:17:03]Waiting for new connection... [09:17:03] Sock 9.Parse request [09:17:03]Sock 9.Check first char [09:17:03]Sock 9.First char is OK [09:17:03]request: POST /json_proto HTTP/1.0 [09:17:03]Method: POST [09:17:03]URL: /json_proto [09:17:03]Method is POST - this is cgi request [09:17:03]url: /json_proto [09:17:03]query_string will be loaded in cgi processing [09:17:03]execute_cgi json_proto POST (null) [09:17:03]execute_cgi path=json_proto method=POST [09:17:03]POST find Content-Length [09:17:03]Host: 172.17.59.68:8080 [09:17:03]Content-Length: 677 [09:17:03]Content-Type: application/json [09:17:03] [09:17:03]POST finish read [09:17:03]Found Content-Length = 677 [09:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320817", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:17:03]execute_script... [09:17: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)320817", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:17:03]POST & json_proto [09:17:03]process_json_proto [09:17:03]json parsed OK: [09:17:03]protocol is kg_v1.0 [09:17:03]action value=close_receipt [09:17:03]process_action close_receipt [09:17:03]cmd_close_receipt [09:17:03]MH_GetDate [09:17:03]Write to MH i2c: F0 00 00 89 1A 92 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 09 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 09 00 89 1A 00 A1 96 76 66 BC EC 60 65 1B [09:17:03]GetLastDocTimeStamp 1719047321 [09:17:03]current date 1719047841 [09:17:03]FM_GetShiftState [09:17:03]SAM_PROTO_GetShiftState [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 13 01 00 [09:17:03]Write to MH i2c: E2 08 00 8A 1A 80 13 01 00 00 00 00 00 21 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 8A 1A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 56 [09:17:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_GetShiftState done [09:17:03]FM_GetShiftState done [09:17:03]opened in 1719020067 [09:17:03]opened+sec_in_day 1719106467 [09:17:03]quantity*price = 20052 [09:17:03]sum+1 = 20054 [09:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 19 22.06.2024 09:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112153 ФПД: 255044469773184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091721&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112153&fm=255044469773184&tin=02508201610067®Number=0000000000092771&sum=20000 [09:17:04]StoreToDocumentArchive [09:17:04]shift 391 fd 112153 [09:17:04]save to /storage/0391/doc_00112153 [09:17:04]save last doc name /storage/0391/doc_00112153 to /storage/kkm_last_doc_name [09:17:04]save OK [09:17:04]Clear old archive folders... [09:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:04]tlvbuf is 011597A0 [09:17:04]SAM_PROTO_ClearQueue [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 09 00 00 [09:17:04]Write to MH i2c: E2 08 00 97 1A 80 09 00 00 00 00 00 00 23 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_ClearQueue done [09:17:04]KKMCreateOFDPacket [09:17:04]OFDProtocolAddRootSTLVToBuf [09:17:04]FM_MakeSignedData [09:17:04]FM_MakeSignedData [09:17:04]SAM_PROTO_SignData [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 01 02 [09:17:04]Write to MH i2c: E2 08 00 98 1A 80 0D 01 02 00 00 00 00 2B [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=255 [09:17:04]MH_SAM_APDU [09:17: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A1 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B6 01 00 35 04 06 00 E7 [09:17:04]Write to MH i2c: E2 02 01 99 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A1 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B6 01 00 35 04 06 00 E7 00 00 03 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=10 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 02 02 05 F6 2B 05 D3 80 [09:17:04]Write to MH i2c: E2 0D 00 9A 1A 80 0D 02 02 05 00 F6 2B 05 D3 80 00 00 B1 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 03 02 [09:17:04]Write to MH i2c: E2 08 00 9B 1A 80 0D 03 02 00 00 00 00 30 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 9B 1A 00 FF E2 1C D6 0C BB 9D 45 90 00 AD [09:17:04]RAPDU: FF E2 1C D6 0C BB 9D 45 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_SignData done [09:17:04]FM_MakeSignedData done [09:17:04]CreateOFDProtocolMessage [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 11 00 00 [09:17:04]Write to MH i2c: E2 08 00 9C 1A 80 11 00 00 00 00 00 00 30 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 9C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 82 [09:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:17:04]wFMCommunicate OK [09:17:04]CreateOFDProtocolMessage done [09:17:04]OFDSenderStorePacket 112153 [09:17:04]StoreOFDPacket docnum=112153 [09:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 59 07 01 E8 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A1 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B6 01 00 35 04 06 00 E7 F6 2B 05 D3 80 FF E2 1C D6 0C BB 9D 45 [09:17:04]CheckFolder [09:17:04]dirname=/storage/ofd_packets [09:17:04]CheckFolder done [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00112153 [09:17:04]NVStorageSaveData ofd_packets/00112153 [09:17:04]File name is /storage/ofd_packets/00112153 [09:17:04]Write 301 bytes [09:17:04]NVStorageSaveData done [09:17:04]OFDSenderStorePacket done [09:17:04]KKMCreateOFDPacket done [09:17:04]NVStorageSaveData kkm_last_timestamp [09:17:04]File name is /storage/kkm_last_timestamp [09:17:04]Write 4 bytes [09:17:04]NVStorageSaveData done [09:17:04]ExternCall_PrintAddStr [09:17:04]wPrintStart [09:17:04]Write to MH i2c: 01 00 00 9D 1A B7 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [09:17:04]RasterBufferAndPrint [09:17:04]line Счет N : (1)320817 [09:17:04]line ИНН: 02508201610067 [09:17:04]line Контрольно-Кассовый Чек [09:17:04]line ПРОДАЖА [09:17:04]line ТРК (МРК, ГНК) : 11 [09:17:04]line Товар: 2710124130 [09:17:04]line Аи-92-К-5 [09:17:04]line 3.020 * 66.40 [09:17:04]line = 200.53 [09:17:04]line НДС 12% НСП 1% [09:17:04]line > о реализуемом товаре [09:17:04]line ОКРУГЛЕНИЕ: -0.53 [09:17:04]line ИТОГО: 200.00 [09:17:04]line Внесено: 200.00 [09:17:04]line СДАЧА: 0.00 [09:17:04]line НСП 1% : 1.77 [09:17:04]line НДС 12% : 21.29 [09:17:04]line Наличными: 200.00 [09:17:04]line Безнал.: 0.00 [09:17:04]line Место: АЗС № 65 "Партнер Нефть" [09:17:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:17:04]line СНО: Общий режим [09:17:04]line Чек 19 22.06.2024 09:17 [09:17:04]line Смена: 391 ФФД: 1.0 [09:17:04]line ЗНМ: 0300000198 [09:17:04]line РНМ: 0000000000092771 [09:17:04]line Версия ККМ: 001 [09:17:04]line ФМ: 0000000000875083 [09:17:04]line ФД: 112153 [09:17:04]line ФПД: 255044469773184 [09:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091721&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112153&fm=255044469773184&tin=02508201610067®Number=0000000000092771&sum=20000 [09:17:04]written 0, free lines is 4095 [09:17:04]OFD Sender: Processing packet 112153 [packets to send 38, broken 37] [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00112153 [09:17:04]OFD Sender: To server: pG, [09:17:04]CommunicateWithHost lk.salyk.kg:30040 [09:17:04]ConnectInit lk.salyk.kg [09:17:05]Connected sock=10 [09:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 59 07 01 E8 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 A1 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B6 01 00 35 04 06 00 E7 F6 2B 05 D3 80 FF E2 1C D6 0C BB 9D 45 [09:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5E 74 47 00 84 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B6 01 00 F4 03 04 00 B1 2D 76 66 B6 04 01 00 00 10 CB 53 3C A4 00 52 39 [09:17:05]CommunicateWithHost err = 0 [09:17:05]CheckOFDResponse [09:17:05]1017 (14) - 77093643461234 [09:17:05]1041 (16) - 0000000000875083 [09:17:05]1040 (4) - 112153 [09:17:05]1012 (4) - 22.06.2024 01:49 [09:17:05]1206 (1) - 0 [09:17:05]OFD Sender: Remove packet 112153 [09:17:05]ProducePacketName [09:17:05]name=ofd_packets/00112153 [09:17:05]NVStorageDeleteData [09:17:05]Write to MH i2c: 01 00 00 C8 1A E2 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 C8 1A 00 00 00 00 00 D6 0C CB [09:17:05]RasterBufferAndPrint [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]written 0, free lines is 3293 [09:17:05]MH_Cut [09:17:05]Write to MH i2c: D1 01 00 CF 1A 01 BB [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 CF 1A 00 BA [09:17:05]Write to MH i2c: 01 00 00 D0 1A EA [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]OFD Sender: No OFD packet to send [09:17:06]*** Cut start [09:17:06]*** Partial cut [09:17:06]*** CUTSNS_PIN = 1 [09:17:06]*** CUTSNS_PIN = 0 [09:17:06]*** Brake cut motor [09:17:06]Read from MH i2c: 01 [09:17:06]MH_I2C_Read... [09:17:06]*** Stop cut motor [09:17:06]*** Cut end [09:17:06]Read from MH i2c: 01 07 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 D0 1A 00 00 00 00 00 FF 0F FF [09:17:06]process_action close_receipt done [09:17:06]requested_data is exist [09:17:06]produce_requested_data [09:17:06]requested_item fm.sn is exist - process it [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 11 00 00 [09:17:06]Write to MH i2c: E2 08 00 D1 1A 80 11 00 00 00 00 00 00 65 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 D1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [09:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:17:06]wFMCommunicate OK [09:17:06]requested_item fd.num is exist - process it [09:17:06]SAM_PROTO_GetFieldsCounters [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 00 00 [09:17:06]Write to MH i2c: E2 08 00 D2 1A 80 13 00 00 00 00 00 00 68 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 D2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [09:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetFieldsCounters done [09:17:06]requested_item shift.num is exist - process it [09:17:06]requested_item shift.opened is exist - process it [09:17:06]req_shift_opened [09:17:06]FM_GetShiftState [09:17:06]SAM_PROTO_GetShiftState [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 01 00 [09:17:06]Write to MH i2c: E2 08 00 D3 1A 80 13 01 00 00 00 00 00 6A [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 [09:17:06]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 0E 00 D3 1A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9F [09:17:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:17:07]wFMCommunicate OK [09:17:07]SAM_PROTO_GetShiftState done [09:17:07]FM_GetShiftState done [09:17:07]req_shift_opened done [09:17:07]requested_item shift.open_date is exist - process it [09:17:07]req_shift_open_date [09:17:07]req_shift_open_date done [09:17:07]produce_requested_data done [09:17:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112153,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:17:07]process_action_free close_receipt [09:17:07]json_value_free [09:17:07]json_value_free done [09:17:07]process_json_proto returns [09:17:07]Send response to host [09:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112153,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:17:07]free response buf [09:17:07]execute_script done [09:17:07]execute_script returns [09:17:07]free content buf [09:17:07]Sock 9.Close socket [09:17:07]Sock 9.Thread stoped [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]accept exits with 7 [09:17:55]New connection [09:17:55]New thread 3066957156 created [09:17:55]Thread 3066813796 joined [09:17:55]Waiting for new connection... [09:17:55] Sock 7.Parse request [09:17:55]Sock 7.Check first char [09:17:55]Sock 7.First char is OK [09:17:55]request: POST /json_proto HTTP/1.0 [09:17:55]Method: POST [09:17:55]URL: /json_proto [09:17:55]Method is POST - this is cgi request [09:17:55]url: /json_proto [09:17:55]query_string will be loaded in cgi processing [09:17:55]execute_cgi json_proto POST (null) [09:17:55]execute_cgi path=json_proto method=POST [09:17:55]POST find Content-Length [09:17:55]Host: 172.17.59.68:8080 [09:17:55]Content-Length: 808 [09:17:55]Content-Type: application/json [09:17:55] [09:17:55]POST finish read [09:17:55]Found Content-Length = 808 [09:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320818", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:55]execute_script... [09: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)320818", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:55]POST & json_proto [09:17:55]process_json_proto [09:17:55]json parsed OK: [09:17:55]protocol is kg_v1.0 [09:17:55]action value=close_receipt [09:17:55]process_action close_receipt [09:17:55]cmd_close_receipt [09:17:55]MH_GetDate [09:17:55]Write to MH i2c: F0 00 00 D4 1A DD [09:17:55]Write i2c OK [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: F0 [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: F0 09 00 [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: F0 09 00 D4 1A 00 D5 96 76 66 BC EC 60 65 9A [09:17:55]GetLastDocTimeStamp 1719047841 [09:17:55]current date 1719047893 [09:17:55]FM_GetShiftState [09:17:55]SAM_PROTO_GetShiftState [09:17:55]wFMCommunicate request_size=4 [09:17:55]MH_SAM_APDU [09:17:55]CAPDU: 80 13 01 00 [09:17:55]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [09:17:55]Write i2c OK [09:17:55]MH_I2C_Read... [09:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:55]Read from MH i2c: E2 [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: E2 0E 00 [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A1 [09:17:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:17:55]wFMCommunicate OK [09:17:55]SAM_PROTO_GetShiftState done [09:17:55]FM_GetShiftState done [09:17:55]opened in 1719020067 [09:17:55]opened+sec_in_day 1719106467 [09:17:55]quantity*price = 100064 [09:17:55]sum+1 = 100066 [09:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 20 22.06.2024 09:18 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112154 ФПД: 137823281486908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091813&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112154&fm=137823281486908&tin=02508201610067®Number=0000000000092771&sum=100065 [09:17:56]StoreToDocumentArchive [09:17:56]shift 391 fd 112154 [09:17:56]save to /storage/0391/doc_00112154 [09:17:56]save last doc name /storage/0391/doc_00112154 to /storage/kkm_last_doc_name [09:17:56]save OK [09:17:56]Clear old archive folders... [09:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:56]tlvbuf is 011794C0 [09:17:56]SAM_PROTO_ClearQueue [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 09 00 00 [09:17:56]Write to MH i2c: E2 08 00 E2 1A 80 09 00 00 00 00 00 00 6E [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_ClearQueue done [09:17:56]KKMCreateOFDPacket [09:17:56]OFDProtocolAddRootSTLVToBuf [09:17:56]FM_MakeSignedData [09:17:56]FM_MakeSignedData [09:17:56]SAM_PROTO_SignData [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 01 02 [09:17:56]Write to MH i2c: E2 08 00 E3 1A 80 0D 01 02 00 00 00 00 76 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]wFMCommunicate request_size=255 [09:17:56]MH_SAM_APDU [09: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D5 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B6 01 00 35 04 06 00 7D [09:17:56]Write to MH i2c: E2 02 01 E4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D5 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B6 01 00 35 04 06 00 7D 00 00 2D [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]wFMCommunicate request_size=10 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 02 02 05 59 7B BC 1C 3C [09:17:56]Write to MH i2c: E2 0D 00 E5 1A 80 0D 02 02 05 00 59 7B BC 1C 3C 00 00 6B [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 03 02 [09:17:56]Write to MH i2c: E2 08 00 E6 1A 80 0D 03 02 00 00 00 00 7B [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0B 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0B 00 E6 1A 00 20 50 6B 05 B3 E6 7B C0 90 00 30 [09:17:56]RAPDU: 20 50 6B 05 B3 E6 7B C0 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_SignData done [09:17:56]FM_MakeSignedData done [09:17:56]CreateOFDProtocolMessage [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 11 00 00 [09:17:56]Write to MH i2c: E2 08 00 E7 1A 80 11 00 00 00 00 00 00 7B [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 17 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 17 00 E7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CD [09:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:17:57]wFMCommunicate OK [09:17:57]CreateOFDProtocolMessage done [09:17:57]OFDSenderStorePacket 112154 [09:17:57]StoreOFDPacket docnum=112154 [09:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE B8 07 01 EA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D5 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B6 01 00 35 04 06 00 7D 59 7B BC 1C 3C 20 50 6B 05 B3 E6 7B C0 [09:17:57]CheckFolder [09:17:57]dirname=/storage/ofd_packets [09:17:57]CheckFolder done [09:17:57]ProducePacketName [09:17:57]name=ofd_packets/00112154 [09:17:57]NVStorageSaveData ofd_packets/00112154 [09:17:57]File name is /storage/ofd_packets/00112154 [09:17:57]Write 301 bytes [09:17:57]NVStorageSaveData done [09:17:57]OFDSenderStorePacket done [09:17:57]KKMCreateOFDPacket done [09:17:57]NVStorageSaveData kkm_last_timestamp [09:17:57]File name is /storage/kkm_last_timestamp [09:17:57]Write 4 bytes [09:17:57]NVStorageSaveData done [09:17:57]ExternCall_PrintAddStr [09:17:57]wPrintStart [09:17:57]Write to MH i2c: 01 00 00 E8 1A 02 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 07 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 FF 0F 17 [09:17:57]RasterBufferAndPrint [09:17:57]line Счет N : (1)320818 [09:17:57]line ИНН: 02508201610067 [09:17:57]line Контрольно-Кассовый Чек [09:17:57]line ПРОДАЖА [09:17:57]line ТРК (МРК, ГНК) : 11 [09:17:57]line Товар: 2710124130 [09:17:57]line Аи-92-К-5 [09:17:57]line 15.070 * 66.40 [09:17:57]line = 1000.65 [09:17:57]line НДС 12% НСП 1% [09:17:57]line > о реализуемом товаре [09:17:57]line ИТОГО: 1000.65 [09:17:57]line НСП 1% : 8.85 [09:17:57]line НДС 12% : 106.26 [09:17:57]line Наличными: 0.00 [09:17:57]line Безнал.: 1000.65 [09:17:57]line Место: АЗС № 65 "Партнер Нефть" [09:17:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:17:57]line СНО: Общий режим [09:17:57]line Чек 20 22.06.2024 09:18 [09:17:57]line Смена: 391 ФФД: 1.0 [09:17:57]line ЗНМ: 0300000198 [09:17:57]line РНМ: 0000000000092771 [09:17:57]line Версия ККМ: 001 [09:17:57]line Платежная система: О! деньги [09:17:57]line ФМ: 0000000000875083 [09:17:57]line ФД: 112154 [09:17:57]line ФПД: 137823281486908 [09:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T091813&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112154&fm=137823281486908&tin=02508201610067®Number=0000000000092771&sum=100065 [09:17:57]written 0, free lines is 4095 [09:17:57]OFD Sender: Processing packet 112154 [packets to send 38, broken 37] [09:17:57]ProducePacketName [09:17:57]name=ofd_packets/00112154 [09:17:57]OFD Sender: To server: pG, [09:17:57]CommunicateWithHost lk.salyk.kg:30040 [09:17:57]ConnectInit lk.salyk.kg [09:17:57]Connected sock=10 [09: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 35 30 38 33 0F 01 00 00 FE B8 07 01 EA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D5 96 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B6 01 00 35 04 06 00 7D 59 7B BC 1C 3C 20 50 6B 05 B3 E6 7B C0 [09:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 4F 47 00 C0 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B6 01 00 F4 03 04 00 E6 2D 76 66 B6 04 01 00 00 A6 44 5B 80 82 8D 6D 0F [09:17:57]CommunicateWithHost err = 0 [09:17:57]CheckOFDResponse [09:17:57]1017 (14) - 77093643461234 [09:17:57]1041 (16) - 0000000000875083 [09:17:57]1040 (4) - 112154 [09:17:57]1012 (4) - 22.06.2024 01:50 [09:17:57]1206 (1) - 0 [09:17:57]OFD Sender: Remove packet 112154 [09:17:57]ProducePacketName [09:17:57]name=ofd_packets/00112154 [09:17:57]NVStorageDeleteData [09:17:57]Write to MH i2c: 01 00 00 12 1B 2D [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 07 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 07 00 12 1B 00 00 00 00 00 E0 0C 20 [09:17:57]RasterBufferAndPrint [09:17:57]line [09:17:57]line [09:17:57]line [09:17:57]line [09:17:57]line [09:17:57]written 0, free lines is 3302 [09:17:57]MH_Cut [09:17:57]Write to MH i2c: D1 01 00 19 1B 01 06 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: D1 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: D1 01 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: D1 01 00 19 1B 00 05 [09:17:57]Write to MH i2c: 01 00 00 1A 1B 35 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:58]OFD Sender: No OFD packet to send [09:17:58]*** Cut start [09:17:58]*** Partial cut [09:17:58]*** CUTSNS_PIN = 1 [09:17:58]*** CUTSNS_PIN = 0 [09:17:58]*** Brake cut motor [09:17:59]Read from MH i2c: 01 [09:17:59]*** Stop cut motor [09:17:59]*** Cut end [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: 01 07 00 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: 01 07 00 1A 1B 00 00 00 00 00 FF 0F 4A [09:17:59]process_action close_receipt done [09:17:59]requested_data is exist [09:17:59]produce_requested_data [09:17:59]requested_item fm.sn is exist - process it [09:17:59]wFMCommunicate request_size=4 [09:17:59]MH_SAM_APDU [09:17:59]CAPDU: 80 11 00 00 [09:17:59]Write to MH i2c: E2 08 00 1B 1B 80 11 00 00 00 00 00 00 B0 [09:17:59]Write i2c OK [09:17:59]MH_I2C_Read... [09:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:59]Read from MH i2c: E2 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 17 00 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 17 00 1B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [09:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:17:59]wFMCommunicate OK [09:17:59]requested_item fd.num is exist - process it [09:17:59]SAM_PROTO_GetFieldsCounters [09:17:59]wFMCommunicate request_size=4 [09:17:59]MH_SAM_APDU [09:17:59]CAPDU: 80 13 00 00 [09:17:59]Write to MH i2c: E2 08 00 1C 1B 80 13 00 00 00 00 00 00 B3 [09:17:59]Write i2c OK [09:17:59]MH_I2C_Read... [09:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:59]Read from MH i2c: E2 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 62 00 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 62 00 1C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [09:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:59]wFMCommunicate OK [09:17:59]SAM_PROTO_GetFieldsCounters done [09:17:59]requested_item shift.num is exist - process it [09:17:59]requested_item shift.opened is exist - process it [09:17:59]req_shift_opened [09:17:59]FM_GetShiftState [09:17:59]SAM_PROTO_GetShiftState [09:17:59]wFMCommunicate request_size=4 [09:17:59]MH_SAM_APDU [09:17:59]CAPDU: 80 13 01 00 [09:17:59]Write to MH i2c: E2 08 00 1D 1B 80 13 01 00 00 00 00 00 B5 [09:17:59]Write i2c OK [09:17:59]MH_I2C_Read... [09:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:59]Read from MH i2c: E2 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 0E 00 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 0E 00 1D 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EA [09:17:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:17:59]wFMCommunicate OK [09:17:59]SAM_PROTO_GetShiftState done [09:17:59]FM_GetShiftState done [09:17:59]req_shift_opened done [09:17:59]requested_item shift.open_date is exist - process it [09:17:59]req_shift_open_date [09:17:59]req_shift_open_date done [09:17:59]produce_requested_data done [09:17:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112154,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:17:59]process_action_free close_receipt [09:17:59]json_value_free [09:17:59]json_value_free done [09:17:59]process_json_proto returns [09:17:59]Send response to host [09:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112154,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:17:59]free response buf [09:17:59]execute_script done [09:17:59]execute_script returns [09:17:59]free content buf [09:17:59]Sock 7.Close socket [09:17:59]Sock 7.Thread stoped [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]accept exits with 9 [09:26:13]New connection [09:26:13]New thread 3066813796 created [09:26:13]Thread 3066957156 joined [09:26:13]Waiting for new connection... [09:26:13] Sock 9.Parse request [09:26:13]Sock 9.Check first char [09:26:13]Sock 9.First char is OK [09:26:13]request: POST /json_proto HTTP/1.0 [09:26:13]Method: POST [09:26:13]URL: /json_proto [09:26:13]Method is POST - this is cgi request [09:26:13]url: /json_proto [09:26:13]query_string will be loaded in cgi processing [09:26:13]execute_cgi json_proto POST (null) [09:26:13]execute_cgi path=json_proto method=POST [09:26:13]POST find Content-Length [09:26:13]Host: 172.17.59.68:8080 [09:26:13]Content-Length: 1199 [09:26:13]Content-Type: application/json [09:26:13] [09:26:13]POST finish read [09:26:13]Found Content-Length = 1199 [09:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320819\u000A22.06.2024 07:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888278 3888277\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:13]execute_script... [09:26:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320819\u000A22.06.2024 07:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888278 3888277\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:13]POST & json_proto [09:26:13]process_json_proto [09:26:13]json parsed OK: [09:26:13]protocol is kg_v1.0 [09:26:13]action value=print_text [09:26:13]process_action print_text [09:26:13]cmd_print_text [09:26:13]ExternCall_PrintAddStr [09:26:13]wPrintStart [09:26:13]Write to MH i2c: 01 00 00 1E 1B 39 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 FF 0F 4E [09:26:13]RasterBufferAndPrint [09:26:13]line *****ТОВАРНЫЙ ЧЕК***** [09:26:13]line АЗС 65 [09:26:13]line Партнер нефть [09:26:13]line 02508201610067 [09:26:13]line Кассир : Амантуров Р. [09:26:13]line Счет N : (1)320819 [09:26:13]line 22.06.2024 07:53 [09:26:13]line ПРОДАЖА [09:26:13]line ТРК (МРК, ГНК): 11 [09:26:13]line Вид ГСМ : 2710124130 [09:26:13]line Аи-92-К-5 [09:26:13]line 20.000 x 66.40 [09:26:13]line ИТОГ: 1328.00 [09:26:13]line Тип оплаты: Талоны: Партнер нефть [09:26:13]line 3888278 3888277 [09:26:13]line ______________________ [09:26:13]line (подпись) [09:26:13]written 0, free lines is 4095 [09:26:13]OFD Sender: No OFD packet to send [09:26:13]Write to MH i2c: 01 00 00 32 1B 4D [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 32 1B 00 00 00 00 00 16 0E 78 [09:26:13]RasterBufferAndPrint [09:26:13]line [09:26:13]line [09:26:13]line [09:26:13]line [09:26:13]line [09:26:13]written 0, free lines is 3608 [09:26:13]MH_Cut [09:26:13]Write to MH i2c: D1 01 00 39 1B 01 26 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: D1 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: D1 01 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: D1 01 00 39 1B 00 25 [09:26:13]Write to MH i2c: 01 00 00 3A 1B 55 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]*** Cut start [09:26:14]*** Partial cut [09:26:14]*** CUTSNS_PIN = 1 [09:26:14]*** CUTSNS_PIN = 0 [09:26:14]*** Brake cut motor [09:26:14]Read from MH i2c: 01 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 [09:26:14]MH_I2C_Read... [09:26:14]*** Stop cut motor [09:26:14]*** Cut end [09:26:14]Read from MH i2c: 01 07 00 3A 1B 00 00 00 00 00 FF 0F 6A [09:26:14]process_action print_text done [09:26:14]requested_data is exist [09:26:14]produce_requested_data [09:26:14]requested_item fm.sn is exist - process it [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 11 00 00 [09:26:14]Write to MH i2c: E2 08 00 3B 1B 80 11 00 00 00 00 00 00 D0 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 3B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [09:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:26:14]wFMCommunicate OK [09:26:14]requested_item fd.num is exist - process it [09:26:14]SAM_PROTO_GetFieldsCounters [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 13 00 00 [09:26:14]Write to MH i2c: E2 08 00 3C 1B 80 13 00 00 00 00 00 00 D3 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:15]Read from MH i2c: E2 62 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 62 00 3C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetFieldsCounters done [09:26:15]requested_item shift.num is exist - process it [09:26:15]requested_item shift.opened is exist - process it [09:26:15]req_shift_opened [09:26:15]FM_GetShiftState [09:26:15]SAM_PROTO_GetShiftState [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 13 01 00 [09:26:15]Write to MH i2c: E2 08 00 3D 1B 80 13 01 00 00 00 00 00 D5 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 3D 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0A [09:26:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetShiftState done [09:26:15]FM_GetShiftState done [09:26:15]req_shift_opened done [09:26:15]requested_item shift.open_date is exist - process it [09:26:15]req_shift_open_date [09:26:15]req_shift_open_date done [09:26:15]produce_requested_data done [09:26:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112154,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:26:15]process_action_free print_text [09:26:15]json_value_free [09:26:15]json_value_free done [09:26:15]process_json_proto returns [09:26:15]Send response to host [09:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112154,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:26:15]free response buf [09:26:15]execute_script done [09:26:15]execute_script returns [09:26:15]free content buf [09:26:15]Sock 9.Close socket [09:26:15]Sock 9.Thread stoped [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:56]accept exits with 7 [09:26:56]New connection [09:26:56]New thread 3066957156 created [09:26:56]Thread 3066813796 joined [09:26:56]Waiting for new connection... [09:26:56] Sock 7.Parse request [09:26:56]Sock 7.Check first char [09:26:56]Sock 7.First char is OK [09:26:56]request: POST /json_proto HTTP/1.0 [09:26:56]Method: POST [09:26:56]URL: /json_proto [09:26:56]Method is POST - this is cgi request [09:26:56]url: /json_proto [09:26:56]query_string will be loaded in cgi processing [09:26:56]execute_cgi json_proto POST (null) [09:26:56]execute_cgi path=json_proto method=POST [09:26:56]POST find Content-Length [09:26:56]Host: 172.17.59.68:8080 [09:26:56]Content-Length: 1190 [09:26:56]Content-Type: application/json [09:26:56] [09:26:56]POST finish read [09:26:56]Found Content-Length = 1190 [09:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320820\u000A22.06.2024 07:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888276\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:56]execute_script... [09:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320820\u000A22.06.2024 07:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888276\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:56]POST & json_proto [09:26:56]process_json_proto [09:26:56]json parsed OK: [09:26:56]protocol is kg_v1.0 [09:26:56]action value=print_text [09:26:56]process_action print_text [09:26:56]cmd_print_text [09:26:56]ExternCall_PrintAddStr [09:26:56]wPrintStart [09:26:56]Write to MH i2c: 01 00 00 3E 1B 59 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 FF 0F 6E [09:26:56]RasterBufferAndPrint [09:26:56]line *****ТОВАРНЫЙ ЧЕК***** [09:26:56]line АЗС 65 [09:26:56]line Партнер нефть [09:26:56]line 02508201610067 [09:26:56]line Кассир : Амантуров Р. [09:26:56]line Счет N : (1)320820 [09:26:56]line 22.06.2024 07:53 [09:26:56]line ПРОДАЖА [09:26:56]line ТРК (МРК, ГНК): 11 [09:26:56]line Вид ГСМ : 2710124130 [09:26:56]line Аи-92-К-5 [09:26:56]line 10.000 x 66.40 [09:26:56]line ИТОГ: 664.00 [09:26:56]line Тип оплаты: Талоны: Партнер нефть [09:26:56]line 3888276 [09:26:56]line ______________________ [09:26:56]line (подпись) [09:26:56]written 0, free lines is 4095 [09:26:56]Write to MH i2c: 01 00 00 52 1B 6D [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 52 1B 00 00 00 00 00 12 0E 94 [09:26:56]RasterBufferAndPrint [09:26:56]line [09:26:56]line [09:26:56]line [09:26:56]line [09:26:56]line [09:26:56]written 0, free lines is 3604 [09:26:56]MH_Cut [09:26:56]Write to MH i2c: D1 01 00 59 1B 01 46 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: D1 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: D1 01 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: D1 01 00 59 1B 00 45 [09:26:56]Write to MH i2c: 01 00 00 5A 1B 75 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:57]*** Cut start [09:26:57]*** Partial cut [09:26:57]*** CUTSNS_PIN = 1 [09:26:57]*** CUTSNS_PIN = 0 [09:26:57]*** Brake cut motor [09:26:57]Read from MH i2c: 01 [09:26:57]MH_I2C_Read... [09:26:57]*** Stop cut motor [09:26:57]*** Cut end [09:26:57]Read from MH i2c: 01 07 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: 01 07 00 5A 1B 00 00 00 00 00 FF 0F 8A [09:26:57]process_action print_text done [09:26:57]requested_data is exist [09:26:57]produce_requested_data [09:26:57]requested_item fm.sn is exist - process it [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 11 00 00 [09:26:57]Write to MH i2c: E2 08 00 5B 1B 80 11 00 00 00 00 00 00 F0 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:57]Read from MH i2c: E2 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 17 00 [09:26:57]MH_I2C_Read... [09:26:57]Read from MH i2c: E2 17 00 5B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [09:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:26:57]wFMCommunicate OK [09:26:57]requested_item fd.num is exist - process it [09:26:57]SAM_PROTO_GetFieldsCounters [09:26:57]wFMCommunicate request_size=4 [09:26:57]MH_SAM_APDU [09:26:57]CAPDU: 80 13 00 00 [09:26:57]Write to MH i2c: E2 08 00 5C 1B 80 13 00 00 00 00 00 00 F3 [09:26:57]Write i2c OK [09:26:57]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 62 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 62 00 5C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:58]wFMCommunicate OK [09:26:58]SAM_PROTO_GetFieldsCounters done [09:26:58]requested_item shift.num is exist - process it [09:26:58]requested_item shift.opened is exist - process it [09:26:58]req_shift_opened [09:26:58]FM_GetShiftState [09:26:58]SAM_PROTO_GetShiftState [09:26:58]wFMCommunicate request_size=4 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 13 01 00 [09:26:58]Write to MH i2c: E2 08 00 5D 1B 80 13 01 00 00 00 00 00 F5 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 0E 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 0E 00 5D 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2A [09:26:58]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:26:58]wFMCommunicate OK [09:26:58]SAM_PROTO_GetShiftState done [09:26:58]FM_GetShiftState done [09:26:58]req_shift_opened done [09:26:58]requested_item shift.open_date is exist - process it [09:26:58]req_shift_open_date [09:26:58]req_shift_open_date done [09:26:58]produce_requested_data done [09:26:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112154,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:26:58]process_action_free print_text [09:26:58]json_value_free [09:26:58]json_value_free done [09:26:58]process_json_proto returns [09:26:58]Send response to host [09:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112154,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:26:58]free response buf [09:26:58]execute_script done [09:26:58]execute_script returns [09:26:58]free content buf [09:26:58]Sock 7.Close socket [09:26:58]Sock 7.Thread stoped [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31: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:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [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]accept exits with 9 [09:33:53]New connection [09:33:53]New thread 3066813796 created [09:33:53]Thread 3066957156 joined [09:33:53]Waiting for new connection... [09:33:53] Sock 9.Parse request [09:33:53]Sock 9.Check first char [09:33:53]Sock 9.First char is OK [09:33:53]request: POST /json_proto HTTP/1.0 [09:33:53]Method: POST [09:33:53]URL: /json_proto [09:33:53]Method is POST - this is cgi request [09:33:53]url: /json_proto [09:33:53]query_string will be loaded in cgi processing [09:33:53]execute_cgi json_proto POST (null) [09:33:53]execute_cgi path=json_proto method=POST [09:33:53]POST find Content-Length [09:33:53]Host: 172.17.59.68:8080 [09:33:53]Content-Length: 677 [09:33:53]Content-Type: application/json [09:33:53] [09:33:53]POST finish read [09:33:53]Found Content-Length = 677 [09:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320821", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:53]execute_script... [09:33: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)320821", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:53]POST & json_proto [09:33:53]process_json_proto [09:33:53]json parsed OK: [09:33:53]protocol is kg_v1.0 [09:33:53]action value=close_receipt [09:33:53]process_action close_receipt [09:33:53]cmd_close_receipt [09:33:53]MH_GetDate [09:33:53]Write to MH i2c: F0 00 00 5E 1B 68 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: F0 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: F0 09 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: F0 09 00 5E 1B 00 93 9A 76 66 BC EC 60 65 E7 [09:33:53]GetLastDocTimeStamp 1719047893 [09:33:53]current date 1719048851 [09:33:53]FM_GetShiftState [09:33:53]SAM_PROTO_GetShiftState [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 13 01 00 [09:33:53]Write to MH i2c: E2 08 00 5F 1B 80 13 01 00 00 00 00 00 F7 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0E 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0E 00 5F 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2C [09:33:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_GetShiftState done [09:33:53]FM_GetShiftState done [09:33:53]opened in 1719020067 [09:33:53]opened+sec_in_day 1719106467 [09:33:53]quantity*price = 50065 [09:33:53]sum+1 = 50067 [09:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 21 22.06.2024 09:34 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112155 ФПД: 39058231830911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093412&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112155&fm=39058231830911&tin=02508201610067®Number=0000000000092771&sum=50000 [09:33:54]StoreToDocumentArchive [09:33:54]shift 391 fd 112155 [09:33:54]save to /storage/0391/doc_00112155 [09:33:54]save last doc name /storage/0391/doc_00112155 to /storage/kkm_last_doc_name [09:33:54]save OK [09:33:54]Clear old archive folders... [09:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:54]tlvbuf is 0111EA80 [09:33:54]SAM_PROTO_ClearQueue [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 09 00 00 [09:33:54]Write to MH i2c: E2 08 00 6C 1B 80 09 00 00 00 00 00 00 F9 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 6C 1B 00 90 00 FB [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_ClearQueue done [09:33:54]KKMCreateOFDPacket [09:33:54]OFDProtocolAddRootSTLVToBuf [09:33:54]FM_MakeSignedData [09:33:54]FM_MakeSignedData [09:33:54]SAM_PROTO_SignData [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 01 02 [09:33:54]Write to MH i2c: E2 08 00 6D 1B 80 0D 01 02 00 00 00 00 01 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 6D 1B 00 90 00 FC [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=255 [09:33:54]MH_SAM_APDU [09:33: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B6 01 00 35 04 06 00 23 [09:33:54]Write to MH i2c: E2 02 01 6E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B6 01 00 35 04 06 00 23 00 00 51 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 6E 1B 00 90 00 FD [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=10 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 02 02 05 85 F4 08 A9 7F [09:33:54]Write to MH i2c: E2 0D 00 6F 1B 80 0D 02 02 05 00 85 F4 08 A9 7F 00 00 B7 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 6F 1B 00 90 00 FE [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 03 02 [09:33:54]Write to MH i2c: E2 08 00 70 1B 80 0D 03 02 00 00 00 00 06 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0B 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 0B 00 70 1B 00 8B D8 56 15 21 80 9D 52 90 00 65 [09:33:54]RAPDU: 8B D8 56 15 21 80 9D 52 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_SignData done [09:33:54]FM_MakeSignedData done [09:33:54]CreateOFDProtocolMessage [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 11 00 00 [09:33:54]Write to MH i2c: E2 08 00 71 1B 80 11 00 00 00 00 00 00 06 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 17 00 71 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [09:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:33:54]wFMCommunicate OK [09:33:54]CreateOFDProtocolMessage done [09:33:54]OFDSenderStorePacket 112155 [09:33:54]StoreOFDPacket docnum=112155 [09:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C CD 07 01 B1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B6 01 00 35 04 06 00 23 85 F4 08 A9 7F 8B D8 56 15 21 80 9D 52 [09:33:54]CheckFolder [09:33:54]dirname=/storage/ofd_packets [09:33:54]CheckFolder done [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00112155 [09:33:54]NVStorageSaveData ofd_packets/00112155 [09:33:54]File name is /storage/ofd_packets/00112155 [09:33:54]Write 301 bytes [09:33:54]NVStorageSaveData done [09:33:54]OFDSenderStorePacket done [09:33:54]KKMCreateOFDPacket done [09:33:54]NVStorageSaveData kkm_last_timestamp [09:33:54]File name is /storage/kkm_last_timestamp [09:33:54]Write 4 bytes [09:33:54]NVStorageSaveData done [09:33:54]ExternCall_PrintAddStr [09:33:54]wPrintStart [09:33:54]Write to MH i2c: 01 00 00 72 1B 8D [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 FF 0F A2 [09:33:54]RasterBufferAndPrint [09:33:54]line Счет N : (1)320821 [09:33:54]line ИНН: 02508201610067 [09:33:54]line Контрольно-Кассовый Чек [09:33:54]line ПРОДАЖА [09:33:54]line ТРК (МРК, ГНК) : 11 [09:33:54]line Товар: 2710124130 [09:33:54]line Аи-92-К-5 [09:33:54]line 7.540 * 66.40 [09:33:54]line = 500.66 [09:33:54]line НДС 12% НСП 1% [09:33:54]line > о реализуемом товаре [09:33:54]line ОКРУГЛЕНИЕ: -0.66 [09:33:54]line ИТОГО: 500.00 [09:33:54]line Внесено: 500.00 [09:33:54]line СДАЧА: 0.00 [09:33:54]line НСП 1% : 4.43 [09:33:54]line НДС 12% : 53.17 [09:33:54]line Наличными: 500.00 [09:33:54]line Безнал.: 0.00 [09:33:54]line Место: АЗС № 65 "Партнер Нефть" [09:33:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:33:54]line СНО: Общий режим [09:33:54]line Чек 21 22.06.2024 09:34 [09:33:54]line Смена: 391 ФФД: 1.0 [09:33:54]line ЗНМ: 0300000198 [09:33:54]line РНМ: 0000000000092771 [09:33:54]line Версия ККМ: 001 [09:33:54]line ФМ: 0000000000875083 [09:33:54]line ФД: 112155 [09:33:54]line ФПД: 39058231830911 [09:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093412&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112155&fm=39058231830911&tin=02508201610067®Number=0000000000092771&sum=50000 [09:33:55]OFD Sender: Processing packet 112155 [packets to send 38, broken 37] [09:33:55]ProducePacketName [09:33:55]name=ofd_packets/00112155 [09:33:55]OFD Sender: To server: pG, [09:33:55]CommunicateWithHost lk.salyk.kg:30040 [09:33:55]ConnectInit lk.salyk.kg [09:33:55]written 0, free lines is 4095 [09:33:55]Connected sock=10 [09:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C CD 07 01 B1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B6 01 00 35 04 06 00 23 85 F4 08 A9 7F 8B D8 56 15 21 80 9D 52 [09:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C 4A 47 00 8D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B6 01 00 F4 03 04 00 A4 31 76 66 B6 04 01 00 00 E0 98 21 E8 14 35 F9 2F [09:33:55]CommunicateWithHost err = 0 [09:33:55]CheckOFDResponse [09:33:55]1017 (14) - 77093643461234 [09:33:55]1041 (16) - 0000000000875083 [09:33:55]1040 (4) - 112155 [09:33:55]1012 (4) - 22.06.2024 02:06 [09:33:55]1206 (1) - 0 [09:33:55]OFD Sender: Remove packet 112155 [09:33:55]ProducePacketName [09:33:55]name=ofd_packets/00112155 [09:33:55]NVStorageDeleteData [09:33:55]Write to MH i2c: 01 00 00 9D 1B B8 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 9D 1B 00 00 00 00 00 CC 0C 97 [09:33:55]RasterBufferAndPrint [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]line [09:33:55]written 0, free lines is 3282 [09:33:55]MH_Cut [09:33:55]Write to MH i2c: D1 01 00 A4 1B 01 91 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: D1 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: D1 01 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: D1 01 00 A4 1B 00 90 [09:33:55]Write to MH i2c: 01 00 00 A5 1B C0 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:56]OFD Sender: No OFD packet to send [09:33:56]*** Cut start [09:33:56]*** Partial cut [09:33:56]*** CUTSNS_PIN = 1 [09:33:56]*** CUTSNS_PIN = 0 [09:33:56]*** Brake cut motor [09:33:57]Read from MH i2c: 01 [09:33:57]MH_I2C_Read... [09:33:57]*** Stop cut motor [09:33:57]*** Cut end [09:33:57]Read from MH i2c: 01 07 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: 01 07 00 A5 1B 00 00 00 00 00 FF 0F D5 [09:33:57]process_action close_receipt done [09:33:57]requested_data is exist [09:33:57]produce_requested_data [09:33:57]requested_item fm.sn is exist - process it [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 11 00 00 [09:33:57]Write to MH i2c: E2 08 00 A6 1B 80 11 00 00 00 00 00 00 3B [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 17 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 17 00 A6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [09:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:33:57]wFMCommunicate OK [09:33:57]requested_item fd.num is exist - process it [09:33:57]SAM_PROTO_GetFieldsCounters [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 13 00 00 [09:33:57]Write to MH i2c: E2 08 00 A7 1B 80 13 00 00 00 00 00 00 3E [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 62 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 62 00 A7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [09:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:57]wFMCommunicate OK [09:33:57]SAM_PROTO_GetFieldsCounters done [09:33:57]requested_item shift.num is exist - process it [09:33:57]requested_item shift.opened is exist - process it [09:33:57]req_shift_opened [09:33:57]FM_GetShiftState [09:33:57]SAM_PROTO_GetShiftState [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 13 01 00 [09:33:57]Write to MH i2c: E2 08 00 A8 1B 80 13 01 00 00 00 00 00 40 [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 0E 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 0E 00 A8 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 75 [09:33:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:33:57]wFMCommunicate OK [09:33:57]SAM_PROTO_GetShiftState done [09:33:57]FM_GetShiftState done [09:33:57]req_shift_opened done [09:33:57]requested_item shift.open_date is exist - process it [09:33:57]req_shift_open_date [09:33:57]req_shift_open_date done [09:33:57]produce_requested_data done [09:33:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112155,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:33:57]process_action_free close_receipt [09:33:57]json_value_free [09:33:57]json_value_free done [09:33:57]process_json_proto returns [09:33:57]Send response to host [09:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112155,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:33:57]free response buf [09:33:57]execute_script done [09:33:57]execute_script returns [09:33:57]free content buf [09:33:57]Sock 9.Close socket [09:33:57]Sock 9.Thread stoped [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:26]accept exits with 7 [09:42:26]New connection [09:42:26]New thread 3066957156 created [09:42:26]Thread 3066813796 joined [09:42:26]Waiting for new connection... [09:42:26] Sock 7.Parse request [09:42:26]Sock 7.Check first char [09:42:26]Sock 7.First char is OK [09:42:26]request: POST /json_proto HTTP/1.0 [09:42:26]Method: POST [09:42:26]URL: /json_proto [09:42:26]Method is POST - this is cgi request [09:42:26]url: /json_proto [09:42:26]query_string will be loaded in cgi processing [09:42:26]execute_cgi json_proto POST (null) [09:42:26]execute_cgi path=json_proto method=POST [09:42:26]POST find Content-Length [09:42:26]Host: 172.17.59.68:8080 [09:42:26]Content-Length: 677 [09:42:26]Content-Type: application/json [09:42:26] [09:42:26]POST finish read [09:42:26]Found Content-Length = 677 [09:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320823", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:26]execute_script... [09:42: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)320823", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:26]POST & json_proto [09:42:26]process_json_proto [09:42:26]json parsed OK: [09:42:26]protocol is kg_v1.0 [09:42:26]action value=close_receipt [09:42:26]process_action close_receipt [09:42:26]cmd_close_receipt [09:42:26]MH_GetDate [09:42:26]Write to MH i2c: F0 00 00 A9 1B B3 [09:42:26]Write i2c OK [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: F0 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: F0 09 00 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: F0 09 00 A9 1B 00 95 9C 76 66 BC EC 60 65 36 [09:42:26]GetLastDocTimeStamp 1719048852 [09:42:26]current date 1719049365 [09:42:26]FM_GetShiftState [09:42:26]SAM_PROTO_GetShiftState [09:42:26]wFMCommunicate request_size=4 [09:42:26]MH_SAM_APDU [09:42:26]CAPDU: 80 13 01 00 [09:42:26]Write to MH i2c: E2 08 00 AA 1B 80 13 01 00 00 00 00 00 42 [09:42:26]Write i2c OK [09:42:26]MH_I2C_Read... [09:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:26]Read from MH i2c: E2 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 0E 00 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 0E 00 AA 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 77 [09:42:26]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:42:26]wFMCommunicate OK [09:42:26]SAM_PROTO_GetShiftState done [09:42:26]FM_GetShiftState done [09:42:26]opened in 1719020067 [09:42:26]opened+sec_in_day 1719106467 [09:42:26]quantity*price = 50065 [09:42:26]sum+1 = 50067 [09:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 22 22.06.2024 09:42 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112156 ФПД: 192316027328241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112156&fm=192316027328241&tin=02508201610067®Number=0000000000092771&sum=50000 [09:42:27]StoreToDocumentArchive [09:42:27]shift 391 fd 112156 [09:42:27]save to /storage/0391/doc_00112156 [09:42:27]save last doc name /storage/0391/doc_00112156 to /storage/kkm_last_doc_name [09:42:27]save OK [09:42:27]Clear old archive folders... [09:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:27]tlvbuf is B6EA9370 [09:42:27]SAM_PROTO_ClearQueue [09:42:27]wFMCommunicate request_size=4 [09:42:27]MH_SAM_APDU [09:42:27]CAPDU: 80 09 00 00 [09:42:27]Write to MH i2c: E2 08 00 B7 1B 80 09 00 00 00 00 00 00 44 [09:42:27]Write i2c OK [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: E2 [09:42:27]MH_I2C_Read... [09:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:27]Read from MH i2c: E2 03 00 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: E2 03 00 B7 1B 00 90 00 46 [09:42:27]RAPDU: 90 00 [09:42:27]wFMCommunicate OK [09:42:27]SAM_PROTO_ClearQueue done [09:42:27]KKMCreateOFDPacket [09:42:27]OFDProtocolAddRootSTLVToBuf [09:42:27]FM_MakeSignedData [09:42:27]FM_MakeSignedData [09:42:27]SAM_PROTO_SignData [09:42:27]wFMCommunicate request_size=4 [09:42:27]MH_SAM_APDU [09:42:27]CAPDU: 80 0D 01 02 [09:42:27]Write to MH i2c: E2 08 00 B8 1B 80 0D 01 02 00 00 00 00 4C [09:42:27]Write i2c OK [09:42:27]MH_I2C_Read... [09:42:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:27]Read from MH i2c: E2 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: E2 03 00 [09:42:27]MH_I2C_Read... [09:42:27]Read from MH i2c: E2 03 00 B8 1B 00 90 00 47 [09:42:27]RAPDU: 90 00 [09:42:27]wFMCommunicate OK [09:42:27]wFMCommunicate request_size=255 [09:42:27]MH_SAM_APDU [09:42: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 95 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B6 01 00 35 04 06 00 AE [09:42:27]Write to MH i2c: E2 02 01 B9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 95 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B6 01 00 35 04 06 00 AE 00 00 2C [09:42:27]Write i2c OK [09:42:27]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 B9 1B 00 90 00 48 [09:42:28]RAPDU: 90 00 [09:42:28]wFMCommunicate OK [09:42:28]wFMCommunicate request_size=10 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 0D 02 02 05 E9 10 7E 56 F1 [09:42:28]Write to MH i2c: E2 0D 00 BA 1B 80 0D 02 02 05 00 E9 10 7E 56 F1 00 00 17 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 03 00 BA 1B 00 90 00 49 [09:42:28]RAPDU: 90 00 [09:42:28]wFMCommunicate OK [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 0D 03 02 [09:42:28]Write to MH i2c: E2 08 00 BB 1B 80 0D 03 02 00 00 00 00 51 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0B 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0B 00 BB 1B 00 F2 69 B0 4C 9E 98 18 96 90 00 8D [09:42:28]RAPDU: F2 69 B0 4C 9E 98 18 96 90 00 [09:42:28]wFMCommunicate OK [09:42:28]SAM_PROTO_SignData done [09:42:28]FM_MakeSignedData done [09:42:28]CreateOFDProtocolMessage [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 11 00 00 [09:42:28]Write to MH i2c: E2 08 00 BC 1B 80 11 00 00 00 00 00 00 51 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 17 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 17 00 BC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [09:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:42:28]wFMCommunicate OK [09:42:28]CreateOFDProtocolMessage done [09:42:28]OFDSenderStorePacket 112156 [09:42:28]StoreOFDPacket docnum=112156 [09:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 86 07 01 47 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 95 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B6 01 00 35 04 06 00 AE E9 10 7E 56 F1 F2 69 B0 4C 9E 98 18 96 [09:42:28]CheckFolder [09:42:28]dirname=/storage/ofd_packets [09:42:28]CheckFolder done [09:42:28]ProducePacketName [09:42:28]name=ofd_packets/00112156 [09:42:28]NVStorageSaveData ofd_packets/00112156 [09:42:28]File name is /storage/ofd_packets/00112156 [09:42:28]Write 301 bytes [09:42:28]NVStorageSaveData done [09:42:28]OFDSenderStorePacket done [09:42:28]KKMCreateOFDPacket done [09:42:28]NVStorageSaveData kkm_last_timestamp [09:42:28]File name is /storage/kkm_last_timestamp [09:42:28]Write 4 bytes [09:42:28]NVStorageSaveData done [09:42:28]ExternCall_PrintAddStr [09:42:28]wPrintStart [09:42:28]Write to MH i2c: 01 00 00 BD 1B D8 [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: 01 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: 01 07 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: 01 07 00 BD 1B 00 00 00 00 00 FF 0F ED [09:42:28]RasterBufferAndPrint [09:42:28]line Счет N : (1)320823 [09:42:28]line ИНН: 02508201610067 [09:42:28]line Контрольно-Кассовый Чек [09:42:28]line ПРОДАЖА [09:42:28]line ТРК (МРК, ГНК) : 11 [09:42:28]line Товар: 2710124130 [09:42:28]line Аи-92-К-5 [09:42:28]line 7.540 * 66.40 [09:42:28]line = 500.66 [09:42:28]line НДС 12% НСП 1% [09:42:28]line > о реализуемом товаре [09:42:28]line ОКРУГЛЕНИЕ: -0.66 [09:42:28]line ИТОГО: 500.00 [09:42:28]line Внесено: 500.00 [09:42:28]line СДАЧА: 0.00 [09:42:28]line НСП 1% : 4.43 [09:42:28]line НДС 12% : 53.17 [09:42:28]line Наличными: 500.00 [09:42:28]line Безнал.: 0.00 [09:42:28]line Место: АЗС № 65 "Партнер Нефть" [09:42:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:42:28]line СНО: Общий режим [09:42:28]line Чек 22 22.06.2024 09:42 [09:42:28]line Смена: 391 ФФД: 1.0 [09:42:28]line ЗНМ: 0300000198 [09:42:28]line РНМ: 0000000000092771 [09:42:28]line Версия ККМ: 001 [09:42:28]line ФМ: 0000000000875083 [09:42:28]line ФД: 112156 [09:42:28]line ФПД: 192316027328241 [09:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112156&fm=192316027328241&tin=02508201610067®Number=0000000000092771&sum=50000 [09:42:28]OFD Sender: Processing packet 112156 [packets to send 38, broken 37] [09:42:28]ProducePacketName [09:42:28]name=ofd_packets/00112156 [09:42:28]OFD Sender: To server: pG, [09:42:28]CommunicateWithHost lk.salyk.kg:30040 [09:42:28]ConnectInit lk.salyk.kg [09:42:28]written 0, free lines is 4095 [09:42:28]Connected sock=10 [09:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 86 07 01 47 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 95 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B6 01 00 35 04 06 00 AE E9 10 7E 56 F1 F2 69 B0 4C 9E 98 18 96 [09:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A 77 47 00 F3 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B6 01 00 F4 03 04 00 A5 33 76 66 B6 04 01 00 00 3E C9 36 2A B9 FB 1F D6 [09:42:28]CommunicateWithHost err = 0 [09:42:28]CheckOFDResponse [09:42:28]1017 (14) - 77093643461234 [09:42:28]1041 (16) - 0000000000875083 [09:42:28]1040 (4) - 112156 [09:42:28]1012 (4) - 22.06.2024 02:15 [09:42:28]1206 (1) - 0 [09:42:28]OFD Sender: Remove packet 112156 [09:42:28]ProducePacketName [09:42:28]name=ofd_packets/00112156 [09:42:28]NVStorageDeleteData [09:42:29]Write to MH i2c: 01 00 00 E8 1B 03 [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 E8 1B 00 00 00 00 00 C7 0C DD [09:42:29]RasterBufferAndPrint [09:42:29]line [09:42:29]line [09:42:29]line [09:42:29]line [09:42:29]line [09:42:29]written 0, free lines is 3277 [09:42:29]MH_Cut [09:42:29]Write to MH i2c: D1 01 00 EF 1B 01 DC [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: D1 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: D1 01 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: D1 01 00 EF 1B 00 DB [09:42:29]Write to MH i2c: 01 00 00 F0 1B 0B [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]OFD Sender: No OFD packet to send [09:42:29]*** Cut start [09:42:29]*** Partial cut [09:42:29]*** CUTSNS_PIN = 1 [09:42:29]*** CUTSNS_PIN = 0 [09:42:30]*** Brake cut motor [09:42:30]Read from MH i2c: 01 [09:42:30]MH_I2C_Read... [09:42:30]*** Stop cut motor [09:42:30]*** Cut end [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 F0 1B 00 00 00 00 00 FF 0F 20 [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 F1 1B 80 11 00 00 00 00 00 00 86 [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 F1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [09:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 F2 1B 80 13 00 00 00 00 00 00 89 [09:42:30]Write i2c OK [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 [09:42:30]MH_I2C_Read... [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 F2 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09: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 F3 1B 80 13 01 00 00 00 00 00 8B [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 F3 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C0 [09:42:30]RAPDU: 09 00 01 23 2A 76 66 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":"0000000000875083","fd.num":112156,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [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":"0000000000875083","fd.num":112156,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [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 7.Close socket [09:42:30]Sock 7.Thread stoped [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:11]accept exits with 9 [09:43:11]New connection [09:43:11]New thread 3066813796 created [09:43:11]Thread 3066957156 joined [09:43:11]Waiting for new connection... [09:43:11] Sock 9.Parse request [09:43:11]Sock 9.Check first char [09:43:11]Sock 9.First char is OK [09:43:11]request: POST /json_proto HTTP/1.0 [09:43:11]Method: POST [09:43:11]URL: /json_proto [09:43:11]Method is POST - this is cgi request [09:43:11]url: /json_proto [09:43:11]query_string will be loaded in cgi processing [09:43:11]execute_cgi json_proto POST (null) [09:43:11]execute_cgi path=json_proto method=POST [09:43:11]POST find Content-Length [09:43:11]Host: 172.17.59.68:8080 [09:43:11]Content-Length: 679 [09:43:11]Content-Type: application/json [09:43:11] [09:43:11]POST finish read [09:43:11]Found Content-Length = 679 [09:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 32.930, "sum" : 2400.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:11]execute_script... [09:43: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)320822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 32.930, "sum" : 2400.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:11]POST & json_proto [09:43:11]process_json_proto [09:43:11]json parsed OK: [09:43:11]protocol is kg_v1.0 [09:43:11]action value=close_receipt [09:43:11]process_action close_receipt [09:43:11]cmd_close_receipt [09:43:11]MH_GetDate [09:43:11]Write to MH i2c: F0 00 00 F4 1B FE [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: F0 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: F0 09 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: F0 09 00 F4 1B 00 C2 9C 76 66 BC EC 60 65 AE [09:43:11]GetLastDocTimeStamp 1719049365 [09:43:11]current date 1719049410 [09:43:11]FM_GetShiftState [09:43:11]SAM_PROTO_GetShiftState [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 13 01 00 [09:43:11]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 0E 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C2 [09:43:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:43:11]wFMCommunicate OK [09:43:11]SAM_PROTO_GetShiftState done [09:43:11]FM_GetShiftState done [09:43:11]opened in 1719020067 [09:43:11]opened+sec_in_day 1719106467 [09:43:11]quantity*price = 240059 [09:43:11]sum+1 = 240061 [09:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.93 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 23 22.06.2024 09:43 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112157 ФПД: 150123089218931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094330&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112157&fm=150123089218931&tin=02508201610067®Number=0000000000092771&sum=240000 [09:43:12]StoreToDocumentArchive [09:43:12]shift 391 fd 112157 [09:43:12]save to /storage/0391/doc_00112157 [09:43:12]save last doc name /storage/0391/doc_00112157 to /storage/kkm_last_doc_name [09:43:12]save OK [09:43:12]Clear old archive folders... [09:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:12]tlvbuf is 01121C20 [09:43:12]SAM_PROTO_ClearQueue [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 09 00 00 [09:43:12]Write to MH i2c: E2 08 00 02 1C 80 09 00 00 00 00 00 00 90 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 03 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 03 00 02 1C 00 90 00 92 [09:43:12]RAPDU: 90 00 [09:43:12]wFMCommunicate OK [09:43:12]SAM_PROTO_ClearQueue done [09:43:12]KKMCreateOFDPacket [09:43:12]OFDProtocolAddRootSTLVToBuf [09:43:12]FM_MakeSignedData [09:43:12]FM_MakeSignedData [09:43:12]SAM_PROTO_SignData [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 0D 01 02 [09:43:12]Write to MH i2c: E2 08 00 03 1C 80 0D 01 02 00 00 00 00 98 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 03 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 03 00 03 1C 00 90 00 93 [09:43:12]RAPDU: 90 00 [09:43:12]wFMCommunicate OK [09:43:12]wFMCommunicate request_size=255 [09:43:12]MH_SAM_APDU [09:43: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 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B6 01 00 35 04 06 00 88 89 41 67 [09:43:13]Write to MH i2c: E2 02 01 04 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 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B6 01 00 35 04 06 00 88 89 41 67 00 00 1F [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:13]Read from MH i2c: E2 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 03 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [09:43:13]RAPDU: 90 00 [09:43:13]wFMCommunicate OK [09:43:13]wFMCommunicate request_size=7 [09:43:13]MH_SAM_APDU [09:43:13]CAPDU: 80 0D 02 02 02 CD 73 [09:43:13]Write to MH i2c: E2 0A 00 05 1C 80 0D 02 02 02 00 CD 73 00 00 DF [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:13]Read from MH i2c: E2 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 03 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [09:43:13]RAPDU: 90 00 [09:43:13]wFMCommunicate OK [09:43:13]wFMCommunicate request_size=4 [09:43:13]MH_SAM_APDU [09:43:13]CAPDU: 80 0D 03 02 [09:43:13]Write to MH i2c: E2 08 00 06 1C 80 0D 03 02 00 00 00 00 9D [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:13]Read from MH i2c: E2 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 0B 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 0B 00 06 1C 00 04 8F 0B 2C B8 14 46 02 90 00 7C [09:43:13]RAPDU: 04 8F 0B 2C B8 14 46 02 90 00 [09:43:13]wFMCommunicate OK [09:43:13]SAM_PROTO_SignData done [09:43:13]FM_MakeSignedData done [09:43:13]CreateOFDProtocolMessage [09:43:13]wFMCommunicate request_size=4 [09:43:13]MH_SAM_APDU [09:43:13]CAPDU: 80 11 00 00 [09:43:13]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:13]Read from MH i2c: E2 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 17 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [09:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:43:13]wFMCommunicate OK [09:43:13]CreateOFDProtocolMessage done [09:43:13]OFDSenderStorePacket 112157 [09:43:13]StoreOFDPacket docnum=112157 [09:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D1 3E 04 01 94 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B6 01 00 35 04 06 00 88 89 41 67 CD 73 04 8F 0B 2C B8 14 46 02 [09:43:13]CheckFolder [09:43:13]dirname=/storage/ofd_packets [09:43:13]CheckFolder done [09:43:13]ProducePacketName [09:43:13]name=ofd_packets/00112157 [09:43:13]NVStorageSaveData ofd_packets/00112157 [09:43:13]File name is /storage/ofd_packets/00112157 [09:43:13]Write 298 bytes [09:43:13]NVStorageSaveData done [09:43:13]OFDSenderStorePacket done [09:43:13]KKMCreateOFDPacket done [09:43:13]NVStorageSaveData kkm_last_timestamp [09:43:13]File name is /storage/kkm_last_timestamp [09:43:13]Write 4 bytes [09:43:13]NVStorageSaveData done [09:43:13]ExternCall_PrintAddStr [09:43:13]wPrintStart [09:43:13]Write to MH i2c: 01 00 00 08 1C 24 [09:43:13]Write i2c OK [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: 01 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: 01 07 00 [09:43:13]MH_I2C_Read... [09:43:13]Read from MH i2c: 01 07 00 08 1C 00 00 00 00 00 FF 0F 39 [09:43:13]RasterBufferAndPrint [09:43:13]line Счет N : (1)320822 [09:43:13]line ИНН: 02508201610067 [09:43:13]line Контрольно-Кассовый Чек [09:43:13]line ПРОДАЖА [09:43:13]line ТРК (МРК, ГНК) : 22 [09:43:13]line Товар: 2710194210 [09:43:13]line ДТ-К-5 [09:43:13]line 32.930 * 72.90 [09:43:13]line = 2400.60 [09:43:13]line НДС 12% НСП 1% [09:43:13]line > о реализуемом товаре [09:43:13]line ОКРУГЛЕНИЕ: -0.60 [09:43:13]line ИТОГО: 2400.00 [09:43:13]line Внесено: 2400.00 [09:43:13]line СДАЧА: 0.00 [09:43:13]line НСП 1% : 21.24 [09:43:13]line НДС 12% : 254.93 [09:43:13]line Наличными: 2400.00 [09:43:13]line Безнал.: 0.00 [09:43:13]line Место: АЗС № 65 "Партнер Нефть" [09:43:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:43:13]line СНО: Общий режим [09:43:13]line Чек 23 22.06.2024 09:43 [09:43:13]line Смена: 391 ФФД: 1.0 [09:43:13]line ЗНМ: 0300000198 [09:43:13]line РНМ: 0000000000092771 [09:43:13]line Версия ККМ: 001 [09:43:13]line ФМ: 0000000000875083 [09:43:13]line ФД: 112157 [09:43:13]line ФПД: 150123089218931 [09:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T094330&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112157&fm=150123089218931&tin=02508201610067®Number=0000000000092771&sum=240000 [09:43:13]OFD Sender: Processing packet 112157 [packets to send 38, broken 37] [09:43:13]ProducePacketName [09:43:13]name=ofd_packets/00112157 [09:43:13]OFD Sender: To server: pG, [09:43:13]CommunicateWithHost lk.salyk.kg:30040 [09:43:13]ConnectInit lk.salyk.kg [09:43:13]written 0, free lines is 4095 [09:43:13]Connected sock=10 [09:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D1 3E 04 01 94 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BC A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C2 9C 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B6 01 00 35 04 06 00 88 89 41 67 CD 73 04 8F 0B 2C B8 14 46 02 [09:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 19 47 00 96 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B6 01 00 F4 03 04 00 D2 33 76 66 B6 04 01 00 00 50 F9 78 2B 2F 8E 29 C4 [09:43:14]CommunicateWithHost err = 0 [09:43:14]CheckOFDResponse [09:43:14]1017 (14) - 77093643461234 [09:43:14]1041 (16) - 0000000000875083 [09:43:14]1040 (4) - 112157 [09:43:14]1012 (4) - 22.06.2024 02:15 [09:43:14]1206 (1) - 0 [09:43:14]OFD Sender: Remove packet 112157 [09:43:14]ProducePacketName [09:43:14]name=ofd_packets/00112157 [09:43:14]NVStorageDeleteData [09:43:14]Write to MH i2c: 01 00 00 33 1C 4F [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: 01 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: 01 07 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: 01 07 00 33 1C 00 00 00 00 00 DD 0C 3F [09:43:14]RasterBufferAndPrint [09:43:14]line [09:43:14]line [09:43:14]line [09:43:14]line [09:43:14]line [09:43:14]written 0, free lines is 3299 [09:43:14]MH_Cut [09:43:14]Write to MH i2c: D1 01 00 3A 1C 01 28 [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: D1 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: D1 01 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: D1 01 00 3A 1C 00 27 [09:43:14]Write to MH i2c: 01 00 00 3B 1C 57 [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]OFD Sender: No OFD packet to send [09:43:14]*** Cut start [09:43:14]*** Partial cut [09:43:14]*** CUTSNS_PIN = 1 [09:43:15]*** CUTSNS_PIN = 0 [09:43:15]*** Brake cut motor [09:43:15]Read from MH i2c: 01 [09:43:15]MH_I2C_Read... [09:43:15]*** Stop cut motor [09:43:15]*** Cut end [09:43:15]Read from MH i2c: 01 07 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: 01 07 00 3B 1C 00 00 00 00 00 FF 0F 6C [09:43:15]process_action close_receipt done [09:43:15]requested_data is exist [09:43:15]produce_requested_data [09:43:15]requested_item fm.sn is exist - process it [09:43:15]wFMCommunicate request_size=4 [09:43:15]MH_SAM_APDU [09:43:15]CAPDU: 80 11 00 00 [09:43:15]Write to MH i2c: E2 08 00 3C 1C 80 11 00 00 00 00 00 00 D2 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 [09:43:15]MH_I2C_Read... [09:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:15]Read from MH i2c: E2 17 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 17 00 3C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [09:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:43:15]wFMCommunicate OK [09:43:15]requested_item fd.num is exist - process it [09:43:15]SAM_PROTO_GetFieldsCounters [09:43:15]wFMCommunicate request_size=4 [09:43:15]MH_SAM_APDU [09:43:15]CAPDU: 80 13 00 00 [09:43:15]Write to MH i2c: E2 08 00 3D 1C 80 13 00 00 00 00 00 00 D5 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:15]Read from MH i2c: E2 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 62 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 62 00 3D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:15]wFMCommunicate OK [09:43:15]SAM_PROTO_GetFieldsCounters done [09:43:15]requested_item shift.num is exist - process it [09:43:15]requested_item shift.opened is exist - process it [09:43:15]req_shift_opened [09:43:15]FM_GetShiftState [09:43:15]SAM_PROTO_GetShiftState [09:43:15]wFMCommunicate request_size=4 [09:43:15]MH_SAM_APDU [09:43:15]CAPDU: 80 13 01 00 [09:43:15]Write to MH i2c: E2 08 00 3E 1C 80 13 01 00 00 00 00 00 D7 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:15]Read from MH i2c: E2 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 0E 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 0E 00 3E 1C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0C [09:43:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:43:15]wFMCommunicate OK [09:43:15]SAM_PROTO_GetShiftState done [09:43:15]FM_GetShiftState done [09:43:15]req_shift_opened done [09:43:15]requested_item shift.open_date is exist - process it [09:43:15]req_shift_open_date [09:43:15]req_shift_open_date done [09:43:15]produce_requested_data done [09:43:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112157,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:43:15]process_action_free close_receipt [09:43:15]json_value_free [09:43:15]json_value_free done [09:43:15]process_json_proto returns [09:43:15]Send response to host [09:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112157,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:43:15]free response buf [09:43:15]execute_script done [09:43:15]execute_script returns [09:43:15]free content buf [09:43:15]Sock 9.Close socket [09:43:15]Sock 9.Thread stoped [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:56:56]accept exits with 7 [09:56:56]New connection [09:56:56]New thread 3066957156 created [09:56:56]Thread 3066813796 joined [09:56:56]Waiting for new connection... [09:56:56] Sock 7.Parse request [09:56:56]Sock 7.Check first char [09:56:56]Sock 7.First char is OK [09:56:56]request: POST /json_proto HTTP/1.0 [09:56:56]Method: POST [09:56:56]URL: /json_proto [09:56:56]Method is POST - this is cgi request [09:56:56]url: /json_proto [09:56:56]query_string will be loaded in cgi processing [09:56:56]execute_cgi json_proto POST (null) [09:56:56]execute_cgi path=json_proto method=POST [09:56:56]POST find Content-Length [09:56:56]Host: 172.17.59.68:8080 [09:56:56]Content-Length: 808 [09:56:56]Content-Type: application/json [09:56:56] [09:56:56]POST finish read [09:56:56]Found Content-Length = 808 [09:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320824", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:56]execute_script... [09:56: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)320824", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:56]POST & json_proto [09:56:56]process_json_proto [09:56:56]json parsed OK: [09:56:56]protocol is kg_v1.0 [09:56:56]action value=close_receipt [09:56:56]process_action close_receipt [09:56:56]cmd_close_receipt [09:56:56]MH_GetDate [09:56:56]Write to MH i2c: F0 00 00 3F 1C 4A [09:56:56]Write i2c OK [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: F0 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: F0 09 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: F0 09 00 3F 1C 00 FB 9F 76 66 BC EC 60 65 36 [09:56:56]GetLastDocTimeStamp 1719049410 [09:56:56]current date 1719050235 [09:56:56]FM_GetShiftState [09:56:56]SAM_PROTO_GetShiftState [09:56:56]wFMCommunicate request_size=4 [09:56:56]MH_SAM_APDU [09:56:56]CAPDU: 80 13 01 00 [09:56:56]Write to MH i2c: E2 08 00 40 1C 80 13 01 00 00 00 00 00 D9 [09:56:56]Write i2c OK [09:56:56]MH_I2C_Read... [09:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:56]Read from MH i2c: E2 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 0E 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 0E 00 40 1C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0E [09:56:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:56:56]wFMCommunicate OK [09:56:56]SAM_PROTO_GetShiftState done [09:56:56]FM_GetShiftState done [09:56:56]opened in 1719020067 [09:56:56]opened+sec_in_day 1719106467 [09:56:56]quantity*price = 200063 [09:56:56]sum+1 = 200064 [09:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 24 22.06.2024 09:57 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112158 ФПД: 49600620230351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095715&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112158&fm=49600620230351&tin=02508201610067®Number=0000000000092771&sum=200063 [09:56:57]StoreToDocumentArchive [09:56:57]shift 391 fd 112158 [09:56:57]save to /storage/0391/doc_00112158 [09:56:57]save last doc name /storage/0391/doc_00112158 to /storage/kkm_last_doc_name [09:56:57]save OK [09:56:57]Clear old archive folders... [09:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:57]tlvbuf is 01121D00 [09:56:57]SAM_PROTO_ClearQueue [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 09 00 00 [09:56:57]Write to MH i2c: E2 08 00 4D 1C 80 09 00 00 00 00 00 00 DB [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 4D 1C 00 90 00 DD [09:56:57]RAPDU: 90 00 [09:56:57]wFMCommunicate OK [09:56:57]SAM_PROTO_ClearQueue done [09:56:57]KKMCreateOFDPacket [09:56:57]OFDProtocolAddRootSTLVToBuf [09:56:57]FM_MakeSignedData [09:56:57]FM_MakeSignedData [09:56:57]SAM_PROTO_SignData [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 0D 01 02 [09:56:57]Write to MH i2c: E2 08 00 4E 1C 80 0D 01 02 00 00 00 00 E3 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 4E 1C 00 90 00 DE [09:56:57]RAPDU: 90 00 [09:56:57]wFMCommunicate OK [09:56:57]wFMCommunicate request_size=255 [09:56:57]MH_SAM_APDU [09:56: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FB 9F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B6 01 00 35 04 06 00 2D [09:56:57]Write to MH i2c: E2 02 01 4F 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FB 9F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B6 01 00 35 04 06 00 2D 00 00 22 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 4F 1C 00 90 00 DF [09:56:57]RAPDU: 90 00 [09:56:57]wFMCommunicate OK [09:56:57]wFMCommunicate request_size=10 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 0D 02 02 05 1C 8B 59 76 CF [09:56:57]Write to MH i2c: E2 0D 00 50 1C 80 0D 02 02 05 00 1C 8B 59 76 CF 00 00 35 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 03 00 50 1C 00 90 00 E0 [09:56:57]RAPDU: 90 00 [09:56:57]wFMCommunicate OK [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 0D 03 02 [09:56:57]Write to MH i2c: E2 08 00 51 1C 80 0D 03 02 00 00 00 00 E8 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 0B 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 0B 00 51 1C 00 A2 70 85 49 FC 57 95 DB 90 00 8C [09:56:57]RAPDU: A2 70 85 49 FC 57 95 DB 90 00 [09:56:57]wFMCommunicate OK [09:56:57]SAM_PROTO_SignData done [09:56:57]FM_MakeSignedData done [09:56:57]CreateOFDProtocolMessage [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 11 00 00 [09:56:57]Write to MH i2c: E2 08 00 52 1C 80 11 00 00 00 00 00 00 E8 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 17 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 17 00 52 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [09:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:56:57]wFMCommunicate OK [09:56:57]CreateOFDProtocolMessage done [09:56:57]OFDSenderStorePacket 112158 [09:56:57]StoreOFDPacket docnum=112158 [09:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 FF 07 01 1D 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FB 9F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B6 01 00 35 04 06 00 2D 1C 8B 59 76 CF A2 70 85 49 FC 57 95 DB [09:56:57]CheckFolder [09:56:57]dirname=/storage/ofd_packets [09:56:57]CheckFolder done [09:56:57]ProducePacketName [09:56:57]name=ofd_packets/00112158 [09:56:57]NVStorageSaveData ofd_packets/00112158 [09:56:57]File name is /storage/ofd_packets/00112158 [09:56:57]Write 301 bytes [09:56:57]NVStorageSaveData done [09:56:57]OFDSenderStorePacket done [09:56:57]KKMCreateOFDPacket done [09:56:57]NVStorageSaveData kkm_last_timestamp [09:56:57]File name is /storage/kkm_last_timestamp [09:56:57]Write 4 bytes [09:56:57]NVStorageSaveData done [09:56:57]ExternCall_PrintAddStr [09:56:57]wPrintStart [09:56:57]Write to MH i2c: 01 00 00 53 1C 6F [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: 01 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: 01 07 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: 01 07 00 53 1C 00 00 00 00 00 FF 0F 84 [09:56:57]RasterBufferAndPrint [09:56:57]line Счет N : (1)320824 [09:56:57]line ИНН: 02508201610067 [09:56:57]line Контрольно-Кассовый Чек [09:56:57]line ПРОДАЖА [09:56:57]line ТРК (МРК, ГНК) : 11 [09:56:57]line Товар: 2710124130 [09:56:57]line Аи-92-К-5 [09:56:57]line 30.130 * 66.40 [09:56:57]line = 2000.63 [09:56:57]line НДС 12% НСП 1% [09:56:57]line > о реализуемом товаре [09:56:57]line ИТОГО: 2000.63 [09:56:57]line НСП 1% : 17.70 [09:56:57]line НДС 12% : 212.46 [09:56:57]line Наличными: 0.00 [09:56:57]line Безнал.: 2000.63 [09:56:57]line Место: АЗС № 65 "Партнер Нефть" [09:56:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:56:57]line СНО: Общий режим [09:56:57]line Чек 24 22.06.2024 09:57 [09:56:57]line Смена: 391 ФФД: 1.0 [09:56:57]line ЗНМ: 0300000198 [09:56:57]line РНМ: 0000000000092771 [09:56:57]line Версия ККМ: 001 [09:56:57]line Платежная система: О! деньги [09:56:57]line ФМ: 0000000000875083 [09:56:57]line ФД: 112158 [09:56:57]line ФПД: 49600620230351 [09:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095715&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112158&fm=49600620230351&tin=02508201610067®Number=0000000000092771&sum=200063 [09:56:58]OFD Sender: Processing packet 112158 [packets to send 38, broken 37] [09:56:58]ProducePacketName [09:56:58]name=ofd_packets/00112158 [09:56:58]OFD Sender: To server: pG, [09:56:58]CommunicateWithHost lk.salyk.kg:30040 [09:56:58]ConnectInit lk.salyk.kg [09:56:58]written 0, free lines is 4095 [09:56:58]Connected sock=10 [09:56:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 FF 07 01 1D 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FB 9F 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B6 01 00 35 04 06 00 2D 1C 8B 59 76 CF A2 70 85 49 FC 57 95 DB [09:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 01 35 47 00 F4 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B6 01 00 F4 03 04 00 0B 37 76 66 B6 04 01 00 00 52 62 62 91 1D 1B 9F 05 [09:56:58]CommunicateWithHost err = 0 [09:56:58]CheckOFDResponse [09:56:58]1017 (14) - 77093643461234 [09:56:58]1041 (16) - 0000000000875083 [09:56:58]1040 (4) - 112158 [09:56:58]1012 (4) - 22.06.2024 02:29 [09:56:58]1206 (1) - 0 [09:56:58]OFD Sender: Remove packet 112158 [09:56:58]ProducePacketName [09:56:58]name=ofd_packets/00112158 [09:56:58]NVStorageDeleteData [09:56:58]Write to MH i2c: 01 00 00 7D 1C 99 [09:56:58]Write i2c OK [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: 01 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: 01 07 00 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 DF 0C 8B [09:56:58]RasterBufferAndPrint [09:56:58]line [09:56:58]line [09:56:58]line [09:56:58]line [09:56:58]line [09:56:58]written 0, free lines is 3301 [09:56:58]MH_Cut [09:56:58]Write to MH i2c: D1 01 00 84 1C 01 72 [09:56:58]Write i2c OK [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: D1 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: D1 01 00 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: D1 01 00 84 1C 00 71 [09:56:58]Write to MH i2c: 01 00 00 85 1C A1 [09:56:58]Write i2c OK [09:56:58]MH_I2C_Read... [09:56:58]OFD Sender: No OFD packet to send [09:56:59]*** Cut start [09:56:59]*** Partial cut [09:56:59]*** CUTSNS_PIN = 1 [09:56:59]*** CUTSNS_PIN = 0 [09:56:59]*** Brake cut motor [09:56:59]Read from MH i2c: 01 [09:56:59]MH_I2C_Read... [09:56:59]*** Stop cut motor [09:56:59]*** Cut end [09:56:59]Read from MH i2c: 01 07 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 FF 0F B6 [09:56:59]process_action close_receipt done [09:56:59]requested_data is exist [09:56:59]produce_requested_data [09:56:59]requested_item fm.sn is exist - process it [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 11 00 00 [09:56:59]Write to MH i2c: E2 08 00 86 1C 80 11 00 00 00 00 00 00 1C [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 17 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 17 00 86 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [09:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:56:59]wFMCommunicate OK [09:56:59]requested_item fd.num is exist - process it [09:56:59]SAM_PROTO_GetFieldsCounters [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 13 00 00 [09:56:59]Write to MH i2c: E2 08 00 87 1C 80 13 00 00 00 00 00 00 1F [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:00]Read from MH i2c: E2 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 62 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 62 00 87 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:00]wFMCommunicate OK [09:57:00]SAM_PROTO_GetFieldsCounters done [09:57:00]requested_item shift.num is exist - process it [09:57:00]requested_item shift.opened is exist - process it [09:57:00]req_shift_opened [09:57:00]FM_GetShiftState [09:57:00]SAM_PROTO_GetShiftState [09:57:00]wFMCommunicate request_size=4 [09:57:00]MH_SAM_APDU [09:57:00]CAPDU: 80 13 01 00 [09:57:00]Write to MH i2c: E2 08 00 88 1C 80 13 01 00 00 00 00 00 21 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 [09:57:00]MH_I2C_Read... [09:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:00]Read from MH i2c: E2 0E 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 0E 00 88 1C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 56 [09:57:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:57:00]wFMCommunicate OK [09:57:00]SAM_PROTO_GetShiftState done [09:57:00]FM_GetShiftState done [09:57:00]req_shift_opened done [09:57:00]requested_item shift.open_date is exist - process it [09:57:00]req_shift_open_date [09:57:00]req_shift_open_date done [09:57:00]produce_requested_data done [09:57:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112158,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:57:00]process_action_free close_receipt [09:57:00]json_value_free [09:57:00]json_value_free done [09:57:00]process_json_proto returns [09:57:00]Send response to host [09:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112158,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:57:00]free response buf [09:57:00]execute_script done [09:57:00]execute_script returns [09:57:00]free content buf [09:57:00]Sock 7.Close socket [09:57:00]Sock 7.Thread stoped [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:41]accept exits with 9 [09:59:41]New connection [09:59:41]New thread 3066813796 created [09:59:41]Thread 3066957156 joined [09:59:41]Waiting for new connection... [09:59:41] Sock 9.Parse request [09:59:41]Sock 9.Check first char [09:59:41]Sock 9.First char is OK [09:59:41]request: POST /json_proto HTTP/1.0 [09:59:41]Method: POST [09:59:41]URL: /json_proto [09:59:41]Method is POST - this is cgi request [09:59:41]url: /json_proto [09:59:41]query_string will be loaded in cgi processing [09:59:41]execute_cgi json_proto POST (null) [09:59:41]execute_cgi path=json_proto method=POST [09:59:41]POST find Content-Length [09:59:41]Host: 172.17.59.68:8080 [09:59:41]Content-Length: 682 [09:59:41]Content-Type: application/json [09:59:41] [09:59:41]POST finish read [09:59:41]Found Content-Length = 682 [09:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320825", "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.40, "quantity" : 18.080, "sum" : 1200.51, "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:59:41]execute_script... [09:59: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)320825", "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.40, "quantity" : 18.080, "sum" : 1200.51, "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:59:41]POST & json_proto [09:59:41]process_json_proto [09:59:41]json parsed OK: [09:59:41]protocol is kg_v1.0 [09:59:41]action value=close_receipt [09:59:41]process_action close_receipt [09:59:41]cmd_close_receipt [09:59:41]MH_GetDate [09:59:41]Write to MH i2c: F0 00 00 89 1C 94 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 09 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: F0 09 00 89 1C 00 A1 A0 76 66 BC EC 60 65 27 [09:59:41]GetLastDocTimeStamp 1719050235 [09:59:41]current date 1719050401 [09:59:41]FM_GetShiftState [09:59:41]SAM_PROTO_GetShiftState [09:59:41]wFMCommunicate request_size=4 [09:59:41]MH_SAM_APDU [09:59:41]CAPDU: 80 13 01 00 [09:59:41]Write to MH i2c: E2 08 00 8A 1C 80 13 01 00 00 00 00 00 23 [09:59:41]Write i2c OK [09:59:41]MH_I2C_Read... [09:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:41]Read from MH i2c: E2 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 0E 00 [09:59:41]MH_I2C_Read... [09:59:41]Read from MH i2c: E2 0E 00 8A 1C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 58 [09:59:41]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:59:41]wFMCommunicate OK [09:59:41]SAM_PROTO_GetShiftState done [09:59:41]FM_GetShiftState done [09:59:41]opened in 1719020067 [09:59:41]opened+sec_in_day 1719106467 [09:59:41]quantity*price = 120051 [09:59:41]sum+1 = 120052 [09:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 25 22.06.2024 10:00 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112159 ФПД: 180429775870506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100001&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112159&fm=180429775870506&tin=02508201610067®Number=0000000000092771&sum=120000 [09:59:42]StoreToDocumentArchive [09:59:42]shift 391 fd 112159 [09:59:42]save to /storage/0391/doc_00112159 [09:59:42]save last doc name /storage/0391/doc_00112159 to /storage/kkm_last_doc_name [09:59:42]save OK [09:59:42]Clear old archive folders... [09:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:42]tlvbuf is 0111E990 [09:59:42]SAM_PROTO_ClearQueue [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 09 00 00 [09:59:42]Write to MH i2c: E2 08 00 97 1C 80 09 00 00 00 00 00 00 25 [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:42]Read from MH i2c: E2 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 [09:59:42]MH_I2C_Read... [09:59:42]Read from MH i2c: E2 03 00 97 1C 00 90 00 27 [09:59:42]RAPDU: 90 00 [09:59:42]wFMCommunicate OK [09:59:42]SAM_PROTO_ClearQueue done [09:59:42]KKMCreateOFDPacket [09:59:42]OFDProtocolAddRootSTLVToBuf [09:59:42]FM_MakeSignedData [09:59:42]FM_MakeSignedData [09:59:42]SAM_PROTO_SignData [09:59:42]wFMCommunicate request_size=4 [09:59:42]MH_SAM_APDU [09:59:42]CAPDU: 80 0D 01 02 [09:59:42]Write to MH i2c: E2 08 00 98 1C 80 0D 01 02 00 00 00 00 2D [09:59:42]Write i2c OK [09:59:42]MH_I2C_Read... [09:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 03 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 03 00 98 1C 00 90 00 28 [09:59:43]RAPDU: 90 00 [09:59:43]wFMCommunicate OK [09:59:43]wFMCommunicate request_size=255 [09:59:43]MH_SAM_APDU [09:59: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 19 00 00 00 F4 03 04 00 A1 A0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B6 01 00 35 04 06 00 A4 [09:59:43]Write to MH i2c: E2 02 01 99 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 19 00 00 00 F4 03 04 00 A1 A0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B6 01 00 35 04 06 00 A4 00 00 78 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 03 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 03 00 99 1C 00 90 00 29 [09:59:43]RAPDU: 90 00 [09:59:43]wFMCommunicate OK [09:59:43]wFMCommunicate request_size=10 [09:59:43]MH_SAM_APDU [09:59:43]CAPDU: 80 0D 02 02 05 19 94 B2 9A 2A [09:59:43]Write to MH i2c: E2 0D 00 9A 1C 80 0D 02 02 05 00 19 94 B2 9A 2A 00 00 5D [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 03 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 03 00 9A 1C 00 90 00 2A [09:59:43]RAPDU: 90 00 [09:59:43]wFMCommunicate OK [09:59:43]wFMCommunicate request_size=4 [09:59:43]MH_SAM_APDU [09:59:43]CAPDU: 80 0D 03 02 [09:59:43]Write to MH i2c: E2 08 00 9B 1C 80 0D 03 02 00 00 00 00 32 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 0B 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 0B 00 9B 1C 00 C1 B5 C7 FB 7C DA 66 5B 90 00 82 [09:59:43]RAPDU: C1 B5 C7 FB 7C DA 66 5B 90 00 [09:59:43]wFMCommunicate OK [09:59:43]SAM_PROTO_SignData done [09:59:43]FM_MakeSignedData done [09:59:43]CreateOFDProtocolMessage [09:59:43]wFMCommunicate request_size=4 [09:59:43]MH_SAM_APDU [09:59:43]CAPDU: 80 11 00 00 [09:59:43]Write to MH i2c: E2 08 00 9C 1C 80 11 00 00 00 00 00 00 32 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 17 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 17 00 9C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [09:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:59:43]wFMCommunicate OK [09:59:43]CreateOFDProtocolMessage done [09:59:43]OFDSenderStorePacket 112159 [09:59:43]StoreOFDPacket docnum=112159 [09:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 5A 07 01 46 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 19 00 00 00 F4 03 04 00 A1 A0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B6 01 00 35 04 06 00 A4 19 94 B2 9A 2A C1 B5 C7 FB 7C DA 66 5B [09:59:43]CheckFolder [09:59:43]dirname=/storage/ofd_packets [09:59:43]CheckFolder done [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00112159 [09:59:43]NVStorageSaveData ofd_packets/00112159 [09:59:43]File name is /storage/ofd_packets/00112159 [09:59:43]Write 301 bytes [09:59:43]NVStorageSaveData done [09:59:43]OFDSenderStorePacket done [09:59:43]KKMCreateOFDPacket done [09:59:43]NVStorageSaveData kkm_last_timestamp [09:59:43]File name is /storage/kkm_last_timestamp [09:59:43]Write 4 bytes [09:59:43]NVStorageSaveData done [09:59:43]ExternCall_PrintAddStr [09:59:43]wPrintStart [09:59:43]Write to MH i2c: 01 00 00 9D 1C B9 [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: 01 07 00 9D 1C 00 00 00 00 00 FF 0F CE [09:59:43]RasterBufferAndPrint [09:59:43]line Счет N : (1)320825 [09:59:43]line ИНН: 02508201610067 [09:59:43]line Контрольно-Кассовый Чек [09:59:43]line ПРОДАЖА [09:59:43]line ТРК (МРК, ГНК) : 11 [09:59:43]line Товар: 2710124130 [09:59:43]line Аи-92-К-5 [09:59:43]line 18.080 * 66.40 [09:59:43]line = 1200.51 [09:59:43]line НДС 12% НСП 1% [09:59:43]line > о реализуемом товаре [09:59:43]line ОКРУГЛЕНИЕ: -0.51 [09:59:43]line ИТОГО: 1200.00 [09:59:43]line Внесено: 1200.00 [09:59:43]line СДАЧА: 0.00 [09:59:43]line НСП 1% : 10.62 [09:59:43]line НДС 12% : 127.49 [09:59:43]line Наличными: 1200.00 [09:59:43]line Безнал.: 0.00 [09:59:43]line Место: АЗС № 65 "Партнер Нефть" [09:59:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:59:43]line СНО: Общий режим [09:59:43]line Чек 25 22.06.2024 10:00 [09:59:43]line Смена: 391 ФФД: 1.0 [09:59:43]line ЗНМ: 0300000198 [09:59:43]line РНМ: 0000000000092771 [09:59:43]line Версия ККМ: 001 [09:59:43]line ФМ: 0000000000875083 [09:59:43]line ФД: 112159 [09:59:43]line ФПД: 180429775870506 [09:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100001&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112159&fm=180429775870506&tin=02508201610067®Number=0000000000092771&sum=120000 [09:59:43]OFD Sender: Processing packet 112159 [packets to send 38, broken 37] [09:59:43]ProducePacketName [09:59:43]name=ofd_packets/00112159 [09:59:43]OFD Sender: To server: pG, [09:59:43]CommunicateWithHost lk.salyk.kg:30040 [09:59:43]ConnectInit lk.salyk.kg [09:59:43]written 0, free lines is 4095 [09:59:43]Connected sock=10 [09:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 5A 07 01 46 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 19 00 00 00 F4 03 04 00 A1 A0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B6 01 00 35 04 06 00 A4 19 94 B2 9A 2A C1 B5 C7 FB 7C DA 66 5B [09:59:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E4 B6 47 00 3D 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B6 01 00 F4 03 04 00 B0 37 76 66 B6 04 01 00 00 56 E8 50 29 BE 82 0D 0B [09:59:44]CommunicateWithHost err = 0 [09:59:44]CheckOFDResponse [09:59:44]1017 (14) - 77093643461234 [09:59:44]1041 (16) - 0000000000875083 [09:59:44]1040 (4) - 112159 [09:59:44]1012 (4) - 22.06.2024 02:32 [09:59:44]1206 (1) - 0 [09:59:44]OFD Sender: Remove packet 112159 [09:59:44]ProducePacketName [09:59:44]name=ofd_packets/00112159 [09:59:44]NVStorageDeleteData [09:59:44]Write to MH i2c: 01 00 00 C8 1C E4 [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: 01 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: 01 07 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: 01 07 00 C8 1C 00 00 00 00 00 DF 0C D6 [09:59:44]RasterBufferAndPrint [09:59:44]line [09:59:44]line [09:59:44]line [09:59:44]line [09:59:44]line [09:59:44]written 0, free lines is 3301 [09:59:44]MH_Cut [09:59:44]Write to MH i2c: D1 01 00 CF 1C 01 BD [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: D1 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: D1 01 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: D1 01 00 CF 1C 00 BC [09:59:44]Write to MH i2c: 01 00 00 D0 1C EC [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]OFD Sender: No OFD packet to send [09:59:45]*** Cut start [09:59:45]*** Partial cut [09:59:45]*** CUTSNS_PIN = 1 [09:59:45]*** CUTSNS_PIN = 0 [09:59:45]*** Brake cut motor [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]*** Stop cut motor [09:59:45]*** Cut end [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 FF 0F 01 [09:59:45]process_action close_receipt done [09:59:45]requested_data is exist [09:59:45]produce_requested_data [09:59:45]requested_item fm.sn is exist - process it [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 11 00 00 [09:59:45]Write to MH i2c: E2 08 00 D1 1C 80 11 00 00 00 00 00 00 67 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 D1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [09:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:59:45]wFMCommunicate OK [09:59:45]requested_item fd.num is exist - process it [09:59:45]SAM_PROTO_GetFieldsCounters [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 00 00 [09:59:45]Write to MH i2c: E2 08 00 D2 1C 80 13 00 00 00 00 00 00 6A [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 62 00 D2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetFieldsCounters done [09:59:45]requested_item shift.num is exist - process it [09:59:45]requested_item shift.opened is exist - process it [09:59:45]req_shift_opened [09:59:45]FM_GetShiftState [09:59:45]SAM_PROTO_GetShiftState [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 13 01 00 [09:59:45]Write to MH i2c: E2 08 00 D3 1C 80 13 01 00 00 00 00 00 6C [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0E 00 D3 1C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A1 [09:59:45]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_GetShiftState done [09:59:45]FM_GetShiftState done [09:59:45]req_shift_opened done [09:59:45]requested_item shift.open_date is exist - process it [09:59:45]req_shift_open_date [09:59:45]req_shift_open_date done [09:59:45]produce_requested_data done [09:59:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112159,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [09:59:45]process_action_free close_receipt [09:59:45]json_value_free [09:59:45]json_value_free done [09:59:45]process_json_proto returns [09:59:45]Send response to host [09:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112159,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [09:59:45]free response buf [09:59:45]execute_script done [09:59:45]execute_script returns [09:59:45]free content buf [09:59:45]Sock 9.Close socket [09:59:45]Sock 9.Thread stoped [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:26]accept exits with 7 [10:01:26]New connection [10:01:26]New thread 3066957156 created [10:01:26]Thread 3066813796 joined [10:01:26]Waiting for new connection... [10:01:26] Sock 7.Parse request [10:01:26]Sock 7.Check first char [10:01:26]Sock 7.First char is OK [10:01:26]request: POST /json_proto HTTP/1.0 [10:01:26]Method: POST [10:01:26]URL: /json_proto [10:01:26]Method is POST - this is cgi request [10:01:26]url: /json_proto [10:01:26]query_string will be loaded in cgi processing [10:01:26]execute_cgi json_proto POST (null) [10:01:26]execute_cgi path=json_proto method=POST [10:01:26]POST find Content-Length [10:01:26]Host: 172.17.59.68:8080 [10:01:26]Content-Length: 682 [10:01:26]Content-Type: application/json [10:01:26] [10:01:26]POST finish read [10:01:26]Found Content-Length = 682 [10:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320826", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:26]execute_script... [10:01:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320826", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:26]POST & json_proto [10:01:26]process_json_proto [10:01:26]json parsed OK: [10:01:26]protocol is kg_v1.0 [10:01:26]action value=close_receipt [10:01:26]process_action close_receipt [10:01:26]cmd_close_receipt [10:01:26]MH_GetDate [10:01:26]Write to MH i2c: F0 00 00 D4 1C DF [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: F0 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: F0 09 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: F0 09 00 D4 1C 00 0A A1 76 66 BC EC 60 65 DC [10:01:26]GetLastDocTimeStamp 1719050401 [10:01:26]current date 1719050506 [10:01:26]FM_GetShiftState [10:01:26]SAM_PROTO_GetShiftState [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 13 01 00 [10:01:26]Write to MH i2c: E2 08 00 D5 1C 80 13 01 00 00 00 00 00 6E [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0E 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0E 00 D5 1C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A3 [10:01:26]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:01:26]wFMCommunicate OK [10:01:26]SAM_PROTO_GetShiftState done [10:01:26]FM_GetShiftState done [10:01:26]opened in 1719020067 [10:01:26]opened+sec_in_day 1719106467 [10:01:26]quantity*price = 100064 [10:01:26]sum+1 = 100066 [10:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 26 22.06.2024 10:01 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112160 ФПД: 29631292758357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112160&fm=29631292758357&tin=02508201610067®Number=0000000000092771&sum=100000 [10:01:27]StoreToDocumentArchive [10:01:27]shift 391 fd 112160 [10:01:27]save to /storage/0391/doc_00112160 [10:01:27]save last doc name /storage/0391/doc_00112160 to /storage/kkm_last_doc_name [10:01:27]save OK [10:01:27]Clear old archive folders... [10:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:27]tlvbuf is 011598B0 [10:01:27]SAM_PROTO_ClearQueue [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 09 00 00 [10:01:27]Write to MH i2c: E2 08 00 E2 1C 80 09 00 00 00 00 00 00 70 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 E2 1C 00 90 00 72 [10:01:27]RAPDU: 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_ClearQueue done [10:01:27]KKMCreateOFDPacket [10:01:27]OFDProtocolAddRootSTLVToBuf [10:01:27]FM_MakeSignedData [10:01:27]FM_MakeSignedData [10:01:27]SAM_PROTO_SignData [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 0D 01 02 [10:01:27]Write to MH i2c: E2 08 00 E3 1C 80 0D 01 02 00 00 00 00 78 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 E3 1C 00 90 00 73 [10:01:27]RAPDU: 90 00 [10:01:27]wFMCommunicate OK [10:01:27]wFMCommunicate request_size=255 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0A A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B6 01 00 35 04 06 00 1A [10:01:27]Write to MH i2c: E2 02 01 E4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0A A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B6 01 00 35 04 06 00 1A 00 00 96 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 E4 1C 00 90 00 74 [10:01:28]RAPDU: 90 00 [10:01:28]wFMCommunicate OK [10:01:28]wFMCommunicate request_size=10 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 0D 02 02 05 F3 12 AD D9 55 [10:01:28]Write to MH i2c: E2 0D 00 E5 1C 80 0D 02 02 05 00 F3 12 AD D9 55 00 00 65 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [10:01:28]RAPDU: 90 00 [10:01:28]wFMCommunicate OK [10:01:28]wFMCommunicate request_size=4 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 0D 03 02 [10:01:28]Write to MH i2c: E2 08 00 E6 1C 80 0D 03 02 00 00 00 00 7D [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 0B 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 0B 00 E6 1C 00 56 3C 38 BD FA 95 CB E2 90 00 41 [10:01:28]RAPDU: 56 3C 38 BD FA 95 CB E2 90 00 [10:01:28]wFMCommunicate OK [10:01:28]SAM_PROTO_SignData done [10:01:28]FM_MakeSignedData done [10:01:28]CreateOFDProtocolMessage [10:01:28]wFMCommunicate request_size=4 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 11 00 00 [10:01:28]Write to MH i2c: E2 08 00 E7 1C 80 11 00 00 00 00 00 00 7D [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 17 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 17 00 E7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [10:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:01:28]wFMCommunicate OK [10:01:28]CreateOFDProtocolMessage done [10:01:28]OFDSenderStorePacket 112160 [10:01:28]StoreOFDPacket docnum=112160 [10:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B 44 07 01 47 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0A A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B6 01 00 35 04 06 00 1A F3 12 AD D9 55 56 3C 38 BD FA 95 CB E2 [10:01:28]CheckFolder [10:01:28]dirname=/storage/ofd_packets [10:01:28]CheckFolder done [10:01:28]ProducePacketName [10:01:28]name=ofd_packets/00112160 [10:01:28]NVStorageSaveData ofd_packets/00112160 [10:01:28]File name is /storage/ofd_packets/00112160 [10:01:28]Write 301 bytes [10:01:28]NVStorageSaveData done [10:01:28]OFDSenderStorePacket done [10:01:28]KKMCreateOFDPacket done [10:01:28]NVStorageSaveData kkm_last_timestamp [10:01:28]File name is /storage/kkm_last_timestamp [10:01:28]Write 4 bytes [10:01:28]NVStorageSaveData done [10:01:28]ExternCall_PrintAddStr [10:01:28]wPrintStart [10:01:28]Write to MH i2c: 01 00 00 E8 1C 04 [10:01:28]OFD Sender: Processing packet 112160 [packets to send 38, broken 37] [10:01:28]ProducePacketName [10:01:28]name=ofd_packets/00112160 [10:01:28]OFD Sender: To server: pG, [10:01:28]CommunicateWithHost lk.salyk.kg:30040 [10:01:28]ConnectInit lk.salyk.kg [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 07 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 07 00 E8 1C 00 00 00 00 00 FF 0F 19 [10:01:28]RasterBufferAndPrint [10:01:28]line Счет N : (1)320826 [10:01:28]line ИНН: 02508201610067 [10:01:28]line Контрольно-Кассовый Чек [10:01:28]line ПРОДАЖА [10:01:28]line ТРК (МРК, ГНК) : 11 [10:01:28]line Товар: 2710124130 [10:01:28]line Аи-92-К-5 [10:01:28]line 15.070 * 66.40 [10:01:28]line = 1000.65 [10:01:28]line НДС 12% НСП 1% [10:01:28]line > о реализуемом товаре [10:01:28]line ОКРУГЛЕНИЕ: -0.65 [10:01:28]line ИТОГО: 1000.00 [10:01:28]line Внесено: 1000.00 [10:01:28]line СДАЧА: 0.00 [10:01:28]line НСП 1% : 8.85 [10:01:28]line НДС 12% : 106.26 [10:01:28]line Наличными: 1000.00 [10:01:28]line Безнал.: 0.00 [10:01:28]line Место: АЗС № 65 "Партнер Нефть" [10:01:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:01:28]line СНО: Общий режим [10:01:28]line Чек 26 22.06.2024 10:01 [10:01:28]line Смена: 391 ФФД: 1.0 [10:01:28]line ЗНМ: 0300000198 [10:01:28]line РНМ: 0000000000092771 [10:01:28]line Версия ККМ: 001 [10:01:28]line ФМ: 0000000000875083 [10:01:28]line ФД: 112160 [10:01:28]line ФПД: 29631292758357 [10:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112160&fm=29631292758357&tin=02508201610067®Number=0000000000092771&sum=100000 [10:01:28]Connected sock=10 [10:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B 44 07 01 47 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0A A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B6 01 00 35 04 06 00 1A F3 12 AD D9 55 56 3C 38 BD FA 95 CB E2 [10:01:28]written 0, free lines is 4095 [10:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D C5 47 00 79 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 35 30 38 33 10 04 04 00 20 B6 01 00 F4 03 04 00 19 38 76 66 B6 04 01 00 00 4F 44 92 34 E6 9F 65 4A [10:01:28]CommunicateWithHost err = 0 [10:01:28]CheckOFDResponse [10:01:28]1017 (14) - 77093643461234 [10:01:28]1041 (16) - 0000000000875083 [10:01:28]1040 (4) - 112160 [10:01:28]1012 (4) - 22.06.2024 02:34 [10:01:28]1206 (1) - 0 [10:01:28]OFD Sender: Remove packet 112160 [10:01:28]ProducePacketName [10:01:28]name=ofd_packets/00112160 [10:01:28]NVStorageDeleteData [10:01:29]Write to MH i2c: 01 00 00 13 1D 30 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 13 1D 00 00 00 00 00 D3 0C 16 [10:01:29]RasterBufferAndPrint [10:01:29]line [10:01:29]line [10:01:29]line [10:01:29]line [10:01:29]line [10:01:29]written 0, free lines is 3289 [10:01:29]MH_Cut [10:01:29]Write to MH i2c: D1 01 00 1A 1D 01 09 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: D1 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: D1 01 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: D1 01 00 1A 1D 00 08 [10:01:29]Write to MH i2c: 01 00 00 1B 1D 38 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]OFD Sender: No OFD packet to send [10:01:30]*** Cut start [10:01:30]*** Partial cut [10:01:30]*** CUTSNS_PIN = 1 [10:01:30]*** CUTSNS_PIN = 0 [10:01:30]*** Brake cut motor [10:01:30]Read from MH i2c: 01 [10:01:30]MH_I2C_Read... [10:01:30]*** Stop cut motor [10:01:30]*** Cut end [10:01:30]Read from MH i2c: 01 07 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 07 00 1B 1D 00 00 00 00 00 FF 0F 4D [10:01:30]process_action close_receipt done [10:01:30]requested_data is exist [10:01:30]produce_requested_data [10:01:30]requested_item fm.sn is exist - process it [10:01:30]wFMCommunicate request_size=4 [10:01:30]MH_SAM_APDU [10:01:30]CAPDU: 80 11 00 00 [10:01:30]Write to MH i2c: E2 08 00 1C 1D 80 11 00 00 00 00 00 00 B3 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:30]Read from MH i2c: E2 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 17 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 17 00 1C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [10:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:01:30]wFMCommunicate OK [10:01:30]requested_item fd.num is exist - process it [10:01:30]SAM_PROTO_GetFieldsCounters [10:01:30]wFMCommunicate request_size=4 [10:01:30]MH_SAM_APDU [10:01:30]CAPDU: 80 13 00 00 [10:01:30]Write to MH i2c: E2 08 00 1D 1D 80 13 00 00 00 00 00 00 B6 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:30]Read from MH i2c: E2 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 62 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 62 00 1D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:30]wFMCommunicate OK [10:01:30]SAM_PROTO_GetFieldsCounters done [10:01:30]requested_item shift.num is exist - process it [10:01:30]requested_item shift.opened is exist - process it [10:01:30]req_shift_opened [10:01:30]FM_GetShiftState [10:01:30]SAM_PROTO_GetShiftState [10:01:30]wFMCommunicate request_size=4 [10:01:30]MH_SAM_APDU [10:01:30]CAPDU: 80 13 01 00 [10:01:30]Write to MH i2c: E2 08 00 1E 1D 80 13 01 00 00 00 00 00 B8 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:30]Read from MH i2c: E2 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 0E 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 0E 00 1E 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 ED [10:01:30]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:01:30]wFMCommunicate OK [10:01:30]SAM_PROTO_GetShiftState done [10:01:30]FM_GetShiftState done [10:01:30]req_shift_opened done [10:01:30]requested_item shift.open_date is exist - process it [10:01:30]req_shift_open_date [10:01:30]req_shift_open_date done [10:01:30]produce_requested_data done [10:01:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112160,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:01:30]process_action_free close_receipt [10:01:30]json_value_free [10:01:30]json_value_free done [10:01:30]process_json_proto returns [10:01:30]Send response to host [10:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112160,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:01:30]free response buf [10:01:30]execute_script done [10:01:30]execute_script returns [10:01:30]free content buf [10:01:30]Sock 7.Close socket [10:01:30]Sock 7.Thread stoped [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:17]accept exits with 9 [10:04:17]New connection [10:04:17]New thread 3066813796 created [10:04:17]Thread 3066957156 joined [10:04:17]Waiting for new connection... [10:04:17] Sock 9.Parse request [10:04:17]Sock 9.Check first char [10:04:17]Sock 9.First char is OK [10:04:17]request: POST /json_proto HTTP/1.0 [10:04:17]Method: POST [10:04:17]URL: /json_proto [10:04:17]Method is POST - this is cgi request [10:04:17]url: /json_proto [10:04:17]query_string will be loaded in cgi processing [10:04:17]execute_cgi json_proto POST (null) [10:04:17]execute_cgi path=json_proto method=POST [10:04:17]POST find Content-Length [10:04:17]Host: 172.17.59.68:8080 [10:04:17]Content-Length: 675 [10:04:17]Content-Type: application/json [10:04:17] [10:04:17]POST finish read [10:04:17]Found Content-Length = 675 [10:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "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" ] } } [10:04:17]execute_script... [10:04:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "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" ] } } [10:04:17]POST & json_proto [10:04:17]process_json_proto [10:04:17]json parsed OK: [10:04:17]protocol is kg_v1.0 [10:04:17]action value=close_receipt [10:04:17]process_action close_receipt [10:04:17]cmd_close_receipt [10:04:17]MH_GetDate [10:04:17]Write to MH i2c: F0 00 00 1F 1D 2B [10:04:17]Write i2c OK [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: F0 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: F0 09 00 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: F0 09 00 1F 1D 00 B5 A1 76 66 BC EC 60 65 D3 [10:04:17]GetLastDocTimeStamp 1719050506 [10:04:17]current date 1719050677 [10:04:17]FM_GetShiftState [10:04:17]SAM_PROTO_GetShiftState [10:04:17]wFMCommunicate request_size=4 [10:04:17]MH_SAM_APDU [10:04:17]CAPDU: 80 13 01 00 [10:04:17]Write to MH i2c: E2 08 00 20 1D 80 13 01 00 00 00 00 00 BA [10:04:17]Write i2c OK [10:04:17]MH_I2C_Read... [10:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:17]Read from MH i2c: E2 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: E2 0E 00 [10:04:17]MH_I2C_Read... [10:04:17]Read from MH i2c: E2 0E 00 20 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EF [10:04:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:04:17]wFMCommunicate OK [10:04:17]SAM_PROTO_GetShiftState done [10:04:17]FM_GetShiftState done [10:04:17]opened in 1719020067 [10:04:17]opened+sec_in_day 1719106467 [10:04:17]quantity*price = 90031 [10:04:17]sum+1 = 90033 [10:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 27 22.06.2024 10:04 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112161 ФПД: 183056329371430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100437&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112161&fm=183056329371430&tin=02508201610067®Number=0000000000092771&sum=90000 [10:04:19]StoreToDocumentArchive [10:04:19]shift 391 fd 112161 [10:04:19]save to /storage/0391/doc_00112161 [10:04:19]save last doc name /storage/0391/doc_00112161 to /storage/kkm_last_doc_name [10:04:19]save OK [10:04:19]Clear old archive folders... [10:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:19]tlvbuf is 01172BD0 [10:04:19]SAM_PROTO_ClearQueue [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 09 00 00 [10:04:19]Write to MH i2c: E2 08 00 2D 1D 80 09 00 00 00 00 00 00 BC [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 2D 1D 00 90 00 BE [10:04:19]RAPDU: 90 00 [10:04:19]wFMCommunicate OK [10:04:19]SAM_PROTO_ClearQueue done [10:04:19]KKMCreateOFDPacket [10:04:19]OFDProtocolAddRootSTLVToBuf [10:04:19]FM_MakeSignedData [10:04:19]FM_MakeSignedData [10:04:19]SAM_PROTO_SignData [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 0D 01 02 [10:04:19]Write to MH i2c: E2 08 00 2E 1D 80 0D 01 02 00 00 00 00 C4 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 2E 1D 00 90 00 BF [10:04:19]RAPDU: 90 00 [10:04:19]wFMCommunicate OK [10:04:19]wFMCommunicate request_size=255 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B6 01 00 35 04 06 00 A6 7D 1F 7C [10:04:19]Write to MH i2c: E2 02 01 2F 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 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B6 01 00 35 04 06 00 A6 7D 1F 7C 00 00 1E [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 2F 1D 00 90 00 C0 [10:04:19]RAPDU: 90 00 [10:04:19]wFMCommunicate OK [10:04:19]wFMCommunicate request_size=7 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 0D 02 02 02 6F 26 [10:04:19]Write to MH i2c: E2 0A 00 30 1D 80 0D 02 02 02 00 6F 26 00 00 60 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [10:04:19]RAPDU: 90 00 [10:04:19]wFMCommunicate OK [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 0D 03 02 [10:04:19]Write to MH i2c: E2 08 00 31 1D 80 0D 03 02 00 00 00 00 C9 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 0B 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 0B 00 31 1D 00 5D 7B C0 23 41 85 14 4A 90 00 A9 [10:04:19]RAPDU: 5D 7B C0 23 41 85 14 4A 90 00 [10:04:19]wFMCommunicate OK [10:04:19]SAM_PROTO_SignData done [10:04:19]FM_MakeSignedData done [10:04:19]CreateOFDProtocolMessage [10:04:19]wFMCommunicate request_size=4 [10:04:19]MH_SAM_APDU [10:04:19]CAPDU: 80 11 00 00 [10:04:19]Write to MH i2c: E2 08 00 32 1D 80 11 00 00 00 00 00 00 C9 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:19]Read from MH i2c: E2 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: E2 17 00 [10:04:19]MH_I2C_Read... [10:04: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 35 30 38 33 90 00 1B [10:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:04:19]wFMCommunicate OK [10:04:19]CreateOFDProtocolMessage done [10:04:19]OFDSenderStorePacket 112161 [10:04:19]StoreOFDPacket docnum=112161 [10:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E7 73 04 01 3A 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B6 01 00 35 04 06 00 A6 7D 1F 7C 6F 26 5D 7B C0 23 41 85 14 4A [10:04:19]CheckFolder [10:04:19]dirname=/storage/ofd_packets [10:04:19]CheckFolder done [10:04:19]ProducePacketName [10:04:19]name=ofd_packets/00112161 [10:04:19]NVStorageSaveData ofd_packets/00112161 [10:04:19]File name is /storage/ofd_packets/00112161 [10:04:19]Write 298 bytes [10:04:19]NVStorageSaveData done [10:04:19]OFDSenderStorePacket done [10:04:19]KKMCreateOFDPacket done [10:04:19]NVStorageSaveData kkm_last_timestamp [10:04:19]File name is /storage/kkm_last_timestamp [10:04:19]Write 4 bytes [10:04:19]NVStorageSaveData done [10:04:19]ExternCall_PrintAddStr [10:04:19]wPrintStart [10:04:19]Write to MH i2c: 01 00 00 33 1D 50 [10:04:19]Write i2c OK [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 07 00 [10:04:19]MH_I2C_Read... [10:04:19]Read from MH i2c: 01 07 00 33 1D 00 00 00 00 00 FF 0F 65 [10:04:19]RasterBufferAndPrint [10:04:19]line Счет N : (1)320827 [10:04:19]line ИНН: 02508201610067 [10:04:19]line Контрольно-Кассовый Чек [10:04:19]line ПРОДАЖА [10:04:19]line ТРК (МРК, ГНК) : 22 [10:04:19]line Товар: 2710194210 [10:04:19]line ДТ-К-5 [10:04:19]line 12.350 * 72.90 [10:04:19]line = 900.32 [10:04:19]line НДС 12% НСП 1% [10:04:19]line > о реализуемом товаре [10:04:19]line ОКРУГЛЕНИЕ: -0.32 [10:04:19]line ИТОГО: 900.00 [10:04:19]line Внесено: 900.00 [10:04:19]line СДАЧА: 0.00 [10:04:19]line НСП 1% : 7.97 [10:04:19]line НДС 12% : 95.61 [10:04:19]line Наличными: 900.00 [10:04:19]line Безнал.: 0.00 [10:04:19]line Место: АЗС № 65 "Партнер Нефть" [10:04:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:04:19]line СНО: Общий режим [10:04:19]line Чек 27 22.06.2024 10:04 [10:04:19]line Смена: 391 ФФД: 1.0 [10:04:19]line ЗНМ: 0300000198 [10:04:19]line РНМ: 0000000000092771 [10:04:19]line Версия ККМ: 001 [10:04:19]line ФМ: 0000000000875083 [10:04:19]line ФД: 112161 [10:04:19]line ФПД: 183056329371430 [10:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100437&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112161&fm=183056329371430&tin=02508201610067®Number=0000000000092771&sum=90000 [10:04:19]OFD Sender: Processing packet 112161 [packets to send 38, broken 37] [10:04:19]ProducePacketName [10:04:19]name=ofd_packets/00112161 [10:04:19]OFD Sender: To server: pG, [10:04:19]CommunicateWithHost lk.salyk.kg:30040 [10:04:19]ConnectInit lk.salyk.kg [10:04:19]written 0, free lines is 4095 [10:04:19]Connected sock=10 [10:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E7 73 04 01 3A 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B5 A1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B6 01 00 35 04 06 00 A6 7D 1F 7C 6F 26 5D 7B C0 23 41 85 14 4A [10:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D2 34 47 00 8F 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B6 01 00 F4 03 04 00 C5 38 76 66 B6 04 01 00 00 3F 00 15 99 8D 0F 4D D6 [10:04:20]CommunicateWithHost err = 0 [10:04:20]CheckOFDResponse [10:04:20]1017 (14) - 77093643461234 [10:04:20]1041 (16) - 0000000000875083 [10:04:20]1040 (4) - 112161 [10:04:20]1012 (4) - 22.06.2024 02:36 [10:04:20]1206 (1) - 0 [10:04:20]OFD Sender: Remove packet 112161 [10:04:20]ProducePacketName [10:04:20]name=ofd_packets/00112161 [10:04:20]NVStorageDeleteData [10:04:20]Write to MH i2c: 01 00 00 5E 1D 7B [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: 01 07 00 5E 1D 00 00 00 00 00 D0 0C 5E [10:04:20]RasterBufferAndPrint [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]line [10:04:20]written 0, free lines is 3287 [10:04:20]MH_Cut [10:04:20]Write to MH i2c: D1 01 00 65 1D 01 54 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 01 00 [10:04:20]MH_I2C_Read... [10:04:20]Read from MH i2c: D1 01 00 65 1D 00 53 [10:04:20]Write to MH i2c: 01 00 00 66 1D 83 [10:04:20]Write i2c OK [10:04:20]MH_I2C_Read... [10:04:20]OFD Sender: No OFD packet to send [10:04:21]*** Cut start [10:04:21]*** Partial cut [10:04:21]*** CUTSNS_PIN = 1 [10:04:21]*** CUTSNS_PIN = 0 [10:04:21]*** Brake cut motor [10:04:21]Read from MH i2c: 01 [10:04:21]MH_I2C_Read... [10:04:21]*** Stop cut motor [10:04:21]*** Cut end [10:04:21]Read from MH i2c: 01 07 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 FF 0F 98 [10:04:21]process_action close_receipt done [10:04:21]requested_data is exist [10:04:21]produce_requested_data [10:04:21]requested_item fm.sn is exist - process it [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 11 00 00 [10:04:21]Write to MH i2c: E2 08 00 67 1D 80 11 00 00 00 00 00 00 FE [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 17 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 17 00 67 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [10:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:04:21]wFMCommunicate OK [10:04:21]requested_item fd.num is exist - process it [10:04:21]SAM_PROTO_GetFieldsCounters [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 00 00 [10:04:21]Write to MH i2c: E2 08 00 68 1D 80 13 00 00 00 00 00 00 01 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 62 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 62 00 68 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetFieldsCounters done [10:04:21]requested_item shift.num is exist - process it [10:04:21]requested_item shift.opened is exist - process it [10:04:21]req_shift_opened [10:04:21]FM_GetShiftState [10:04:21]SAM_PROTO_GetShiftState [10:04:21]wFMCommunicate request_size=4 [10:04:21]MH_SAM_APDU [10:04:21]CAPDU: 80 13 01 00 [10:04:21]Write to MH i2c: E2 08 00 69 1D 80 13 01 00 00 00 00 00 03 [10:04:21]Write i2c OK [10:04:21]MH_I2C_Read... [10:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:21]Read from MH i2c: E2 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 [10:04:21]MH_I2C_Read... [10:04:21]Read from MH i2c: E2 0E 00 69 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 38 [10:04:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:04:21]wFMCommunicate OK [10:04:21]SAM_PROTO_GetShiftState done [10:04:21]FM_GetShiftState done [10:04:21]req_shift_opened done [10:04:21]requested_item shift.open_date is exist - process it [10:04:21]req_shift_open_date [10:04:21]req_shift_open_date done [10:04:21]produce_requested_data done [10:04:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112161,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:04:21]process_action_free close_receipt [10:04:21]json_value_free [10:04:21]json_value_free done [10:04:21]process_json_proto returns [10:04:21]Send response to host [10:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112161,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:04:21]free response buf [10:04:21]execute_script done [10:04:21]execute_script returns [10:04:21]free content buf [10:04:21]Sock 9.Close socket [10:04:21]Sock 9.Thread stoped [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:28]accept exits with 7 [10:07:28]New connection [10:07:28]New thread 3066957156 created [10:07:28]Thread 3066813796 joined [10:07:28]Waiting for new connection... [10:07:28] Sock 7.Parse request [10:07:28]Sock 7.Check first char [10:07:28]Sock 7.First char is OK [10:07:28]request: POST /json_proto HTTP/1.0 [10:07:28]Method: POST [10:07:28]URL: /json_proto [10:07:28]Method is POST - this is cgi request [10:07:28]url: /json_proto [10:07:28]query_string will be loaded in cgi processing [10:07:28]execute_cgi json_proto POST (null) [10:07:28]execute_cgi path=json_proto method=POST [10:07:28]POST find Content-Length [10:07:28]Host: 172.17.59.68:8080 [10:07:28]Content-Length: 678 [10:07:28]Content-Type: application/json [10:07:28] [10:07:28]POST finish read [10:07:28]Found Content-Length = 678 [10:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320828", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:28]execute_script... [10:07:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320828", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:28]POST & json_proto [10:07:28]process_json_proto [10:07:28]json parsed OK: [10:07:28]protocol is kg_v1.0 [10:07:28]action value=close_receipt [10:07:28]process_action close_receipt [10:07:28]cmd_close_receipt [10:07:28]MH_GetDate [10:07:28]Write to MH i2c: F0 00 00 6A 1D 76 [10:07:28]Write i2c OK [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: F0 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: F0 09 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: F0 09 00 6A 1D 00 74 A2 76 66 BC EC 60 65 DE [10:07:28]GetLastDocTimeStamp 1719050677 [10:07:28]current date 1719050868 [10:07:28]FM_GetShiftState [10:07:28]SAM_PROTO_GetShiftState [10:07:28]wFMCommunicate request_size=4 [10:07:28]MH_SAM_APDU [10:07:28]CAPDU: 80 13 01 00 [10:07:28]Write to MH i2c: E2 08 00 6B 1D 80 13 01 00 00 00 00 00 05 [10:07:28]Write i2c OK [10:07:28]MH_I2C_Read... [10:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:28]Read from MH i2c: E2 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 0E 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 0E 00 6B 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3A [10:07:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:07:28]wFMCommunicate OK [10:07:28]SAM_PROTO_GetShiftState done [10:07:28]FM_GetShiftState done [10:07:28]opened in 1719020067 [10:07:28]opened+sec_in_day 1719106467 [10:07:28]quantity*price = 70052 [10:07:28]sum+1 = 70053 [10:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 28 22.06.2024 10:07 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112162 ФПД: 158991465378959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100748&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112162&fm=158991465378959&tin=02508201610067®Number=0000000000092771&sum=70000 [10:07:30]StoreToDocumentArchive [10:07:30]shift 391 fd 112162 [10:07:30]save to /storage/0391/doc_00112162 [10:07:30]save last doc name /storage/0391/doc_00112162 to /storage/kkm_last_doc_name [10:07:30]save OK [10:07:30]Clear old archive folders... [10:07:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:30]tlvbuf is 0111E0D0 [10:07:30]SAM_PROTO_ClearQueue [10:07:30]wFMCommunicate request_size=4 [10:07:30]MH_SAM_APDU [10:07:30]CAPDU: 80 09 00 00 [10:07:30]Write to MH i2c: E2 08 00 78 1D 80 09 00 00 00 00 00 00 07 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:30]Read from MH i2c: E2 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [10:07:30]RAPDU: 90 00 [10:07:30]wFMCommunicate OK [10:07:30]SAM_PROTO_ClearQueue done [10:07:30]KKMCreateOFDPacket [10:07:30]OFDProtocolAddRootSTLVToBuf [10:07:30]FM_MakeSignedData [10:07:30]FM_MakeSignedData [10:07:30]SAM_PROTO_SignData [10:07:30]wFMCommunicate request_size=4 [10:07:30]MH_SAM_APDU [10:07:30]CAPDU: 80 0D 01 02 [10:07:30]Write to MH i2c: E2 08 00 79 1D 80 0D 01 02 00 00 00 00 0F [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:30]Read from MH i2c: E2 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [10:07:30]RAPDU: 90 00 [10:07:30]wFMCommunicate OK [10:07:30]wFMCommunicate request_size=255 [10:07:30]MH_SAM_APDU [10:07:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 74 A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B6 01 00 35 04 06 00 90 [10:07:30]Write to MH i2c: E2 02 01 7A 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 74 A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B6 01 00 35 04 06 00 90 00 00 D4 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:30]Read from MH i2c: E2 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 7A 1D 00 90 00 0B [10:07:30]RAPDU: 90 00 [10:07:30]wFMCommunicate OK [10:07:30]wFMCommunicate request_size=10 [10:07:30]MH_SAM_APDU [10:07:30]CAPDU: 80 0D 02 02 05 9A 15 D0 F4 8F [10:07:30]Write to MH i2c: E2 0D 00 7B 1D 80 0D 02 02 05 00 9A 15 D0 F4 8F 00 00 1E [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:30]Read from MH i2c: E2 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [10:07:30]RAPDU: 90 00 [10:07:30]wFMCommunicate OK [10:07:30]wFMCommunicate request_size=4 [10:07:30]MH_SAM_APDU [10:07:30]CAPDU: 80 0D 03 02 [10:07:30]Write to MH i2c: E2 08 00 7C 1D 80 0D 03 02 00 00 00 00 14 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:30]Read from MH i2c: E2 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 0B 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 0B 00 7C 1D 00 28 4A 42 07 6C E6 02 4D 90 00 71 [10:07:30]RAPDU: 28 4A 42 07 6C E6 02 4D 90 00 [10:07:30]wFMCommunicate OK [10:07:30]SAM_PROTO_SignData done [10:07:30]FM_MakeSignedData done [10:07:30]CreateOFDProtocolMessage [10:07:30]wFMCommunicate request_size=4 [10:07:30]MH_SAM_APDU [10:07:30]CAPDU: 80 11 00 00 [10:07:30]Write to MH i2c: E2 08 00 7D 1D 80 11 00 00 00 00 00 00 14 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:30]Read from MH i2c: E2 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 17 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: E2 17 00 7D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [10:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:07:30]wFMCommunicate OK [10:07:30]CreateOFDProtocolMessage done [10:07:30]OFDSenderStorePacket 112162 [10:07:30]StoreOFDPacket docnum=112162 [10:07:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 BD 07 01 46 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 74 A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B6 01 00 35 04 06 00 90 9A 15 D0 F4 8F 28 4A 42 07 6C E6 02 4D [10:07:30]CheckFolder [10:07:30]dirname=/storage/ofd_packets [10:07:30]CheckFolder done [10:07:30]ProducePacketName [10:07:30]name=ofd_packets/00112162 [10:07:30]NVStorageSaveData ofd_packets/00112162 [10:07:30]File name is /storage/ofd_packets/00112162 [10:07:30]Write 301 bytes [10:07:30]NVStorageSaveData done [10:07:30]OFDSenderStorePacket done [10:07:30]KKMCreateOFDPacket done [10:07:30]NVStorageSaveData kkm_last_timestamp [10:07:30]File name is /storage/kkm_last_timestamp [10:07:30]Write 4 bytes [10:07:30]NVStorageSaveData done [10:07:30]ExternCall_PrintAddStr [10:07:30]wPrintStart [10:07:30]Write to MH i2c: 01 00 00 7E 1D 9B [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 FF 0F B0 [10:07:30]RasterBufferAndPrint [10:07:30]line Счет N : (1)320828 [10:07:30]line ИНН: 02508201610067 [10:07:30]line Контрольно-Кассовый Чек [10:07:30]line ПРОДАЖА [10:07:30]line ТРК (МРК, ГНК) : 11 [10:07:30]line Товар: 2710124130 [10:07:30]line Аи-92-К-5 [10:07:30]line 10.550 * 66.40 [10:07:30]line = 700.52 [10:07:30]line НДС 12% НСП 1% [10:07:30]line > о реализуемом товаре [10:07:30]line ОКРУГЛЕНИЕ: -0.52 [10:07:30]line ИТОГО: 700.00 [10:07:30]line Внесено: 700.00 [10:07:30]line СДАЧА: 0.00 [10:07:30]line НСП 1% : 6.20 [10:07:30]line НДС 12% : 74.39 [10:07:30]line Наличными: 700.00 [10:07:30]line Безнал.: 0.00 [10:07:30]line Место: АЗС № 65 "Партнер Нефть" [10:07:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:07:30]line СНО: Общий режим [10:07:30]line Чек 28 22.06.2024 10:07 [10:07:30]line Смена: 391 ФФД: 1.0 [10:07:30]line ЗНМ: 0300000198 [10:07:30]line РНМ: 0000000000092771 [10:07:30]line Версия ККМ: 001 [10:07:30]line ФМ: 0000000000875083 [10:07:30]line ФД: 112162 [10:07:30]line ФПД: 158991465378959 [10:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100748&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112162&fm=158991465378959&tin=02508201610067®Number=0000000000092771&sum=70000 [10:07:30]written 0, free lines is 4095 [10:07:30]OFD Sender: Processing packet 112162 [packets to send 38, broken 37] [10:07:30]ProducePacketName [10:07:30]name=ofd_packets/00112162 [10:07:30]OFD Sender: To server: pG, [10:07:30]CommunicateWithHost lk.salyk.kg:30040 [10:07:30]ConnectInit lk.salyk.kg [10:07:30]Connected sock=10 [10:07:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 BD 07 01 46 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 74 A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B6 01 00 35 04 06 00 90 9A 15 D0 F4 8F 28 4A 42 07 6C E6 02 4D [10:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B7 2F 47 00 79 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B6 01 00 F4 03 04 00 83 39 76 66 B6 04 01 00 00 BB EC 55 4A E4 C6 E2 7D [10:07:31]CommunicateWithHost err = 0 [10:07:31]CheckOFDResponse [10:07:31]1017 (14) - 77093643461234 [10:07:31]1041 (16) - 0000000000875083 [10:07:31]1040 (4) - 112162 [10:07:31]1012 (4) - 22.06.2024 02:40 [10:07:31]1206 (1) - 0 [10:07:31]OFD Sender: Remove packet 112162 [10:07:31]ProducePacketName [10:07:31]name=ofd_packets/00112162 [10:07:31]NVStorageDeleteData [10:07:31]Write to MH i2c: 01 00 00 A9 1D C6 [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 A9 1D 00 00 00 00 00 E1 0C BA [10:07:31]RasterBufferAndPrint [10:07:31]line [10:07:31]line [10:07:31]line [10:07:31]line [10:07:31]line [10:07:31]written 0, free lines is 3303 [10:07:31]MH_Cut [10:07:31]Write to MH i2c: D1 01 00 B0 1D 01 9F [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D1 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D1 01 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D1 01 00 B0 1D 00 9E [10:07:31]Write to MH i2c: 01 00 00 B1 1D CE [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]OFD Sender: No OFD packet to send [10:07:31]*** Cut start [10:07:31]*** Partial cut [10:07:31]*** CUTSNS_PIN = 1 [10:07:31]*** CUTSNS_PIN = 0 [10:07:32]*** Brake cut motor [10:07:32]Read from MH i2c: 01 [10:07:32]MH_I2C_Read... [10:07:32]*** Stop cut motor [10:07:32]*** Cut end [10:07:32]Read from MH i2c: 01 07 00 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: 01 07 00 B1 1D 00 00 00 00 00 FF 0F E3 [10:07:32]process_action close_receipt done [10:07:32]requested_data is exist [10:07:32]produce_requested_data [10:07:32]requested_item fm.sn is exist - process it [10:07:32]wFMCommunicate request_size=4 [10:07:32]MH_SAM_APDU [10:07:32]CAPDU: 80 11 00 00 [10:07:32]Write to MH i2c: E2 08 00 B2 1D 80 11 00 00 00 00 00 00 49 [10:07:32]Write i2c OK [10:07:32]MH_I2C_Read... [10:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:32]Read from MH i2c: E2 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 17 00 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 17 00 B2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [10:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:07:32]wFMCommunicate OK [10:07:32]requested_item fd.num is exist - process it [10:07:32]SAM_PROTO_GetFieldsCounters [10:07:32]wFMCommunicate request_size=4 [10:07:32]MH_SAM_APDU [10:07:32]CAPDU: 80 13 00 00 [10:07:32]Write to MH i2c: E2 08 00 B3 1D 80 13 00 00 00 00 00 00 4C [10:07:32]Write i2c OK [10:07:32]MH_I2C_Read... [10:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:32]Read from MH i2c: E2 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 62 00 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 62 00 B3 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:32]wFMCommunicate OK [10:07:32]SAM_PROTO_GetFieldsCounters done [10:07:32]requested_item shift.num is exist - process it [10:07:32]requested_item shift.opened is exist - process it [10:07:32]req_shift_opened [10:07:32]FM_GetShiftState [10:07:32]SAM_PROTO_GetShiftState [10:07:32]wFMCommunicate request_size=4 [10:07:32]MH_SAM_APDU [10:07:32]CAPDU: 80 13 01 00 [10:07:32]Write to MH i2c: E2 08 00 B4 1D 80 13 01 00 00 00 00 00 4E [10:07:32]Write i2c OK [10:07:32]MH_I2C_Read... [10:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:32]Read from MH i2c: E2 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 0E 00 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 0E 00 B4 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 83 [10:07:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:07:32]wFMCommunicate OK [10:07:32]SAM_PROTO_GetShiftState done [10:07:32]FM_GetShiftState done [10:07:32]req_shift_opened done [10:07:32]requested_item shift.open_date is exist - process it [10:07:32]req_shift_open_date [10:07:32]req_shift_open_date done [10:07:32]produce_requested_data done [10:07:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112162,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:07:32]process_action_free close_receipt [10:07:32]json_value_free [10:07:32]json_value_free done [10:07:32]process_json_proto returns [10:07:32]Send response to host [10:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112162,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:07:32]free response buf [10:07:32]execute_script done [10:07:32]execute_script returns [10:07:32]free content buf [10:07:32]Sock 7.Close socket [10:07:32]Sock 7.Thread stoped [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: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:08:57]accept exits with 9 [10:08:57]New connection [10:08:57]New thread 3066813796 created [10:08:57]Thread 3066957156 joined [10:08:57]Waiting for new connection... [10:08:57] Sock 9.Parse request [10:08:57]Sock 9.Check first char [10:08:57]Sock 9.First char is OK [10:08:57]request: POST /json_proto HTTP/1.0 [10:08:57]Method: POST [10:08:57]URL: /json_proto [10:08:57]Method is POST - this is cgi request [10:08:57]url: /json_proto [10:08:57]query_string will be loaded in cgi processing [10:08:57]execute_cgi json_proto POST (null) [10:08:57]execute_cgi path=json_proto method=POST [10:08:57]POST find Content-Length [10:08:57]Host: 172.17.59.68:8080 [10:08:57]Content-Length: 678 [10:08:57]Content-Type: application/json [10:08:57] [10:08:57]POST finish read [10:08:57]Found Content-Length = 678 [10:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320829", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:57]execute_script... [10:08: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)320829", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:57]POST & json_proto [10:08:57]process_json_proto [10:08:57]json parsed OK: [10:08:57]protocol is kg_v1.0 [10:08:57]action value=close_receipt [10:08:57]process_action close_receipt [10:08:57]cmd_close_receipt [10:08:57]MH_GetDate [10:08:57]Write to MH i2c: F0 00 00 B5 1D C1 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: F0 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: F0 09 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: F0 09 00 B5 1D 00 CC A2 76 66 BC EC 60 65 81 [10:08:57]GetLastDocTimeStamp 1719050868 [10:08:57]current date 1719050956 [10:08:57]FM_GetShiftState [10:08:57]SAM_PROTO_GetShiftState [10:08:57]wFMCommunicate request_size=4 [10:08:57]MH_SAM_APDU [10:08:57]CAPDU: 80 13 01 00 [10:08:57]Write to MH i2c: E2 08 00 B6 1D 80 13 01 00 00 00 00 00 50 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:57]Read from MH i2c: E2 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0E 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: E2 0E 00 B6 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 85 [10:08:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:08:57]wFMCommunicate OK [10:08:57]SAM_PROTO_GetShiftState done [10:08:57]FM_GetShiftState done [10:08:57]opened in 1719020067 [10:08:57]opened+sec_in_day 1719106467 [10:08:57]quantity*price = 70052 [10:08:57]sum+1 = 70053 [10:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 29 22.06.2024 10:09 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112163 ФПД: 161840182039044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100916&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112163&fm=161840182039044&tin=02508201610067®Number=0000000000092771&sum=70000 [10:08:58]StoreToDocumentArchive [10:08:58]shift 391 fd 112163 [10:08:58]save to /storage/0391/doc_00112163 [10:08:58]save last doc name /storage/0391/doc_00112163 to /storage/kkm_last_doc_name [10:08:58]save OK [10:08:58]Clear old archive folders... [10:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:58]tlvbuf is 011CA3F0 [10:08:58]SAM_PROTO_ClearQueue [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 09 00 00 [10:08:58]Write to MH i2c: E2 08 00 C3 1D 80 09 00 00 00 00 00 00 52 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 C3 1D 00 90 00 54 [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_ClearQueue done [10:08:58]KKMCreateOFDPacket [10:08:58]OFDProtocolAddRootSTLVToBuf [10:08:58]FM_MakeSignedData [10:08:58]FM_MakeSignedData [10:08:58]SAM_PROTO_SignData [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 01 02 [10:08:58]Write to MH i2c: E2 08 00 C4 1D 80 0D 01 02 00 00 00 00 5A [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 C4 1D 00 90 00 55 [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]wFMCommunicate request_size=255 [10:08:58]MH_SAM_APDU [10:08: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CC A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B6 01 00 35 04 06 00 93 [10:08:58]Write to MH i2c: E2 02 01 C5 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CC A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B6 01 00 35 04 06 00 93 00 00 7C [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 C5 1D 00 90 00 56 [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]wFMCommunicate request_size=10 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 02 02 05 31 5A 8F 92 04 [10:08:58]Write to MH i2c: E2 0D 00 C6 1D 80 0D 02 02 05 00 31 5A 8F 92 04 00 00 17 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 03 00 C6 1D 00 90 00 57 [10:08:58]RAPDU: 90 00 [10:08:58]wFMCommunicate OK [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 0D 03 02 [10:08:58]Write to MH i2c: E2 08 00 C7 1D 80 0D 03 02 00 00 00 00 5F [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0B 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0B 00 C7 1D 00 2D C1 58 1F C4 4A 12 4E 90 00 33 [10:08:58]RAPDU: 2D C1 58 1F C4 4A 12 4E 90 00 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_SignData done [10:08:58]FM_MakeSignedData done [10:08:58]CreateOFDProtocolMessage [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 11 00 00 [10:08:58]Write to MH i2c: E2 08 00 C8 1D 80 11 00 00 00 00 00 00 5F [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:59]Read from MH i2c: E2 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 17 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: E2 17 00 C8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [10:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:08:59]wFMCommunicate OK [10:08:59]CreateOFDProtocolMessage done [10:08:59]OFDSenderStorePacket 112163 [10:08:59]StoreOFDPacket docnum=112163 [10:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 0D 07 01 75 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CC A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B6 01 00 35 04 06 00 93 31 5A 8F 92 04 2D C1 58 1F C4 4A 12 4E [10:08:59]CheckFolder [10:08:59]dirname=/storage/ofd_packets [10:08:59]CheckFolder done [10:08:59]ProducePacketName [10:08:59]name=ofd_packets/00112163 [10:08:59]NVStorageSaveData ofd_packets/00112163 [10:08:59]File name is /storage/ofd_packets/00112163 [10:08:59]Write 301 bytes [10:08:59]NVStorageSaveData done [10:08:59]OFDSenderStorePacket done [10:08:59]KKMCreateOFDPacket done [10:08:59]NVStorageSaveData kkm_last_timestamp [10:08:59]File name is /storage/kkm_last_timestamp [10:08:59]Write 4 bytes [10:08:59]NVStorageSaveData done [10:08:59]ExternCall_PrintAddStr [10:08:59]wPrintStart [10:08:59]Write to MH i2c: 01 00 00 C9 1D E6 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 C9 1D 00 00 00 00 00 FF 0F FB [10:08:59]RasterBufferAndPrint [10:08:59]line Счет N : (1)320829 [10:08:59]line ИНН: 02508201610067 [10:08:59]line Контрольно-Кассовый Чек [10:08:59]line ПРОДАЖА [10:08:59]line ТРК (МРК, ГНК) : 11 [10:08:59]line Товар: 2710124130 [10:08:59]line Аи-92-К-5 [10:08:59]line 10.550 * 66.40 [10:08:59]line = 700.52 [10:08:59]line НДС 12% НСП 1% [10:08:59]line > о реализуемом товаре [10:08:59]line ОКРУГЛЕНИЕ: -0.52 [10:08:59]line ИТОГО: 700.00 [10:08:59]line Внесено: 700.00 [10:08:59]line СДАЧА: 0.00 [10:08:59]line НСП 1% : 6.20 [10:08:59]line НДС 12% : 74.39 [10:08:59]line Наличными: 700.00 [10:08:59]line Безнал.: 0.00 [10:08:59]line Место: АЗС № 65 "Партнер Нефть" [10:08:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:08:59]line СНО: Общий режим [10:08:59]line Чек 29 22.06.2024 10:09 [10:08:59]line Смена: 391 ФФД: 1.0 [10:08:59]line ЗНМ: 0300000198 [10:08:59]line РНМ: 0000000000092771 [10:08:59]line Версия ККМ: 001 [10:08:59]line ФМ: 0000000000875083 [10:08:59]line ФД: 112163 [10:08:59]line ФПД: 161840182039044 [10:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T100916&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112163&fm=161840182039044&tin=02508201610067®Number=0000000000092771&sum=70000 [10:08:59]OFD Sender: Processing packet 112163 [packets to send 38, broken 37] [10:08:59]ProducePacketName [10:08:59]name=ofd_packets/00112163 [10:08:59]OFD Sender: To server: pG, [10:08:59]CommunicateWithHost lk.salyk.kg:30040 [10:08:59]ConnectInit lk.salyk.kg [10:08:59]written 0, free lines is 4095 [10:08:59]Connected sock=10 [10: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 35 30 38 33 0F 01 00 00 81 0D 07 01 75 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CC A2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B6 01 00 35 04 06 00 93 31 5A 8F 92 04 2D C1 58 1F C4 4A 12 4E [10:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 65 47 00 E1 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B6 01 00 F4 03 04 00 DC 39 76 66 B6 04 01 00 00 A6 F8 B9 A7 E4 F5 06 2C [10:08:59]CommunicateWithHost err = 0 [10:08:59]CheckOFDResponse [10:08:59]1017 (14) - 77093643461234 [10:08:59]1041 (16) - 0000000000875083 [10:08:59]1040 (4) - 112163 [10:08:59]1012 (4) - 22.06.2024 02:41 [10:08:59]1206 (1) - 0 [10:08:59]OFD Sender: Remove packet 112163 [10:08:59]ProducePacketName [10:08:59]name=ofd_packets/00112163 [10:08:59]NVStorageDeleteData [10:08:59]Write to MH i2c: 01 00 00 F4 1D 11 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: 01 07 00 F4 1D 00 00 00 00 00 E4 0C 08 [10:08:59]RasterBufferAndPrint [10:08:59]line [10:08:59]line [10:08:59]line [10:08:59]line [10:08:59]line [10:08:59]written 0, free lines is 3306 [10:08:59]MH_Cut [10:08:59]Write to MH i2c: D1 01 00 FB 1D 01 EA [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: D1 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: D1 01 00 [10:08:59]MH_I2C_Read... [10:08:59]Read from MH i2c: D1 01 00 FB 1D 00 E9 [10:08:59]Write to MH i2c: 01 00 00 FC 1D 19 [10:08:59]Write i2c OK [10:08:59]MH_I2C_Read... [10:09:00]OFD Sender: No OFD packet to send [10:09:00]*** Cut start [10:09:00]*** Partial cut [10:09:00]*** CUTSNS_PIN = 1 [10:09:00]*** CUTSNS_PIN = 0 [10:09:00]*** Brake cut motor [10:09:01]Read from MH i2c: 01 [10:09:01]MH_I2C_Read... [10:09:01]*** Stop cut motor [10:09:01]*** Cut end [10:09:01]Read from MH i2c: 01 07 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: 01 07 00 FC 1D 00 00 00 00 00 FF 0F 2E [10:09:01]process_action close_receipt done [10:09:01]requested_data is exist [10:09:01]produce_requested_data [10:09:01]requested_item fm.sn is exist - process it [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 11 00 00 [10:09:01]Write to MH i2c: E2 08 00 FD 1D 80 11 00 00 00 00 00 00 94 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 17 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 17 00 FD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [10:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:09:01]wFMCommunicate OK [10:09:01]requested_item fd.num is exist - process it [10:09:01]SAM_PROTO_GetFieldsCounters [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 00 00 [10:09:01]Write to MH i2c: E2 08 00 FE 1D 80 13 00 00 00 00 00 00 97 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 62 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 62 00 FE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [10:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetFieldsCounters done [10:09:01]requested_item shift.num is exist - process it [10:09:01]requested_item shift.opened is exist - process it [10:09:01]req_shift_opened [10:09:01]FM_GetShiftState [10:09:01]SAM_PROTO_GetShiftState [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 13 01 00 [10:09:01]Write to MH i2c: E2 08 00 FF 1D 80 13 01 00 00 00 00 00 99 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 0E 00 FF 1D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CE [10:09:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_GetShiftState done [10:09:01]FM_GetShiftState done [10:09:01]req_shift_opened done [10:09:01]requested_item shift.open_date is exist - process it [10:09:01]req_shift_open_date [10:09:01]req_shift_open_date done [10:09:01]produce_requested_data done [10:09:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112163,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:09:01]process_action_free close_receipt [10:09:01]json_value_free [10:09:01]json_value_free done [10:09:01]process_json_proto returns [10:09:01]Send response to host [10:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112163,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:09:01]free response buf [10:09:01]execute_script done [10:09:01]execute_script returns [10:09:01]free content buf [10:09:01]Sock 9.Close socket [10:09:01]Sock 9.Thread stoped [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:17]accept exits with 7 [10:10:17]New connection [10:10:17]New thread 3066957156 created [10:10:17]Thread 3066813796 joined [10:10:17]Waiting for new connection... [10:10:17] Sock 7.Parse request [10:10:17]Sock 7.Check first char [10:10:17]Sock 7.First char is OK [10:10:17]request: POST /json_proto HTTP/1.0 [10:10:17]Method: POST [10:10:17]URL: /json_proto [10:10:17]Method is POST - this is cgi request [10:10:17]url: /json_proto [10:10:17]query_string will be loaded in cgi processing [10:10:17]execute_cgi json_proto POST (null) [10:10:17]execute_cgi path=json_proto method=POST [10:10:17]POST find Content-Length [10:10:17]Host: 172.17.59.68:8080 [10:10:17]Content-Length: 677 [10:10:17]Content-Type: application/json [10:10:17] [10:10:17]POST finish read [10:10:17]Found Content-Length = 677 [10:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320830", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [10:10:17]execute_script... [10:10: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)320830", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [10:10:17]POST & json_proto [10:10:17]process_json_proto [10:10:17]json parsed OK: [10:10:17]protocol is kg_v1.0 [10:10:17]action value=close_receipt [10:10:17]process_action close_receipt [10:10:17]cmd_close_receipt [10:10:17]MH_GetDate [10:10:17]Write to MH i2c: F0 00 00 00 1E 0D [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: F0 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: F0 09 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: F0 09 00 00 1E 00 1D A3 76 66 BC EC 60 65 1F [10:10:17]GetLastDocTimeStamp 1719050956 [10:10:17]current date 1719051037 [10:10:17]FM_GetShiftState [10:10:17]SAM_PROTO_GetShiftState [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 13 01 00 [10:10:17]Write to MH i2c: E2 08 00 01 1E 80 13 01 00 00 00 00 00 9C [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:18]Read from MH i2c: E2 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 0E 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: E2 0E 00 01 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D1 [10:10:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:10:18]wFMCommunicate OK [10:10:18]SAM_PROTO_GetShiftState done [10:10:18]FM_GetShiftState done [10:10:18]opened in 1719020067 [10:10:18]opened+sec_in_day 1719106467 [10:10:18]quantity*price = 35059 [10:10:18]sum+1 = 35060 [10:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 30 22.06.2024 10:10 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112164 ФПД: 90352955700061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101037&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112164&fm=90352955700061&tin=02508201610067®Number=0000000000092771&sum=35000 [10:10:19]StoreToDocumentArchive [10:10:19]shift 391 fd 112164 [10:10:19]save to /storage/0391/doc_00112164 [10:10:19]save last doc name /storage/0391/doc_00112164 to /storage/kkm_last_doc_name [10:10:19]save OK [10:10:19]Clear old archive folders... [10:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:19]tlvbuf is 011791D0 [10:10:19]SAM_PROTO_ClearQueue [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 09 00 00 [10:10:19]Write to MH i2c: E2 08 00 0E 1E 80 09 00 00 00 00 00 00 9E [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 0E 1E 00 90 00 A0 [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]SAM_PROTO_ClearQueue done [10:10:19]KKMCreateOFDPacket [10:10:19]OFDProtocolAddRootSTLVToBuf [10:10:19]FM_MakeSignedData [10:10:19]FM_MakeSignedData [10:10:19]SAM_PROTO_SignData [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 0D 01 02 [10:10:19]Write to MH i2c: E2 08 00 0F 1E 80 0D 01 02 00 00 00 00 A6 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 0F 1E 00 90 00 A1 [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]wFMCommunicate request_size=255 [10:10:19]MH_SAM_APDU [10:10: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 1E 00 00 00 F4 03 04 00 1D A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B6 01 00 35 04 06 00 52 [10:10:19]Write to MH i2c: E2 02 01 10 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 1E 00 00 00 F4 03 04 00 1D A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B6 01 00 35 04 06 00 52 00 00 A7 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 10 1E 00 90 00 A2 [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]wFMCommunicate request_size=10 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 0D 02 02 05 2C EF D4 33 5D [10:10:19]Write to MH i2c: E2 0D 00 11 1E 80 0D 02 02 05 00 2C EF D4 33 5D 00 00 32 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 0D 03 02 [10:10:19]Write to MH i2c: E2 08 00 12 1E 80 0D 03 02 00 00 00 00 AB [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 0B 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 0B 00 12 1E 00 BB 78 D0 90 4B D6 94 64 90 00 58 [10:10:19]RAPDU: BB 78 D0 90 4B D6 94 64 90 00 [10:10:19]wFMCommunicate OK [10:10:19]SAM_PROTO_SignData done [10:10:19]FM_MakeSignedData done [10:10:19]CreateOFDProtocolMessage [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 13 1E 80 11 00 00 00 00 00 00 AB [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 13 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [10:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:10:19]wFMCommunicate OK [10:10:19]CreateOFDProtocolMessage done [10:10:19]OFDSenderStorePacket 112164 [10:10:19]StoreOFDPacket docnum=112164 [10:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 36 07 01 1F 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 1E 00 00 00 F4 03 04 00 1D A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B6 01 00 35 04 06 00 52 2C EF D4 33 5D BB 78 D0 90 4B D6 94 64 [10:10:19]CheckFolder [10:10:19]dirname=/storage/ofd_packets [10:10:19]CheckFolder done [10:10:19]ProducePacketName [10:10:19]name=ofd_packets/00112164 [10:10:19]NVStorageSaveData ofd_packets/00112164 [10:10:19]File name is /storage/ofd_packets/00112164 [10:10:19]Write 301 bytes [10:10:19]NVStorageSaveData done [10:10:19]OFDSenderStorePacket done [10:10:19]KKMCreateOFDPacket done [10:10:19]NVStorageSaveData kkm_last_timestamp [10:10:19]File name is /storage/kkm_last_timestamp [10:10:19]Write 4 bytes [10:10:19]NVStorageSaveData done [10:10:19]ExternCall_PrintAddStr [10:10:19]wPrintStart [10:10:19]Write to MH i2c: 01 00 00 14 1E 32 [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 14 1E 00 00 00 00 00 FF 0F 47 [10:10:19]RasterBufferAndPrint [10:10:19]line Счет N : (1)320830 [10:10:19]line ИНН: 02508201610067 [10:10:19]line Контрольно-Кассовый Чек [10:10:19]line ПРОДАЖА [10:10:19]line ТРК (МРК, ГНК) : 11 [10:10:19]line Товар: 2710124130 [10:10:19]line Аи-92-К-5 [10:10:19]line 5.280 * 66.40 [10:10:19]line = 350.59 [10:10:19]line НДС 12% НСП 1% [10:10:19]line > о реализуемом товаре [10:10:19]line ОКРУГЛЕНИЕ: -0.59 [10:10:19]line ИТОГО: 350.00 [10:10:19]line Внесено: 350.00 [10:10:19]line СДАЧА: 0.00 [10:10:19]line НСП 1% : 3.10 [10:10:19]line НДС 12% : 37.23 [10:10:19]line Наличными: 350.00 [10:10:19]line Безнал.: 0.00 [10:10:19]line Место: АЗС № 65 "Партнер Нефть" [10:10:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:10:19]line СНО: Общий режим [10:10:19]line Чек 30 22.06.2024 10:10 [10:10:19]line Смена: 391 ФФД: 1.0 [10:10:19]line ЗНМ: 0300000198 [10:10:19]line РНМ: 0000000000092771 [10:10:19]line Версия ККМ: 001 [10:10:19]line ФМ: 0000000000875083 [10:10:19]line ФД: 112164 [10:10:19]line ФПД: 90352955700061 [10:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101037&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112164&fm=90352955700061&tin=02508201610067®Number=0000000000092771&sum=35000 [10:10:20]OFD Sender: Processing packet 112164 [packets to send 38, broken 37] [10:10:20]ProducePacketName [10:10:20]name=ofd_packets/00112164 [10:10:20]OFD Sender: To server: pG, [10:10:20]CommunicateWithHost lk.salyk.kg:30040 [10:10:20]ConnectInit lk.salyk.kg [10:10:20]written 0, free lines is 4095 [10:10:20]Connected sock=10 [10:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 36 07 01 1F 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 1E 00 00 00 F4 03 04 00 1D A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B6 01 00 35 04 06 00 52 2C EF D4 33 5D BB 78 D0 90 4B D6 94 64 [10:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C2 4E 47 00 77 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B6 01 00 F4 03 04 00 2D 3A 76 66 B6 04 01 00 00 70 F7 0E A4 2D 3B C3 A3 [10:10:20]CommunicateWithHost err = 0 [10:10:20]CheckOFDResponse [10:10:20]1017 (14) - 77093643461234 [10:10:20]1041 (16) - 0000000000875083 [10:10:20]1040 (4) - 112164 [10:10:20]1012 (4) - 22.06.2024 02:42 [10:10:20]1206 (1) - 0 [10:10:20]OFD Sender: Remove packet 112164 [10:10:20]ProducePacketName [10:10:20]name=ofd_packets/00112164 [10:10:20]NVStorageDeleteData [10:10:20]Write to MH i2c: 01 00 00 3F 1E 5D [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 07 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: 01 07 00 3F 1E 00 00 00 00 00 E1 0C 51 [10:10:20]RasterBufferAndPrint [10:10:20]line [10:10:20]line [10:10:20]line [10:10:20]line [10:10:20]line [10:10:20]written 0, free lines is 3306 [10:10:20]MH_Cut [10:10:20]Write to MH i2c: D1 01 00 46 1E 01 36 [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: D1 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: D1 01 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: D1 01 00 46 1E 00 35 [10:10:20]Write to MH i2c: 01 00 00 47 1E 65 [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]OFD Sender: No OFD packet to send [10:10:21]*** Cut start [10:10:21]*** Partial cut [10:10:21]*** CUTSNS_PIN = 1 [10:10:21]*** CUTSNS_PIN = 0 [10:10:21]*** Brake cut motor [10:10:21]Read from MH i2c: 01 [10:10:21]MH_I2C_Read... [10:10:21]*** Stop cut motor [10:10:21]*** Cut end [10:10:21]Read from MH i2c: 01 07 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: 01 07 00 47 1E 00 00 00 00 00 FF 0F 7A [10:10:21]process_action close_receipt done [10:10:21]requested_data is exist [10:10:21]produce_requested_data [10:10:21]requested_item fm.sn is exist - process it [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 11 00 00 [10:10:21]Write to MH i2c: E2 08 00 48 1E 80 11 00 00 00 00 00 00 E0 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 17 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 17 00 48 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [10:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:10:21]wFMCommunicate OK [10:10:21]requested_item fd.num is exist - process it [10:10:21]SAM_PROTO_GetFieldsCounters [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 13 00 00 [10:10:21]Write to MH i2c: E2 08 00 49 1E 80 13 00 00 00 00 00 00 E3 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 62 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 62 00 49 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:22]wFMCommunicate OK [10:10:22]SAM_PROTO_GetFieldsCounters done [10:10:22]requested_item shift.num is exist - process it [10:10:22]requested_item shift.opened is exist - process it [10:10:22]req_shift_opened [10:10:22]FM_GetShiftState [10:10:22]SAM_PROTO_GetShiftState [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 13 01 00 [10:10:22]Write to MH i2c: E2 08 00 4A 1E 80 13 01 00 00 00 00 00 E5 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 0E 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 0E 00 4A 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1A [10:10:22]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:10:22]wFMCommunicate OK [10:10:22]SAM_PROTO_GetShiftState done [10:10:22]FM_GetShiftState done [10:10:22]req_shift_opened done [10:10:22]requested_item shift.open_date is exist - process it [10:10:22]req_shift_open_date [10:10:22]req_shift_open_date done [10:10:22]produce_requested_data done [10:10:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112164,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:10:22]process_action_free close_receipt [10:10:22]json_value_free [10:10:22]json_value_free done [10:10:22]process_json_proto returns [10:10:22]Send response to host [10:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112164,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:10:22]free response buf [10:10:22]execute_script done [10:10:22]execute_script returns [10:10:22]free content buf [10:10:22]Sock 7.Close socket [10:10:22]Sock 7.Thread stoped [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:14]accept exits with 9 [10:13:14]New connection [10:13:14]New thread 3066813796 created [10:13:14]Thread 3066957156 joined [10:13:14]Waiting for new connection... [10:13:14] Sock 9.Parse request [10:13:14]Sock 9.Check first char [10:13:14]Sock 9.First char is OK [10:13:14]request: POST /json_proto HTTP/1.0 [10:13:14]Method: POST [10:13:14]URL: /json_proto [10:13:14]Method is POST - this is cgi request [10:13:14]url: /json_proto [10:13:14]query_string will be loaded in cgi processing [10:13:14]execute_cgi json_proto POST (null) [10:13:14]execute_cgi path=json_proto method=POST [10:13:14]POST find Content-Length [10:13:14]Host: 172.17.59.68:8080 [10:13:14]Content-Length: 682 [10:13:14]Content-Type: application/json [10:13:14] [10:13:14]POST finish read [10:13:14]Found Content-Length = 682 [10:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320831", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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:13:14]execute_script... [10:13: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)320831", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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:13:14]POST & json_proto [10:13:14]process_json_proto [10:13:14]json parsed OK: [10:13:14]protocol is kg_v1.0 [10:13:14]action value=close_receipt [10:13:14]process_action close_receipt [10:13:14]cmd_close_receipt [10:13:14]MH_GetDate [10:13:14]Write to MH i2c: F0 00 00 4B 1E 58 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 09 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 09 00 4B 1E 00 CE A3 76 66 BC EC 60 65 1B [10:13:14]GetLastDocTimeStamp 1719051037 [10:13:14]current date 1719051214 [10:13:14]FM_GetShiftState [10:13:14]SAM_PROTO_GetShiftState [10:13:14]wFMCommunicate request_size=4 [10:13:14]MH_SAM_APDU [10:13:14]CAPDU: 80 13 01 00 [10:13:14]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:14]Read from MH i2c: E2 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 0E 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1C [10:13:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:13:14]wFMCommunicate OK [10:13:14]SAM_PROTO_GetShiftState done [10:13:14]FM_GetShiftState done [10:13:14]opened in 1719020067 [10:13:14]opened+sec_in_day 1719106467 [10:13:14]quantity*price = 200063 [10:13:14]sum+1 = 200064 [10:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 31 22.06.2024 10:13 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112165 ФПД: 262147112046837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112165&fm=262147112046837&tin=02508201610067®Number=0000000000092771&sum=200000 [10:13:15]StoreToDocumentArchive [10:13:15]shift 391 fd 112165 [10:13:15]save to /storage/0391/doc_00112165 [10:13:15]save last doc name /storage/0391/doc_00112165 to /storage/kkm_last_doc_name [10:13:15]save OK [10:13:15]Clear old archive folders... [10:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:15]tlvbuf is B6F59B60 [10:13:15]SAM_PROTO_ClearQueue [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 09 00 00 [10:13:15]Write to MH i2c: E2 08 00 59 1E 80 09 00 00 00 00 00 00 E9 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 59 1E 00 90 00 EB [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_ClearQueue done [10:13:15]KKMCreateOFDPacket [10:13:15]OFDProtocolAddRootSTLVToBuf [10:13:15]FM_MakeSignedData [10:13:15]FM_MakeSignedData [10:13:15]SAM_PROTO_SignData [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 0D 01 02 [10:13:15]Write to MH i2c: E2 08 00 5A 1E 80 0D 01 02 00 00 00 00 F1 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 5A 1E 00 90 00 EC [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]wFMCommunicate request_size=255 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 1F 00 00 00 F4 03 04 00 CE A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B6 01 00 35 04 06 00 EE [10:13:15]Write to MH i2c: E2 02 01 5B 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 1F 00 00 00 F4 03 04 00 CE A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B6 01 00 35 04 06 00 EE 00 00 58 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:16]OFD Sender: No OFD packet to send [10:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [10:13:16]RAPDU: 90 00 [10:13:16]wFMCommunicate OK [10:13:16]wFMCommunicate request_size=10 [10:13:16]MH_SAM_APDU [10:13:16]CAPDU: 80 0D 02 02 05 6B E1 7E 10 F5 [10:13:16]Write to MH i2c: E2 0D 00 5C 1E 80 0D 02 02 05 00 6B E1 7E 10 F5 00 00 CD [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [10:13:16]RAPDU: 90 00 [10:13:16]wFMCommunicate OK [10:13:16]wFMCommunicate request_size=4 [10:13:16]MH_SAM_APDU [10:13:16]CAPDU: 80 0D 03 02 [10:13:16]Write to MH i2c: E2 08 00 5D 1E 80 0D 03 02 00 00 00 00 F6 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 0B 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 0B 00 5D 1E 00 49 06 12 27 7A 85 A5 F8 90 00 1B [10:13:16]RAPDU: 49 06 12 27 7A 85 A5 F8 90 00 [10:13:16]wFMCommunicate OK [10:13:16]SAM_PROTO_SignData done [10:13:16]FM_MakeSignedData done [10:13:16]CreateOFDProtocolMessage [10:13:16]wFMCommunicate request_size=4 [10:13:16]MH_SAM_APDU [10:13:16]CAPDU: 80 11 00 00 [10:13:16]Write to MH i2c: E2 08 00 5E 1E 80 11 00 00 00 00 00 00 F6 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 17 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 17 00 5E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 48 [10:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:13:16]wFMCommunicate OK [10:13:16]CreateOFDProtocolMessage done [10:13:16]OFDSenderStorePacket 112165 [10:13:16]StoreOFDPacket docnum=112165 [10:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 04 07 01 E5 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 1F 00 00 00 F4 03 04 00 CE A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B6 01 00 35 04 06 00 EE 6B E1 7E 10 F5 49 06 12 27 7A 85 A5 F8 [10:13:16]CheckFolder [10:13:16]dirname=/storage/ofd_packets [10:13:16]CheckFolder done [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00112165 [10:13:16]NVStorageSaveData ofd_packets/00112165 [10:13:16]File name is /storage/ofd_packets/00112165 [10:13:16]Write 301 bytes [10:13:16]NVStorageSaveData done [10:13:16]OFDSenderStorePacket done [10:13:16]KKMCreateOFDPacket done [10:13:16]NVStorageSaveData kkm_last_timestamp [10:13:16]File name is /storage/kkm_last_timestamp [10:13:16]Write 4 bytes [10:13:16]NVStorageSaveData done [10:13:16]ExternCall_PrintAddStr [10:13:16]wPrintStart [10:13:16]Write to MH i2c: 01 00 00 5F 1E 7D [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 07 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 07 00 5F 1E 00 00 00 00 00 FF 0F 92 [10:13:16]RasterBufferAndPrint [10:13:16]line Счет N : (1)320831 [10:13:16]line ИНН: 02508201610067 [10:13:16]line Контрольно-Кассовый Чек [10:13:16]line ПРОДАЖА [10:13:16]line ТРК (МРК, ГНК) : 11 [10:13:16]line Товар: 2710124130 [10:13:16]line Аи-92-К-5 [10:13:16]line 30.130 * 66.40 [10:13:16]line = 2000.63 [10:13:16]line НДС 12% НСП 1% [10:13:16]line > о реализуемом товаре [10:13:16]line ОКРУГЛЕНИЕ: -0.63 [10:13:16]line ИТОГО: 2000.00 [10:13:16]line Внесено: 2000.00 [10:13:16]line СДАЧА: 0.00 [10:13:16]line НСП 1% : 17.70 [10:13:16]line НДС 12% : 212.46 [10:13:16]line Наличными: 2000.00 [10:13:16]line Безнал.: 0.00 [10:13:16]line Место: АЗС № 65 "Партнер Нефть" [10:13:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:13:16]line СНО: Общий режим [10:13:16]line Чек 31 22.06.2024 10:13 [10:13:16]line Смена: 391 ФФД: 1.0 [10:13:16]line ЗНМ: 0300000198 [10:13:16]line РНМ: 0000000000092771 [10:13:16]line Версия ККМ: 001 [10:13:16]line ФМ: 0000000000875083 [10:13:16]line ФД: 112165 [10:13:16]line ФПД: 262147112046837 [10:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112165&fm=262147112046837&tin=02508201610067®Number=0000000000092771&sum=200000 [10:13:16]OFD Sender: Processing packet 112165 [packets to send 38, broken 37] [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00112165 [10:13:16]OFD Sender: To server: pG, [10:13:16]CommunicateWithHost lk.salyk.kg:30040 [10:13:16]ConnectInit lk.salyk.kg [10:13:16]written 0, free lines is 4095 [10:13:16]Connected sock=10 [10:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 04 07 01 E5 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 1F 00 00 00 F4 03 04 00 CE A3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B6 01 00 35 04 06 00 EE 6B E1 7E 10 F5 49 06 12 27 7A 85 A5 F8 [10:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 86 4B 47 00 F0 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 35 30 38 33 10 04 04 00 25 B6 01 00 F4 03 04 00 DD 3A 76 66 B6 04 01 00 00 C5 EF 11 ED 06 19 05 DB [10:13:16]CommunicateWithHost err = 0 [10:13:16]CheckOFDResponse [10:13:16]1017 (14) - 77093643461234 [10:13:16]1041 (16) - 0000000000875083 [10:13:16]1040 (4) - 112165 [10:13:16]1012 (4) - 22.06.2024 02:45 [10:13:16]1206 (1) - 0 [10:13:16]OFD Sender: Remove packet 112165 [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00112165 [10:13:16]NVStorageDeleteData [10:13:17]Write to MH i2c: 01 00 00 8A 1E A8 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 07 00 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 07 00 8A 1E 00 00 00 00 00 E2 0C 9D [10:13:17]RasterBufferAndPrint [10:13:17]line [10:13:17]line [10:13:17]line [10:13:17]line [10:13:17]line [10:13:17]written 0, free lines is 3304 [10:13:17]MH_Cut [10:13:17]Write to MH i2c: D1 01 00 91 1E 01 81 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: D1 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: D1 01 00 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: D1 01 00 91 1E 00 80 [10:13:17]Write to MH i2c: 01 00 00 92 1E B0 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]OFD Sender: No OFD packet to send [10:13:17]*** Cut start [10:13:17]*** Partial cut [10:13:17]*** CUTSNS_PIN = 1 [10:13:17]*** CUTSNS_PIN = 0 [10:13:18]*** Brake cut motor [10:13:18]Read from MH i2c: 01 [10:13:18]MH_I2C_Read... [10:13:18]*** Stop cut motor [10:13:18]*** Cut end [10:13:18]Read from MH i2c: 01 07 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: 01 07 00 92 1E 00 00 00 00 00 FF 0F C5 [10:13:18]process_action close_receipt done [10:13:18]requested_data is exist [10:13:18]produce_requested_data [10:13:18]requested_item fm.sn is exist - process it [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 11 00 00 [10:13:18]Write to MH i2c: E2 08 00 93 1E 80 11 00 00 00 00 00 00 2B [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 17 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 17 00 93 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [10:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:13:18]wFMCommunicate OK [10:13:18]requested_item fd.num is exist - process it [10:13:18]SAM_PROTO_GetFieldsCounters [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 13 00 00 [10:13:18]Write to MH i2c: E2 08 00 94 1E 80 13 00 00 00 00 00 00 2E [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 62 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 62 00 94 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:13:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetFieldsCounters done [10:13:18]requested_item shift.num is exist - process it [10:13:18]requested_item shift.opened is exist - process it [10:13:18]req_shift_opened [10:13:18]FM_GetShiftState [10:13:18]SAM_PROTO_GetShiftState [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 13 01 00 [10:13:18]Write to MH i2c: E2 08 00 95 1E 80 13 01 00 00 00 00 00 30 [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 95 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 65 [10:13:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetShiftState done [10:13:18]FM_GetShiftState done [10:13:18]req_shift_opened done [10:13:18]requested_item shift.open_date is exist - process it [10:13:18]req_shift_open_date [10:13:18]req_shift_open_date done [10:13:18]produce_requested_data done [10:13:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112165,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:13:18]process_action_free close_receipt [10:13:18]json_value_free [10:13:18]json_value_free done [10:13:18]process_json_proto returns [10:13:18]Send response to host [10:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112165,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:13:18]free response buf [10:13:18]execute_script done [10:13:18]execute_script returns [10:13:18]free content buf [10:13:18]Sock 9.Close socket [10:13:18]Sock 9.Thread stoped [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:48]accept exits with 7 [10:14:48]New connection [10:14:48]New thread 3066957156 created [10:14:48]Thread 3066813796 joined [10:14:48]Waiting for new connection... [10:14:48] Sock 7.Parse request [10:14:48]Sock 7.Check first char [10:14:48]Sock 7.First char is OK [10:14:48]request: POST /json_proto HTTP/1.0 [10:14:48]Method: POST [10:14:48]URL: /json_proto [10:14:48]Method is POST - this is cgi request [10:14:48]url: /json_proto [10:14:48]query_string will be loaded in cgi processing [10:14:48]execute_cgi json_proto POST (null) [10:14:48]execute_cgi path=json_proto method=POST [10:14:48]POST find Content-Length [10:14:48]Host: 172.17.59.68:8080 [10:14:48]Content-Length: 677 [10:14:48]Content-Type: application/json [10:14:48] [10:14:48]POST finish read [10:14:48]Found Content-Length = 677 [10:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320832", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:48]execute_script... [10:14: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)320832", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:48]POST & json_proto [10:14:48]process_json_proto [10:14:48]json parsed OK: [10:14:48]protocol is kg_v1.0 [10:14:48]action value=close_receipt [10:14:48]process_action close_receipt [10:14:48]cmd_close_receipt [10:14:48]MH_GetDate [10:14:48]Write to MH i2c: F0 00 00 96 1E A3 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 09 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 09 00 96 1E 00 2C A4 76 66 BC EC 60 65 C5 [10:14:48]GetLastDocTimeStamp 1719051214 [10:14:48]current date 1719051308 [10:14:48]FM_GetShiftState [10:14:48]SAM_PROTO_GetShiftState [10:14:48]wFMCommunicate request_size=4 [10:14:48]MH_SAM_APDU [10:14:48]CAPDU: 80 13 01 00 [10:14:48]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 67 [10:14:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:14:48]wFMCommunicate OK [10:14:48]SAM_PROTO_GetShiftState done [10:14:48]FM_GetShiftState done [10:14:48]opened in 1719020067 [10:14:48]opened+sec_in_day 1719106467 [10:14:48]quantity*price = 50065 [10:14:48]sum+1 = 50067 [10:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 32 22.06.2024 10:15 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112166 ФПД: 137048992593535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101508&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112166&fm=137048992593535&tin=02508201610067®Number=0000000000092771&sum=50000 [10:14:49]StoreToDocumentArchive [10:14:49]shift 391 fd 112166 [10:14:49]save to /storage/0391/doc_00112166 [10:14:49]save last doc name /storage/0391/doc_00112166 to /storage/kkm_last_doc_name [10:14:49]save OK [10:14:49]Clear old archive folders... [10:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:49]tlvbuf is 0111E4D0 [10:14:49]SAM_PROTO_ClearQueue [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 09 00 00 [10:14:49]Write to MH i2c: E2 08 00 A4 1E 80 09 00 00 00 00 00 00 34 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 A4 1E 00 90 00 36 [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_ClearQueue done [10:14:49]KKMCreateOFDPacket [10:14:49]OFDProtocolAddRootSTLVToBuf [10:14:49]FM_MakeSignedData [10:14:49]FM_MakeSignedData [10:14:49]SAM_PROTO_SignData [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 01 02 [10:14:49]Write to MH i2c: E2 08 00 A5 1E 80 0D 01 02 00 00 00 00 3C [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 A5 1E 00 90 00 37 [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=255 [10:14:49]MH_SAM_APDU [10:14: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B6 01 00 35 04 06 00 7C [10:14:49]Write to MH i2c: E2 02 01 A6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B6 01 00 35 04 06 00 7C 00 00 9D [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [10:14:50]RAPDU: 90 00 [10:14:50]wFMCommunicate OK [10:14:50]wFMCommunicate request_size=10 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 0D 02 02 05 A5 34 85 36 7F [10:14:50]Write to MH i2c: E2 0D 00 A7 1E 80 0D 02 02 05 00 A5 34 85 36 7F 00 00 5C [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [10:14:50]RAPDU: 90 00 [10:14:50]wFMCommunicate OK [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 0D 03 02 [10:14:50]Write to MH i2c: E2 08 00 A8 1E 80 0D 03 02 00 00 00 00 41 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0B 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0B 00 A8 1E 00 42 E3 BA 99 6C 7B BB AA 90 00 06 [10:14:50]RAPDU: 42 E3 BA 99 6C 7B BB AA 90 00 [10:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_SignData done [10:14:50]FM_MakeSignedData done [10:14:50]CreateOFDProtocolMessage [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 11 00 00 [10:14:50]Write to MH i2c: E2 08 00 A9 1E 80 11 00 00 00 00 00 00 41 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 17 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 17 00 A9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 93 [10:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:14:50]wFMCommunicate OK [10:14:50]CreateOFDProtocolMessage done [10:14:50]OFDSenderStorePacket 112166 [10:14:50]StoreOFDPacket docnum=112166 [10:14:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 5C 07 01 02 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B6 01 00 35 04 06 00 7C A5 34 85 36 7F 42 E3 BA 99 6C 7B BB AA [10:14:50]CheckFolder [10:14:50]dirname=/storage/ofd_packets [10:14:50]CheckFolder done [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00112166 [10:14:50]NVStorageSaveData ofd_packets/00112166 [10:14:50]File name is /storage/ofd_packets/00112166 [10:14:50]Write 301 bytes [10:14:50]NVStorageSaveData done [10:14:50]OFDSenderStorePacket done [10:14:50]KKMCreateOFDPacket done [10:14:50]NVStorageSaveData kkm_last_timestamp [10:14:50]File name is /storage/kkm_last_timestamp [10:14:50]Write 4 bytes [10:14:50]NVStorageSaveData done [10:14:50]ExternCall_PrintAddStr [10:14:50]wPrintStart [10:14:50]Write to MH i2c: 01 00 00 AA 1E C8 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 AA 1E 00 00 00 00 00 FF 0F DD [10:14:50]RasterBufferAndPrint [10:14:50]line Счет N : (1)320832 [10:14:50]line ИНН: 02508201610067 [10:14:50]line Контрольно-Кассовый Чек [10:14:50]line ПРОДАЖА [10:14:50]line ТРК (МРК, ГНК) : 11 [10:14:50]line Товар: 2710124130 [10:14:50]line Аи-92-К-5 [10:14:50]line 7.540 * 66.40 [10:14:50]line = 500.66 [10:14:50]line НДС 12% НСП 1% [10:14:50]line > о реализуемом товаре [10:14:50]line ОКРУГЛЕНИЕ: -0.66 [10:14:50]line ИТОГО: 500.00 [10:14:50]line Внесено: 500.00 [10:14:50]line СДАЧА: 0.00 [10:14:50]line НСП 1% : 4.43 [10:14:50]line НДС 12% : 53.17 [10:14:50]line Наличными: 500.00 [10:14:50]line Безнал.: 0.00 [10:14:50]line Место: АЗС № 65 "Партнер Нефть" [10:14:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:14:50]line СНО: Общий режим [10:14:50]line Чек 32 22.06.2024 10:15 [10:14:50]line Смена: 391 ФФД: 1.0 [10:14:50]line ЗНМ: 0300000198 [10:14:50]line РНМ: 0000000000092771 [10:14:50]line Версия ККМ: 001 [10:14:50]line ФМ: 0000000000875083 [10:14:50]line ФД: 112166 [10:14:50]line ФПД: 137048992593535 [10:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101508&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112166&fm=137048992593535&tin=02508201610067®Number=0000000000092771&sum=50000 [10:14:50]OFD Sender: Processing packet 112166 [packets to send 38, broken 37] [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00112166 [10:14:50]OFD Sender: To server: pG, [10:14:50]CommunicateWithHost lk.salyk.kg:30040 [10:14:50]ConnectInit lk.salyk.kg [10:14:50]written 0, free lines is 4095 [10:14:50]Connected sock=11 [10:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 5C 07 01 02 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B6 01 00 35 04 06 00 7C A5 34 85 36 7F 42 E3 BA 99 6C 7B BB AA [10:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 17 E3 47 00 71 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B6 01 00 F4 03 04 00 3B 3B 76 66 B6 04 01 00 00 48 63 9E 02 B3 41 67 D2 [10:14:50]CommunicateWithHost err = 0 [10:14:50]CheckOFDResponse [10:14:50]1017 (14) - 77093643461234 [10:14:50]1041 (16) - 0000000000875083 [10:14:50]1040 (4) - 112166 [10:14:50]1012 (4) - 22.06.2024 02:47 [10:14:50]1206 (1) - 0 [10:14:50]OFD Sender: Remove packet 112166 [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00112166 [10:14:50]NVStorageDeleteData [10:14:51]Write to MH i2c: 01 00 00 D5 1E F3 [10:14:51]Write i2c OK [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: 01 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: 01 07 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: 01 07 00 D5 1E 00 00 00 00 00 D4 0C DA [10:14:51]RasterBufferAndPrint [10:14:51]line [10:14:51]line [10:14:51]line [10:14:51]line [10:14:51]line [10:14:51]written 0, free lines is 3292 [10:14:51]MH_Cut [10:14:51]Write to MH i2c: D1 01 00 DC 1E 01 CC [10:14:51]Write i2c OK [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: D1 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: D1 01 00 [10:14:51]MH_I2C_Read... [10:14:51]Read from MH i2c: D1 01 00 DC 1E 00 CB [10:14:51]Write to MH i2c: 01 00 00 DD 1E FB [10:14:51]Write i2c OK [10:14:51]MH_I2C_Read... [10:14:51]OFD Sender: No OFD packet to send [10:14:51]*** Cut start [10:14:51]*** Partial cut [10:14:51]*** CUTSNS_PIN = 1 [10:14:51]*** CUTSNS_PIN = 0 [10:14:52]*** Brake cut motor [10:14:52]Read from MH i2c: 01 [10:14:52]MH_I2C_Read... [10:14:52]*** Stop cut motor [10:14:52]*** Cut end [10:14:52]Read from MH i2c: 01 07 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 FF 0F 10 [10:14:52]process_action close_receipt done [10:14:52]requested_data is exist [10:14:52]produce_requested_data [10:14:52]requested_item fm.sn is exist - process it [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 11 00 00 [10:14:52]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 DE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [10:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:14:52]wFMCommunicate OK [10:14:52]requested_item fd.num is exist - process it [10:14:52]SAM_PROTO_GetFieldsCounters [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 00 00 [10:14:52]Write to MH i2c: E2 08 00 DF 1E 80 13 00 00 00 00 00 00 79 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 62 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 62 00 DF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetFieldsCounters done [10:14:52]requested_item shift.num is exist - process it [10:14:52]requested_item shift.opened is exist - process it [10:14:52]req_shift_opened [10:14:52]FM_GetShiftState [10:14:52]SAM_PROTO_GetShiftState [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 01 00 [10:14:52]Write to MH i2c: E2 08 00 E0 1E 80 13 01 00 00 00 00 00 7B [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 E0 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B0 [10:14:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetShiftState done [10:14:52]FM_GetShiftState done [10:14:52]req_shift_opened done [10:14:52]requested_item shift.open_date is exist - process it [10:14:52]req_shift_open_date [10:14:52]req_shift_open_date done [10:14:52]produce_requested_data done [10:14:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112166,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:14:52]process_action_free close_receipt [10:14:52]json_value_free [10:14:52]json_value_free done [10:14:52]process_json_proto returns [10:14:52]Send response to host [10:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112166,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:14:52]free response buf [10:14:52]execute_script done [10:14:52]execute_script returns [10:14:52]free content buf [10:14:52]Sock 7.Close socket [10:14:52]Sock 7.Thread stoped [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:36]accept exits with 9 [10:17:36]New connection [10:17:36]New thread 3066813796 created [10:17:36]Thread 3066957156 joined [10:17:36]Waiting for new connection... [10:17:36] Sock 9.Parse request [10:17:36]Sock 9.Check first char [10:17:36]Sock 9.First char is OK [10:17:36]request: POST /json_proto HTTP/1.0 [10:17:36]Method: POST [10:17:36]URL: /json_proto [10:17:36]Method is POST - this is cgi request [10:17:36]url: /json_proto [10:17:36]query_string will be loaded in cgi processing [10:17:36]execute_cgi json_proto POST (null) [10:17:36]execute_cgi path=json_proto method=POST [10:17:36]POST find Content-Length [10:17:36]Host: 172.17.59.68:8080 [10:17:36]Content-Length: 678 [10:17:36]Content-Type: application/json [10:17:36] [10:17:36]POST finish read [10:17:36]Found Content-Length = 678 [10:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320833", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:36]execute_script... [10:17: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)320833", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:36]POST & json_proto [10:17:36]process_json_proto [10:17:36]json parsed OK: [10:17:36]protocol is kg_v1.0 [10:17:36]action value=close_receipt [10:17:36]process_action close_receipt [10:17:36]cmd_close_receipt [10:17:36]MH_GetDate [10:17:36]Write to MH i2c: F0 00 00 E1 1E EE [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: F0 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: F0 09 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: F0 09 00 E1 1E 00 D4 A4 76 66 BC EC 60 65 B8 [10:17:36]GetLastDocTimeStamp 1719051308 [10:17:36]current date 1719051476 [10:17:36]FM_GetShiftState [10:17:36]SAM_PROTO_GetShiftState [10:17:36]wFMCommunicate request_size=4 [10:17:36]MH_SAM_APDU [10:17:36]CAPDU: 80 13 01 00 [10:17:36]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [10:17:36]Write i2c OK [10:17:36]MH_I2C_Read... [10:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:36]Read from MH i2c: E2 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 0E 00 [10:17:36]MH_I2C_Read... [10:17:36]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B2 [10:17:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:17:36]wFMCommunicate OK [10:17:36]SAM_PROTO_GetShiftState done [10:17:36]FM_GetShiftState done [10:17:36]opened in 1719020067 [10:17:36]opened+sec_in_day 1719106467 [10:17:36]quantity*price = 70052 [10:17:36]sum+1 = 70053 [10:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 33 22.06.2024 10:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112167 ФПД: 161472116507879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112167&fm=161472116507879&tin=02508201610067®Number=0000000000092771&sum=70000 [10:17:37]StoreToDocumentArchive [10:17:37]shift 391 fd 112167 [10:17:37]save to /storage/0391/doc_00112167 [10:17:37]save last doc name /storage/0391/doc_00112167 to /storage/kkm_last_doc_name [10:17:37]save OK [10:17:37]Clear old archive folders... [10:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:37]tlvbuf is 0112BF40 [10:17:37]SAM_PROTO_ClearQueue [10:17:37]wFMCommunicate request_size=4 [10:17:37]MH_SAM_APDU [10:17:37]CAPDU: 80 09 00 00 [10:17:37]Write to MH i2c: E2 08 00 EF 1E 80 09 00 00 00 00 00 00 7F [10:17:37]Write i2c OK [10:17:37]MH_I2C_Read... [10:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 EF 1E 00 90 00 81 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]SAM_PROTO_ClearQueue done [10:17:38]KKMCreateOFDPacket [10:17:38]OFDProtocolAddRootSTLVToBuf [10:17:38]FM_MakeSignedData [10:17:38]FM_MakeSignedData [10:17:38]SAM_PROTO_SignData [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 01 02 [10:17:38]Write to MH i2c: E2 08 00 F0 1E 80 0D 01 02 00 00 00 00 87 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 F0 1E 00 90 00 82 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=255 [10:17:38]MH_SAM_APDU [10:17: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B6 01 00 35 04 06 00 92 [10:17:38]Write to MH i2c: E2 02 01 F1 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B6 01 00 35 04 06 00 92 00 00 BA [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=10 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 02 02 05 DB A8 25 44 E7 [10:17:38]Write to MH i2c: E2 0D 00 F2 1E 80 0D 02 02 05 00 DB A8 25 44 E7 00 00 67 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 03 02 [10:17:38]Write to MH i2c: E2 08 00 F3 1E 80 0D 03 02 00 00 00 00 8C [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 0B 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 0B 00 F3 1E 00 3C AC 71 E2 E9 7E 4E AD 90 00 2A [10:17:38]RAPDU: 3C AC 71 E2 E9 7E 4E AD 90 00 [10:17:38]wFMCommunicate OK [10:17:38]SAM_PROTO_SignData done [10:17:38]FM_MakeSignedData done [10:17:38]CreateOFDProtocolMessage [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 11 00 00 [10:17:38]Write to MH i2c: E2 08 00 F4 1E 80 11 00 00 00 00 00 00 8C [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 17 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 17 00 F4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [10:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:17:38]wFMCommunicate OK [10:17:38]CreateOFDProtocolMessage done [10:17:38]OFDSenderStorePacket 112167 [10:17:38]StoreOFDPacket docnum=112167 [10:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 39 19 07 01 00 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B6 01 00 35 04 06 00 92 DB A8 25 44 E7 3C AC 71 E2 E9 7E 4E AD [10:17:38]CheckFolder [10:17:38]dirname=/storage/ofd_packets [10:17:38]CheckFolder done [10:17:38]ProducePacketName [10:17:38]name=ofd_packets/00112167 [10:17:38]NVStorageSaveData ofd_packets/00112167 [10:17:38]File name is /storage/ofd_packets/00112167 [10:17:38]Write 301 bytes [10:17:38]NVStorageSaveData done [10:17:38]OFDSenderStorePacket done [10:17:38]KKMCreateOFDPacket done [10:17:38]NVStorageSaveData kkm_last_timestamp [10:17:38]File name is /storage/kkm_last_timestamp [10:17:38]Write 4 bytes [10:17:38]NVStorageSaveData done [10:17:38]ExternCall_PrintAddStr [10:17:38]wPrintStart [10:17:38]Write to MH i2c: 01 00 00 F5 1E 13 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: 01 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: 01 07 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [10:17:38]RasterBufferAndPrint [10:17:38]line Счет N : (1)320833 [10:17:38]line ИНН: 02508201610067 [10:17:38]line Контрольно-Кассовый Чек [10:17:38]line ПРОДАЖА [10:17:38]line ТРК (МРК, ГНК) : 11 [10:17:38]line Товар: 2710124130 [10:17:38]line Аи-92-К-5 [10:17:38]line 10.550 * 66.40 [10:17:38]line = 700.52 [10:17:38]line НДС 12% НСП 1% [10:17:38]line > о реализуемом товаре [10:17:38]line ОКРУГЛЕНИЕ: -0.52 [10:17:38]line ИТОГО: 700.00 [10:17:38]line Внесено: 700.00 [10:17:38]line СДАЧА: 0.00 [10:17:38]line НСП 1% : 6.20 [10:17:38]line НДС 12% : 74.39 [10:17:38]line Наличными: 700.00 [10:17:38]line Безнал.: 0.00 [10:17:38]line Место: АЗС № 65 "Партнер Нефть" [10:17:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:17:38]line СНО: Общий режим [10:17:38]line Чек 33 22.06.2024 10:17 [10:17:38]line Смена: 391 ФФД: 1.0 [10:17:38]line ЗНМ: 0300000198 [10:17:38]line РНМ: 0000000000092771 [10:17:38]line Версия ККМ: 001 [10:17:38]line ФМ: 0000000000875083 [10:17:38]line ФД: 112167 [10:17:38]line ФПД: 161472116507879 [10:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T101756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112167&fm=161472116507879&tin=02508201610067®Number=0000000000092771&sum=70000 [10:17:38]OFD Sender: Processing packet 112167 [packets to send 38, broken 37] [10:17:38]ProducePacketName [10:17:38]name=ofd_packets/00112167 [10:17:38]OFD Sender: To server: pG, [10:17:38]CommunicateWithHost lk.salyk.kg:30040 [10:17:38]ConnectInit lk.salyk.kg [10:17:38]written 0, free lines is 4095 [10:17:38]Connected sock=10 [10:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 39 19 07 01 00 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 A4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B6 01 00 35 04 06 00 92 DB A8 25 44 E7 3C AC 71 E2 E9 7E 4E AD [10:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 81 10 47 00 89 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B6 01 00 F4 03 04 00 E3 3B 76 66 B6 04 01 00 00 80 6D 1F 38 05 06 09 58 [10:17:39]CommunicateWithHost err = 0 [10:17:39]CheckOFDResponse [10:17:39]1017 (14) - 77093643461234 [10:17:39]1041 (16) - 0000000000875083 [10:17:39]1040 (4) - 112167 [10:17:39]1012 (4) - 22.06.2024 02:50 [10:17:39]1206 (1) - 0 [10:17:39]OFD Sender: Remove packet 112167 [10:17:39]ProducePacketName [10:17:39]name=ofd_packets/00112167 [10:17:39]NVStorageDeleteData [10:17:39]Write to MH i2c: 01 00 00 20 1F 3F [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 20 1F 00 00 00 00 00 DC 0C 2E [10:17:39]RasterBufferAndPrint [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]written 0, free lines is 3298 [10:17:39]MH_Cut [10:17:39]Write to MH i2c: D1 01 00 27 1F 01 18 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 01 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 01 00 27 1F 00 17 [10:17:39]Write to MH i2c: 01 00 00 28 1F 47 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]OFD Sender: No OFD packet to send [10:17:40]*** Cut start [10:17:40]*** Partial cut [10:17:40]*** CUTSNS_PIN = 1 [10:17:40]*** CUTSNS_PIN = 0 [10:17:40]*** Brake cut motor [10:17:40]Read from MH i2c: 01 [10:17:40]MH_I2C_Read... [10:17:40]*** Stop cut motor [10:17:40]*** Cut end [10:17:40]Read from MH i2c: 01 07 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 FF 0F 5C [10:17:40]process_action close_receipt done [10:17:40]requested_data is exist [10:17:40]produce_requested_data [10:17:40]requested_item fm.sn is exist - process it [10:17:40]wFMCommunicate request_size=4 [10:17:40]MH_SAM_APDU [10:17:40]CAPDU: 80 11 00 00 [10:17:40]Write to MH i2c: E2 08 00 29 1F 80 11 00 00 00 00 00 00 C2 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:40]Read from MH i2c: E2 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 17 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 17 00 29 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 14 [10:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:17:40]wFMCommunicate OK [10:17:40]requested_item fd.num is exist - process it [10:17:40]SAM_PROTO_GetFieldsCounters [10:17:40]wFMCommunicate request_size=4 [10:17:40]MH_SAM_APDU [10:17:40]CAPDU: 80 13 00 00 [10:17:40]Write to MH i2c: E2 08 00 2A 1F 80 13 00 00 00 00 00 00 C5 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:40]Read from MH i2c: E2 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 62 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 62 00 2A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [10:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:40]wFMCommunicate OK [10:17:40]SAM_PROTO_GetFieldsCounters done [10:17:40]requested_item shift.num is exist - process it [10:17:40]requested_item shift.opened is exist - process it [10:17:40]req_shift_opened [10:17:40]FM_GetShiftState [10:17:40]SAM_PROTO_GetShiftState [10:17:40]wFMCommunicate request_size=4 [10:17:40]MH_SAM_APDU [10:17:40]CAPDU: 80 13 01 00 [10:17:40]Write to MH i2c: E2 08 00 2B 1F 80 13 01 00 00 00 00 00 C7 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:40]Read from MH i2c: E2 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 0E 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 0E 00 2B 1F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FC [10:17:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:17:40]wFMCommunicate OK [10:17:40]SAM_PROTO_GetShiftState done [10:17:40]FM_GetShiftState done [10:17:40]req_shift_opened done [10:17:40]requested_item shift.open_date is exist - process it [10:17:40]req_shift_open_date [10:17:40]req_shift_open_date done [10:17:40]produce_requested_data done [10:17:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112167,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:17:40]process_action_free close_receipt [10:17:40]json_value_free [10:17:40]json_value_free done [10:17:40]process_json_proto returns [10:17:40]Send response to host [10:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112167,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:17:40]free response buf [10:17:40]execute_script done [10:17:40]execute_script returns [10:17:40]free content buf [10:17:40]Sock 9.Close socket [10:17:40]Sock 9.Thread stoped [10:17:44]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:09]accept exits with 7 [10:29:09]New connection [10:29:09]New thread 3066957156 created [10:29:09]Thread 3066813796 joined [10:29:09]Waiting for new connection... [10:29:09] Sock 7.Parse request [10:29:09]Sock 7.Check first char [10:29:09]Sock 7.First char is OK [10:29:09]request: POST /json_proto HTTP/1.0 [10:29:09]Method: POST [10:29:09]URL: /json_proto [10:29:09]Method is POST - this is cgi request [10:29:09]url: /json_proto [10:29:09]query_string will be loaded in cgi processing [10:29:09]execute_cgi json_proto POST (null) [10:29:09]execute_cgi path=json_proto method=POST [10:29:09]POST find Content-Length [10:29:09]Host: 172.17.59.68:8080 [10:29:09]Content-Length: 682 [10:29:09]Content-Type: application/json [10:29:09] [10:29:09]POST finish read [10:29:09]Found Content-Length = 682 [10:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320834", "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.40, "quantity" : 75.310, "sum" : 5000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:09]execute_script... [10:29: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)320834", "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.40, "quantity" : 75.310, "sum" : 5000.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:09]POST & json_proto [10:29:09]process_json_proto [10:29:09]json parsed OK: [10:29:09]protocol is kg_v1.0 [10:29:09]action value=close_receipt [10:29:09]process_action close_receipt [10:29:09]cmd_close_receipt [10:29:09]MH_GetDate [10:29:09]Write to MH i2c: F0 00 00 2C 1F 3A [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: F0 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: F0 09 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: F0 09 00 2C 1F 00 89 A7 76 66 BC EC 60 65 BC [10:29:09]GetLastDocTimeStamp 1719051476 [10:29:09]current date 1719052169 [10:29:09]FM_GetShiftState [10:29:09]SAM_PROTO_GetShiftState [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 01 00 [10:29:09]Write to MH i2c: E2 08 00 2D 1F 80 13 01 00 00 00 00 00 C9 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 2D 1F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FE [10:29:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetShiftState done [10:29:09]FM_GetShiftState done [10:29:09]opened in 1719020067 [10:29:09]opened+sec_in_day 1719106467 [10:29:09]quantity*price = 500058 [10:29:09]sum+1 = 500059 [10:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.03 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 34 22.06.2024 10:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112168 ФПД: 200710983469711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102929&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112168&fm=200710983469711&tin=02508201610067®Number=0000000000092771&sum=500000 [10:29:10]StoreToDocumentArchive [10:29:10]shift 391 fd 112168 [10:29:10]save to /storage/0391/doc_00112168 [10:29:10]save last doc name /storage/0391/doc_00112168 to /storage/kkm_last_doc_name [10:29:10]save OK [10:29:10]Clear old archive folders... [10:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:10]tlvbuf is 011CA820 [10:29:10]SAM_PROTO_ClearQueue [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 09 00 00 [10:29:10]Write to MH i2c: E2 08 00 3A 1F 80 09 00 00 00 00 00 00 CB [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_ClearQueue done [10:29:10]KKMCreateOFDPacket [10:29:10]OFDProtocolAddRootSTLVToBuf [10:29:10]FM_MakeSignedData [10:29:10]FM_MakeSignedData [10:29:10]SAM_PROTO_SignData [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 01 02 [10:29:10]Write to MH i2c: E2 08 00 3B 1F 80 0D 01 02 00 00 00 00 D3 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]OFD Sender: No OFD packet to send [10:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 3B 1F 00 90 00 CE [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=255 [10:29:10]MH_SAM_APDU [10:29: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 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 89 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B6 01 00 35 04 06 00 B6 [10:29:10]Write to MH i2c: E2 02 01 3C 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 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 89 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B6 01 00 35 04 06 00 B6 00 00 B0 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=10 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 02 02 05 8B AA DF 4A 8F [10:29:10]Write to MH i2c: E2 0D 00 3D 1F 80 0D 02 02 05 00 8B AA DF 4A 8F 00 00 CD [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [10:29:10]RAPDU: 90 00 [10:29:10]wFMCommunicate OK [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 0D 03 02 [10:29:10]Write to MH i2c: E2 08 00 3E 1F 80 0D 03 02 00 00 00 00 D8 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0B 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0B 00 3E 1F 00 38 27 30 AA B6 86 77 50 90 00 15 [10:29:10]RAPDU: 38 27 30 AA B6 86 77 50 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_SignData done [10:29:10]FM_MakeSignedData done [10:29:10]CreateOFDProtocolMessage [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 11 00 00 [10:29:10]Write to MH i2c: E2 08 00 3F 1F 80 11 00 00 00 00 00 00 D8 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 17 00 3F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2A [10:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:29:10]wFMCommunicate OK [10:29:10]CreateOFDProtocolMessage done [10:29:10]OFDSenderStorePacket 112168 [10:29:10]StoreOFDPacket docnum=112168 [10:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A D1 07 01 0A 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 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 89 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B6 01 00 35 04 06 00 B6 8B AA DF 4A 8F 38 27 30 AA B6 86 77 50 [10:29:10]CheckFolder [10:29:10]dirname=/storage/ofd_packets [10:29:10]CheckFolder done [10:29:10]ProducePacketName [10:29:10]name=ofd_packets/00112168 [10:29:10]NVStorageSaveData ofd_packets/00112168 [10:29:10]File name is /storage/ofd_packets/00112168 [10:29:10]Write 301 bytes [10:29:10]NVStorageSaveData done [10:29:10]OFDSenderStorePacket done [10:29:10]KKMCreateOFDPacket done [10:29:10]NVStorageSaveData kkm_last_timestamp [10:29:10]File name is /storage/kkm_last_timestamp [10:29:10]Write 4 bytes [10:29:10]NVStorageSaveData done [10:29:10]ExternCall_PrintAddStr [10:29:10]wPrintStart [10:29:10]Write to MH i2c: 01 00 00 40 1F 5F [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 FF 0F 74 [10:29:10]RasterBufferAndPrint [10:29:10]line Счет N : (1)320834 [10:29:10]line ИНН: 02508201610067 [10:29:10]line Контрольно-Кассовый Чек [10:29:10]line ПРОДАЖА [10:29:10]line ТРК (МРК, ГНК) : 11 [10:29:10]line Товар: 2710124130 [10:29:10]line Аи-92-К-5 [10:29:10]line 75.310 * 66.40 [10:29:10]line = 5000.58 [10:29:10]line НДС 12% НСП 1% [10:29:10]line > о реализуемом товаре [10:29:10]line ОКРУГЛЕНИЕ: -0.58 [10:29:10]line ИТОГО: 5000.00 [10:29:10]line Внесено: 5000.00 [10:29:10]line СДАЧА: 0.00 [10:29:10]line НСП 1% : 44.25 [10:29:10]line НДС 12% : 531.03 [10:29:10]line Наличными: 5000.00 [10:29:10]line Безнал.: 0.00 [10:29:10]line Место: АЗС № 65 "Партнер Нефть" [10:29:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:29:10]line СНО: Общий режим [10:29:10]line Чек 34 22.06.2024 10:29 [10:29:10]line Смена: 391 ФФД: 1.0 [10:29:10]line ЗНМ: 0300000198 [10:29:10]line РНМ: 0000000000092771 [10:29:10]line Версия ККМ: 001 [10:29:10]line ФМ: 0000000000875083 [10:29:10]line ФД: 112168 [10:29:10]line ФПД: 200710983469711 [10:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102929&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112168&fm=200710983469711&tin=02508201610067®Number=0000000000092771&sum=500000 [10:29:11]OFD Sender: Processing packet 112168 [packets to send 38, broken 37] [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00112168 [10:29:11]OFD Sender: To server: pG, [10:29:11]CommunicateWithHost lk.salyk.kg:30040 [10:29:11]ConnectInit lk.salyk.kg [10:29:11]written 0, free lines is 4095 [10:29:11]Connected sock=10 [10:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A D1 07 01 0A 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 2E 26 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 89 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B6 01 00 35 04 06 00 B6 8B AA DF 4A 8F 38 27 30 AA B6 86 77 50 [10:29:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 75 47 00 6A 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B6 01 00 F4 03 04 00 98 3E 76 66 B6 04 01 00 00 38 6A A3 E0 3A D0 4A D4 [10:29:11]CommunicateWithHost err = 0 [10:29:11]CheckOFDResponse [10:29:11]1017 (14) - 77093643461234 [10:29:11]1041 (16) - 0000000000875083 [10:29:11]1040 (4) - 112168 [10:29:11]1012 (4) - 22.06.2024 03:01 [10:29:11]1206 (1) - 0 [10:29:11]OFD Sender: Remove packet 112168 [10:29:11]ProducePacketName [10:29:11]name=ofd_packets/00112168 [10:29:11]NVStorageDeleteData [10:29:11]Write to MH i2c: 01 00 00 6B 1F 8A [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 E7 0C 84 [10:29:11]RasterBufferAndPrint [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]line [10:29:11]written 0, free lines is 3310 [10:29:11]MH_Cut [10:29:11]Write to MH i2c: D1 01 00 72 1F 01 63 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 01 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: D1 01 00 72 1F 00 62 [10:29:11]Write to MH i2c: 01 00 00 73 1F 92 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]OFD Sender: No OFD packet to send [10:29:12]*** Cut start [10:29:12]*** Partial cut [10:29:12]*** CUTSNS_PIN = 1 [10:29:12]*** CUTSNS_PIN = 0 [10:29:12]*** Brake cut motor [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]*** Stop cut motor [10:29:12]*** Cut end [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 73 1F 00 00 00 00 00 FF 0F A7 [10:29:12]process_action close_receipt done [10:29:12]requested_data is exist [10:29:12]produce_requested_data [10:29:12]requested_item fm.sn is exist - process it [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 11 00 00 [10:29:12]Write to MH i2c: E2 08 00 74 1F 80 11 00 00 00 00 00 00 0D [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 74 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [10:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:29:12]wFMCommunicate OK [10:29:12]requested_item fd.num is exist - process it [10:29:12]SAM_PROTO_GetFieldsCounters [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 13 00 00 [10:29:12]Write to MH i2c: E2 08 00 75 1F 80 13 00 00 00 00 00 00 10 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:13]Read from MH i2c: E2 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 62 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 62 00 75 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10:29:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:13]wFMCommunicate OK [10:29:13]SAM_PROTO_GetFieldsCounters done [10:29:13]requested_item shift.num is exist - process it [10:29:13]requested_item shift.opened is exist - process it [10:29:13]req_shift_opened [10:29:13]FM_GetShiftState [10:29:13]SAM_PROTO_GetShiftState [10:29:13]wFMCommunicate request_size=4 [10:29:13]MH_SAM_APDU [10:29:13]CAPDU: 80 13 01 00 [10:29:13]Write to MH i2c: E2 08 00 76 1F 80 13 01 00 00 00 00 00 12 [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:13]Read from MH i2c: E2 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 0E 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: E2 0E 00 76 1F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 47 [10:29:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:29:13]wFMCommunicate OK [10:29:13]SAM_PROTO_GetShiftState done [10:29:13]FM_GetShiftState done [10:29:13]req_shift_opened done [10:29:13]requested_item shift.open_date is exist - process it [10:29:13]req_shift_open_date [10:29:13]req_shift_open_date done [10:29:13]produce_requested_data done [10:29:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112168,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:29:13]process_action_free close_receipt [10:29:13]json_value_free [10:29:13]json_value_free done [10:29:13]process_json_proto returns [10:29:13]Send response to host [10:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112168,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:29:13]free response buf [10:29:13]execute_script done [10:29:13]execute_script returns [10:29:13]free content buf [10:29:13]Sock 7.Close socket [10:29:13]Sock 7.Thread stoped [10:29:16]OFD Sender: No OFD packet to send [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:35]accept exits with 9 [10:29:35]New connection [10:29:35]New thread 3066813796 created [10:29:35]Thread 3066957156 joined [10:29:35]Waiting for new connection... [10:29:35] Sock 9.Parse request [10:29:35]Sock 9.Check first char [10:29:35]Sock 9.First char is OK [10:29:35]request: POST /json_proto HTTP/1.0 [10:29:35]Method: POST [10:29:35]URL: /json_proto [10:29:35]Method is POST - this is cgi request [10:29:35]url: /json_proto [10:29:35]query_string will be loaded in cgi processing [10:29:35]execute_cgi json_proto POST (null) [10:29:35]execute_cgi path=json_proto method=POST [10:29:35]POST find Content-Length [10:29:35]Host: 172.17.59.68:8080 [10:29:35]Content-Length: 639 [10:29:35]Content-Type: application/json [10:29:35] [10:29:35]POST finish read [10:29:35]Found Content-Length = 639 [10:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320835", "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.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:35]execute_script... [10:29: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)320835", "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.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:35]POST & json_proto [10:29:35]process_json_proto [10:29:35]json parsed OK: [10:29:35]protocol is kg_v1.0 [10:29:35]action value=close_receipt [10:29:35]process_action close_receipt [10:29:35]cmd_close_receipt [10:29:35]MH_GetDate [10:29:35]Write to MH i2c: F0 00 00 77 1F 85 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: F0 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: F0 09 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: F0 09 00 77 1F 00 A3 A7 76 66 BC EC 60 65 21 [10:29:35]GetLastDocTimeStamp 1719052169 [10:29:35]current date 1719052195 [10:29:35]FM_GetShiftState [10:29:35]SAM_PROTO_GetShiftState [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 13 01 00 [10:29:35]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 49 [10:29:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_GetShiftState done [10:29:35]FM_GetShiftState done [10:29:35]opened in 1719020067 [10:29:35]opened+sec_in_day 1719106467 [10:29:35]quantity*price = 33200 [10:29:35]sum+1 = 33201 [10:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 35 22.06.2024 10:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112169 ФПД: 104161353193046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112169&fm=104161353193046&tin=02508201610067®Number=0000000000092771&sum=33200 [10:29:36]StoreToDocumentArchive [10:29:36]shift 391 fd 112169 [10:29:36]save to /storage/0391/doc_00112169 [10:29:36]save last doc name /storage/0391/doc_00112169 to /storage/kkm_last_doc_name [10:29:36]save OK [10:29:36]Clear old archive folders... [10:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:36]tlvbuf is 01159440 [10:29:36]SAM_PROTO_ClearQueue [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 09 00 00 [10:29:36]Write to MH i2c: E2 08 00 85 1F 80 09 00 00 00 00 00 00 16 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 85 1F 00 90 00 18 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_ClearQueue done [10:29:36]KKMCreateOFDPacket [10:29:36]OFDProtocolAddRootSTLVToBuf [10:29:36]FM_MakeSignedData [10:29:36]FM_MakeSignedData [10:29:36]SAM_PROTO_SignData [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 01 02 [10:29:36]Write to MH i2c: E2 08 00 86 1F 80 0D 01 02 00 00 00 00 1E [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 86 1F 00 90 00 19 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=255 [10:29:36]MH_SAM_APDU [10:29: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A3 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B6 01 00 35 04 06 00 5E [10:29:36]Write to MH i2c: E2 02 01 87 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A3 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B6 01 00 35 04 06 00 5E 00 00 68 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=10 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 02 02 05 BB F4 74 D6 56 [10:29:36]Write to MH i2c: E2 0D 00 88 1F 80 0D 02 02 05 00 BB F4 74 D6 56 00 00 7A [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 03 02 [10:29:36]Write to MH i2c: E2 08 00 89 1F 80 0D 03 02 00 00 00 00 23 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0B 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0B 00 89 1F 00 88 07 97 22 DB 54 2E 33 90 00 FC [10:29:36]RAPDU: 88 07 97 22 DB 54 2E 33 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_SignData done [10:29:36]FM_MakeSignedData done [10:29:36]CreateOFDProtocolMessage [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 11 00 00 [10:29:36]Write to MH i2c: E2 08 00 8A 1F 80 11 00 00 00 00 00 00 23 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:37]OFD Sender: No OFD packet to send [10:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 17 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 17 00 8A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [10:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:29:37]wFMCommunicate OK [10:29:37]CreateOFDProtocolMessage done [10:29:37]OFDSenderStorePacket 112169 [10:29:37]StoreOFDPacket docnum=112169 [10:29:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CE 00 07 01 FE 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A3 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B6 01 00 35 04 06 00 5E BB F4 74 D6 56 88 07 97 22 DB 54 2E 33 [10:29:37]CheckFolder [10:29:37]dirname=/storage/ofd_packets [10:29:37]CheckFolder done [10:29:37]ProducePacketName [10:29:37]name=ofd_packets/00112169 [10:29:37]NVStorageSaveData ofd_packets/00112169 [10:29:37]File name is /storage/ofd_packets/00112169 [10:29:37]Write 301 bytes [10:29:37]NVStorageSaveData done [10:29:37]OFDSenderStorePacket done [10:29:37]KKMCreateOFDPacket done [10:29:37]NVStorageSaveData kkm_last_timestamp [10:29:37]File name is /storage/kkm_last_timestamp [10:29:37]Write 4 bytes [10:29:37]NVStorageSaveData done [10:29:37]ExternCall_PrintAddStr [10:29:37]wPrintStart [10:29:37]Write to MH i2c: 01 00 00 8B 1F AA [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 8B 1F 00 00 00 00 00 FF 0F BF [10:29:37]RasterBufferAndPrint [10:29:37]line Счет N : (1)320835 [10:29:37]line ИНН: 02508201610067 [10:29:37]line Контрольно-Кассовый Чек [10:29:37]line ПРОДАЖА [10:29:37]line ТРК (МРК, ГНК) : 11 [10:29:37]line Товар: 2710124130 [10:29:37]line Аи-92-К-5 [10:29:37]line 5.000 * 66.40 [10:29:37]line = 332.00 [10:29:37]line НДС 12% НСП 1% [10:29:37]line > о реализуемом товаре [10:29:37]line ИТОГО: 332.00 [10:29:37]line НСП 1% : 2.94 [10:29:37]line НДС 12% : 35.26 [10:29:37]line Наличными: 332.00 [10:29:37]line Безнал.: 0.00 [10:29:37]line Место: АЗС № 65 "Партнер Нефть" [10:29:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:29:37]line СНО: Общий режим [10:29:37]line Чек 35 22.06.2024 10:29 [10:29:37]line Смена: 391 ФФД: 1.0 [10:29:37]line ЗНМ: 0300000198 [10:29:37]line РНМ: 0000000000092771 [10:29:37]line Версия ККМ: 001 [10:29:37]line ФМ: 0000000000875083 [10:29:37]line ФД: 112169 [10:29:37]line ФПД: 104161353193046 [10:29:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112169&fm=104161353193046&tin=02508201610067®Number=0000000000092771&sum=33200 [10:29:37]OFD Sender: Processing packet 112169 [packets to send 38, broken 37] [10:29:37]ProducePacketName [10:29:37]name=ofd_packets/00112169 [10:29:37]OFD Sender: To server: pG, [10:29:37]CommunicateWithHost lk.salyk.kg:30040 [10:29:37]ConnectInit lk.salyk.kg [10:29:37]written 0, free lines is 4095 [10:29:37]Connected sock=10 [10:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CE 00 07 01 FE 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 A3 A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B6 01 00 35 04 06 00 5E BB F4 74 D6 56 88 07 97 22 DB 54 2E 33 [10:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 A4 47 00 E5 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B6 01 00 F4 03 04 00 B2 3E 76 66 B6 04 01 00 00 98 00 E3 9B E1 3C 43 9D [10:29:37]CommunicateWithHost err = 0 [10:29:37]CheckOFDResponse [10:29:37]1017 (14) - 77093643461234 [10:29:37]1041 (16) - 0000000000875083 [10:29:37]1040 (4) - 112169 [10:29:37]1012 (4) - 22.06.2024 03:02 [10:29:37]1206 (1) - 0 [10:29:37]OFD Sender: Remove packet 112169 [10:29:37]ProducePacketName [10:29:37]name=ofd_packets/00112169 [10:29:37]NVStorageDeleteData [10:29:37]Write to MH i2c: 01 00 00 B3 1F D2 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 B3 1F 00 00 00 00 00 0A 0D F0 [10:29:37]RasterBufferAndPrint [10:29:37]line [10:29:37]line [10:29:37]line [10:29:37]line [10:29:37]line [10:29:37]written 0, free lines is 3344 [10:29:37]MH_Cut [10:29:37]Write to MH i2c: D1 01 00 BA 1F 01 AB [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: D1 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: D1 01 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: D1 01 00 BA 1F 00 AA [10:29:37]Write to MH i2c: 01 00 00 BB 1F DA [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:38]OFD Sender: No OFD packet to send [10:29:38]*** Cut start [10:29:38]*** Partial cut [10:29:38]*** CUTSNS_PIN = 1 [10:29:38]*** CUTSNS_PIN = 0 [10:29:38]*** Brake cut motor [10:29:39]Read from MH i2c: 01 [10:29:39]MH_I2C_Read... [10:29:39]*** Stop cut motor [10:29:39]*** Cut end [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 BB 1F 00 00 00 00 00 FF 0F EF [10:29:39]process_action close_receipt done [10:29:39]requested_data is exist [10:29:39]produce_requested_data [10:29:39]requested_item fm.sn is exist - process it [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 BC 1F 80 11 00 00 00 00 00 00 55 [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 BC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [10:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:29:39]wFMCommunicate OK [10:29:39]requested_item fd.num is exist - process it [10:29:39]SAM_PROTO_GetFieldsCounters [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 13 00 00 [10:29:39]Write to MH i2c: E2 08 00 BD 1F 80 13 00 00 00 00 00 00 58 [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 62 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 62 00 BD 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [10:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_GetFieldsCounters done [10:29:39]requested_item shift.num is exist - process it [10:29:39]requested_item shift.opened is exist - process it [10:29:39]req_shift_opened [10:29:39]FM_GetShiftState [10:29:39]SAM_PROTO_GetShiftState [10:29:39]wFMCommunicate request_size=4 [10:29:39]MH_SAM_APDU [10:29:39]CAPDU: 80 13 01 00 [10:29:39]Write to MH i2c: E2 08 00 BE 1F 80 13 01 00 00 00 00 00 5A [10:29:39]Write i2c OK [10:29:39]MH_I2C_Read... [10:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:39]Read from MH i2c: E2 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0E 00 [10:29:39]MH_I2C_Read... [10:29:39]Read from MH i2c: E2 0E 00 BE 1F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8F [10:29:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:29:39]wFMCommunicate OK [10:29:39]SAM_PROTO_GetShiftState done [10:29:39]FM_GetShiftState done [10:29:39]req_shift_opened done [10:29:39]requested_item shift.open_date is exist - process it [10:29:39]req_shift_open_date [10:29:39]req_shift_open_date done [10:29:39]produce_requested_data done [10:29:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112169,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:29:39]process_action_free close_receipt [10:29:39]json_value_free [10:29:39]json_value_free done [10:29:39]process_json_proto returns [10:29:39]Send response to host [10:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112169,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:29:39]free response buf [10:29:39]execute_script done [10:29:39]execute_script returns [10:29:39]free content buf [10:29:39]Sock 9.Close socket [10:29:39]Sock 9.Thread stoped [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:15]accept exits with 7 [10:30:15]New connection [10:30:15]New thread 3066957156 created [10:30:15]Thread 3066813796 joined [10:30:15]Waiting for new connection... [10:30:15] Sock 7.Parse request [10:30:15]Sock 7.Check first char [10:30:15]Sock 7.First char is OK [10:30:15]request: POST /json_proto HTTP/1.0 [10:30:15]Method: POST [10:30:15]URL: /json_proto [10:30:15]Method is POST - this is cgi request [10:30:15]url: /json_proto [10:30:15]query_string will be loaded in cgi processing [10:30:15]execute_cgi json_proto POST (null) [10:30:15]execute_cgi path=json_proto method=POST [10:30:15]POST find Content-Length [10:30:15]Host: 172.17.59.68:8080 [10:30:15]Content-Length: 679 [10:30:15]Content-Type: application/json [10:30:15] [10:30:15]POST finish read [10:30:15]Found Content-Length = 679 [10:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:15]execute_script... [10:30: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)320836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:15]POST & json_proto [10:30:15]process_json_proto [10:30:15]json parsed OK: [10:30:15]protocol is kg_v1.0 [10:30:15]action value=close_receipt [10:30:15]process_action close_receipt [10:30:15]cmd_close_receipt [10:30:15]MH_GetDate [10:30:15]Write to MH i2c: F0 00 00 BF 1F CD [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: F0 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: F0 09 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: F0 09 00 BF 1F 00 CB A7 76 66 BC EC 60 65 91 [10:30:15]GetLastDocTimeStamp 1719052195 [10:30:15]current date 1719052235 [10:30:15]FM_GetShiftState [10:30:15]SAM_PROTO_GetShiftState [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 13 01 00 [10:30:15]Write to MH i2c: E2 08 00 C0 1F 80 13 01 00 00 00 00 00 5C [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 C0 1F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 91 [10:30:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_GetShiftState done [10:30:15]FM_GetShiftState done [10:30:15]opened in 1719020067 [10:30:15]opened+sec_in_day 1719106467 [10:30:15]quantity*price = 150028 [10:30:15]sum+1 = 150029 [10:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 36 22.06.2024 10:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112170 ФПД: 84830747071855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103035&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112170&fm=84830747071855&tin=02508201610067®Number=0000000000092771&sum=150000 [10:30:16]StoreToDocumentArchive [10:30:16]shift 391 fd 112170 [10:30:16]save to /storage/0391/doc_00112170 [10:30:16]save last doc name /storage/0391/doc_00112170 to /storage/kkm_last_doc_name [10:30:16]save OK [10:30:16]Clear old archive folders... [10:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:16]tlvbuf is 0111EA20 [10:30:16]SAM_PROTO_ClearQueue [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 09 00 00 [10:30:16]Write to MH i2c: E2 08 00 CD 1F 80 09 00 00 00 00 00 00 5E [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 CD 1F 00 90 00 60 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_ClearQueue done [10:30:16]KKMCreateOFDPacket [10:30:16]OFDProtocolAddRootSTLVToBuf [10:30:16]FM_MakeSignedData [10:30:16]FM_MakeSignedData [10:30:16]SAM_PROTO_SignData [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 01 02 [10:30:16]Write to MH i2c: E2 08 00 CE 1F 80 0D 01 02 00 00 00 00 66 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 CE 1F 00 90 00 61 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=255 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 CB A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B6 01 00 35 04 06 00 4D 27 32 8B [10:30:16]Write to MH i2c: E2 02 01 CF 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 CB A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B6 01 00 35 04 06 00 4D 27 32 8B 00 00 96 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 CF 1F 00 90 00 62 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=7 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 02 02 02 95 6F [10:30:16]Write to MH i2c: E2 0A 00 D0 1F 80 0D 02 02 02 00 95 6F 00 00 71 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 D0 1F 00 90 00 63 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 03 02 [10:30:16]Write to MH i2c: E2 08 00 D1 1F 80 0D 03 02 00 00 00 00 6B [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0B 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0B 00 D1 1F 00 44 F3 72 31 89 29 48 F0 90 00 30 [10:30:17]RAPDU: 44 F3 72 31 89 29 48 F0 90 00 [10:30:17]wFMCommunicate OK [10:30:17]SAM_PROTO_SignData done [10:30:17]FM_MakeSignedData done [10:30:17]CreateOFDProtocolMessage [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 11 00 00 [10:30:17]Write to MH i2c: E2 08 00 D2 1F 80 11 00 00 00 00 00 00 6B [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 17 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 17 00 D2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [10:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:30:17]wFMCommunicate OK [10:30:17]CreateOFDProtocolMessage done [10:30:17]OFDSenderStorePacket 112170 [10:30:17]StoreOFDPacket docnum=112170 [10:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4F E1 04 01 0C 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 CB A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B6 01 00 35 04 06 00 4D 27 32 8B 95 6F 44 F3 72 31 89 29 48 F0 [10:30:17]CheckFolder [10:30:17]dirname=/storage/ofd_packets [10:30:17]CheckFolder done [10:30:17]ProducePacketName [10:30:17]name=ofd_packets/00112170 [10:30:17]NVStorageSaveData ofd_packets/00112170 [10:30:17]File name is /storage/ofd_packets/00112170 [10:30:17]Write 298 bytes [10:30:17]NVStorageSaveData done [10:30:17]OFDSenderStorePacket done [10:30:17]KKMCreateOFDPacket done [10:30:17]NVStorageSaveData kkm_last_timestamp [10:30:17]File name is /storage/kkm_last_timestamp [10:30:17]Write 4 bytes [10:30:17]NVStorageSaveData done [10:30:17]ExternCall_PrintAddStr [10:30:17]wPrintStart [10:30:17]Write to MH i2c: 01 00 00 D3 1F F2 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [10:30:17]RasterBufferAndPrint [10:30:17]line Счет N : (1)320836 [10:30:17]line ИНН: 02508201610067 [10:30:17]line Контрольно-Кассовый Чек [10:30:17]line ПРОДАЖА [10:30:17]line ТРК (МРК, ГНК) : 22 [10:30:17]line Товар: 2710194210 [10:30:17]line ДТ-К-5 [10:30:17]line 20.580 * 72.90 [10:30:17]line = 1500.28 [10:30:17]line НДС 12% НСП 1% [10:30:17]line > о реализуемом товаре [10:30:17]line ОКРУГЛЕНИЕ: -0.28 [10:30:17]line ИТОГО: 1500.00 [10:30:17]line Внесено: 1500.00 [10:30:17]line СДАЧА: 0.00 [10:30:17]line НСП 1% : 13.28 [10:30:17]line НДС 12% : 159.32 [10:30:17]line Наличными: 1500.00 [10:30:17]line Безнал.: 0.00 [10:30:17]line Место: АЗС № 65 "Партнер Нефть" [10:30:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:30:17]line СНО: Общий режим [10:30:17]line Чек 36 22.06.2024 10:30 [10:30:17]line Смена: 391 ФФД: 1.0 [10:30:17]line ЗНМ: 0300000198 [10:30:17]line РНМ: 0000000000092771 [10:30:17]line Версия ККМ: 001 [10:30:17]line ФМ: 0000000000875083 [10:30:17]line ФД: 112170 [10:30:17]line ФПД: 84830747071855 [10:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103035&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112170&fm=84830747071855&tin=02508201610067®Number=0000000000092771&sum=150000 [10:30:17]OFD Sender: Processing packet 112170 [packets to send 38, broken 37] [10:30:17]ProducePacketName [10:30:17]name=ofd_packets/00112170 [10:30:17]OFD Sender: To server: pG, [10:30:17]CommunicateWithHost lk.salyk.kg:30040 [10:30:17]ConnectInit lk.salyk.kg [10:30:17]written 0, free lines is 4095 [10:30:17]Connected sock=10 [10:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4F E1 04 01 0C 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 CB A7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B6 01 00 35 04 06 00 4D 27 32 8B 95 6F 44 F3 72 31 89 29 48 F0 [10:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A1 E1 47 00 AF F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B6 01 00 F4 03 04 00 DA 3E 76 66 B6 04 01 00 00 46 22 4C AE E1 40 13 10 [10:30:17]CommunicateWithHost err = 0 [10:30:17]CheckOFDResponse [10:30:17]1017 (14) - 77093643461234 [10:30:17]1041 (16) - 0000000000875083 [10:30:17]1040 (4) - 112170 [10:30:17]1012 (4) - 22.06.2024 03:02 [10:30:17]1206 (1) - 0 [10:30:17]OFD Sender: Remove packet 112170 [10:30:17]ProducePacketName [10:30:17]name=ofd_packets/00112170 [10:30:17]NVStorageDeleteData [10:30:17]Write to MH i2c: 01 00 00 FE 1F 1D [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: 01 07 00 FE 1F 00 00 00 00 00 E0 0C 10 [10:30:17]RasterBufferAndPrint [10:30:17]line [10:30:17]line [10:30:17]line [10:30:17]line [10:30:17]line [10:30:17]written 0, free lines is 3302 [10:30:17]MH_Cut [10:30:17]Write to MH i2c: D1 01 00 05 20 01 F7 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: D1 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: D1 01 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: D1 01 00 05 20 00 F6 [10:30:17]Write to MH i2c: 01 00 00 06 20 26 [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:18]OFD Sender: No OFD packet to send [10:30:18]*** Cut start [10:30:18]*** Partial cut [10:30:18]*** CUTSNS_PIN = 1 [10:30:18]*** CUTSNS_PIN = 0 [10:30:18]*** Brake cut motor [10:30:19]Read from MH i2c: 01 [10:30:19]MH_I2C_Read... [10:30:19]*** Stop cut motor [10:30:19]*** Cut end [10:30:19]Read from MH i2c: 01 07 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 06 20 00 00 00 00 00 FF 0F 3B [10:30:19]process_action close_receipt done [10:30:19]requested_data is exist [10:30:19]produce_requested_data [10:30:19]requested_item fm.sn is exist - process it [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 11 00 00 [10:30:19]Write to MH i2c: E2 08 00 07 20 80 11 00 00 00 00 00 00 A1 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 07 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [10:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:30:19]wFMCommunicate OK [10:30:19]requested_item fd.num is exist - process it [10:30:19]SAM_PROTO_GetFieldsCounters [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 13 00 00 [10:30:19]Write to MH i2c: E2 08 00 08 20 80 13 00 00 00 00 00 00 A4 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 62 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 62 00 08 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:19]wFMCommunicate OK [10:30:19]SAM_PROTO_GetFieldsCounters done [10:30:19]requested_item shift.num is exist - process it [10:30:19]requested_item shift.opened is exist - process it [10:30:19]req_shift_opened [10:30:19]FM_GetShiftState [10:30:19]SAM_PROTO_GetShiftState [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 13 01 00 [10:30:19]Write to MH i2c: E2 08 00 09 20 80 13 01 00 00 00 00 00 A6 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 0E 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 0E 00 09 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DB [10:30:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:30:19]wFMCommunicate OK [10:30:19]SAM_PROTO_GetShiftState done [10:30:19]FM_GetShiftState done [10:30:19]req_shift_opened done [10:30:19]requested_item shift.open_date is exist - process it [10:30:19]req_shift_open_date [10:30:19]req_shift_open_date done [10:30:19]produce_requested_data done [10:30:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112170,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:30:19]process_action_free close_receipt [10:30:19]json_value_free [10:30:19]json_value_free done [10:30:19]process_json_proto returns [10:30:19]Send response to host [10:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112170,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:30:19]free response buf [10:30:19]execute_script done [10:30:19]execute_script returns [10:30:19]free content buf [10:30:19]Sock 7.Close socket [10:30:19]Sock 7.Thread stoped [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]accept exits with 9 [10:31:23]New connection [10:31:23]New thread 3066813796 created [10:31:23]Thread 3066957156 joined [10:31:23]Waiting for new connection... [10:31:23] Sock 9.Parse request [10:31:23]Sock 9.Check first char [10:31:23]Sock 9.First char is OK [10:31:23]request: POST /json_proto HTTP/1.0 [10:31:23]Method: POST [10:31:23]URL: /json_proto [10:31:23]Method is POST - this is cgi request [10:31:23]url: /json_proto [10:31:23]query_string will be loaded in cgi processing [10:31:23]execute_cgi json_proto POST (null) [10:31:23]execute_cgi path=json_proto method=POST [10:31:23]POST find Content-Length [10:31:23]Host: 172.17.59.68:8080 [10:31:23]Content-Length: 682 [10:31:23]Content-Type: application/json [10:31:23] [10:31:23]POST finish read [10:31:23]Found Content-Length = 682 [10:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320837", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:23]execute_script... [10:31: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)320837", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:23]POST & json_proto [10:31:23]process_json_proto [10:31:23]json parsed OK: [10:31:23]protocol is kg_v1.0 [10:31:23]action value=close_receipt [10:31:23]process_action close_receipt [10:31:23]cmd_close_receipt [10:31:23]MH_GetDate [10:31:23]Write to MH i2c: F0 00 00 0A 20 19 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: F0 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: F0 09 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: F0 09 00 0A 20 00 0F A8 76 66 BC EC 60 65 22 [10:31:23]GetLastDocTimeStamp 1719052235 [10:31:23]current date 1719052303 [10:31:23]FM_GetShiftState [10:31:23]SAM_PROTO_GetShiftState [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 13 01 00 [10:31:23]Write to MH i2c: E2 08 00 0B 20 80 13 01 00 00 00 00 00 A8 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0E 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0E 00 0B 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DD [10:31:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:31:23]wFMCommunicate OK [10:31:23]SAM_PROTO_GetShiftState done [10:31:23]FM_GetShiftState done [10:31:23]opened in 1719020067 [10:31:23]opened+sec_in_day 1719106467 [10:31:23]quantity*price = 100064 [10:31:23]sum+1 = 100066 [10:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 37 22.06.2024 10:31 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112171 ФПД: 23886148002229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112171&fm=23886148002229&tin=02508201610067®Number=0000000000092771&sum=100000 [10:31:24]StoreToDocumentArchive [10:31:24]shift 391 fd 112171 [10:31:24]save to /storage/0391/doc_00112171 [10:31:24]save last doc name /storage/0391/doc_00112171 to /storage/kkm_last_doc_name [10:31:24]save OK [10:31:24]Clear old archive folders... [10:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:24]tlvbuf is 01121390 [10:31:24]SAM_PROTO_ClearQueue [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 09 00 00 [10:31:24]Write to MH i2c: E2 08 00 18 20 80 09 00 00 00 00 00 00 AA [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 18 20 00 90 00 AC [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_ClearQueue done [10:31:24]KKMCreateOFDPacket [10:31:24]OFDProtocolAddRootSTLVToBuf [10:31:24]FM_MakeSignedData [10:31:24]FM_MakeSignedData [10:31:24]SAM_PROTO_SignData [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 01 02 [10:31:24]Write to MH i2c: E2 08 00 19 20 80 0D 01 02 00 00 00 00 B2 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 19 20 00 90 00 AD [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=255 [10:31:24]MH_SAM_APDU [10:31: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F A8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B6 01 00 35 04 06 00 15 [10:31:24]Write to MH i2c: E2 02 01 1A 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F A8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B6 01 00 35 04 06 00 15 00 00 ED [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 1A 20 00 90 00 AE [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=10 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 02 02 05 B9 6D 5D E1 B5 [10:31:24]Write to MH i2c: E2 0D 00 1B 20 80 0D 02 02 05 00 B9 6D 5D E1 B5 00 00 D8 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 03 02 [10:31:24]Write to MH i2c: E2 08 00 1C 20 80 0D 03 02 00 00 00 00 B7 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0B 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0B 00 1C 20 00 33 7E 82 0D 6A CB 03 D0 90 00 00 [10:31:24]RAPDU: 33 7E 82 0D 6A CB 03 D0 90 00 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_SignData done [10:31:24]FM_MakeSignedData done [10:31:24]CreateOFDProtocolMessage [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 11 00 00 [10:31:24]Write to MH i2c: E2 08 00 1D 20 80 11 00 00 00 00 00 00 B7 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 1D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 09 [10:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:31:24]wFMCommunicate OK [10:31:24]CreateOFDProtocolMessage done [10:31:24]OFDSenderStorePacket 112171 [10:31:24]StoreOFDPacket docnum=112171 [10:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6F 7A 07 01 C1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F A8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B6 01 00 35 04 06 00 15 B9 6D 5D E1 B5 33 7E 82 0D 6A CB 03 D0 [10:31:24]CheckFolder [10:31:24]dirname=/storage/ofd_packets [10:31:24]CheckFolder done [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00112171 [10:31:24]NVStorageSaveData ofd_packets/00112171 [10:31:24]File name is /storage/ofd_packets/00112171 [10:31:24]Write 301 bytes [10:31:24]NVStorageSaveData done [10:31:24]OFDSenderStorePacket done [10:31:24]KKMCreateOFDPacket done [10:31:24]NVStorageSaveData kkm_last_timestamp [10:31:24]File name is /storage/kkm_last_timestamp [10:31:24]Write 4 bytes [10:31:24]NVStorageSaveData done [10:31:24]ExternCall_PrintAddStr [10:31:24]wPrintStart [10:31:24]Write to MH i2c: 01 00 00 1E 20 3E [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 1E 20 00 00 00 00 00 FF 0F 53 [10:31:24]RasterBufferAndPrint [10:31:24]line Счет N : (1)320837 [10:31:24]line ИНН: 02508201610067 [10:31:24]line Контрольно-Кассовый Чек [10:31:24]line ПРОДАЖА [10:31:24]line ТРК (МРК, ГНК) : 11 [10:31:24]line Товар: 2710124130 [10:31:24]line Аи-92-К-5 [10:31:24]line 15.070 * 66.40 [10:31:24]line = 1000.65 [10:31:24]line НДС 12% НСП 1% [10:31:24]line > о реализуемом товаре [10:31:24]line ОКРУГЛЕНИЕ: -0.65 [10:31:24]line ИТОГО: 1000.00 [10:31:24]line Внесено: 1000.00 [10:31:24]line СДАЧА: 0.00 [10:31:24]line НСП 1% : 8.85 [10:31:24]line НДС 12% : 106.26 [10:31:24]line Наличными: 1000.00 [10:31:24]line Безнал.: 0.00 [10:31:24]line Место: АЗС № 65 "Партнер Нефть" [10:31:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:31:24]line СНО: Общий режим [10:31:24]line Чек 37 22.06.2024 10:31 [10:31:24]line Смена: 391 ФФД: 1.0 [10:31:24]line ЗНМ: 0300000198 [10:31:24]line РНМ: 0000000000092771 [10:31:24]line Версия ККМ: 001 [10:31:24]line ФМ: 0000000000875083 [10:31:24]line ФД: 112171 [10:31:24]line ФПД: 23886148002229 [10:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112171&fm=23886148002229&tin=02508201610067®Number=0000000000092771&sum=100000 [10:31:25]OFD Sender: Processing packet 112171 [packets to send 38, broken 37] [10:31:25]ProducePacketName [10:31:25]name=ofd_packets/00112171 [10:31:25]OFD Sender: To server: pG, [10:31:25]CommunicateWithHost lk.salyk.kg:30040 [10:31:25]ConnectInit lk.salyk.kg [10:31:25]written 0, free lines is 4095 [10:31:25]Connected sock=11 [10:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6F 7A 07 01 C1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 0F A8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B6 01 00 35 04 06 00 15 B9 6D 5D E1 B5 33 7E 82 0D 6A CB 03 D0 [10:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1D 76 47 00 D5 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B6 01 00 F4 03 04 00 1E 3F 76 66 B6 04 01 00 00 8B AD FC 76 64 77 2A D1 [10:31:25]CommunicateWithHost err = 0 [10:31:25]CheckOFDResponse [10:31:25]1017 (14) - 77093643461234 [10:31:25]1041 (16) - 0000000000875083 [10:31:25]1040 (4) - 112171 [10:31:25]1012 (4) - 22.06.2024 03:03 [10:31:25]1206 (1) - 0 [10:31:25]OFD Sender: Remove packet 112171 [10:31:25]ProducePacketName [10:31:25]name=ofd_packets/00112171 [10:31:25]NVStorageDeleteData [10:31:25]Write to MH i2c: 01 00 00 49 20 69 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 49 20 00 00 00 00 00 D2 0C 4E [10:31:25]RasterBufferAndPrint [10:31:25]line [10:31:25]line [10:31:25]line [10:31:25]line [10:31:25]line [10:31:25]written 0, free lines is 3289 [10:31:25]MH_Cut [10:31:25]Write to MH i2c: D1 01 00 50 20 01 42 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 01 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 01 00 50 20 00 41 [10:31:25]Write to MH i2c: 01 00 00 51 20 71 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]OFD Sender: No OFD packet to send [10:31:26]*** Cut start [10:31:26]*** Partial cut [10:31:26]*** CUTSNS_PIN = 1 [10:31:26]*** CUTSNS_PIN = 0 [10:31:26]*** Brake cut motor [10:31:26]Read from MH i2c: 01 [10:31:26]MH_I2C_Read... [10:31:26]*** Stop cut motor [10:31:26]*** Cut end [10:31:26]Read from MH i2c: 01 07 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 51 20 00 00 00 00 00 FF 0F 86 [10:31:26]process_action close_receipt done [10:31:26]requested_data is exist [10:31:26]produce_requested_data [10:31:26]requested_item fm.sn is exist - process it [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 11 00 00 [10:31:26]Write to MH i2c: E2 08 00 52 20 80 11 00 00 00 00 00 00 EC [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 17 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 17 00 52 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [10:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:31:26]wFMCommunicate OK [10:31:26]requested_item fd.num is exist - process it [10:31:26]SAM_PROTO_GetFieldsCounters [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 00 00 [10:31:26]Write to MH i2c: E2 08 00 53 20 80 13 00 00 00 00 00 00 EF [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 62 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 62 00 53 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:27]wFMCommunicate OK [10:31:27]SAM_PROTO_GetFieldsCounters done [10:31:27]requested_item shift.num is exist - process it [10:31:27]requested_item shift.opened is exist - process it [10:31:27]req_shift_opened [10:31:27]FM_GetShiftState [10:31:27]SAM_PROTO_GetShiftState [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 13 01 00 [10:31:27]Write to MH i2c: E2 08 00 54 20 80 13 01 00 00 00 00 00 F1 [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 0E 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 0E 00 54 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 26 [10:31:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:31:27]wFMCommunicate OK [10:31:27]SAM_PROTO_GetShiftState done [10:31:27]FM_GetShiftState done [10:31:27]req_shift_opened done [10:31:27]requested_item shift.open_date is exist - process it [10:31:27]req_shift_open_date [10:31:27]req_shift_open_date done [10:31:27]produce_requested_data done [10:31:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112171,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:31:27]process_action_free close_receipt [10:31:27]json_value_free [10:31:27]json_value_free done [10:31:27]process_json_proto returns [10:31:27]Send response to host [10:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112171,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:31:27]free response buf [10:31:27]execute_script done [10:31:27]execute_script returns [10:31:27]free content buf [10:31:27]Sock 9.Close socket [10:31:27]Sock 9.Thread stoped [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:47]accept exits with 7 [10:35:47]New connection [10:35:47]New thread 3066957156 created [10:35:47]Thread 3066813796 joined [10:35:47]Waiting for new connection... [10:35:47] Sock 7.Parse request [10:35:47]Sock 7.Check first char [10:35:47]Sock 7.First char is OK [10:35:47]request: POST /json_proto HTTP/1.0 [10:35:47]Method: POST [10:35:47]URL: /json_proto [10:35:47]Method is POST - this is cgi request [10:35:47]url: /json_proto [10:35:47]query_string will be loaded in cgi processing [10:35:47]execute_cgi json_proto POST (null) [10:35:47]execute_cgi path=json_proto method=POST [10:35:47]POST find Content-Length [10:35:47]Host: 172.17.59.68:8080 [10:35:47]Content-Length: 1201 [10:35:47]Content-Type: application/json [10:35:47] [10:35:47]POST finish read [10:35:47]Found Content-Length = 1201 [10:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320838\u000A22.06.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1527.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03371\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:47]execute_script... [10:35:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320838\u000A22.06.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1527.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03371\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:47]POST & json_proto [10:35:47]process_json_proto [10:35:47]json parsed OK: [10:35:47]protocol is kg_v1.0 [10:35:47]action value=print_text [10:35:47]process_action print_text [10:35:47]cmd_print_text [10:35:47]ExternCall_PrintAddStr [10:35:47]wPrintStart [10:35:47]Write to MH i2c: 01 00 00 55 20 75 [10:35:47]Write i2c OK [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: 01 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: 01 07 00 [10:35:47]MH_I2C_Read... [10:35:47]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 FF 0F 8A [10:35:47]RasterBufferAndPrint [10:35:47]line *****ТОВАРНЫЙ ЧЕК***** [10:35:47]line АЗС 65 [10:35:47]line Партнер нефть [10:35:47]line 02508201610067 [10:35:47]line Кассир : Амантуров Р. [10:35:47]line Счет N : (1)320838 [10:35:47]line 22.06.2024 09:02 [10:35:47]line ПРОДАЖА [10:35:47]line ТРК (МРК, ГНК): 11 [10:35:47]line Вид ГСМ : 2710124130 [10:35:47]line Аи-92-К-5 [10:35:47]line 23.000 x 66.40 [10:35:47]line ИТОГ: 1527.20 [10:35:47]line Тип оплаты: Талоны: Топливная Карта [10:35:47]line 03371 [10:35:47]line ______________________ [10:35:47]line (подпись) [10:35:47]written 0, free lines is 4095 [10:35:48]Write to MH i2c: 01 00 00 69 20 89 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 07 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: 01 07 00 69 20 00 00 00 00 00 12 0E B0 [10:35:48]RasterBufferAndPrint [10:35:48]line [10:35:48]line [10:35:48]line [10:35:48]line [10:35:48]line [10:35:48]written 0, free lines is 3603 [10:35:48]MH_Cut [10:35:48]Write to MH i2c: D1 01 00 70 20 01 62 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: D1 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: D1 01 00 [10:35:48]MH_I2C_Read... [10:35:48]Read from MH i2c: D1 01 00 70 20 00 61 [10:35:48]Write to MH i2c: 01 00 00 71 20 91 [10:35:48]Write i2c OK [10:35:48]MH_I2C_Read... [10:35:48]*** Cut start [10:35:48]*** Partial cut [10:35:48]*** CUTSNS_PIN = 1 [10:35:48]*** CUTSNS_PIN = 0 [10:35:48]*** Brake cut motor [10:35:49]Read from MH i2c: 01 [10:35:49]MH_I2C_Read... [10:35:49]*** Stop cut motor [10:35:49]*** Cut end [10:35:49]Read from MH i2c: 01 07 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: 01 07 00 71 20 00 00 00 00 00 FF 0F A6 [10:35:49]process_action print_text done [10:35:49]requested_data is exist [10:35:49]produce_requested_data [10:35:49]requested_item fm.sn is exist - process it [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 11 00 00 [10:35:49]Write to MH i2c: E2 08 00 72 20 80 11 00 00 00 00 00 00 0C [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 17 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 17 00 72 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [10:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:35:49]wFMCommunicate OK [10:35:49]requested_item fd.num is exist - process it [10:35:49]SAM_PROTO_GetFieldsCounters [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 13 00 00 [10:35:49]Write to MH i2c: E2 08 00 73 20 80 13 00 00 00 00 00 00 0F [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 62 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 62 00 73 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:49]wFMCommunicate OK [10:35:49]SAM_PROTO_GetFieldsCounters done [10:35:49]requested_item shift.num is exist - process it [10:35:49]requested_item shift.opened is exist - process it [10:35:49]req_shift_opened [10:35:49]FM_GetShiftState [10:35:49]SAM_PROTO_GetShiftState [10:35:49]wFMCommunicate request_size=4 [10:35:49]MH_SAM_APDU [10:35:49]CAPDU: 80 13 01 00 [10:35:49]Write to MH i2c: E2 08 00 74 20 80 13 01 00 00 00 00 00 11 [10:35:49]Write i2c OK [10:35:49]MH_I2C_Read... [10:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:49]Read from MH i2c: E2 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 0E 00 [10:35:49]MH_I2C_Read... [10:35:49]Read from MH i2c: E2 0E 00 74 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 46 [10:35:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:35:49]wFMCommunicate OK [10:35:49]SAM_PROTO_GetShiftState done [10:35:49]FM_GetShiftState done [10:35:49]req_shift_opened done [10:35:49]requested_item shift.open_date is exist - process it [10:35:49]req_shift_open_date [10:35:49]req_shift_open_date done [10:35:49]produce_requested_data done [10:35:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112171,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:35:49]process_action_free print_text [10:35:49]json_value_free [10:35:49]json_value_free done [10:35:49]process_json_proto returns [10:35:49]Send response to host [10:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112171,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:35:49]free response buf [10:35:49]execute_script done [10:35:49]execute_script returns [10:35:49]free content buf [10:35:49]Sock 7.Close socket [10:35:49]Sock 7.Thread stoped [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:27]accept exits with 9 [10:37:27]New connection [10:37:27]New thread 3066813796 created [10:37:27]Thread 3066957156 joined [10:37:27]Waiting for new connection... [10:37:27] Sock 9.Parse request [10:37:27]Sock 9.Check first char [10:37:27]Sock 9.First char is OK [10:37:27]request: POST /json_proto HTTP/1.0 [10:37:27]Method: POST [10:37:27]URL: /json_proto [10:37:27]Method is POST - this is cgi request [10:37:27]url: /json_proto [10:37:27]query_string will be loaded in cgi processing [10:37:27]execute_cgi json_proto POST (null) [10:37:27]execute_cgi path=json_proto method=POST [10:37:27]POST find Content-Length [10:37:27]Host: 172.17.59.68:8080 [10:37:27]Content-Length: 677 [10:37:27]Content-Type: application/json [10:37:27] [10:37:27]POST finish read [10:37:27]Found Content-Length = 677 [10:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320839", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:37:27]execute_script... [10:37: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)320839", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:37:27]POST & json_proto [10:37:27]process_json_proto [10:37:27]json parsed OK: [10:37:27]protocol is kg_v1.0 [10:37:27]action value=close_receipt [10:37:27]process_action close_receipt [10:37:27]cmd_close_receipt [10:37:27]MH_GetDate [10:37:27]Write to MH i2c: F0 00 00 75 20 84 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: F0 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: F0 09 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: F0 09 00 75 20 00 7C A9 76 66 BC EC 60 65 FB [10:37:27]GetLastDocTimeStamp 1719052303 [10:37:27]current date 1719052668 [10:37:27]FM_GetShiftState [10:37:27]SAM_PROTO_GetShiftState [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 01 00 [10:37:27]Write to MH i2c: E2 08 00 76 20 80 13 01 00 00 00 00 00 13 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 76 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 48 [10:37:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetShiftState done [10:37:27]FM_GetShiftState done [10:37:27]opened in 1719020067 [10:37:27]opened+sec_in_day 1719106467 [10:37:27]quantity*price = 30012 [10:37:27]sum+1 = 30014 [10:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 38 22.06.2024 10:37 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112172 ФПД: 3041328034328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103748&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112172&fm=3041328034328&tin=02508201610067®Number=0000000000092771&sum=30000 [10:37:28]StoreToDocumentArchive [10:37:28]shift 391 fd 112172 [10:37:28]save to /storage/0391/doc_00112172 [10:37:28]save last doc name /storage/0391/doc_00112172 to /storage/kkm_last_doc_name [10:37:28]save OK [10:37:28]Clear old archive folders... [10:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:28]tlvbuf is 01159050 [10:37:28]SAM_PROTO_ClearQueue [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 09 00 00 [10:37:28]Write to MH i2c: E2 08 00 83 20 80 09 00 00 00 00 00 00 15 [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 03 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [10:37:28]RAPDU: 90 00 [10:37:28]wFMCommunicate OK [10:37:28]SAM_PROTO_ClearQueue done [10:37:28]KKMCreateOFDPacket [10:37:28]OFDProtocolAddRootSTLVToBuf [10:37:28]FM_MakeSignedData [10:37:28]FM_MakeSignedData [10:37:28]SAM_PROTO_SignData [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 0D 01 02 [10:37:28]Write to MH i2c: E2 08 00 84 20 80 0D 01 02 00 00 00 00 1D [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 03 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [10:37:29]RAPDU: 90 00 [10:37:29]wFMCommunicate OK [10:37:29]wFMCommunicate request_size=255 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7C A9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B6 01 00 35 04 06 00 02 [10:37:29]Write to MH i2c: E2 02 01 85 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7C A9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B6 01 00 35 04 06 00 02 00 00 03 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 03 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [10:37:29]RAPDU: 90 00 [10:37:29]wFMCommunicate OK [10:37:29]wFMCommunicate request_size=10 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 0D 02 02 05 C4 1D 46 F2 18 [10:37:29]Write to MH i2c: E2 0D 00 86 20 80 0D 02 02 05 00 C4 1D 46 F2 18 00 00 5B [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 03 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [10:37:29]RAPDU: 90 00 [10:37:29]wFMCommunicate OK [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 0D 03 02 [10:37:29]Write to MH i2c: E2 08 00 87 20 80 0D 03 02 00 00 00 00 22 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 0B 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 0B 00 87 20 00 EA 21 64 9D 20 04 28 04 90 00 7F [10:37:29]RAPDU: EA 21 64 9D 20 04 28 04 90 00 [10:37:29]wFMCommunicate OK [10:37:29]SAM_PROTO_SignData done [10:37:29]FM_MakeSignedData done [10:37:29]CreateOFDProtocolMessage [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 11 00 00 [10:37:29]Write to MH i2c: E2 08 00 88 20 80 11 00 00 00 00 00 00 22 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 17 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 17 00 88 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [10:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:37:29]wFMCommunicate OK [10:37:29]CreateOFDProtocolMessage done [10:37:29]OFDSenderStorePacket 112172 [10:37:29]StoreOFDPacket docnum=112172 [10:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 EA 07 01 F9 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7C A9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B6 01 00 35 04 06 00 02 C4 1D 46 F2 18 EA 21 64 9D 20 04 28 04 [10:37:29]CheckFolder [10:37:29]dirname=/storage/ofd_packets [10:37:29]CheckFolder done [10:37:29]ProducePacketName [10:37:29]name=ofd_packets/00112172 [10:37:29]NVStorageSaveData ofd_packets/00112172 [10:37:29]File name is /storage/ofd_packets/00112172 [10:37:29]Write 301 bytes [10:37:29]NVStorageSaveData done [10:37:29]OFDSenderStorePacket done [10:37:29]KKMCreateOFDPacket done [10:37:29]NVStorageSaveData kkm_last_timestamp [10:37:29]File name is /storage/kkm_last_timestamp [10:37:29]Write 4 bytes [10:37:29]NVStorageSaveData done [10:37:29]OFD Sender: Processing packet 112172 [packets to send 38, broken 37] [10:37:29]ProducePacketName [10:37:29]name=ofd_packets/00112172 [10:37:29]OFD Sender: To server: pG, [10:37:29]CommunicateWithHost lk.salyk.kg:30040 [10:37:29]ConnectInit lk.salyk.kg [10:37:29]ExternCall_PrintAddStr [10:37:29]wPrintStart [10:37:29]Write to MH i2c: 01 00 00 89 20 A9 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: 01 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: 01 07 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: 01 07 00 89 20 00 00 00 00 00 FF 0F BE [10:37:29]RasterBufferAndPrint [10:37:29]line Счет N : (1)320839 [10:37:29]line ИНН: 02508201610067 [10:37:29]line Контрольно-Кассовый Чек [10:37:29]line ПРОДАЖА [10:37:29]line ТРК (МРК, ГНК) : 11 [10:37:29]line Товар: 2710124130 [10:37:29]line Аи-92-К-5 [10:37:29]line 4.520 * 66.40 [10:37:29]line = 300.13 [10:37:29]line НДС 12% НСП 1% [10:37:29]line > о реализуемом товаре [10:37:29]line ОКРУГЛЕНИЕ: -0.13 [10:37:29]line ИТОГО: 300.00 [10:37:29]line Внесено: 300.00 [10:37:29]line СДАЧА: 0.00 [10:37:29]line НСП 1% : 2.66 [10:37:29]line НДС 12% : 31.87 [10:37:29]line Наличными: 300.00 [10:37:29]line Безнал.: 0.00 [10:37:29]line Место: АЗС № 65 "Партнер Нефть" [10:37:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:37:29]line СНО: Общий режим [10:37:29]line Чек 38 22.06.2024 10:37 [10:37:29]line Смена: 391 ФФД: 1.0 [10:37:29]line ЗНМ: 0300000198 [10:37:29]line РНМ: 0000000000092771 [10:37:29]line Версия ККМ: 001 [10:37:29]line ФМ: 0000000000875083 [10:37:29]line ФД: 112172 [10:37:29]line ФПД: 3041328034328 [10:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T103748&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112172&fm=3041328034328&tin=02508201610067®Number=0000000000092771&sum=30000 [10:37:29]Connected sock=11 [10:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 EA 07 01 F9 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 7C A9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B6 01 00 35 04 06 00 02 C4 1D 46 F2 18 EA 21 64 9D 20 04 28 04 [10:37:29]written 0, free lines is 4095 [10:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 A6 47 00 07 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B6 01 00 F4 03 04 00 8A 40 76 66 B6 04 01 00 00 58 33 00 18 F3 8A 24 23 [10:37:29]CommunicateWithHost err = 0 [10:37:29]CheckOFDResponse [10:37:29]1017 (14) - 77093643461234 [10:37:29]1041 (16) - 0000000000875083 [10:37:29]1040 (4) - 112172 [10:37:29]1012 (4) - 22.06.2024 03:10 [10:37:29]1206 (1) - 0 [10:37:29]OFD Sender: Remove packet 112172 [10:37:29]ProducePacketName [10:37:29]name=ofd_packets/00112172 [10:37:29]NVStorageDeleteData [10:37:30]Write to MH i2c: 01 00 00 B4 20 D4 [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: 01 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: 01 07 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: 01 07 00 B4 20 00 00 00 00 00 D9 0C C0 [10:37:30]RasterBufferAndPrint [10:37:30]line [10:37:30]line [10:37:30]line [10:37:30]line [10:37:30]line [10:37:30]written 0, free lines is 3296 [10:37:30]MH_Cut [10:37:30]Write to MH i2c: D1 01 00 BB 20 01 AD [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: D1 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: D1 01 00 [10:37:30]MH_I2C_Read... [10:37:30]Read from MH i2c: D1 01 00 BB 20 00 AC [10:37:30]Write to MH i2c: 01 00 00 BC 20 DC [10:37:30]Write i2c OK [10:37:30]MH_I2C_Read... [10:37:30]OFD Sender: No OFD packet to send [10:37:31]*** Cut start [10:37:31]*** Partial cut [10:37:31]*** CUTSNS_PIN = 1 [10:37:31]*** CUTSNS_PIN = 0 [10:37:31]*** Brake cut motor [10:37:31]Read from MH i2c: 01 [10:37:31]MH_I2C_Read... [10:37:31]*** Stop cut motor [10:37:31]*** Cut end [10:37:31]Read from MH i2c: 01 07 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: 01 07 00 BC 20 00 00 00 00 00 FF 0F F1 [10:37:31]process_action close_receipt done [10:37:31]requested_data is exist [10:37:31]produce_requested_data [10:37:31]requested_item fm.sn is exist - process it [10:37:31]wFMCommunicate request_size=4 [10:37:31]MH_SAM_APDU [10:37:31]CAPDU: 80 11 00 00 [10:37:31]Write to MH i2c: E2 08 00 BD 20 80 11 00 00 00 00 00 00 57 [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 17 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 17 00 BD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [10:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:37:31]wFMCommunicate OK [10:37:31]requested_item fd.num is exist - process it [10:37:31]SAM_PROTO_GetFieldsCounters [10:37:31]wFMCommunicate request_size=4 [10:37:31]MH_SAM_APDU [10:37:31]CAPDU: 80 13 00 00 [10:37:31]Write to MH i2c: E2 08 00 BE 20 80 13 00 00 00 00 00 00 5A [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 62 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 62 00 BE 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [10:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:31]wFMCommunicate OK [10:37:31]SAM_PROTO_GetFieldsCounters done [10:37:31]requested_item shift.num is exist - process it [10:37:31]requested_item shift.opened is exist - process it [10:37:31]req_shift_opened [10:37:31]FM_GetShiftState [10:37:31]SAM_PROTO_GetShiftState [10:37:31]wFMCommunicate request_size=4 [10:37:31]MH_SAM_APDU [10:37:31]CAPDU: 80 13 01 00 [10:37:31]Write to MH i2c: E2 08 00 BF 20 80 13 01 00 00 00 00 00 5C [10:37:31]Write i2c OK [10:37:31]MH_I2C_Read... [10:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:31]Read from MH i2c: E2 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 0E 00 [10:37:31]MH_I2C_Read... [10:37:31]Read from MH i2c: E2 0E 00 BF 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 91 [10:37:31]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:37:31]wFMCommunicate OK [10:37:31]SAM_PROTO_GetShiftState done [10:37:31]FM_GetShiftState done [10:37:31]req_shift_opened done [10:37:31]requested_item shift.open_date is exist - process it [10:37:31]req_shift_open_date [10:37:31]req_shift_open_date done [10:37:31]produce_requested_data done [10:37:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112172,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:37:31]process_action_free close_receipt [10:37:31]json_value_free [10:37:31]json_value_free done [10:37:31]process_json_proto returns [10:37:31]Send response to host [10:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112172,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:37:31]free response buf [10:37:31]execute_script done [10:37:31]execute_script returns [10:37:31]free content buf [10:37:31]Sock 9.Close socket [10:37:31]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:48]accept exits with 7 [10:39:48]New connection [10:39:48]New thread 3066957156 created [10:39:48]Thread 3066813796 joined [10:39:48]Waiting for new connection... [10:39:48] Sock 7.Parse request [10:39:48]Sock 7.Check first char [10:39:48]Sock 7.First char is OK [10:39:48]request: POST /json_proto HTTP/1.0 [10:39:48]Method: POST [10:39:48]URL: /json_proto [10:39:48]Method is POST - this is cgi request [10:39:48]url: /json_proto [10:39:48]query_string will be loaded in cgi processing [10:39:48]execute_cgi json_proto POST (null) [10:39:48]execute_cgi path=json_proto method=POST [10:39:48]POST find Content-Length [10:39:48]Host: 172.17.59.68:8080 [10:39:48]Content-Length: 677 [10:39:48]Content-Type: application/json [10:39:48] [10:39:48]POST finish read [10:39:48]Found Content-Length = 677 [10:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320840", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:48]execute_script... [10:39: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)320840", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:48]POST & json_proto [10:39:48]process_json_proto [10:39:48]json parsed OK: [10:39:48]protocol is kg_v1.0 [10:39:48]action value=close_receipt [10:39:48]process_action close_receipt [10:39:48]cmd_close_receipt [10:39:48]MH_GetDate [10:39:48]Write to MH i2c: F0 00 00 C0 20 CF [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: F0 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: F0 09 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: F0 09 00 C0 20 00 08 AA 76 66 BC EC 60 65 D3 [10:39:48]GetLastDocTimeStamp 1719052668 [10:39:48]current date 1719052808 [10:39:48]FM_GetShiftState [10:39:48]SAM_PROTO_GetShiftState [10:39:48]wFMCommunicate request_size=4 [10:39:48]MH_SAM_APDU [10:39:48]CAPDU: 80 13 01 00 [10:39:48]Write to MH i2c: E2 08 00 C1 20 80 13 01 00 00 00 00 00 5E [10:39:48]Write i2c OK [10:39:48]MH_I2C_Read... [10:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:48]Read from MH i2c: E2 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0E 00 [10:39:48]MH_I2C_Read... [10:39:48]Read from MH i2c: E2 0E 00 C1 20 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 93 [10:39:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:39:48]wFMCommunicate OK [10:39:48]SAM_PROTO_GetShiftState done [10:39:48]FM_GetShiftState done [10:39:48]opened in 1719020067 [10:39:48]opened+sec_in_day 1719106467 [10:39:48]quantity*price = 50065 [10:39:48]sum+1 = 50067 [10:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 39 22.06.2024 10:40 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112173 ФПД: 237307180676157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104008&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112173&fm=237307180676157&tin=02508201610067®Number=0000000000092771&sum=50000 [10:39:49]StoreToDocumentArchive [10:39:49]shift 391 fd 112173 [10:39:49]save to /storage/0391/doc_00112173 [10:39:49]save last doc name /storage/0391/doc_00112173 to /storage/kkm_last_doc_name [10:39:49]save OK [10:39:49]Clear old archive folders... [10:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:49]tlvbuf is 01173030 [10:39:49]SAM_PROTO_ClearQueue [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 09 00 00 [10:39:49]Write to MH i2c: E2 08 00 CE 20 80 09 00 00 00 00 00 00 60 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [10:39:49]RAPDU: 90 00 [10:39:49]wFMCommunicate OK [10:39:49]SAM_PROTO_ClearQueue done [10:39:49]KKMCreateOFDPacket [10:39:49]OFDProtocolAddRootSTLVToBuf [10:39:49]FM_MakeSignedData [10:39:49]FM_MakeSignedData [10:39:49]SAM_PROTO_SignData [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 0D 01 02 [10:39:49]Write to MH i2c: E2 08 00 CF 20 80 0D 01 02 00 00 00 00 68 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [10:39:49]RAPDU: 90 00 [10:39:49]wFMCommunicate OK [10:39:49]wFMCommunicate request_size=255 [10:39:49]MH_SAM_APDU [10:39: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 08 AA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B6 01 00 35 04 06 00 D7 [10:39:49]Write to MH i2c: E2 02 01 D0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 08 AA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B6 01 00 35 04 06 00 D7 00 00 14 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 D0 20 00 90 00 64 [10:39:49]RAPDU: 90 00 [10:39:49]wFMCommunicate OK [10:39:49]wFMCommunicate request_size=10 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 0D 02 02 05 D4 62 34 F4 3D [10:39:49]Write to MH i2c: E2 0D 00 D1 20 80 0D 02 02 05 00 D4 62 34 F4 3D 00 00 10 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 03 00 D1 20 00 90 00 65 [10:39:49]RAPDU: 90 00 [10:39:49]wFMCommunicate OK [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 0D 03 02 [10:39:49]Write to MH i2c: E2 08 00 D2 20 80 0D 03 02 00 00 00 00 6D [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 0B 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 0B 00 D2 20 00 AF D1 25 A7 DE 48 F1 7C 90 00 4D [10:39:49]RAPDU: AF D1 25 A7 DE 48 F1 7C 90 00 [10:39:49]wFMCommunicate OK [10:39:49]SAM_PROTO_SignData done [10:39:49]FM_MakeSignedData done [10:39:49]CreateOFDProtocolMessage [10:39:49]wFMCommunicate request_size=4 [10:39:49]MH_SAM_APDU [10:39:49]CAPDU: 80 11 00 00 [10:39:49]Write to MH i2c: E2 08 00 D3 20 80 11 00 00 00 00 00 00 6D [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:49]Read from MH i2c: E2 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 17 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: E2 17 00 D3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [10:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:49]wFMCommunicate OK [10:39:49]CreateOFDProtocolMessage done [10:39:49]OFDSenderStorePacket 112173 [10:39:49]StoreOFDPacket docnum=112173 [10:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 45 47 07 01 95 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 08 AA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B6 01 00 35 04 06 00 D7 D4 62 34 F4 3D AF D1 25 A7 DE 48 F1 7C [10:39:49]CheckFolder [10:39:49]dirname=/storage/ofd_packets [10:39:49]CheckFolder done [10:39:49]ProducePacketName [10:39:49]name=ofd_packets/00112173 [10:39:49]NVStorageSaveData ofd_packets/00112173 [10:39:49]File name is /storage/ofd_packets/00112173 [10:39:49]Write 301 bytes [10:39:49]NVStorageSaveData done [10:39:49]OFDSenderStorePacket done [10:39:49]KKMCreateOFDPacket done [10:39:49]NVStorageSaveData kkm_last_timestamp [10:39:49]File name is /storage/kkm_last_timestamp [10:39:49]Write 4 bytes [10:39:49]NVStorageSaveData done [10:39:49]ExternCall_PrintAddStr [10:39:49]wPrintStart [10:39:49]Write to MH i2c: 01 00 00 D4 20 F4 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 D4 20 00 00 00 00 00 FF 0F 09 [10:39:49]RasterBufferAndPrint [10:39:49]line Счет N : (1)320840 [10:39:49]line ИНН: 02508201610067 [10:39:49]line Контрольно-Кассовый Чек [10:39:49]line ПРОДАЖА [10:39:49]line ТРК (МРК, ГНК) : 11 [10:39:49]line Товар: 2710124130 [10:39:49]line Аи-92-К-5 [10:39:49]line 7.540 * 66.40 [10:39:49]line = 500.66 [10:39:49]line НДС 12% НСП 1% [10:39:49]line > о реализуемом товаре [10:39:49]line ОКРУГЛЕНИЕ: -0.66 [10:39:49]line ИТОГО: 500.00 [10:39:49]line Внесено: 500.00 [10:39:49]line СДАЧА: 0.00 [10:39:49]line НСП 1% : 4.43 [10:39:49]line НДС 12% : 53.17 [10:39:49]line Наличными: 500.00 [10:39:49]line Безнал.: 0.00 [10:39:49]line Место: АЗС № 65 "Партнер Нефть" [10:39:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:39:49]line СНО: Общий режим [10:39:49]line Чек 39 22.06.2024 10:40 [10:39:49]line Смена: 391 ФФД: 1.0 [10:39:49]line ЗНМ: 0300000198 [10:39:49]line РНМ: 0000000000092771 [10:39:49]line Версия ККМ: 001 [10:39:49]line ФМ: 0000000000875083 [10:39:49]line ФД: 112173 [10:39:49]line ФПД: 237307180676157 [10:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104008&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112173&fm=237307180676157&tin=02508201610067®Number=0000000000092771&sum=50000 [10:39:49]written 0, free lines is 4095 [10:39:49]OFD Sender: Processing packet 112173 [packets to send 38, broken 37] [10:39:49]ProducePacketName [10:39:49]name=ofd_packets/00112173 [10:39:49]OFD Sender: To server: pG, [10:39:49]CommunicateWithHost lk.salyk.kg:30040 [10:39:49]ConnectInit lk.salyk.kg [10:39:50]Connected sock=10 [10:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 45 47 07 01 95 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 08 AA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B6 01 00 35 04 06 00 D7 D4 62 34 F4 3D AF D1 25 A7 DE 48 F1 7C [10:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E2 46 47 00 EF 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B6 01 00 F4 03 04 00 17 41 76 66 B6 04 01 00 00 79 51 99 F2 B3 60 68 45 [10:39:50]CommunicateWithHost err = 0 [10:39:50]CheckOFDResponse [10:39:50]1017 (14) - 77093643461234 [10:39:50]1041 (16) - 0000000000875083 [10:39:50]1040 (4) - 112173 [10:39:50]1012 (4) - 22.06.2024 03:12 [10:39:50]1206 (1) - 0 [10:39:50]OFD Sender: Remove packet 112173 [10:39:50]ProducePacketName [10:39:50]name=ofd_packets/00112173 [10:39:50]NVStorageDeleteData [10:39:50]Write to MH i2c: 01 00 00 FF 20 1F [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: 01 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: 01 07 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: 01 07 00 FF 20 00 00 00 00 00 DC 0C 0E [10:39:50]RasterBufferAndPrint [10:39:50]line [10:39:50]line [10:39:50]line [10:39:50]line [10:39:50]line [10:39:50]written 0, free lines is 3298 [10:39:50]MH_Cut [10:39:50]Write to MH i2c: D1 01 00 06 21 01 F9 [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: D1 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: D1 01 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: D1 01 00 06 21 00 F8 [10:39:50]Write to MH i2c: 01 00 00 07 21 28 [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]OFD Sender: No OFD packet to send [10:39:51]*** Cut start [10:39:51]*** Partial cut [10:39:51]*** CUTSNS_PIN = 1 [10:39:51]*** CUTSNS_PIN = 0 [10:39:51]*** Brake cut motor [10:39:51]Read from MH i2c: 01 [10:39:51]MH_I2C_Read... [10:39:51]*** Stop cut motor [10:39:51]*** Cut end [10:39:51]Read from MH i2c: 01 07 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 07 21 00 00 00 00 00 FF 0F 3D [10:39:51]process_action close_receipt done [10:39:51]requested_data is exist [10:39:51]produce_requested_data [10:39:51]requested_item fm.sn is exist - process it [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 11 00 00 [10:39:51]Write to MH i2c: E2 08 00 08 21 80 11 00 00 00 00 00 00 A3 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 17 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 17 00 08 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [10:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:51]wFMCommunicate OK [10:39:51]requested_item fd.num is exist - process it [10:39:51]SAM_PROTO_GetFieldsCounters [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 13 00 00 [10:39:51]Write to MH i2c: E2 08 00 09 21 80 13 00 00 00 00 00 00 A6 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 62 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 62 00 09 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [10:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:51]wFMCommunicate OK [10:39:51]SAM_PROTO_GetFieldsCounters done [10:39:51]requested_item shift.num is exist - process it [10:39:51]requested_item shift.opened is exist - process it [10:39:51]req_shift_opened [10:39:51]FM_GetShiftState [10:39:51]SAM_PROTO_GetShiftState [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 13 01 00 [10:39:51]Write to MH i2c: E2 08 00 0A 21 80 13 01 00 00 00 00 00 A8 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:52]Read from MH i2c: E2 [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: E2 0E 00 [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: E2 0E 00 0A 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DD [10:39:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:39:52]wFMCommunicate OK [10:39:52]SAM_PROTO_GetShiftState done [10:39:52]FM_GetShiftState done [10:39:52]req_shift_opened done [10:39:52]requested_item shift.open_date is exist - process it [10:39:52]req_shift_open_date [10:39:52]req_shift_open_date done [10:39:52]produce_requested_data done [10:39:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112173,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:39:52]process_action_free close_receipt [10:39:52]json_value_free [10:39:52]json_value_free done [10:39:52]process_json_proto returns [10:39:52]Send response to host [10:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112173,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:39:52]free response buf [10:39:52]execute_script done [10:39:52]execute_script returns [10:39:52]free content buf [10:39:52]Sock 7.Close socket [10:39:52]Sock 7.Thread stoped [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44: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:17]accept exits with 9 [10:45:17]New connection [10:45:17]New thread 3066813796 created [10:45:17]Thread 3066957156 joined [10:45:17]Waiting for new connection... [10:45:17] Sock 9.Parse request [10:45:17]Sock 9.Check first char [10:45:17]Sock 9.First char is OK [10:45:17]request: POST /json_proto HTTP/1.0 [10:45:17]Method: POST [10:45:17]URL: /json_proto [10:45:17]Method is POST - this is cgi request [10:45:17]url: /json_proto [10:45:17]query_string will be loaded in cgi processing [10:45:17]execute_cgi json_proto POST (null) [10:45:17]execute_cgi path=json_proto method=POST [10:45:17]POST find Content-Length [10:45:17]Host: 172.17.59.68:8080 [10:45:17]Content-Length: 682 [10:45:17]Content-Type: application/json [10:45:17] [10:45:17]POST finish read [10:45:17]Found Content-Length = 682 [10:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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:45:17]execute_script... [10: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)320841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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:45:17]POST & json_proto [10:45:17]process_json_proto [10:45:17]json parsed OK: [10:45:17]protocol is kg_v1.0 [10:45:17]action value=close_receipt [10:45:17]process_action close_receipt [10:45:17]cmd_close_receipt [10:45:17]MH_GetDate [10:45:17]Write to MH i2c: F0 00 00 0B 21 1B [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: F0 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: F0 09 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: F0 09 00 0B 21 00 52 AB 76 66 BC EC 60 65 6A [10:45:17]GetLastDocTimeStamp 1719052808 [10:45:17]current date 1719053138 [10:45:17]FM_GetShiftState [10:45:17]SAM_PROTO_GetShiftState [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 13 01 00 [10:45:17]Write to MH i2c: E2 08 00 0C 21 80 13 01 00 00 00 00 00 AA [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 0C 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DF [10:45:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_GetShiftState done [10:45:17]FM_GetShiftState done [10:45:17]opened in 1719020067 [10:45:17]opened+sec_in_day 1719106467 [10:45:17]quantity*price = 200047 [10:45:17]sum+1 = 200048 [10:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 40 22.06.2024 10:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112174 ФПД: 172292720713286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104538&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112174&fm=172292720713286&tin=02508201610067®Number=0000000000092771&sum=200000 [10:45:19]StoreToDocumentArchive [10:45:19]shift 391 fd 112174 [10:45:19]save to /storage/0391/doc_00112174 [10:45:19]save last doc name /storage/0391/doc_00112174 to /storage/kkm_last_doc_name [10:45:19]save OK [10:45:19]Clear old archive folders... [10:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:19]tlvbuf is B6EC2E20 [10:45:19]SAM_PROTO_ClearQueue [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 09 00 00 [10:45:19]Write to MH i2c: E2 08 00 19 21 80 09 00 00 00 00 00 00 AC [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 19 21 00 90 00 AE [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]SAM_PROTO_ClearQueue done [10:45:19]KKMCreateOFDPacket [10:45:19]OFDProtocolAddRootSTLVToBuf [10:45:19]FM_MakeSignedData [10:45:19]FM_MakeSignedData [10:45:19]SAM_PROTO_SignData [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 01 02 [10:45:19]Write to MH i2c: E2 08 00 1A 21 80 0D 01 02 00 00 00 00 B4 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 1A 21 00 90 00 AF [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]wFMCommunicate request_size=255 [10:45:19]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 28 00 00 00 F4 03 04 00 52 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B6 01 00 35 04 06 00 9C [10:45:19]Write to MH i2c: E2 02 01 1B 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 28 00 00 00 F4 03 04 00 52 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B6 01 00 35 04 06 00 9C 00 00 4A [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 1B 21 00 90 00 B0 [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]wFMCommunicate request_size=10 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 02 02 05 B3 06 6A 5E 46 [10:45:19]Write to MH i2c: E2 0D 00 1C 21 80 0D 02 02 05 00 B3 06 6A 5E 46 00 00 88 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 1C 21 00 90 00 B1 [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 03 02 [10:45:19]Write to MH i2c: E2 08 00 1D 21 80 0D 03 02 00 00 00 00 B9 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 0B 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 0B 00 1D 21 00 CD D1 B3 3D 3F 5C 0E 7E 90 00 6F [10:45:19]RAPDU: CD D1 B3 3D 3F 5C 0E 7E 90 00 [10:45:19]wFMCommunicate OK [10:45:19]SAM_PROTO_SignData done [10:45:19]FM_MakeSignedData done [10:45:19]CreateOFDProtocolMessage [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 11 00 00 [10:45:19]Write to MH i2c: E2 08 00 1E 21 80 11 00 00 00 00 00 00 B9 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 17 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 17 00 1E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [10:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:45:19]wFMCommunicate OK [10:45:19]CreateOFDProtocolMessage done [10:45:19]OFDSenderStorePacket 112174 [10:45:19]StoreOFDPacket docnum=112174 [10:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E4 89 07 01 2C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 28 00 00 00 F4 03 04 00 52 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B6 01 00 35 04 06 00 9C B3 06 6A 5E 46 CD D1 B3 3D 3F 5C 0E 7E [10:45:19]CheckFolder [10:45:19]dirname=/storage/ofd_packets [10:45:19]CheckFolder done [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00112174 [10:45:19]NVStorageSaveData ofd_packets/00112174 [10:45:19]File name is /storage/ofd_packets/00112174 [10:45:19]Write 301 bytes [10:45:19]NVStorageSaveData done [10:45:19]OFDSenderStorePacket done [10:45:19]KKMCreateOFDPacket done [10:45:19]NVStorageSaveData kkm_last_timestamp [10:45:19]File name is /storage/kkm_last_timestamp [10:45:19]Write 4 bytes [10:45:19]NVStorageSaveData done [10:45:19]ExternCall_PrintAddStr [10:45:19]wPrintStart [10:45:19]Write to MH i2c: 01 00 00 1F 21 40 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 1F 21 00 00 00 00 00 FF 0F 55 [10:45:19]RasterBufferAndPrint [10:45:19]line Счет N : (1)320841 [10:45:19]line ИНН: 02508201610067 [10:45:19]line Контрольно-Кассовый Чек [10:45:19]line ПРОДАЖА [10:45:19]line ТРК (МРК, ГНК) : 12 [10:45:19]line Товар: 2710124500 [10:45:19]line Аи-95-К-5 [10:45:19]line 27.070 * 73.90 [10:45:19]line = 2000.47 [10:45:19]line НДС 12% НСП 1% [10:45:19]line > о реализуемом товаре [10:45:19]line ОКРУГЛЕНИЕ: -0.47 [10:45:19]line ИТОГО: 2000.00 [10:45:19]line Внесено: 2000.00 [10:45:19]line СДАЧА: 0.00 [10:45:19]line НСП 1% : 17.70 [10:45:19]line НДС 12% : 212.44 [10:45:19]line Наличными: 2000.00 [10:45:19]line Безнал.: 0.00 [10:45:19]line Место: АЗС № 65 "Партнер Нефть" [10:45:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:45:19]line СНО: Общий режим [10:45:19]line Чек 40 22.06.2024 10:45 [10:45:19]line Смена: 391 ФФД: 1.0 [10:45:19]line ЗНМ: 0300000198 [10:45:19]line РНМ: 0000000000092771 [10:45:19]line Версия ККМ: 001 [10:45:19]line ФМ: 0000000000875083 [10:45:19]line ФД: 112174 [10:45:19]line ФПД: 172292720713286 [10:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104538&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112174&fm=172292720713286&tin=02508201610067®Number=0000000000092771&sum=200000 [10:45:19]OFD Sender: Processing packet 112174 [packets to send 38, broken 37] [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00112174 [10:45:19]OFD Sender: To server: pG, [10:45:19]CommunicateWithHost lk.salyk.kg:30040 [10:45:19]ConnectInit lk.salyk.kg [10:45:19]written 0, free lines is 4095 [10:45:20]Connected sock=10 [10:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E4 89 07 01 2C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 28 00 00 00 F4 03 04 00 52 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B6 01 00 35 04 06 00 9C B3 06 6A 5E 46 CD D1 B3 3D 3F 5C 0E 7E [10:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1A AC 47 00 DF CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B6 01 00 F4 03 04 00 61 42 76 66 B6 04 01 00 00 6F 3A 4D 27 58 BC E5 05 [10:45:20]CommunicateWithHost err = 0 [10:45:20]CheckOFDResponse [10:45:20]1017 (14) - 77093643461234 [10:45:20]1041 (16) - 0000000000875083 [10:45:20]1040 (4) - 112174 [10:45:20]1012 (4) - 22.06.2024 03:17 [10:45:20]1206 (1) - 0 [10:45:20]OFD Sender: Remove packet 112174 [10:45:20]ProducePacketName [10:45:20]name=ofd_packets/00112174 [10:45:20]NVStorageDeleteData [10:45:20]Write to MH i2c: 01 00 00 4A 21 6B [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 4A 21 00 00 00 00 00 DA 0C 58 [10:45:20]RasterBufferAndPrint [10:45:20]line [10:45:20]line [10:45:20]line [10:45:20]line [10:45:20]line [10:45:20]written 0, free lines is 3297 [10:45:20]MH_Cut [10:45:20]Write to MH i2c: D1 01 00 51 21 01 44 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: D1 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: D1 01 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: D1 01 00 51 21 00 43 [10:45:20]Write to MH i2c: 01 00 00 52 21 73 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]OFD Sender: No OFD packet to send [10:45:21]*** Cut start [10:45:21]*** Partial cut [10:45:21]*** CUTSNS_PIN = 1 [10:45:21]*** CUTSNS_PIN = 0 [10:45:21]*** Brake cut motor [10:45:21]Read from MH i2c: 01 [10:45:21]MH_I2C_Read... [10:45:21]*** Stop cut motor [10:45:21]*** Cut end [10:45:21]Read from MH i2c: 01 07 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: 01 07 00 52 21 00 00 00 00 00 FF 0F 88 [10:45:21]process_action close_receipt done [10:45:21]requested_data is exist [10:45:21]produce_requested_data [10:45:21]requested_item fm.sn is exist - process it [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 11 00 00 [10:45:21]Write to MH i2c: E2 08 00 53 21 80 11 00 00 00 00 00 00 EE [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 53 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [10:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:45:21]wFMCommunicate OK [10:45:21]requested_item fd.num is exist - process it [10:45:21]SAM_PROTO_GetFieldsCounters [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 13 00 00 [10:45:21]Write to MH i2c: E2 08 00 54 21 80 13 00 00 00 00 00 00 F1 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 62 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 62 00 54 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [10:45:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:21]wFMCommunicate OK [10:45:21]SAM_PROTO_GetFieldsCounters done [10:45:21]requested_item shift.num is exist - process it [10:45:21]requested_item shift.opened is exist - process it [10:45:21]req_shift_opened [10:45:21]FM_GetShiftState [10:45:21]SAM_PROTO_GetShiftState [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 13 01 00 [10:45:21]Write to MH i2c: E2 08 00 55 21 80 13 01 00 00 00 00 00 F3 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 0E 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 0E 00 55 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 28 [10:45:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:45:21]wFMCommunicate OK [10:45:21]SAM_PROTO_GetShiftState done [10:45:21]FM_GetShiftState done [10:45:21]req_shift_opened done [10:45:21]requested_item shift.open_date is exist - process it [10:45:21]req_shift_open_date [10:45:21]req_shift_open_date done [10:45:21]produce_requested_data done [10:45:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112174,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:45:21]process_action_free close_receipt [10:45:21]json_value_free [10:45:21]json_value_free done [10:45:21]process_json_proto returns [10:45:21]Send response to host [10:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112174,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:45:21]free response buf [10:45:21]execute_script done [10:45:21]execute_script returns [10:45:21]free content buf [10:45:21]Sock 9.Close socket [10:45:21]Sock 9.Thread stoped [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]accept exits with 7 [10:47:15]New connection [10:47:15]New thread 3066957156 created [10:47:15]Thread 3066813796 joined [10:47:15]Waiting for new connection... [10:47:15] Sock 7.Parse request [10:47:15]Sock 7.Check first char [10:47:15]Sock 7.First char is OK [10:47:15]request: POST /json_proto HTTP/1.0 [10:47:15]Method: POST [10:47:15]URL: /json_proto [10:47:15]Method is POST - this is cgi request [10:47:15]url: /json_proto [10:47:15]query_string will be loaded in cgi processing [10:47:15]execute_cgi json_proto POST (null) [10:47:15]execute_cgi path=json_proto method=POST [10:47:15]POST find Content-Length [10:47:15]Host: 172.17.59.68:8080 [10:47:15]Content-Length: 677 [10:47:15]Content-Type: application/json [10:47:15] [10:47:15]POST finish read [10:47:15]Found Content-Length = 677 [10:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320842", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:15]execute_script... [10:47: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)320842", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:15]POST & json_proto [10:47:15]process_json_proto [10:47:15]json parsed OK: [10:47:15]protocol is kg_v1.0 [10:47:15]action value=close_receipt [10:47:15]process_action close_receipt [10:47:15]cmd_close_receipt [10:47:15]MH_GetDate [10:47:15]Write to MH i2c: F0 00 00 56 21 66 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: F0 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: F0 09 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: F0 09 00 56 21 00 C7 AB 76 66 BC EC 60 65 2A [10:47:15]GetLastDocTimeStamp 1719053138 [10:47:15]current date 1719053255 [10:47:15]FM_GetShiftState [10:47:15]SAM_PROTO_GetShiftState [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 13 01 00 [10:47:15]Write to MH i2c: E2 08 00 57 21 80 13 01 00 00 00 00 00 F5 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 0E 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 0E 00 57 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2A [10:47:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:47:15]wFMCommunicate OK [10:47:15]SAM_PROTO_GetShiftState done [10:47:15]FM_GetShiftState done [10:47:15]opened in 1719020067 [10:47:15]opened+sec_in_day 1719106467 [10:47:15]quantity*price = 50065 [10:47:15]sum+1 = 50067 [10:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 41 22.06.2024 10:47 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112175 ФПД: 221267957766156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104735&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112175&fm=221267957766156&tin=02508201610067®Number=0000000000092771&sum=50000 [10:47:16]StoreToDocumentArchive [10:47:16]shift 391 fd 112175 [10:47:16]save to /storage/0391/doc_00112175 [10:47:16]save last doc name /storage/0391/doc_00112175 to /storage/kkm_last_doc_name [10:47:16]save OK [10:47:16]Clear old archive folders... [10:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:16]tlvbuf is B6EA9300 [10:47:16]SAM_PROTO_ClearQueue [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 09 00 00 [10:47:16]Write to MH i2c: E2 08 00 64 21 80 09 00 00 00 00 00 00 F7 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 64 21 00 90 00 F9 [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_ClearQueue done [10:47:16]KKMCreateOFDPacket [10:47:16]OFDProtocolAddRootSTLVToBuf [10:47:16]FM_MakeSignedData [10:47:16]FM_MakeSignedData [10:47:16]SAM_PROTO_SignData [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 01 02 [10:47:16]Write to MH i2c: E2 08 00 65 21 80 0D 01 02 00 00 00 00 FF [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 65 21 00 90 00 FA [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=255 [10:47:16]MH_SAM_APDU [10:47: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C7 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B6 01 00 35 04 06 00 C9 [10:47:16]Write to MH i2c: E2 02 01 66 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C7 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B6 01 00 35 04 06 00 C9 00 00 61 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 66 21 00 90 00 FB [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=10 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 02 02 05 3D F6 05 D8 0C [10:47:16]Write to MH i2c: E2 0D 00 67 21 80 0D 02 02 05 00 3D F6 05 D8 0C 00 00 28 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 03 00 67 21 00 90 00 FC [10:47:16]RAPDU: 90 00 [10:47:16]wFMCommunicate OK [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 0D 03 02 [10:47:16]Write to MH i2c: E2 08 00 68 21 80 0D 03 02 00 00 00 00 04 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 0B 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 0B 00 68 21 00 F4 F7 18 A9 78 73 D7 FA 90 00 6D [10:47:16]RAPDU: F4 F7 18 A9 78 73 D7 FA 90 00 [10:47:16]wFMCommunicate OK [10:47:16]SAM_PROTO_SignData done [10:47:16]FM_MakeSignedData done [10:47:16]CreateOFDProtocolMessage [10:47:16]wFMCommunicate request_size=4 [10:47:16]MH_SAM_APDU [10:47:16]CAPDU: 80 11 00 00 [10:47:16]Write to MH i2c: E2 08 00 69 21 80 11 00 00 00 00 00 00 04 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:16]Read from MH i2c: E2 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 17 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: E2 17 00 69 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [10:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:47:16]wFMCommunicate OK [10:47:16]CreateOFDProtocolMessage done [10:47:16]OFDSenderStorePacket 112175 [10:47:16]StoreOFDPacket docnum=112175 [10:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 24 15 07 01 22 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C7 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B6 01 00 35 04 06 00 C9 3D F6 05 D8 0C F4 F7 18 A9 78 73 D7 FA [10:47:16]CheckFolder [10:47:16]dirname=/storage/ofd_packets [10:47:16]CheckFolder done [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00112175 [10:47:16]NVStorageSaveData ofd_packets/00112175 [10:47:16]File name is /storage/ofd_packets/00112175 [10:47:16]Write 301 bytes [10:47:16]NVStorageSaveData done [10:47:16]OFDSenderStorePacket done [10:47:16]KKMCreateOFDPacket done [10:47:16]NVStorageSaveData kkm_last_timestamp [10:47:16]File name is /storage/kkm_last_timestamp [10:47:16]Write 4 bytes [10:47:16]NVStorageSaveData done [10:47:16]ExternCall_PrintAddStr [10:47:16]wPrintStart [10:47:16]Write to MH i2c: 01 00 00 6A 21 8B [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 6A 21 00 00 00 00 00 FF 0F A0 [10:47:16]RasterBufferAndPrint [10:47:16]line Счет N : (1)320842 [10:47:16]line ИНН: 02508201610067 [10:47:16]line Контрольно-Кассовый Чек [10:47:16]line ПРОДАЖА [10:47:16]line ТРК (МРК, ГНК) : 11 [10:47:16]line Товар: 2710124130 [10:47:16]line Аи-92-К-5 [10:47:16]line 7.540 * 66.40 [10:47:16]line = 500.66 [10:47:16]line НДС 12% НСП 1% [10:47:16]line > о реализуемом товаре [10:47:16]line ОКРУГЛЕНИЕ: -0.66 [10:47:16]line ИТОГО: 500.00 [10:47:16]line Внесено: 500.00 [10:47:16]line СДАЧА: 0.00 [10:47:16]line НСП 1% : 4.43 [10:47:16]line НДС 12% : 53.17 [10:47:16]line Наличными: 500.00 [10:47:16]line Безнал.: 0.00 [10:47:16]line Место: АЗС № 65 "Партнер Нефть" [10:47:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:47:16]line СНО: Общий режим [10:47:16]line Чек 41 22.06.2024 10:47 [10:47:16]line Смена: 391 ФФД: 1.0 [10:47:16]line ЗНМ: 0300000198 [10:47:16]line РНМ: 0000000000092771 [10:47:16]line Версия ККМ: 001 [10:47:16]line ФМ: 0000000000875083 [10:47:16]line ФД: 112175 [10:47:16]line ФПД: 221267957766156 [10:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T104735&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112175&fm=221267957766156&tin=02508201610067®Number=0000000000092771&sum=50000 [10:47:17]OFD Sender: Processing packet 112175 [packets to send 38, broken 37] [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00112175 [10:47:17]OFD Sender: To server: pG, [10:47:17]CommunicateWithHost lk.salyk.kg:30040 [10:47:17]ConnectInit lk.salyk.kg [10:47:17]written 0, free lines is 4095 [10:47:17]Connected sock=11 [10:47:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 24 15 07 01 22 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C7 AB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B6 01 00 35 04 06 00 C9 3D F6 05 D8 0C F4 F7 18 A9 78 73 D7 FA [10:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E5 55 47 00 71 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B6 01 00 F4 03 04 00 D6 42 76 66 B6 04 01 00 00 F3 5A 03 95 77 37 B3 5B [10:47:17]CommunicateWithHost err = 0 [10:47:17]CheckOFDResponse [10:47:17]1017 (14) - 77093643461234 [10:47:17]1041 (16) - 0000000000875083 [10:47:17]1040 (4) - 112175 [10:47:17]1012 (4) - 22.06.2024 03:19 [10:47:17]1206 (1) - 0 [10:47:17]OFD Sender: Remove packet 112175 [10:47:17]ProducePacketName [10:47:17]name=ofd_packets/00112175 [10:47:17]NVStorageDeleteData [10:47:17]Write to MH i2c: 01 00 00 95 21 B6 [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 07 00 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: 01 07 00 95 21 00 00 00 00 00 E1 0C AA [10:47:17]RasterBufferAndPrint [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]line [10:47:17]written 0, free lines is 3303 [10:47:17]MH_Cut [10:47:17]Write to MH i2c: D1 01 00 9C 21 01 8F [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 01 00 [10:47:17]MH_I2C_Read... [10:47:17]Read from MH i2c: D1 01 00 9C 21 00 8E [10:47:17]Write to MH i2c: 01 00 00 9D 21 BE [10:47:17]Write i2c OK [10:47:17]MH_I2C_Read... [10:47:18]OFD Sender: No OFD packet to send [10:47:18]*** Cut start [10:47:18]*** Partial cut [10:47:18]*** CUTSNS_PIN = 1 [10:47:18]*** CUTSNS_PIN = 0 [10:47:18]*** Brake cut motor [10:47:19]Read from MH i2c: 01 [10:47:19]MH_I2C_Read... [10:47:19]*** Stop cut motor [10:47:19]*** Cut end [10:47:19]Read from MH i2c: 01 07 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 07 00 9D 21 00 00 00 00 00 FF 0F D3 [10:47:19]process_action close_receipt done [10:47:19]requested_data is exist [10:47:19]produce_requested_data [10:47:19]requested_item fm.sn is exist - process it [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 11 00 00 [10:47:19]Write to MH i2c: E2 08 00 9E 21 80 11 00 00 00 00 00 00 39 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 17 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 17 00 9E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [10:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:47:19]wFMCommunicate OK [10:47:19]requested_item fd.num is exist - process it [10:47:19]SAM_PROTO_GetFieldsCounters [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 13 00 00 [10:47:19]Write to MH i2c: E2 08 00 9F 21 80 13 00 00 00 00 00 00 3C [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 62 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 62 00 9F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [10:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetFieldsCounters done [10:47:19]requested_item shift.num is exist - process it [10:47:19]requested_item shift.opened is exist - process it [10:47:19]req_shift_opened [10:47:19]FM_GetShiftState [10:47:19]SAM_PROTO_GetShiftState [10:47:19]wFMCommunicate request_size=4 [10:47:19]MH_SAM_APDU [10:47:19]CAPDU: 80 13 01 00 [10:47:19]Write to MH i2c: E2 08 00 A0 21 80 13 01 00 00 00 00 00 3E [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:19]Read from MH i2c: E2 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: E2 0E 00 A0 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 73 [10:47:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:47:19]wFMCommunicate OK [10:47:19]SAM_PROTO_GetShiftState done [10:47:19]FM_GetShiftState done [10:47:19]req_shift_opened done [10:47:19]requested_item shift.open_date is exist - process it [10:47:19]req_shift_open_date [10:47:19]req_shift_open_date done [10:47:19]produce_requested_data done [10:47:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112175,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:47:19]process_action_free close_receipt [10:47:19]json_value_free [10:47:19]json_value_free done [10:47:19]process_json_proto returns [10:47:19]Send response to host [10:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112175,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:47:19]free response buf [10:47:19]execute_script done [10:47:19]execute_script returns [10:47:19]free content buf [10:47:19]Sock 7.Close socket [10:47:19]Sock 7.Thread stoped [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:27]accept exits with 9 [10:52:27]New connection [10:52:27]New thread 3066813796 created [10:52:27]Thread 3066957156 joined [10:52:27]Waiting for new connection... [10:52:27] Sock 9.Parse request [10:52:27]Sock 9.Check first char [10:52:27]Sock 9.First char is OK [10:52:27]request: POST /json_proto HTTP/1.0 [10:52:27]Method: POST [10:52:27]URL: /json_proto [10:52:27]Method is POST - this is cgi request [10:52:27]url: /json_proto [10:52:27]query_string will be loaded in cgi processing [10:52:27]execute_cgi json_proto POST (null) [10:52:27]execute_cgi path=json_proto method=POST [10:52:27]POST find Content-Length [10:52:27]Host: 172.17.59.68:8080 [10:52:27]Content-Length: 674 [10:52:27]Content-Type: application/json [10:52:27] [10:52:27]POST finish read [10:52:27]Found Content-Length = 674 [10:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:27]execute_script... [10:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:27]POST & json_proto [10:52:27]process_json_proto [10:52:27]json parsed OK: [10:52:27]protocol is kg_v1.0 [10:52:27]action value=close_receipt [10:52:27]process_action close_receipt [10:52:27]cmd_close_receipt [10:52:27]MH_GetDate [10:52:27]Write to MH i2c: F0 00 00 A1 21 B1 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 09 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 09 00 A1 21 00 00 AD 76 66 BC EC 60 65 B0 [10:52:27]GetLastDocTimeStamp 1719053255 [10:52:27]current date 1719053568 [10:52:27]FM_GetShiftState [10:52:27]SAM_PROTO_GetShiftState [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 01 00 [10:52:27]Write to MH i2c: E2 08 00 A2 21 80 13 01 00 00 00 00 00 40 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 A2 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 75 [10:52:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetShiftState done [10:52:27]FM_GetShiftState done [10:52:27]opened in 1719020067 [10:52:27]opened+sec_in_day 1719106467 [10:52:27]quantity*price = 50009 [10:52:27]sum+1 = 50010 [10:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 42 22.06.2024 10:52 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112176 ФПД: 216927048025210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105248&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112176&fm=216927048025210&tin=02508201610067®Number=0000000000092771&sum=50000 [10:52:28]StoreToDocumentArchive [10:52:28]shift 391 fd 112176 [10:52:28]save to /storage/0391/doc_00112176 [10:52:28]save last doc name /storage/0391/doc_00112176 to /storage/kkm_last_doc_name [10:52:28]save OK [10:52:28]Clear old archive folders... [10:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:28]tlvbuf is 0111E3C0 [10:52:28]SAM_PROTO_ClearQueue [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 09 00 00 [10:52:28]Write to MH i2c: E2 08 00 AF 21 80 09 00 00 00 00 00 00 42 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 AF 21 00 90 00 44 [10:52:28]RAPDU: 90 00 [10:52:28]wFMCommunicate OK [10:52:28]SAM_PROTO_ClearQueue done [10:52:28]KKMCreateOFDPacket [10:52:28]OFDProtocolAddRootSTLVToBuf [10:52:28]FM_MakeSignedData [10:52:28]FM_MakeSignedData [10:52:28]SAM_PROTO_SignData [10:52:28]wFMCommunicate request_size=4 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 0D 01 02 [10:52:28]Write to MH i2c: E2 08 00 B0 21 80 0D 01 02 00 00 00 00 4A [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:28]Read from MH i2c: E2 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: E2 03 00 B0 21 00 90 00 45 [10:52:28]RAPDU: 90 00 [10:52:28]wFMCommunicate OK [10:52:28]wFMCommunicate request_size=255 [10:52:28]MH_SAM_APDU [10:52:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 00 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B6 01 00 35 04 06 00 C5 4B 43 A3 [10:52:28]Write to MH i2c: E2 02 01 B1 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 00 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B6 01 00 35 04 06 00 C5 4B 43 A3 00 00 0C [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [10:52:29]RAPDU: 90 00 [10:52:29]wFMCommunicate OK [10:52:29]wFMCommunicate request_size=7 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 0D 02 02 02 C4 7A [10:52:29]Write to MH i2c: E2 0A 00 B2 21 80 0D 02 02 02 00 C4 7A 00 00 8F [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [10:52:29]RAPDU: 90 00 [10:52:29]wFMCommunicate OK [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 0D 03 02 [10:52:29]Write to MH i2c: E2 08 00 B3 21 80 0D 03 02 00 00 00 00 4F [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 0B 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 0B 00 B3 21 00 52 62 A5 5E 40 C2 79 94 90 00 16 [10:52:29]RAPDU: 52 62 A5 5E 40 C2 79 94 90 00 [10:52:29]wFMCommunicate OK [10:52:29]SAM_PROTO_SignData done [10:52:29]FM_MakeSignedData done [10:52:29]CreateOFDProtocolMessage [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 11 00 00 [10:52:29]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 17 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [10:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:52:29]wFMCommunicate OK [10:52:29]CreateOFDProtocolMessage done [10:52:29]OFDSenderStorePacket 112176 [10:52:29]StoreOFDPacket docnum=112176 [10:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 46 A9 04 01 32 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 00 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B6 01 00 35 04 06 00 C5 4B 43 A3 C4 7A 52 62 A5 5E 40 C2 79 94 [10:52:29]CheckFolder [10:52:29]dirname=/storage/ofd_packets [10:52:29]CheckFolder done [10:52:29]ProducePacketName [10:52:29]name=ofd_packets/00112176 [10:52:29]NVStorageSaveData ofd_packets/00112176 [10:52:29]File name is /storage/ofd_packets/00112176 [10:52:29]Write 298 bytes [10:52:29]NVStorageSaveData done [10:52:29]OFDSenderStorePacket done [10:52:29]KKMCreateOFDPacket done [10:52:29]NVStorageSaveData kkm_last_timestamp [10:52:29]File name is /storage/kkm_last_timestamp [10:52:29]Write 4 bytes [10:52:29]NVStorageSaveData done [10:52:29]ExternCall_PrintAddStr [10:52:29]wPrintStart [10:52:29]Write to MH i2c: 01 00 00 B5 21 D6 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 07 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 07 00 B5 21 00 00 00 00 00 FF 0F EB [10:52:29]RasterBufferAndPrint [10:52:29]line Счет N : (1)320843 [10:52:29]line ИНН: 02508201610067 [10:52:29]line Контрольно-Кассовый Чек [10:52:29]line ПРОДАЖА [10:52:29]line ТРК (МРК, ГНК) : 22 [10:52:29]line Товар: 2710194210 [10:52:29]line ДТ-К-5 [10:52:29]line 6.860 * 72.90 [10:52:29]line = 500.09 [10:52:29]line НДС 12% НСП 1% [10:52:29]line > о реализуемом товаре [10:52:29]line ОКРУГЛЕНИЕ: -0.09 [10:52:29]line ИТОГО: 500.00 [10:52:29]line Внесено: 500.00 [10:52:29]line СДАЧА: 0.00 [10:52:29]line НСП 1% : 4.43 [10:52:29]line НДС 12% : 53.11 [10:52:29]line Наличными: 500.00 [10:52:29]line Безнал.: 0.00 [10:52:29]line Место: АЗС № 65 "Партнер Нефть" [10:52:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:52:29]line СНО: Общий режим [10:52:29]line Чек 42 22.06.2024 10:52 [10:52:29]line Смена: 391 ФФД: 1.0 [10:52:29]line ЗНМ: 0300000198 [10:52:29]line РНМ: 0000000000092771 [10:52:29]line Версия ККМ: 001 [10:52:29]line ФМ: 0000000000875083 [10:52:29]line ФД: 112176 [10:52:29]line ФПД: 216927048025210 [10:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105248&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112176&fm=216927048025210&tin=02508201610067®Number=0000000000092771&sum=50000 [10:52:29]OFD Sender: Processing packet 112176 [packets to send 38, broken 37] [10:52:29]ProducePacketName [10:52:29]name=ofd_packets/00112176 [10:52:29]OFD Sender: To server: pG, [10:52:29]CommunicateWithHost lk.salyk.kg:30040 [10:52:29]ConnectInit lk.salyk.kg [10:52:29]written 0, free lines is 4095 [10:52:29]Connected sock=10 [10:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 46 A9 04 01 32 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 00 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B6 01 00 35 04 06 00 C5 4B 43 A3 C4 7A 52 62 A5 5E 40 C2 79 94 [10:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DB A1 47 00 EA 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B6 01 00 F4 03 04 00 0E 44 76 66 B6 04 01 00 00 D5 40 D0 46 36 D2 72 17 [10:52:29]CommunicateWithHost err = 0 [10:52:29]CheckOFDResponse [10:52:29]1017 (14) - 77093643461234 [10:52:29]1041 (16) - 0000000000875083 [10:52:29]1040 (4) - 112176 [10:52:30]1012 (4) - 22.06.2024 03:25 [10:52:30]1206 (1) - 0 [10:52:30]OFD Sender: Remove packet 112176 [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00112176 [10:52:30]NVStorageDeleteData [10:52:30]Write to MH i2c: 01 00 00 E0 21 01 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 E0 21 00 00 00 00 00 E0 0C F4 [10:52:30]RasterBufferAndPrint [10:52:30]line [10:52:30]line [10:52:30]line [10:52:30]line [10:52:30]line [10:52:30]written 0, free lines is 3302 [10:52:30]MH_Cut [10:52:30]Write to MH i2c: D1 01 00 E7 21 01 DA [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: D1 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: D1 01 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: D1 01 00 E7 21 00 D9 [10:52:30]Write to MH i2c: 01 00 00 E8 21 09 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]OFD Sender: No OFD packet to send [10:52:30]*** Cut start [10:52:30]*** Partial cut [10:52:30]*** CUTSNS_PIN = 1 [10:52:30]*** CUTSNS_PIN = 0 [10:52:31]*** Brake cut motor [10:52:31]Read from MH i2c: 01 [10:52:31]MH_I2C_Read... [10:52:31]*** Stop cut motor [10:52:31]*** Cut end [10:52:31]Read from MH i2c: 01 07 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 E8 21 00 00 00 00 00 FF 0F 1E [10:52:31]process_action close_receipt done [10:52:31]requested_data is exist [10:52:31]produce_requested_data [10:52:31]requested_item fm.sn is exist - process it [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 11 00 00 [10:52:31]Write to MH i2c: E2 08 00 E9 21 80 11 00 00 00 00 00 00 84 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 17 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 17 00 E9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [10:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:52:31]wFMCommunicate OK [10:52:31]requested_item fd.num is exist - process it [10:52:31]SAM_PROTO_GetFieldsCounters [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 13 00 00 [10:52:31]Write to MH i2c: E2 08 00 EA 21 80 13 00 00 00 00 00 00 87 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 62 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 62 00 EA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [10:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_GetFieldsCounters done [10:52:31]requested_item shift.num is exist - process it [10:52:31]requested_item shift.opened is exist - process it [10:52:31]req_shift_opened [10:52:31]FM_GetShiftState [10:52:31]SAM_PROTO_GetShiftState [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 13 01 00 [10:52:31]Write to MH i2c: E2 08 00 EB 21 80 13 01 00 00 00 00 00 89 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0E 00 EB 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BE [10:52:31]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_GetShiftState done [10:52:31]FM_GetShiftState done [10:52:31]req_shift_opened done [10:52:31]requested_item shift.open_date is exist - process it [10:52:31]req_shift_open_date [10:52:31]req_shift_open_date done [10:52:31]produce_requested_data done [10:52:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112176,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:52:31]process_action_free close_receipt [10:52:31]json_value_free [10:52:31]json_value_free done [10:52:31]process_json_proto returns [10:52:31]Send response to host [10:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112176,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:52:31]free response buf [10:52:31]execute_script done [10:52:31]execute_script returns [10:52:31]free content buf [10:52:31]Sock 9.Close socket [10:52:31]Sock 9.Thread stoped [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:44]accept exits with 7 [10:53:44]New connection [10:53:44]New thread 3066957156 created [10:53:44]Thread 3066813796 joined [10:53:44]Waiting for new connection... [10:53:44] Sock 7.Parse request [10:53:44]Sock 7.Check first char [10:53:44]Sock 7.First char is OK [10:53:44]request: POST /json_proto HTTP/1.0 [10:53:44]Method: POST [10:53:44]URL: /json_proto [10:53:44]Method is POST - this is cgi request [10:53:44]url: /json_proto [10:53:44]query_string will be loaded in cgi processing [10:53:44]execute_cgi json_proto POST (null) [10:53:44]execute_cgi path=json_proto method=POST [10:53:44]POST find Content-Length [10:53:44]Host: 172.17.59.68:8080 [10:53:44]Content-Length: 677 [10:53:44]Content-Type: application/json [10:53:44] [10:53:44]POST finish read [10:53:44]Found Content-Length = 677 [10:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320844", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:44]execute_script... [10:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320844", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:44]POST & json_proto [10:53:44]process_json_proto [10:53:44]json parsed OK: [10:53:44]protocol is kg_v1.0 [10:53:44]action value=close_receipt [10:53:44]process_action close_receipt [10:53:44]cmd_close_receipt [10:53:44]MH_GetDate [10:53:44]Write to MH i2c: F0 00 00 EC 21 FC [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: F0 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: F0 09 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: F0 09 00 EC 21 00 4C AD 76 66 BC EC 60 65 47 [10:53:44]GetLastDocTimeStamp 1719053568 [10:53:44]current date 1719053644 [10:53:44]FM_GetShiftState [10:53:44]SAM_PROTO_GetShiftState [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 13 01 00 [10:53:44]Write to MH i2c: E2 08 00 ED 21 80 13 01 00 00 00 00 00 8B [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0E 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0E 00 ED 21 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C0 [10:53:44]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:53:44]wFMCommunicate OK [10:53:44]SAM_PROTO_GetShiftState done [10:53:44]FM_GetShiftState done [10:53:44]opened in 1719020067 [10:53:44]opened+sec_in_day 1719106467 [10:53:44]quantity*price = 50065 [10:53:44]sum+1 = 50067 [10:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 43 22.06.2024 10:54 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112177 ФПД: 199339000333051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112177&fm=199339000333051&tin=02508201610067®Number=0000000000092771&sum=50000 [10:53:45]StoreToDocumentArchive [10:53:45]shift 391 fd 112177 [10:53:45]save to /storage/0391/doc_00112177 [10:53:45]save last doc name /storage/0391/doc_00112177 to /storage/kkm_last_doc_name [10:53:45]save OK [10:53:45]Clear old archive folders... [10:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:45]tlvbuf is 01173280 [10:53:45]SAM_PROTO_ClearQueue [10:53:45]wFMCommunicate request_size=4 [10:53:45]MH_SAM_APDU [10:53:45]CAPDU: 80 09 00 00 [10:53:45]Write to MH i2c: E2 08 00 FA 21 80 09 00 00 00 00 00 00 8D [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:45]Read from MH i2c: E2 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [10:53:45]RAPDU: 90 00 [10:53:45]wFMCommunicate OK [10:53:45]SAM_PROTO_ClearQueue done [10:53:45]KKMCreateOFDPacket [10:53:45]OFDProtocolAddRootSTLVToBuf [10:53:45]FM_MakeSignedData [10:53:45]FM_MakeSignedData [10:53:45]SAM_PROTO_SignData [10:53:45]wFMCommunicate request_size=4 [10:53:45]MH_SAM_APDU [10:53:45]CAPDU: 80 0D 01 02 [10:53:45]Write to MH i2c: E2 08 00 FB 21 80 0D 01 02 00 00 00 00 95 [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]OFD Sender: No OFD packet to send [10:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:45]Read from MH i2c: E2 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [10:53:45]RAPDU: 90 00 [10:53:45]wFMCommunicate OK [10:53:45]wFMCommunicate request_size=255 [10:53:45]MH_SAM_APDU [10:53: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 4D AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B6 01 00 35 04 06 00 B5 [10:53:45]Write to MH i2c: E2 02 01 FC 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 4D AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B6 01 00 35 04 06 00 B5 00 00 6F [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:45]Read from MH i2c: E2 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [10:53:45]RAPDU: 90 00 [10:53:45]wFMCommunicate OK [10:53:45]wFMCommunicate request_size=10 [10:53:45]MH_SAM_APDU [10:53:45]CAPDU: 80 0D 02 02 05 4C 3A 4E 02 FB [10:53:45]Write to MH i2c: E2 0D 00 FD 21 80 0D 02 02 05 00 4C 3A 4E 02 FB 00 00 73 [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:45]Read from MH i2c: E2 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [10:53:45]RAPDU: 90 00 [10:53:45]wFMCommunicate OK [10:53:45]wFMCommunicate request_size=4 [10:53:45]MH_SAM_APDU [10:53:45]CAPDU: 80 0D 03 02 [10:53:45]Write to MH i2c: E2 08 00 FE 21 80 0D 03 02 00 00 00 00 9A [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:45]Read from MH i2c: E2 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 0B 00 [10:53:45]MH_I2C_Read... [10:53:45]Read from MH i2c: E2 0B 00 FE 21 00 C6 4D C3 BB 88 01 FF 93 90 00 47 [10:53:45]RAPDU: C6 4D C3 BB 88 01 FF 93 90 00 [10:53:45]wFMCommunicate OK [10:53:45]SAM_PROTO_SignData done [10:53:45]FM_MakeSignedData done [10:53:45]CreateOFDProtocolMessage [10:53:45]wFMCommunicate request_size=4 [10:53:45]MH_SAM_APDU [10:53:45]CAPDU: 80 11 00 00 [10:53:45]Write to MH i2c: E2 08 00 FF 21 80 11 00 00 00 00 00 00 9A [10:53:45]Write i2c OK [10:53:45]MH_I2C_Read... [10:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:46]Read from MH i2c: E2 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 17 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: E2 17 00 FF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [10:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:53:46]wFMCommunicate OK [10:53:46]CreateOFDProtocolMessage done [10:53:46]OFDSenderStorePacket 112177 [10:53:46]StoreOFDPacket docnum=112177 [10:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2E 64 07 01 32 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 4D AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B6 01 00 35 04 06 00 B5 4C 3A 4E 02 FB C6 4D C3 BB 88 01 FF 93 [10:53:46]CheckFolder [10:53:46]dirname=/storage/ofd_packets [10:53:46]CheckFolder done [10:53:46]ProducePacketName [10:53:46]name=ofd_packets/00112177 [10:53:46]NVStorageSaveData ofd_packets/00112177 [10:53:46]File name is /storage/ofd_packets/00112177 [10:53:46]Write 301 bytes [10:53:46]NVStorageSaveData done [10:53:46]OFDSenderStorePacket done [10:53:46]KKMCreateOFDPacket done [10:53:46]NVStorageSaveData kkm_last_timestamp [10:53:46]File name is /storage/kkm_last_timestamp [10:53:46]Write 4 bytes [10:53:46]NVStorageSaveData done [10:53:46]ExternCall_PrintAddStr [10:53:46]wPrintStart [10:53:46]Write to MH i2c: 01 00 00 00 22 22 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 07 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 07 00 00 22 00 00 00 00 00 FF 0F 37 [10:53:46]RasterBufferAndPrint [10:53:46]line Счет N : (1)320844 [10:53:46]line ИНН: 02508201610067 [10:53:46]line Контрольно-Кассовый Чек [10:53:46]line ПРОДАЖА [10:53:46]line ТРК (МРК, ГНК) : 11 [10:53:46]line Товар: 2710124130 [10:53:46]line Аи-92-К-5 [10:53:46]line 7.540 * 66.40 [10:53:46]line = 500.66 [10:53:46]line НДС 12% НСП 1% [10:53:46]line > о реализуемом товаре [10:53:46]line ОКРУГЛЕНИЕ: -0.66 [10:53:46]line ИТОГО: 500.00 [10:53:46]line Внесено: 500.00 [10:53:46]line СДАЧА: 0.00 [10:53:46]line НСП 1% : 4.43 [10:53:46]line НДС 12% : 53.17 [10:53:46]line Наличными: 500.00 [10:53:46]line Безнал.: 0.00 [10:53:46]line Место: АЗС № 65 "Партнер Нефть" [10:53:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:53:46]line СНО: Общий режим [10:53:46]line Чек 43 22.06.2024 10:54 [10:53:46]line Смена: 391 ФФД: 1.0 [10:53:46]line ЗНМ: 0300000198 [10:53:46]line РНМ: 0000000000092771 [10:53:46]line Версия ККМ: 001 [10:53:46]line ФМ: 0000000000875083 [10:53:46]line ФД: 112177 [10:53:46]line ФПД: 199339000333051 [10:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112177&fm=199339000333051&tin=02508201610067®Number=0000000000092771&sum=50000 [10:53:46]OFD Sender: Processing packet 112177 [packets to send 38, broken 37] [10:53:46]ProducePacketName [10:53:46]name=ofd_packets/00112177 [10:53:46]OFD Sender: To server: pG, [10:53:46]CommunicateWithHost lk.salyk.kg:30040 [10:53:46]ConnectInit lk.salyk.kg [10:53:46]written 0, free lines is 4095 [10:53:46]Connected sock=9 [10:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2E 64 07 01 32 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 4D AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B6 01 00 35 04 06 00 B5 4C 3A 4E 02 FB C6 4D C3 BB 88 01 FF 93 [10:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 D5 47 00 B9 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B6 01 00 F4 03 04 00 5B 44 76 66 B6 04 01 00 00 2C 15 94 DD B7 0F FF CF [10:53:46]CommunicateWithHost err = 0 [10:53:46]CheckOFDResponse [10:53:46]1017 (14) - 77093643461234 [10:53:46]1041 (16) - 0000000000875083 [10:53:46]1040 (4) - 112177 [10:53:46]1012 (4) - 22.06.2024 03:26 [10:53:46]1206 (1) - 0 [10:53:46]OFD Sender: Remove packet 112177 [10:53:46]ProducePacketName [10:53:46]name=ofd_packets/00112177 [10:53:46]NVStorageDeleteData [10:53:46]Write to MH i2c: 01 00 00 2B 22 4D [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 07 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: 01 07 00 2B 22 00 00 00 00 00 E5 0C 45 [10:53:46]RasterBufferAndPrint [10:53:46]line [10:53:46]line [10:53:46]line [10:53:46]line [10:53:46]line [10:53:46]written 0, free lines is 3307 [10:53:46]MH_Cut [10:53:46]Write to MH i2c: D1 01 00 32 22 01 26 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: D1 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: D1 01 00 [10:53:46]MH_I2C_Read... [10:53:46]Read from MH i2c: D1 01 00 32 22 00 25 [10:53:46]Write to MH i2c: 01 00 00 33 22 55 [10:53:46]Write i2c OK [10:53:46]MH_I2C_Read... [10:53:47]OFD Sender: No OFD packet to send [10:53:47]*** Cut start [10:53:47]*** Partial cut [10:53:47]*** CUTSNS_PIN = 1 [10:53:47]*** CUTSNS_PIN = 0 [10:53:47]*** Brake cut motor [10:53:48]Read from MH i2c: 01 [10:53:48]MH_I2C_Read... [10:53:48]*** Stop cut motor [10:53:48]*** Cut end [10:53:48]Read from MH i2c: 01 07 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 33 22 00 00 00 00 00 FF 0F 6A [10:53:48]process_action close_receipt done [10:53:48]requested_data is exist [10:53:48]produce_requested_data [10:53:48]requested_item fm.sn is exist - process it [10:53:48]wFMCommunicate request_size=4 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 11 00 00 [10:53:48]Write to MH i2c: E2 08 00 34 22 80 11 00 00 00 00 00 00 D0 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 17 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 17 00 34 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [10:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:53:48]wFMCommunicate OK [10:53:48]requested_item fd.num is exist - process it [10:53:48]SAM_PROTO_GetFieldsCounters [10:53:48]wFMCommunicate request_size=4 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 13 00 00 [10:53:48]Write to MH i2c: E2 08 00 35 22 80 13 00 00 00 00 00 00 D3 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 62 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 62 00 35 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [10:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:48]wFMCommunicate OK [10:53:48]SAM_PROTO_GetFieldsCounters done [10:53:48]requested_item shift.num is exist - process it [10:53:48]requested_item shift.opened is exist - process it [10:53:48]req_shift_opened [10:53:48]FM_GetShiftState [10:53:48]SAM_PROTO_GetShiftState [10:53:48]wFMCommunicate request_size=4 [10:53:48]MH_SAM_APDU [10:53:48]CAPDU: 80 13 01 00 [10:53:48]Write to MH i2c: E2 08 00 36 22 80 13 01 00 00 00 00 00 D5 [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:48]Read from MH i2c: E2 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 0E 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: E2 0E 00 36 22 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0A [10:53:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:53:48]wFMCommunicate OK [10:53:48]SAM_PROTO_GetShiftState done [10:53:48]FM_GetShiftState done [10:53:48]req_shift_opened done [10:53:48]requested_item shift.open_date is exist - process it [10:53:48]req_shift_open_date [10:53:48]req_shift_open_date done [10:53:48]produce_requested_data done [10:53:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112177,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:53:48]process_action_free close_receipt [10:53:48]json_value_free [10:53:48]json_value_free done [10:53:48]process_json_proto returns [10:53:48]Send response to host [10:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112177,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:53:48]free response buf [10:53:48]execute_script done [10:53:48]execute_script returns [10:53:48]free content buf [10:53:48]Sock 7.Close socket [10:53:48]Sock 7.Thread stoped [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:16]accept exits with 10 [10:55:16]New connection [10:55:16]New thread 3066813796 created [10:55:16]Thread 3066957156 joined [10:55:16]Waiting for new connection... [10:55:16] Sock 10.Parse request [10:55:16]Sock 10.Check first char [10:55:16]Sock 10.First char is OK [10:55:16]request: POST /json_proto HTTP/1.0 [10:55:16]Method: POST [10:55:16]URL: /json_proto [10:55:16]Method is POST - this is cgi request [10:55:16]url: /json_proto [10:55:16]query_string will be loaded in cgi processing [10:55:16]execute_cgi json_proto POST (null) [10:55:16]execute_cgi path=json_proto method=POST [10:55:16]POST find Content-Length [10:55:16]Host: 172.17.59.68:8080 [10:55:16]Content-Length: 677 [10:55:16]Content-Type: application/json [10:55:16] [10:55:16]POST finish read [10:55:16]Found Content-Length = 677 [10:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320845", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:55:16]execute_script... [10:55: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)320845", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:55:16]POST & json_proto [10:55:16]process_json_proto [10:55:16]json parsed OK: [10:55:16]protocol is kg_v1.0 [10:55:16]action value=close_receipt [10:55:16]process_action close_receipt [10:55:16]cmd_close_receipt [10:55:16]MH_GetDate [10:55:16]Write to MH i2c: F0 00 00 37 22 48 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: F0 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: F0 09 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: F0 09 00 37 22 00 A9 AD 76 66 BC EC 60 65 F0 [10:55:16]GetLastDocTimeStamp 1719053645 [10:55:16]current date 1719053737 [10:55:16]FM_GetShiftState [10:55:16]SAM_PROTO_GetShiftState [10:55:16]wFMCommunicate request_size=4 [10:55:16]MH_SAM_APDU [10:55:16]CAPDU: 80 13 01 00 [10:55:16]Write to MH i2c: E2 08 00 38 22 80 13 01 00 00 00 00 00 D7 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:16]Read from MH i2c: E2 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 0E 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: E2 0E 00 38 22 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0C [10:55:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:55:16]wFMCommunicate OK [10:55:16]SAM_PROTO_GetShiftState done [10:55:16]FM_GetShiftState done [10:55:16]opened in 1719020067 [10:55:16]opened+sec_in_day 1719106467 [10:55:16]quantity*price = 40039 [10:55:16]sum+1 = 40040 [10:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 44 22.06.2024 10:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112178 ФПД: 1242372026215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105537&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112178&fm=1242372026215&tin=02508201610067®Number=0000000000092771&sum=40000 [10:55:18]StoreToDocumentArchive [10:55:18]shift 391 fd 112178 [10:55:18]save to /storage/0391/doc_00112178 [10:55:18]save last doc name /storage/0391/doc_00112178 to /storage/kkm_last_doc_name [10:55:18]save OK [10:55:18]Clear old archive folders... [10:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:18]tlvbuf is B6EC23E0 [10:55:18]SAM_PROTO_ClearQueue [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 09 00 00 [10:55:18]Write to MH i2c: E2 08 00 45 22 80 09 00 00 00 00 00 00 D9 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]SAM_PROTO_ClearQueue done [10:55:18]KKMCreateOFDPacket [10:55:18]OFDProtocolAddRootSTLVToBuf [10:55:18]FM_MakeSignedData [10:55:18]FM_MakeSignedData [10:55:18]SAM_PROTO_SignData [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 01 02 [10:55:18]Write to MH i2c: E2 08 00 46 22 80 0D 01 02 00 00 00 00 E1 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 46 22 00 90 00 DC [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]wFMCommunicate request_size=255 [10:55:18]MH_SAM_APDU [10:55: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2C 00 00 00 F4 03 04 00 A9 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B6 01 00 35 04 06 00 01 [10:55:18]Write to MH i2c: E2 02 01 47 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2C 00 00 00 F4 03 04 00 A9 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B6 01 00 35 04 06 00 01 00 00 33 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]wFMCommunicate request_size=10 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 02 02 05 21 43 24 AF 67 [10:55:18]Write to MH i2c: E2 0D 00 48 22 80 0D 02 02 05 00 21 43 24 AF 67 00 00 8C [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 03 02 [10:55:18]Write to MH i2c: E2 08 00 49 22 80 0D 03 02 00 00 00 00 E6 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 0B 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 0B 00 49 22 00 47 6E 0D BB DE 4B 72 87 90 00 86 [10:55:18]RAPDU: 47 6E 0D BB DE 4B 72 87 90 00 [10:55:18]wFMCommunicate OK [10:55:18]SAM_PROTO_SignData done [10:55:18]FM_MakeSignedData done [10:55:18]CreateOFDProtocolMessage [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 11 00 00 [10:55:18]Write to MH i2c: E2 08 00 4A 22 80 11 00 00 00 00 00 00 E6 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 17 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 17 00 4A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [10:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:55:18]wFMCommunicate OK [10:55:18]CreateOFDProtocolMessage done [10:55:18]OFDSenderStorePacket 112178 [10:55:18]StoreOFDPacket docnum=112178 [10:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A5 0D 07 01 BF 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2C 00 00 00 F4 03 04 00 A9 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B6 01 00 35 04 06 00 01 21 43 24 AF 67 47 6E 0D BB DE 4B 72 87 [10:55:18]CheckFolder [10:55:18]dirname=/storage/ofd_packets [10:55:18]CheckFolder done [10:55:18]ProducePacketName [10:55:18]name=ofd_packets/00112178 [10:55:18]NVStorageSaveData ofd_packets/00112178 [10:55:18]File name is /storage/ofd_packets/00112178 [10:55:18]Write 301 bytes [10:55:18]NVStorageSaveData done [10:55:18]OFDSenderStorePacket done [10:55:18]KKMCreateOFDPacket done [10:55:18]NVStorageSaveData kkm_last_timestamp [10:55:18]File name is /storage/kkm_last_timestamp [10:55:18]Write 4 bytes [10:55:18]NVStorageSaveData done [10:55:18]ExternCall_PrintAddStr [10:55:18]wPrintStart [10:55:18]Write to MH i2c: 01 00 00 4B 22 6D [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: 01 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: 01 07 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: 01 07 00 4B 22 00 00 00 00 00 FF 0F 82 [10:55:18]RasterBufferAndPrint [10:55:18]line Счет N : (1)320845 [10:55:18]line ИНН: 02508201610067 [10:55:18]line Контрольно-Кассовый Чек [10:55:18]line ПРОДАЖА [10:55:18]line ТРК (МРК, ГНК) : 11 [10:55:18]line Товар: 2710124130 [10:55:18]line Аи-92-К-5 [10:55:18]line 6.030 * 66.40 [10:55:18]line = 400.39 [10:55:18]line НДС 12% НСП 1% [10:55:18]line > о реализуемом товаре [10:55:18]line ОКРУГЛЕНИЕ: -0.39 [10:55:18]line ИТОГО: 400.00 [10:55:18]line Внесено: 400.00 [10:55:18]line СДАЧА: 0.00 [10:55:18]line НСП 1% : 3.54 [10:55:18]line НДС 12% : 42.52 [10:55:18]line Наличными: 400.00 [10:55:18]line Безнал.: 0.00 [10:55:18]line Место: АЗС № 65 "Партнер Нефть" [10:55:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:55:18]line СНО: Общий режим [10:55:18]line Чек 44 22.06.2024 10:55 [10:55:18]line Смена: 391 ФФД: 1.0 [10:55:18]line ЗНМ: 0300000198 [10:55:18]line РНМ: 0000000000092771 [10:55:18]line Версия ККМ: 001 [10:55:18]line ФМ: 0000000000875083 [10:55:18]line ФД: 112178 [10:55:18]line ФПД: 1242372026215 [10:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T105537&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112178&fm=1242372026215&tin=02508201610067®Number=0000000000092771&sum=40000 [10:55:18]OFD Sender: Processing packet 112178 [packets to send 38, broken 37] [10:55:18]ProducePacketName [10:55:18]name=ofd_packets/00112178 [10:55:18]OFD Sender: To server: pG, [10:55:18]CommunicateWithHost lk.salyk.kg:30040 [10:55:18]ConnectInit lk.salyk.kg [10:55:18]written 0, free lines is 4095 [10:55:19]Connected sock=9 [10: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 35 30 38 33 0F 01 00 00 A5 0D 07 01 BF 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2C 00 00 00 F4 03 04 00 A9 AD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B6 01 00 35 04 06 00 01 21 43 24 AF 67 47 6E 0D BB DE 4B 72 87 [10:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 38 81 47 00 F7 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 35 30 38 33 10 04 04 00 32 B6 01 00 F4 03 04 00 B8 44 76 66 B6 04 01 00 00 BC 3C 9B 24 43 53 14 EA [10:55:19]CommunicateWithHost err = 0 [10:55:19]CheckOFDResponse [10:55:19]1017 (14) - 77093643461234 [10:55:19]1041 (16) - 0000000000875083 [10:55:19]1040 (4) - 112178 [10:55:19]1012 (4) - 22.06.2024 03:27 [10:55:19]1206 (1) - 0 [10:55:19]OFD Sender: Remove packet 112178 [10:55:19]ProducePacketName [10:55:19]name=ofd_packets/00112178 [10:55:19]NVStorageDeleteData [10:55:19]Write to MH i2c: 01 00 00 76 22 98 [10:55:19]Write i2c OK [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: 01 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: 01 07 00 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 DD 0C 88 [10:55:19]RasterBufferAndPrint [10:55:19]line [10:55:19]line [10:55:19]line [10:55:19]line [10:55:19]line [10:55:19]written 0, free lines is 3299 [10:55:19]MH_Cut [10:55:19]Write to MH i2c: D1 01 00 7D 22 01 71 [10:55:19]Write i2c OK [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: D1 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: D1 01 00 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: D1 01 00 7D 22 00 70 [10:55:19]Write to MH i2c: 01 00 00 7E 22 A0 [10:55:19]Write i2c OK [10:55:19]MH_I2C_Read... [10:55:19]OFD Sender: No OFD packet to send [10:55:20]*** Cut start [10:55:20]*** Partial cut [10:55:20]*** CUTSNS_PIN = 1 [10:55:20]*** CUTSNS_PIN = 0 [10:55:20]*** Brake cut motor [10:55:20]Read from MH i2c: 01 [10:55:20]MH_I2C_Read... [10:55:20]*** Stop cut motor [10:55:20]*** Cut end [10:55:20]Read from MH i2c: 01 07 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: 01 07 00 7E 22 00 00 00 00 00 FF 0F B5 [10:55:20]process_action close_receipt done [10:55:20]requested_data is exist [10:55:20]produce_requested_data [10:55:20]requested_item fm.sn is exist - process it [10:55:20]wFMCommunicate request_size=4 [10:55:20]MH_SAM_APDU [10:55:20]CAPDU: 80 11 00 00 [10:55:20]Write to MH i2c: E2 08 00 7F 22 80 11 00 00 00 00 00 00 1B [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:20]Read from MH i2c: E2 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: E2 17 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: E2 17 00 7F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [10:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:55:20]wFMCommunicate OK [10:55:20]requested_item fd.num is exist - process it [10:55:20]SAM_PROTO_GetFieldsCounters [10:55:20]wFMCommunicate request_size=4 [10:55:20]MH_SAM_APDU [10:55:20]CAPDU: 80 13 00 00 [10:55:20]Write to MH i2c: E2 08 00 80 22 80 13 00 00 00 00 00 00 1E [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:20]Read from MH i2c: E2 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: E2 62 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: E2 62 00 80 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [10:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:20]wFMCommunicate OK [10:55:20]SAM_PROTO_GetFieldsCounters done [10:55:20]requested_item shift.num is exist - process it [10:55:20]requested_item shift.opened is exist - process it [10:55:20]req_shift_opened [10:55:20]FM_GetShiftState [10:55:20]SAM_PROTO_GetShiftState [10:55:20]wFMCommunicate request_size=4 [10:55:20]MH_SAM_APDU [10:55:20]CAPDU: 80 13 01 00 [10:55:20]Write to MH i2c: E2 08 00 81 22 80 13 01 00 00 00 00 00 20 [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:21]Read from MH i2c: E2 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 81 22 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 55 [10:55:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [10:55:21]wFMCommunicate OK [10:55:21]SAM_PROTO_GetShiftState done [10:55:21]FM_GetShiftState done [10:55:21]req_shift_opened done [10:55:21]requested_item shift.open_date is exist - process it [10:55:21]req_shift_open_date [10:55:21]req_shift_open_date done [10:55:21]produce_requested_data done [10:55:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112178,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [10:55:21]process_action_free close_receipt [10:55:21]json_value_free [10:55:21]json_value_free done [10:55:21]process_json_proto returns [10:55:21]Send response to host [10:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112178,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [10:55:21]free response buf [10:55:21]execute_script done [10:55:21]execute_script returns [10:55:21]free content buf [10:55:21]Sock 10.Close socket [10:55:21]Sock 10.Thread stoped [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:32]accept exits with 7 [11:01:32]New connection [11:01:32]New thread 3066957156 created [11:01:32]Thread 3066813796 joined [11:01:32]Waiting for new connection... [11:01:32] Sock 7.Parse request [11:01:32]Sock 7.Check first char [11:01:32]Sock 7.First char is OK [11:01:32]request: POST /json_proto HTTP/1.0 [11:01:32]Method: POST [11:01:32]URL: /json_proto [11:01:32]Method is POST - this is cgi request [11:01:32]url: /json_proto [11:01:32]query_string will be loaded in cgi processing [11:01:32]execute_cgi json_proto POST (null) [11:01:32]execute_cgi path=json_proto method=POST [11:01:32]POST find Content-Length [11:01:32]Host: 172.17.59.68:8080 [11:01:32]Content-Length: 677 [11:01:32]Content-Type: application/json [11:01:32] [11:01:32]POST finish read [11:01:32]Found Content-Length = 677 [11:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320846", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:01:32]execute_script... [11:01: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)320846", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:01:32]POST & json_proto [11:01:32]process_json_proto [11:01:32]json parsed OK: [11:01:32]protocol is kg_v1.0 [11:01:32]action value=close_receipt [11:01:32]process_action close_receipt [11:01:32]cmd_close_receipt [11:01:32]MH_GetDate [11:01:32]Write to MH i2c: F0 00 00 82 22 93 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: F0 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: F0 09 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: F0 09 00 82 22 00 21 AF 76 66 BC EC 60 65 B5 [11:01:32]GetLastDocTimeStamp 1719053737 [11:01:32]current date 1719054113 [11:01:32]FM_GetShiftState [11:01:32]SAM_PROTO_GetShiftState [11:01:32]wFMCommunicate request_size=4 [11:01:32]MH_SAM_APDU [11:01:32]CAPDU: 80 13 01 00 [11:01:32]Write to MH i2c: E2 08 00 83 22 80 13 01 00 00 00 00 00 22 [11:01:32]Write i2c OK [11:01:32]MH_I2C_Read... [11:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:32]Read from MH i2c: E2 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 0E 00 [11:01:32]MH_I2C_Read... [11:01:32]Read from MH i2c: E2 0E 00 83 22 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 57 [11:01:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:01:32]wFMCommunicate OK [11:01:32]SAM_PROTO_GetShiftState done [11:01:32]FM_GetShiftState done [11:01:32]opened in 1719020067 [11:01:32]opened+sec_in_day 1719106467 [11:01:32]quantity*price = 40039 [11:01:32]sum+1 = 40040 [11:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 45 22.06.2024 11:01 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112179 ФПД: 166194471001956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110153&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112179&fm=166194471001956&tin=02508201610067®Number=0000000000092771&sum=40000 [11:01:33]StoreToDocumentArchive [11:01:33]shift 391 fd 112179 [11:01:33]save to /storage/0391/doc_00112179 [11:01:33]save last doc name /storage/0391/doc_00112179 to /storage/kkm_last_doc_name [11:01:33]save OK [11:01:33]Clear old archive folders... [11:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:33]tlvbuf is 011C9AF0 [11:01:33]SAM_PROTO_ClearQueue [11:01:33]wFMCommunicate request_size=4 [11:01:33]MH_SAM_APDU [11:01:33]CAPDU: 80 09 00 00 [11:01:33]Write to MH i2c: E2 08 00 90 22 80 09 00 00 00 00 00 00 24 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:33]Read from MH i2c: E2 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [11:01:33]RAPDU: 90 00 [11:01:33]wFMCommunicate OK [11:01:33]SAM_PROTO_ClearQueue done [11:01:33]KKMCreateOFDPacket [11:01:33]OFDProtocolAddRootSTLVToBuf [11:01:33]FM_MakeSignedData [11:01:33]FM_MakeSignedData [11:01:33]SAM_PROTO_SignData [11:01:33]wFMCommunicate request_size=4 [11:01:33]MH_SAM_APDU [11:01:33]CAPDU: 80 0D 01 02 [11:01:33]Write to MH i2c: E2 08 00 91 22 80 0D 01 02 00 00 00 00 2C [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:33]Read from MH i2c: E2 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [11:01:33]RAPDU: 90 00 [11:01:33]wFMCommunicate OK [11:01:33]wFMCommunicate request_size=255 [11:01:33]MH_SAM_APDU [11:01: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 21 AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B6 01 00 35 04 06 00 97 [11:01:33]Write to MH i2c: E2 02 01 92 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 21 AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B6 01 00 35 04 06 00 97 00 00 90 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=10 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 02 02 05 27 2A 68 5F 64 [11:01:34]Write to MH i2c: E2 0D 00 93 22 80 0D 02 02 05 00 27 2A 68 5F 64 00 00 B5 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 93 22 00 90 00 29 [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 03 02 [11:01:34]Write to MH i2c: E2 08 00 94 22 80 0D 03 02 00 00 00 00 31 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0B 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0B 00 94 22 00 73 D2 B1 0B 35 A9 1C 43 90 00 70 [11:01:34]RAPDU: 73 D2 B1 0B 35 A9 1C 43 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_SignData done [11:01:34]FM_MakeSignedData done [11:01:34]CreateOFDProtocolMessage [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 11 00 00 [11:01:34]Write to MH i2c: E2 08 00 95 22 80 11 00 00 00 00 00 00 31 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 95 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [11:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:01:34]wFMCommunicate OK [11:01:34]CreateOFDProtocolMessage done [11:01:34]OFDSenderStorePacket 112179 [11:01:34]StoreOFDPacket docnum=112179 [11:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 28 07 01 8B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 21 AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B6 01 00 35 04 06 00 97 27 2A 68 5F 64 73 D2 B1 0B 35 A9 1C 43 [11:01:34]CheckFolder [11:01:34]dirname=/storage/ofd_packets [11:01:34]CheckFolder done [11:01:34]ProducePacketName [11:01:34]name=ofd_packets/00112179 [11:01:34]NVStorageSaveData ofd_packets/00112179 [11:01:34]File name is /storage/ofd_packets/00112179 [11:01:34]Write 301 bytes [11:01:34]NVStorageSaveData done [11:01:34]OFDSenderStorePacket done [11:01:34]KKMCreateOFDPacket done [11:01:34]NVStorageSaveData kkm_last_timestamp [11:01:34]File name is /storage/kkm_last_timestamp [11:01:34]Write 4 bytes [11:01:34]NVStorageSaveData done [11:01:34]ExternCall_PrintAddStr [11:01:34]wPrintStart [11:01:34]Write to MH i2c: 01 00 00 96 22 B8 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 07 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 FF 0F CD [11:01:34]RasterBufferAndPrint [11:01:34]line Счет N : (1)320846 [11:01:34]line ИНН: 02508201610067 [11:01:34]line Контрольно-Кассовый Чек [11:01:34]line ПРОДАЖА [11:01:34]line ТРК (МРК, ГНК) : 11 [11:01:34]line Товар: 2710124130 [11:01:34]line Аи-92-К-5 [11:01:34]line 6.030 * 66.40 [11:01:34]line = 400.39 [11:01:34]line НДС 12% НСП 1% [11:01:34]line > о реализуемом товаре [11:01:34]line ОКРУГЛЕНИЕ: -0.39 [11:01:34]line ИТОГО: 400.00 [11:01:34]line Внесено: 400.00 [11:01:34]line СДАЧА: 0.00 [11:01:34]line НСП 1% : 3.54 [11:01:34]line НДС 12% : 42.52 [11:01:34]line Наличными: 400.00 [11:01:34]line Безнал.: 0.00 [11:01:34]line Место: АЗС № 65 "Партнер Нефть" [11:01:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:01:34]line СНО: Общий режим [11:01:34]line Чек 45 22.06.2024 11:01 [11:01:34]line Смена: 391 ФФД: 1.0 [11:01:34]line ЗНМ: 0300000198 [11:01:34]line РНМ: 0000000000092771 [11:01:34]line Версия ККМ: 001 [11:01:34]line ФМ: 0000000000875083 [11:01:34]line ФД: 112179 [11:01:34]line ФПД: 166194471001956 [11:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110153&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112179&fm=166194471001956&tin=02508201610067®Number=0000000000092771&sum=40000 [11:01:34]OFD Sender: Processing packet 112179 [packets to send 38, broken 37] [11:01:34]ProducePacketName [11:01:34]name=ofd_packets/00112179 [11:01:34]OFD Sender: To server: pG, [11:01:34]CommunicateWithHost lk.salyk.kg:30040 [11:01:34]ConnectInit lk.salyk.kg [11:01:34]written 0, free lines is 4095 [11:01:34]Connected sock=10 [11:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 28 07 01 8B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 21 AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B6 01 00 35 04 06 00 97 27 2A 68 5F 64 73 D2 B1 0B 35 A9 1C 43 [11:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 67 47 00 65 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B6 01 00 F4 03 04 00 2F 46 76 66 B6 04 01 00 00 FA 0E 5B B9 36 72 0C 8D [11:01:34]CommunicateWithHost err = 0 [11:01:34]CheckOFDResponse [11:01:34]1017 (14) - 77093643461234 [11:01:34]1041 (16) - 0000000000875083 [11:01:34]1040 (4) - 112179 [11:01:34]1012 (4) - 22.06.2024 03:34 [11:01:34]1206 (1) - 0 [11:01:34]OFD Sender: Remove packet 112179 [11:01:34]ProducePacketName [11:01:34]name=ofd_packets/00112179 [11:01:34]NVStorageDeleteData [11:01:35]Write to MH i2c: 01 00 00 C1 22 E3 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 C1 22 00 00 00 00 00 D5 0C CB [11:01:35]RasterBufferAndPrint [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]written 0, free lines is 3292 [11:01:35]MH_Cut [11:01:35]Write to MH i2c: D1 01 00 C8 22 01 BC [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 01 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 01 00 C8 22 00 BB [11:01:35]Write to MH i2c: 01 00 00 C9 22 EB [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]OFD Sender: No OFD packet to send [11:01:35]*** Cut start [11:01:35]*** Partial cut [11:01:35]*** CUTSNS_PIN = 1 [11:01:35]*** CUTSNS_PIN = 0 [11:01:36]*** Brake cut motor [11:01:36]Read from MH i2c: 01 [11:01:36]MH_I2C_Read... [11:01:36]*** Stop cut motor [11:01:36]*** Cut end [11:01:36]Read from MH i2c: 01 07 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: 01 07 00 C9 22 00 00 00 00 00 FF 0F 00 [11:01:36]process_action close_receipt done [11:01:36]requested_data is exist [11:01:36]produce_requested_data [11:01:36]requested_item fm.sn is exist - process it [11:01:36]wFMCommunicate request_size=4 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 11 00 00 [11:01:36]Write to MH i2c: E2 08 00 CA 22 80 11 00 00 00 00 00 00 66 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 17 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 17 00 CA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [11:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:01:36]wFMCommunicate OK [11:01:36]requested_item fd.num is exist - process it [11:01:36]SAM_PROTO_GetFieldsCounters [11:01:36]wFMCommunicate request_size=4 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 13 00 00 [11:01:36]Write to MH i2c: E2 08 00 CB 22 80 13 00 00 00 00 00 00 69 [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 62 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 62 00 CB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [11:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:36]wFMCommunicate OK [11:01:36]SAM_PROTO_GetFieldsCounters done [11:01:36]requested_item shift.num is exist - process it [11:01:36]requested_item shift.opened is exist - process it [11:01:36]req_shift_opened [11:01:36]FM_GetShiftState [11:01:36]SAM_PROTO_GetShiftState [11:01:36]wFMCommunicate request_size=4 [11:01:36]MH_SAM_APDU [11:01:36]CAPDU: 80 13 01 00 [11:01:36]Write to MH i2c: E2 08 00 CC 22 80 13 01 00 00 00 00 00 6B [11:01:36]Write i2c OK [11:01:36]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 0E 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 0E 00 CC 22 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A0 [11:01:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:01:36]wFMCommunicate OK [11:01:36]SAM_PROTO_GetShiftState done [11:01:36]FM_GetShiftState done [11:01:36]req_shift_opened done [11:01:36]requested_item shift.open_date is exist - process it [11:01:36]req_shift_open_date [11:01:36]req_shift_open_date done [11:01:36]produce_requested_data done [11:01:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112179,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:01:36]process_action_free close_receipt [11:01:36]json_value_free [11:01:36]json_value_free done [11:01:36]process_json_proto returns [11:01:36]Send response to host [11:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112179,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:01:36]free response buf [11:01:36]execute_script done [11:01:36]execute_script returns [11:01:36]free content buf [11:01:36]Sock 7.Close socket [11:01:36]Sock 7.Thread stoped [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:14]accept exits with 9 [11:02:14]New connection [11:02:14]New thread 3066813796 created [11:02:14]Thread 3066957156 joined [11:02:14]Waiting for new connection... [11:02:14] Sock 9.Parse request [11:02:14]Sock 9.Check first char [11:02:14]Sock 9.First char is OK [11:02:14]request: POST /json_proto HTTP/1.0 [11:02:14]Method: POST [11:02:14]URL: /json_proto [11:02:14]Method is POST - this is cgi request [11:02:14]url: /json_proto [11:02:14]query_string will be loaded in cgi processing [11:02:14]execute_cgi json_proto POST (null) [11:02:14]execute_cgi path=json_proto method=POST [11:02:14]POST find Content-Length [11:02:14]Host: 172.17.59.68:8080 [11:02:14]Content-Length: 678 [11:02:14]Content-Type: application/json [11:02:14] [11:02:14]POST finish read [11:02:14]Found Content-Length = 678 [11:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320847", "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.40, "quantity" : 12.050, "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:02:14]execute_script... [11:02: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)320847", "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.40, "quantity" : 12.050, "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:02:14]POST & json_proto [11:02:14]process_json_proto [11:02:14]json parsed OK: [11:02:14]protocol is kg_v1.0 [11:02:14]action value=close_receipt [11:02:14]process_action close_receipt [11:02:14]cmd_close_receipt [11:02:14]MH_GetDate [11:02:14]Write to MH i2c: F0 00 00 CD 22 DE [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: F0 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: F0 09 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: F0 09 00 CD 22 00 4B AF 76 66 BC EC 60 65 2A [11:02:14]GetLastDocTimeStamp 1719054113 [11:02:14]current date 1719054155 [11:02:14]FM_GetShiftState [11:02:14]SAM_PROTO_GetShiftState [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 13 01 00 [11:02:14]Write to MH i2c: E2 08 00 CE 22 80 13 01 00 00 00 00 00 6D [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 0E 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 0E 00 CE 22 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A2 [11:02:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:02:14]wFMCommunicate OK [11:02:14]SAM_PROTO_GetShiftState done [11:02:14]FM_GetShiftState done [11:02:14]opened in 1719020067 [11:02:14]opened+sec_in_day 1719106467 [11:02:14]quantity*price = 80012 [11:02:14]sum+1 = 80013 [11:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 46 22.06.2024 11:02 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112180 ФПД: 111630001765842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110235&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112180&fm=111630001765842&tin=02508201610067®Number=0000000000092771&sum=80000 [11:02:15]StoreToDocumentArchive [11:02:15]shift 391 fd 112180 [11:02:15]save to /storage/0391/doc_00112180 [11:02:15]save last doc name /storage/0391/doc_00112180 to /storage/kkm_last_doc_name [11:02:15]save OK [11:02:15]Clear old archive folders... [11:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:15]tlvbuf is 0112B8F0 [11:02:15]SAM_PROTO_ClearQueue [11:02:15]wFMCommunicate request_size=4 [11:02:15]MH_SAM_APDU [11:02:15]CAPDU: 80 09 00 00 [11:02:15]Write to MH i2c: E2 08 00 DB 22 80 09 00 00 00 00 00 00 6F [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 DB 22 00 90 00 71 [11:02:15]RAPDU: 90 00 [11:02:15]wFMCommunicate OK [11:02:15]SAM_PROTO_ClearQueue done [11:02:15]KKMCreateOFDPacket [11:02:15]OFDProtocolAddRootSTLVToBuf [11:02:15]FM_MakeSignedData [11:02:15]FM_MakeSignedData [11:02:15]SAM_PROTO_SignData [11:02:15]wFMCommunicate request_size=4 [11:02:15]MH_SAM_APDU [11:02:15]CAPDU: 80 0D 01 02 [11:02:15]Write to MH i2c: E2 08 00 DC 22 80 0D 01 02 00 00 00 00 77 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:15]Read from MH i2c: E2 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: E2 03 00 DC 22 00 90 00 72 [11:02:15]RAPDU: 90 00 [11:02:15]wFMCommunicate OK [11:02:15]wFMCommunicate request_size=255 [11:02:15]MH_SAM_APDU [11:02: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 2E 00 00 00 F4 03 04 00 4B AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B6 01 00 35 04 06 00 65 [11:02:15]Write to MH i2c: E2 02 01 DD 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 2E 00 00 00 F4 03 04 00 4B AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B6 01 00 35 04 06 00 65 00 00 F6 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 DD 22 00 90 00 73 [11:02:16]RAPDU: 90 00 [11:02:16]wFMCommunicate OK [11:02:16]wFMCommunicate request_size=10 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 0D 02 02 05 86 E2 99 FD D2 [11:02:16]Write to MH i2c: E2 0D 00 DE 22 80 0D 02 02 05 00 86 E2 99 FD D2 00 00 54 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 03 00 DE 22 00 90 00 74 [11:02:16]RAPDU: 90 00 [11:02:16]wFMCommunicate OK [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 0D 03 02 [11:02:16]Write to MH i2c: E2 08 00 DF 22 80 0D 03 02 00 00 00 00 7C [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 0B 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 0B 00 DF 22 00 1D 1C AE 20 56 C7 F4 9E 90 00 33 [11:02:16]RAPDU: 1D 1C AE 20 56 C7 F4 9E 90 00 [11:02:16]wFMCommunicate OK [11:02:16]SAM_PROTO_SignData done [11:02:16]FM_MakeSignedData done [11:02:16]CreateOFDProtocolMessage [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 11 00 00 [11:02:16]Write to MH i2c: E2 08 00 E0 22 80 11 00 00 00 00 00 00 7C [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 17 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 17 00 E0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [11:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:02:16]wFMCommunicate OK [11:02:16]CreateOFDProtocolMessage done [11:02:16]OFDSenderStorePacket 112180 [11:02:16]StoreOFDPacket docnum=112180 [11:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 73 07 01 89 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 2E 00 00 00 F4 03 04 00 4B AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B6 01 00 35 04 06 00 65 86 E2 99 FD D2 1D 1C AE 20 56 C7 F4 9E [11:02:16]CheckFolder [11:02:16]dirname=/storage/ofd_packets [11:02:16]CheckFolder done [11:02:16]ProducePacketName [11:02:16]name=ofd_packets/00112180 [11:02:16]NVStorageSaveData ofd_packets/00112180 [11:02:16]File name is /storage/ofd_packets/00112180 [11:02:16]Write 301 bytes [11:02:16]NVStorageSaveData done [11:02:16]OFDSenderStorePacket done [11:02:16]KKMCreateOFDPacket done [11:02:16]NVStorageSaveData kkm_last_timestamp [11:02:16]File name is /storage/kkm_last_timestamp [11:02:16]Write 4 bytes [11:02:16]NVStorageSaveData done [11:02:16]ExternCall_PrintAddStr [11:02:16]wPrintStart [11:02:16]Write to MH i2c: 01 00 00 E1 22 03 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: 01 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: 01 07 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: 01 07 00 E1 22 00 00 00 00 00 FF 0F 18 [11:02:16]RasterBufferAndPrint [11:02:16]line Счет N : (1)320847 [11:02:16]line ИНН: 02508201610067 [11:02:16]line Контрольно-Кассовый Чек [11:02:16]line ПРОДАЖА [11:02:16]line ТРК (МРК, ГНК) : 11 [11:02:16]line Товар: 2710124130 [11:02:16]line Аи-92-К-5 [11:02:16]line 12.050 * 66.40 [11:02:16]line = 800.12 [11:02:16]line НДС 12% НСП 1% [11:02:16]line > о реализуемом товаре [11:02:16]line ОКРУГЛЕНИЕ: -0.12 [11:02:16]line ИТОГО: 800.00 [11:02:16]line Внесено: 800.00 [11:02:16]line СДАЧА: 0.00 [11:02:16]line НСП 1% : 7.08 [11:02:16]line НДС 12% : 84.97 [11:02:16]line Наличными: 800.00 [11:02:16]line Безнал.: 0.00 [11:02:16]line Место: АЗС № 65 "Партнер Нефть" [11:02:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:02:16]line СНО: Общий режим [11:02:16]line Чек 46 22.06.2024 11:02 [11:02:16]line Смена: 391 ФФД: 1.0 [11:02:16]line ЗНМ: 0300000198 [11:02:16]line РНМ: 0000000000092771 [11:02:16]line Версия ККМ: 001 [11:02:16]line ФМ: 0000000000875083 [11:02:16]line ФД: 112180 [11:02:16]line ФПД: 111630001765842 [11:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110235&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112180&fm=111630001765842&tin=02508201610067®Number=0000000000092771&sum=80000 [11:02:16]OFD Sender: Processing packet 112180 [packets to send 38, broken 37] [11:02:16]ProducePacketName [11:02:16]name=ofd_packets/00112180 [11:02:16]OFD Sender: To server: pG, [11:02:16]CommunicateWithHost lk.salyk.kg:30040 [11:02:16]ConnectInit lk.salyk.kg [11:02:16]written 0, free lines is 4095 [11:02:16]Connected sock=10 [11:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 73 07 01 89 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 2E 00 00 00 F4 03 04 00 4B AF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B6 01 00 35 04 06 00 65 86 E2 99 FD D2 1D 1C AE 20 56 C7 F4 9E [11:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 7E 47 00 A2 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B6 01 00 F4 03 04 00 59 46 76 66 B6 04 01 00 00 0B 06 F1 89 44 3B 6B C3 [11:02:16]CommunicateWithHost err = 0 [11:02:16]CheckOFDResponse [11:02:16]1017 (14) - 77093643461234 [11:02:16]1041 (16) - 0000000000875083 [11:02:16]1040 (4) - 112180 [11:02:16]1012 (4) - 22.06.2024 03:34 [11:02:16]1206 (1) - 0 [11:02:16]OFD Sender: Remove packet 112180 [11:02:16]ProducePacketName [11:02:16]name=ofd_packets/00112180 [11:02:16]NVStorageDeleteData [11:02:17]Write to MH i2c: 01 00 00 0C 23 2F [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: 01 07 00 0C 23 00 00 00 00 00 E4 0C 26 [11:02:17]RasterBufferAndPrint [11:02:17]line [11:02:17]line [11:02:17]line [11:02:17]line [11:02:17]line [11:02:17]written 0, free lines is 3306 [11:02:17]MH_Cut [11:02:17]Write to MH i2c: D1 01 00 13 23 01 08 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: D1 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: D1 01 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: D1 01 00 13 23 00 07 [11:02:17]Write to MH i2c: 01 00 00 14 23 37 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]OFD Sender: No OFD packet to send [11:02:17]*** Cut start [11:02:17]*** Partial cut [11:02:17]*** CUTSNS_PIN = 1 [11:02:17]*** CUTSNS_PIN = 0 [11:02:18]*** Brake cut motor [11:02:18]Read from MH i2c: 01 [11:02:18]MH_I2C_Read... [11:02:18]*** Stop cut motor [11:02:18]*** Cut end [11:02:18]Read from MH i2c: 01 07 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 07 00 14 23 00 00 00 00 00 FF 0F 4C [11:02:18]process_action close_receipt done [11:02:18]requested_data is exist [11:02:18]produce_requested_data [11:02:18]requested_item fm.sn is exist - process it [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 11 00 00 [11:02:18]Write to MH i2c: E2 08 00 15 23 80 11 00 00 00 00 00 00 B2 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 15 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [11:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:02:18]wFMCommunicate OK [11:02:18]requested_item fd.num is exist - process it [11:02:18]SAM_PROTO_GetFieldsCounters [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 13 00 00 [11:02:18]Write to MH i2c: E2 08 00 16 23 80 13 00 00 00 00 00 00 B5 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 62 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 62 00 16 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [11:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_GetFieldsCounters done [11:02:18]requested_item shift.num is exist - process it [11:02:18]requested_item shift.opened is exist - process it [11:02:18]req_shift_opened [11:02:18]FM_GetShiftState [11:02:18]SAM_PROTO_GetShiftState [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 13 01 00 [11:02:18]Write to MH i2c: E2 08 00 17 23 80 13 01 00 00 00 00 00 B7 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0E 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0E 00 17 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EC [11:02:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_GetShiftState done [11:02:18]FM_GetShiftState done [11:02:18]req_shift_opened done [11:02:18]requested_item shift.open_date is exist - process it [11:02:18]req_shift_open_date [11:02:18]req_shift_open_date done [11:02:18]produce_requested_data done [11:02:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112180,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:02:18]process_action_free close_receipt [11:02:18]json_value_free [11:02:18]json_value_free done [11:02:18]process_json_proto returns [11:02:18]Send response to host [11:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112180,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:02:18]free response buf [11:02:18]execute_script done [11:02:18]execute_script returns [11:02:18]free content buf [11:02:18]Sock 9.Close socket [11:02:18]Sock 9.Thread stoped [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11: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:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:22]accept exits with 7 [11:07:22]New connection [11:07:22]New thread 3066957156 created [11:07:22]Thread 3066813796 joined [11:07:22]Waiting for new connection... [11:07:22] Sock 7.Parse request [11:07:22]Sock 7.Check first char [11:07:22]Sock 7.First char is OK [11:07:22]request: POST /json_proto HTTP/1.0 [11:07:22]Method: POST [11:07:22]URL: /json_proto [11:07:22]Method is POST - this is cgi request [11:07:22]url: /json_proto [11:07:22]query_string will be loaded in cgi processing [11:07:22]execute_cgi json_proto POST (null) [11:07:22]execute_cgi path=json_proto method=POST [11:07:22]POST find Content-Length [11:07:22]Host: 172.17.59.68:8080 [11:07:22]Content-Length: 1199 [11:07:22]Content-Type: application/json [11:07:22] [11:07:22]POST finish read [11:07:22]Found Content-Length = 1199 [11:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320848\u000A22.06.2024 09:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:22]execute_script... [11:07:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320848\u000A22.06.2024 09:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:22]POST & json_proto [11:07:22]process_json_proto [11:07:22]json parsed OK: [11:07:22]protocol is kg_v1.0 [11:07:22]action value=print_text [11:07:22]process_action print_text [11:07:22]cmd_print_text [11:07:22]ExternCall_PrintAddStr [11:07:22]wPrintStart [11:07:22]Write to MH i2c: 01 00 00 18 23 3B [11:07:22]Write i2c OK [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: 01 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: 01 07 00 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: 01 07 00 18 23 00 00 00 00 00 FF 0F 50 [11:07:22]RasterBufferAndPrint [11:07:22]line *****ТОВАРНЫЙ ЧЕК***** [11:07:22]line АЗС 65 [11:07:22]line Партнер нефть [11:07:22]line 02508201610067 [11:07:22]line Кассир : Амантуров Р. [11:07:22]line Счет N : (1)320848 [11:07:22]line 22.06.2024 09:34 [11:07:22]line ПРОДАЖА [11:07:22]line ТРК (МРК, ГНК): 22 [11:07:22]line Вид ГСМ : 2710194210 [11:07:22]line ДТ-К-5 [11:07:22]line 100.000 x 72.90 [11:07:22]line ИТОГ: 7290.00 [11:07:22]line Тип оплаты: Талоны: Топливная Карта [11:07:22]line 54590 [11:07:22]line ______________________ [11:07:22]line (подпись) [11:07:22]written 0, free lines is 4095 [11:07:22]Write to MH i2c: 01 00 00 2C 23 4F [11:07:22]Write i2c OK [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: 01 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: 01 07 00 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: 01 07 00 2C 23 00 00 00 00 00 11 0E 75 [11:07:22]RasterBufferAndPrint [11:07:22]line [11:07:22]line [11:07:22]line [11:07:22]line [11:07:22]line [11:07:23]written 0, free lines is 3603 [11:07:23]MH_Cut [11:07:23]Write to MH i2c: D1 01 00 33 23 01 28 [11:07:23]Write i2c OK [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: D1 [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: D1 01 00 [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: D1 01 00 33 23 00 27 [11:07:23]Write to MH i2c: 01 00 00 34 23 57 [11:07:23]Write i2c OK [11:07:23]MH_I2C_Read... [11:07:23]*** Cut start [11:07:23]*** Partial cut [11:07:23]*** CUTSNS_PIN = 1 [11:07:23]*** CUTSNS_PIN = 0 [11:07:23]*** Brake cut motor [11:07:24]Read from MH i2c: 01 [11:07:24]MH_I2C_Read... [11:07:24]*** Stop cut motor [11:07:24]*** Cut end [11:07:24]Read from MH i2c: 01 07 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: 01 07 00 34 23 00 00 00 00 00 FF 0F 6C [11:07:24]process_action print_text done [11:07:24]requested_data is exist [11:07:24]produce_requested_data [11:07:24]requested_item fm.sn is exist - process it [11:07:24]wFMCommunicate request_size=4 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 11 00 00 [11:07:24]Write to MH i2c: E2 08 00 35 23 80 11 00 00 00 00 00 00 D2 [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 17 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 17 00 35 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [11:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:07:24]wFMCommunicate OK [11:07:24]requested_item fd.num is exist - process it [11:07:24]SAM_PROTO_GetFieldsCounters [11:07:24]wFMCommunicate request_size=4 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 13 00 00 [11:07:24]Write to MH i2c: E2 08 00 36 23 80 13 00 00 00 00 00 00 D5 [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 62 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 62 00 36 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:24]wFMCommunicate OK [11:07:24]SAM_PROTO_GetFieldsCounters done [11:07:24]requested_item shift.num is exist - process it [11:07:24]requested_item shift.opened is exist - process it [11:07:24]req_shift_opened [11:07:24]FM_GetShiftState [11:07:24]SAM_PROTO_GetShiftState [11:07:24]wFMCommunicate request_size=4 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 13 01 00 [11:07:24]Write to MH i2c: E2 08 00 37 23 80 13 01 00 00 00 00 00 D7 [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 0E 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 0E 00 37 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0C [11:07:24]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:07:24]wFMCommunicate OK [11:07:24]SAM_PROTO_GetShiftState done [11:07:24]FM_GetShiftState done [11:07:24]req_shift_opened done [11:07:24]requested_item shift.open_date is exist - process it [11:07:24]req_shift_open_date [11:07:24]req_shift_open_date done [11:07:24]produce_requested_data done [11:07:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112180,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:07:24]process_action_free print_text [11:07:24]json_value_free [11:07:24]json_value_free done [11:07:24]process_json_proto returns [11:07:24]Send response to host [11:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112180,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:07:24]free response buf [11:07:24]execute_script done [11:07:24]execute_script returns [11:07:24]free content buf [11:07:24]Sock 7.Close socket [11:07:24]Sock 7.Thread stoped [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:54]accept exits with 9 [11:10:54]New connection [11:10:54]New thread 3066813796 created [11:10:54]Thread 3066957156 joined [11:10:54]Waiting for new connection... [11:10:54] Sock 9.Parse request [11:10:54]Sock 9.Check first char [11:10:54]Sock 9.First char is OK [11:10:54]request: POST /json_proto HTTP/1.0 [11:10:54]Method: POST [11:10:54]URL: /json_proto [11:10:54]Method is POST - this is cgi request [11:10:54]url: /json_proto [11:10:54]query_string will be loaded in cgi processing [11:10:54]execute_cgi json_proto POST (null) [11:10:54]execute_cgi path=json_proto method=POST [11:10:54]POST find Content-Length [11:10:54]Host: 172.17.59.68:8080 [11:10:54]Content-Length: 678 [11:10:54]Content-Type: application/json [11:10:54] [11:10:54]POST finish read [11:10:54]Found Content-Length = 678 [11:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320850", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:54]execute_script... [11:10:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320850", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:54]POST & json_proto [11:10:54]process_json_proto [11:10:54]json parsed OK: [11:10:54]protocol is kg_v1.0 [11:10:54]action value=close_receipt [11:10:54]process_action close_receipt [11:10:54]cmd_close_receipt [11:10:54]MH_GetDate [11:10:54]Write to MH i2c: F0 00 00 38 23 4A [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: F0 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: F0 09 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: F0 09 00 38 23 00 53 B1 76 66 BC EC 60 65 A0 [11:10:54]GetLastDocTimeStamp 1719054155 [11:10:54]current date 1719054675 [11:10:54]FM_GetShiftState [11:10:54]SAM_PROTO_GetShiftState [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 13 01 00 [11:10:54]Write to MH i2c: E2 08 00 39 23 80 13 01 00 00 00 00 00 D9 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0E 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0E 00 39 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0E [11:10:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:10:54]wFMCommunicate OK [11:10:54]SAM_PROTO_GetShiftState done [11:10:54]FM_GetShiftState done [11:10:54]opened in 1719020067 [11:10:54]opened+sec_in_day 1719106467 [11:10:54]quantity*price = 70052 [11:10:54]sum+1 = 70053 [11:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 47 22.06.2024 11:11 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112181 ФПД: 14128362998880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111115&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112181&fm=14128362998880&tin=02508201610067®Number=0000000000092771&sum=70000 [11:10:56]StoreToDocumentArchive [11:10:56]shift 391 fd 112181 [11:10:56]save to /storage/0391/doc_00112181 [11:10:56]save last doc name /storage/0391/doc_00112181 to /storage/kkm_last_doc_name [11:10:56]save OK [11:10:56]Clear old archive folders... [11:10:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:56]tlvbuf is 00051400 [11:10:56]SAM_PROTO_ClearQueue [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 09 00 00 [11:10:56]Write to MH i2c: E2 08 00 46 23 80 09 00 00 00 00 00 00 DB [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 46 23 00 90 00 DD [11:10:56]RAPDU: 90 00 [11:10:56]wFMCommunicate OK [11:10:56]SAM_PROTO_ClearQueue done [11:10:56]KKMCreateOFDPacket [11:10:56]OFDProtocolAddRootSTLVToBuf [11:10:56]FM_MakeSignedData [11:10:56]FM_MakeSignedData [11:10:56]SAM_PROTO_SignData [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 0D 01 02 [11:10:56]Write to MH i2c: E2 08 00 47 23 80 0D 01 02 00 00 00 00 E3 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:56]Read from MH i2c: E2 03 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 47 23 00 90 00 DE [11:10:56]RAPDU: 90 00 [11:10:56]wFMCommunicate OK [11:10:56]wFMCommunicate request_size=255 [11:10:56]MH_SAM_APDU [11:10: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 53 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B6 01 00 35 04 06 00 0C [11:10:56]Write to MH i2c: E2 02 01 48 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 53 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B6 01 00 35 04 06 00 0C 00 00 38 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 48 23 00 90 00 DF [11:10:56]RAPDU: 90 00 [11:10:56]wFMCommunicate OK [11:10:56]wFMCommunicate request_size=10 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 0D 02 02 05 D9 84 0E CC 60 [11:10:56]Write to MH i2c: E2 0D 00 49 23 80 0D 02 02 05 00 D9 84 0E CC 60 00 00 87 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 03 00 49 23 00 90 00 E0 [11:10:56]RAPDU: 90 00 [11:10:56]wFMCommunicate OK [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 0D 03 02 [11:10:56]Write to MH i2c: E2 08 00 4A 23 80 0D 03 02 00 00 00 00 E8 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 0B 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 0B 00 4A 23 00 54 81 89 77 56 D2 E8 C2 90 00 90 [11:10:56]RAPDU: 54 81 89 77 56 D2 E8 C2 90 00 [11:10:56]wFMCommunicate OK [11:10:56]SAM_PROTO_SignData done [11:10:56]FM_MakeSignedData done [11:10:56]CreateOFDProtocolMessage [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 11 00 00 [11:10:56]Write to MH i2c: E2 08 00 4B 23 80 11 00 00 00 00 00 00 E8 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 17 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 17 00 4B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [11:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:10:56]wFMCommunicate OK [11:10:56]CreateOFDProtocolMessage done [11:10:56]OFDSenderStorePacket 112181 [11:10:56]StoreOFDPacket docnum=112181 [11:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 3E 07 01 F6 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 53 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B6 01 00 35 04 06 00 0C D9 84 0E CC 60 54 81 89 77 56 D2 E8 C2 [11:10:56]CheckFolder [11:10:56]dirname=/storage/ofd_packets [11:10:56]CheckFolder done [11:10:56]ProducePacketName [11:10:56]name=ofd_packets/00112181 [11:10:56]NVStorageSaveData ofd_packets/00112181 [11:10:56]File name is /storage/ofd_packets/00112181 [11:10:56]Write 301 bytes [11:10:56]NVStorageSaveData done [11:10:56]OFDSenderStorePacket done [11:10:56]KKMCreateOFDPacket done [11:10:56]NVStorageSaveData kkm_last_timestamp [11:10:56]File name is /storage/kkm_last_timestamp [11:10:56]Write 4 bytes [11:10:56]NVStorageSaveData done [11:10:56]ExternCall_PrintAddStr [11:10:56]wPrintStart [11:10:56]Write to MH i2c: 01 00 00 4C 23 6F [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: 01 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: 01 07 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: 01 07 00 4C 23 00 00 00 00 00 FF 0F 84 [11:10:56]RasterBufferAndPrint [11:10:56]line Счет N : (1)320850 [11:10:56]line ИНН: 02508201610067 [11:10:56]line Контрольно-Кассовый Чек [11:10:56]line ПРОДАЖА [11:10:56]line ТРК (МРК, ГНК) : 11 [11:10:56]line Товар: 2710124130 [11:10:56]line Аи-92-К-5 [11:10:56]line 10.550 * 66.40 [11:10:56]line = 700.52 [11:10:56]line НДС 12% НСП 1% [11:10:56]line > о реализуемом товаре [11:10:56]line ОКРУГЛЕНИЕ: -0.52 [11:10:56]line ИТОГО: 700.00 [11:10:56]line Внесено: 700.00 [11:10:56]line СДАЧА: 0.00 [11:10:56]line НСП 1% : 6.20 [11:10:56]line НДС 12% : 74.39 [11:10:56]line Наличными: 700.00 [11:10:56]line Безнал.: 0.00 [11:10:56]line Место: АЗС № 65 "Партнер Нефть" [11:10:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:10:56]line СНО: Общий режим [11:10:56]line Чек 47 22.06.2024 11:11 [11:10:56]line Смена: 391 ФФД: 1.0 [11:10:56]line ЗНМ: 0300000198 [11:10:56]line РНМ: 0000000000092771 [11:10:56]line Версия ККМ: 001 [11:10:56]line ФМ: 0000000000875083 [11:10:56]line ФД: 112181 [11:10:56]line ФПД: 14128362998880 [11:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111115&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112181&fm=14128362998880&tin=02508201610067®Number=0000000000092771&sum=70000 [11:10:56]OFD Sender: Processing packet 112181 [packets to send 38, broken 37] [11:10:56]ProducePacketName [11:10:56]name=ofd_packets/00112181 [11:10:56]OFD Sender: To server: pG, [11:10:56]CommunicateWithHost lk.salyk.kg:30040 [11:10:56]ConnectInit lk.salyk.kg [11:10:56]written 0, free lines is 4095 [11:10:56]Connected sock=10 [11:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 3E 07 01 F6 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 53 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B6 01 00 35 04 06 00 0C D9 84 0E CC 60 54 81 89 77 56 D2 E8 C2 [11:10:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3B 77 47 00 67 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B6 01 00 F4 03 04 00 62 48 76 66 B6 04 01 00 00 C3 0E 10 CB 49 18 63 90 [11:10:57]CommunicateWithHost err = 0 [11:10:57]CheckOFDResponse [11:10:57]1017 (14) - 77093643461234 [11:10:57]1041 (16) - 0000000000875083 [11:10:57]1040 (4) - 112181 [11:10:57]1012 (4) - 22.06.2024 03:43 [11:10:57]1206 (1) - 0 [11:10:57]OFD Sender: Remove packet 112181 [11:10:57]ProducePacketName [11:10:57]name=ofd_packets/00112181 [11:10:57]NVStorageDeleteData [11:10:57]Write to MH i2c: 01 00 00 77 23 9A [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: 01 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: 01 07 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: 01 07 00 77 23 00 00 00 00 00 D7 0C 84 [11:10:57]RasterBufferAndPrint [11:10:57]line [11:10:57]line [11:10:57]line [11:10:57]line [11:10:57]line [11:10:57]written 0, free lines is 3290 [11:10:57]MH_Cut [11:10:57]Write to MH i2c: D1 01 00 7E 23 01 73 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: D1 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: D1 01 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: D1 01 00 7E 23 00 72 [11:10:57]Write to MH i2c: 01 00 00 7F 23 A2 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]OFD Sender: No OFD packet to send [11:10:58]*** Cut start [11:10:58]*** Partial cut [11:10:58]*** CUTSNS_PIN = 1 [11:10:58]*** CUTSNS_PIN = 0 [11:10:58]*** Brake cut motor [11:10:58]Read from MH i2c: 01 [11:10:58]MH_I2C_Read... [11:10:58]*** Stop cut motor [11:10:58]*** Cut end [11:10:58]Read from MH i2c: 01 07 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 7F 23 00 00 00 00 00 FF 0F B7 [11:10:58]process_action close_receipt done [11:10:58]requested_data is exist [11:10:58]produce_requested_data [11:10:58]requested_item fm.sn is exist - process it [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 11 00 00 [11:10:58]Write to MH i2c: E2 08 00 80 23 80 11 00 00 00 00 00 00 1D [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 80 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [11:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:10:58]wFMCommunicate OK [11:10:58]requested_item fd.num is exist - process it [11:10:58]SAM_PROTO_GetFieldsCounters [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 13 00 00 [11:10:58]Write to MH i2c: E2 08 00 81 23 80 13 00 00 00 00 00 00 20 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 62 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 62 00 81 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_GetFieldsCounters done [11:10:58]requested_item shift.num is exist - process it [11:10:58]requested_item shift.opened is exist - process it [11:10:58]req_shift_opened [11:10:58]FM_GetShiftState [11:10:58]SAM_PROTO_GetShiftState [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 13 01 00 [11:10:58]Write to MH i2c: E2 08 00 82 23 80 13 01 00 00 00 00 00 22 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0E 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0E 00 82 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 57 [11:10:58]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_GetShiftState done [11:10:58]FM_GetShiftState done [11:10:58]req_shift_opened done [11:10:58]requested_item shift.open_date is exist - process it [11:10:58]req_shift_open_date [11:10:58]req_shift_open_date done [11:10:58]produce_requested_data done [11:10:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112181,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:10:58]process_action_free close_receipt [11:10:58]json_value_free [11:10:58]json_value_free done [11:10:58]process_json_proto returns [11:10:58]Send response to host [11:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112181,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:10:58]free response buf [11:10:58]execute_script done [11:10:58]execute_script returns [11:10:58]free content buf [11:10:58]Sock 9.Close socket [11:10:58]Sock 9.Thread stoped [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:15]accept exits with 7 [11:11:15]New connection [11:11:15]New thread 3066957156 created [11:11:15]Thread 3066813796 joined [11:11:15]Waiting for new connection... [11:11:15] Sock 7.Parse request [11:11:15]Sock 7.Check first char [11:11:15]Sock 7.First char is OK [11:11:15]request: POST /json_proto HTTP/1.0 [11:11:15]Method: POST [11:11:15]URL: /json_proto [11:11:15]Method is POST - this is cgi request [11:11:15]url: /json_proto [11:11:15]query_string will be loaded in cgi processing [11:11:15]execute_cgi json_proto POST (null) [11:11:15]execute_cgi path=json_proto method=POST [11:11:15]POST find Content-Length [11:11:15]Host: 172.17.59.68:8080 [11:11:15]Content-Length: 677 [11:11:15]Content-Type: application/json [11:11:15] [11:11:15]POST finish read [11:11:15]Found Content-Length = 677 [11:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320851", "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.40, "quantity" : 2.260, "sum" : 150.06, "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" ] } } [11:11:15]execute_script... [11:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320851", "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.40, "quantity" : 2.260, "sum" : 150.06, "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" ] } } [11:11:15]POST & json_proto [11:11:15]process_json_proto [11:11:15]json parsed OK: [11:11:15]protocol is kg_v1.0 [11:11:15]action value=close_receipt [11:11:15]process_action close_receipt [11:11:15]cmd_close_receipt [11:11:15]MH_GetDate [11:11:15]Write to MH i2c: F0 00 00 83 23 95 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: F0 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: F0 09 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: F0 09 00 83 23 00 68 B1 76 66 BC EC 60 65 00 [11:11:15]GetLastDocTimeStamp 1719054675 [11:11:15]current date 1719054696 [11:11:15]FM_GetShiftState [11:11:15]SAM_PROTO_GetShiftState [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 13 01 00 [11:11:15]Write to MH i2c: E2 08 00 84 23 80 13 01 00 00 00 00 00 24 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 0E 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 0E 00 84 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 59 [11:11:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:11:15]wFMCommunicate OK [11:11:15]SAM_PROTO_GetShiftState done [11:11:15]FM_GetShiftState done [11:11:15]opened in 1719020067 [11:11:15]opened+sec_in_day 1719106467 [11:11:15]quantity*price = 15006 [11:11:15]sum+1 = 15007 [11:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 48 22.06.2024 11:11 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112182 ФПД: 28326432832860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112182&fm=28326432832860&tin=02508201610067®Number=0000000000092771&sum=15000 [11:11:17]StoreToDocumentArchive [11:11:17]shift 391 fd 112182 [11:11:17]save to /storage/0391/doc_00112182 [11:11:17]save last doc name /storage/0391/doc_00112182 to /storage/kkm_last_doc_name [11:11:17]save OK [11:11:17]Clear old archive folders... [11:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:17]tlvbuf is 01172840 [11:11:17]SAM_PROTO_ClearQueue [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 09 00 00 [11:11:17]Write to MH i2c: E2 08 00 91 23 80 09 00 00 00 00 00 00 26 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 91 23 00 90 00 28 [11:11:17]RAPDU: 90 00 [11:11:17]wFMCommunicate OK [11:11:17]SAM_PROTO_ClearQueue done [11:11:17]KKMCreateOFDPacket [11:11:17]OFDProtocolAddRootSTLVToBuf [11:11:17]FM_MakeSignedData [11:11:17]FM_MakeSignedData [11:11:17]SAM_PROTO_SignData [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 0D 01 02 [11:11:17]Write to MH i2c: E2 08 00 92 23 80 0D 01 02 00 00 00 00 2E [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 92 23 00 90 00 29 [11:11:17]RAPDU: 90 00 [11:11:17]wFMCommunicate OK [11:11:17]wFMCommunicate request_size=255 [11:11:17]MH_SAM_APDU [11:11: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 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 30 00 00 00 F4 03 04 00 68 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B6 01 00 35 04 06 00 19 [11:11:17]Write to MH i2c: E2 02 01 93 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 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 30 00 00 00 F4 03 04 00 68 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B6 01 00 35 04 06 00 19 00 00 11 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 93 23 00 90 00 2A [11:11:17]RAPDU: 90 00 [11:11:17]wFMCommunicate OK [11:11:17]wFMCommunicate request_size=10 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 0D 02 02 05 C3 42 F7 7D 5C [11:11:17]Write to MH i2c: E2 0D 00 94 23 80 0D 02 02 05 00 C3 42 F7 7D 5C 00 00 10 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 03 00 94 23 00 90 00 2B [11:11:17]RAPDU: 90 00 [11:11:17]wFMCommunicate OK [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 0D 03 02 [11:11:17]Write to MH i2c: E2 08 00 95 23 80 0D 03 02 00 00 00 00 33 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 0B 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 0B 00 95 23 00 D5 92 B3 BE F4 4C B7 D8 90 00 DB [11:11:17]RAPDU: D5 92 B3 BE F4 4C B7 D8 90 00 [11:11:17]wFMCommunicate OK [11:11:17]SAM_PROTO_SignData done [11:11:17]FM_MakeSignedData done [11:11:17]CreateOFDProtocolMessage [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 11 00 00 [11:11:17]Write to MH i2c: E2 08 00 96 23 80 11 00 00 00 00 00 00 33 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 17 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 17 00 96 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [11:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:11:17]wFMCommunicate OK [11:11:17]CreateOFDProtocolMessage done [11:11:17]OFDSenderStorePacket 112182 [11:11:17]StoreOFDPacket docnum=112182 [11:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 C6 07 01 CF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 30 00 00 00 F4 03 04 00 68 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B6 01 00 35 04 06 00 19 C3 42 F7 7D 5C D5 92 B3 BE F4 4C B7 D8 [11:11:17]CheckFolder [11:11:17]dirname=/storage/ofd_packets [11:11:17]CheckFolder done [11:11:17]ProducePacketName [11:11:17]name=ofd_packets/00112182 [11:11:17]NVStorageSaveData ofd_packets/00112182 [11:11:17]File name is /storage/ofd_packets/00112182 [11:11:17]Write 301 bytes [11:11:17]NVStorageSaveData done [11:11:17]OFDSenderStorePacket done [11:11:17]KKMCreateOFDPacket done [11:11:17]NVStorageSaveData kkm_last_timestamp [11:11:17]File name is /storage/kkm_last_timestamp [11:11:17]Write 4 bytes [11:11:17]NVStorageSaveData done [11:11:17]ExternCall_PrintAddStr [11:11:17]wPrintStart [11:11:17]Write to MH i2c: 01 00 00 97 23 BA [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 97 23 00 00 00 00 00 FF 0F CF [11:11:17]RasterBufferAndPrint [11:11:17]line Счет N : (1)320851 [11:11:17]line ИНН: 02508201610067 [11:11:17]line Контрольно-Кассовый Чек [11:11:17]line ПРОДАЖА [11:11:17]line ТРК (МРК, ГНК) : 11 [11:11:17]line Товар: 2710124130 [11:11:17]line Аи-92-К-5 [11:11:17]line 2.260 * 66.40 [11:11:17]line = 150.06 [11:11:17]line НДС 12% НСП 1% [11:11:17]line > о реализуемом товаре [11:11:17]line ОКРУГЛЕНИЕ: -0.06 [11:11:17]line ИТОГО: 150.00 [11:11:17]line Внесено: 150.00 [11:11:17]line СДАЧА: 0.00 [11:11:17]line НСП 1% : 1.33 [11:11:17]line НДС 12% : 15.94 [11:11:17]line Наличными: 150.00 [11:11:17]line Безнал.: 0.00 [11:11:17]line Место: АЗС № 65 "Партнер Нефть" [11:11:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:11:17]line СНО: Общий режим [11:11:17]line Чек 48 22.06.2024 11:11 [11:11:17]line Смена: 391 ФФД: 1.0 [11:11:17]line ЗНМ: 0300000198 [11:11:17]line РНМ: 0000000000092771 [11:11:17]line Версия ККМ: 001 [11:11:17]line ФМ: 0000000000875083 [11:11:17]line ФД: 112182 [11:11:17]line ФПД: 28326432832860 [11:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112182&fm=28326432832860&tin=02508201610067®Number=0000000000092771&sum=15000 [11:11:17]written 0, free lines is 4095 [11:11:17]OFD Sender: Processing packet 112182 [packets to send 38, broken 37] [11:11:17]ProducePacketName [11:11:17]name=ofd_packets/00112182 [11:11:17]OFD Sender: To server: pG, [11:11:17]CommunicateWithHost lk.salyk.kg:30040 [11:11:17]ConnectInit lk.salyk.kg [11:11:17]Connected sock=10 [11:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 C6 07 01 CF 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 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 30 00 00 00 F4 03 04 00 68 B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B6 01 00 35 04 06 00 19 C3 42 F7 7D 5C D5 92 B3 BE F4 4C B7 D8 [11:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6D D8 47 00 0D 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B6 01 00 F4 03 04 00 76 48 76 66 B6 04 01 00 00 9D 9E 4D 45 91 86 92 17 [11:11:17]CommunicateWithHost err = 0 [11:11:17]CheckOFDResponse [11:11:17]1017 (14) - 77093643461234 [11:11:17]1041 (16) - 0000000000875083 [11:11:17]1040 (4) - 112182 [11:11:17]1012 (4) - 22.06.2024 03:43 [11:11:17]1206 (1) - 0 [11:11:17]OFD Sender: Remove packet 112182 [11:11:17]ProducePacketName [11:11:17]name=ofd_packets/00112182 [11:11:17]NVStorageDeleteData [11:11:18]Write to MH i2c: 01 00 00 C2 23 E5 [11:11:18]Write i2c OK [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: 01 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: 01 07 00 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: 01 07 00 C2 23 00 00 00 00 00 D5 0C CD [11:11:18]RasterBufferAndPrint [11:11:18]line [11:11:18]line [11:11:18]line [11:11:18]line [11:11:18]line [11:11:18]written 0, free lines is 3289 [11:11:18]MH_Cut [11:11:18]Write to MH i2c: D1 01 00 C9 23 01 BE [11:11:18]Write i2c OK [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: D1 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: D1 01 00 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: D1 01 00 C9 23 00 BD [11:11:18]Write to MH i2c: 01 00 00 CA 23 ED [11:11:18]Write i2c OK [11:11:18]MH_I2C_Read... [11:11:18]OFD Sender: No OFD packet to send [11:11:18]*** Cut start [11:11:18]*** Partial cut [11:11:18]*** CUTSNS_PIN = 1 [11:11:18]*** CUTSNS_PIN = 0 [11:11:19]*** Brake cut motor [11:11:19]Read from MH i2c: 01 [11:11:19]MH_I2C_Read... [11:11:19]*** Stop cut motor [11:11:19]*** Cut end [11:11:19]Read from MH i2c: 01 07 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: 01 07 00 CA 23 00 00 00 00 00 FF 0F 02 [11:11:19]process_action close_receipt done [11:11:19]requested_data is exist [11:11:19]produce_requested_data [11:11:19]requested_item fm.sn is exist - process it [11:11:19]wFMCommunicate request_size=4 [11:11:19]MH_SAM_APDU [11:11:19]CAPDU: 80 11 00 00 [11:11:19]Write to MH i2c: E2 08 00 CB 23 80 11 00 00 00 00 00 00 68 [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:19]Read from MH i2c: E2 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 17 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 17 00 CB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [11:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:11:19]wFMCommunicate OK [11:11:19]requested_item fd.num is exist - process it [11:11:19]SAM_PROTO_GetFieldsCounters [11:11:19]wFMCommunicate request_size=4 [11:11:19]MH_SAM_APDU [11:11:19]CAPDU: 80 13 00 00 [11:11:19]Write to MH i2c: E2 08 00 CC 23 80 13 00 00 00 00 00 00 6B [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:19]Read from MH i2c: E2 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 62 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 62 00 CC 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:19]wFMCommunicate OK [11:11:19]SAM_PROTO_GetFieldsCounters done [11:11:19]requested_item shift.num is exist - process it [11:11:19]requested_item shift.opened is exist - process it [11:11:19]req_shift_opened [11:11:19]FM_GetShiftState [11:11:19]SAM_PROTO_GetShiftState [11:11:19]wFMCommunicate request_size=4 [11:11:19]MH_SAM_APDU [11:11:19]CAPDU: 80 13 01 00 [11:11:19]Write to MH i2c: E2 08 00 CD 23 80 13 01 00 00 00 00 00 6D [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:19]Read from MH i2c: E2 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 0E 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 0E 00 CD 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A2 [11:11:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:11:19]wFMCommunicate OK [11:11:19]SAM_PROTO_GetShiftState done [11:11:19]FM_GetShiftState done [11:11:19]req_shift_opened done [11:11:19]requested_item shift.open_date is exist - process it [11:11:19]req_shift_open_date [11:11:19]req_shift_open_date done [11:11:19]produce_requested_data done [11:11:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112182,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:11:19]process_action_free close_receipt [11:11:19]json_value_free [11:11:19]json_value_free done [11:11:19]process_json_proto returns [11:11:19]Send response to host [11:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112182,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:11:19]free response buf [11:11:19]execute_script done [11:11:19]execute_script returns [11:11:19]free content buf [11:11:19]Sock 7.Close socket [11:11:19]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:24]accept exits with 9 [11:12:24]New connection [11:12:24]New thread 3066813796 created [11:12:24]Thread 3066957156 joined [11:12:24]Waiting for new connection... [11:12:24] Sock 9.Parse request [11:12:24]Sock 9.Check first char [11:12:24]Sock 9.First char is OK [11:12:24]request: POST /json_proto HTTP/1.0 [11:12:24]Method: POST [11:12:24]URL: /json_proto [11:12:24]Method is POST - this is cgi request [11:12:24]url: /json_proto [11:12:24]query_string will be loaded in cgi processing [11:12:24]execute_cgi json_proto POST (null) [11:12:24]execute_cgi path=json_proto method=POST [11:12:24]POST find Content-Length [11:12:24]Host: 172.17.59.68:8080 [11:12:24]Content-Length: 677 [11:12:24]Content-Type: application/json [11:12:24] [11:12:24]POST finish read [11:12:24]Found Content-Length = 677 [11:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320852", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:12:24]execute_script... [11:12: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)320852", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:12:24]POST & json_proto [11:12:24]process_json_proto [11:12:24]json parsed OK: [11:12:24]protocol is kg_v1.0 [11:12:24]action value=close_receipt [11:12:24]process_action close_receipt [11:12:24]cmd_close_receipt [11:12:24]MH_GetDate [11:12:24]Write to MH i2c: F0 00 00 CE 23 E0 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: F0 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: F0 09 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: F0 09 00 CE 23 00 AD B1 76 66 BC EC 60 65 90 [11:12:24]GetLastDocTimeStamp 1719054696 [11:12:24]current date 1719054765 [11:12:24]FM_GetShiftState [11:12:24]SAM_PROTO_GetShiftState [11:12:24]wFMCommunicate request_size=4 [11:12:24]MH_SAM_APDU [11:12:24]CAPDU: 80 13 01 00 [11:12:24]Write to MH i2c: E2 08 00 CF 23 80 13 01 00 00 00 00 00 6F [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:24]Read from MH i2c: E2 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 0E 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: E2 0E 00 CF 23 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A4 [11:12:24]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:12:24]wFMCommunicate OK [11:12:24]SAM_PROTO_GetShiftState done [11:12:24]FM_GetShiftState done [11:12:24]opened in 1719020067 [11:12:24]opened+sec_in_day 1719106467 [11:12:24]quantity*price = 40039 [11:12:24]sum+1 = 40040 [11:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 49 22.06.2024 11:12 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112183 ФПД: 277974711277725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112183&fm=277974711277725&tin=02508201610067®Number=0000000000092771&sum=40000 [11:12:25]StoreToDocumentArchive [11:12:25]shift 391 fd 112183 [11:12:25]save to /storage/0391/doc_00112183 [11:12:25]save last doc name /storage/0391/doc_00112183 to /storage/kkm_last_doc_name [11:12:25]save OK [11:12:25]Clear old archive folders... [11:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:25]tlvbuf is 01159950 [11:12:25]SAM_PROTO_ClearQueue [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 09 00 00 [11:12:25]Write to MH i2c: E2 08 00 DC 23 80 09 00 00 00 00 00 00 71 [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 DC 23 00 90 00 73 [11:12:25]RAPDU: 90 00 [11:12:25]wFMCommunicate OK [11:12:25]SAM_PROTO_ClearQueue done [11:12:25]KKMCreateOFDPacket [11:12:25]OFDProtocolAddRootSTLVToBuf [11:12:25]FM_MakeSignedData [11:12:25]FM_MakeSignedData [11:12:25]SAM_PROTO_SignData [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 0D 01 02 [11:12:25]Write to MH i2c: E2 08 00 DD 23 80 0D 01 02 00 00 00 00 79 [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 DD 23 00 90 00 74 [11:12:25]RAPDU: 90 00 [11:12:25]wFMCommunicate OK [11:12:25]wFMCommunicate request_size=255 [11:12:25]MH_SAM_APDU [11:12: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 31 00 00 00 F4 03 04 00 AD B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B6 01 00 35 04 06 00 FC [11:12:25]Write to MH i2c: E2 02 01 DE 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 31 00 00 00 F4 03 04 00 AD B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B6 01 00 35 04 06 00 FC 00 00 D8 [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 DE 23 00 90 00 75 [11:12:25]RAPDU: 90 00 [11:12:25]wFMCommunicate OK [11:12:25]wFMCommunicate request_size=10 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 0D 02 02 05 D1 07 EC 18 9D [11:12:25]Write to MH i2c: E2 0D 00 DF 23 80 0D 02 02 05 00 D1 07 EC 18 9D 00 00 FF [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 03 00 DF 23 00 90 00 76 [11:12:25]RAPDU: 90 00 [11:12:25]wFMCommunicate OK [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 0D 03 02 [11:12:25]Write to MH i2c: E2 08 00 E0 23 80 0D 03 02 00 00 00 00 7E [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 0B 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 0B 00 E0 23 00 41 70 58 F8 36 42 A8 81 90 00 21 [11:12:25]RAPDU: 41 70 58 F8 36 42 A8 81 90 00 [11:12:25]wFMCommunicate OK [11:12:25]SAM_PROTO_SignData done [11:12:25]FM_MakeSignedData done [11:12:25]CreateOFDProtocolMessage [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 11 00 00 [11:12:25]Write to MH i2c: E2 08 00 E1 23 80 11 00 00 00 00 00 00 7E [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 17 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 17 00 E1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [11:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:12:25]wFMCommunicate OK [11:12:25]CreateOFDProtocolMessage done [11:12:25]OFDSenderStorePacket 112183 [11:12:25]StoreOFDPacket docnum=112183 [11:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E 78 07 01 A4 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 31 00 00 00 F4 03 04 00 AD B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B6 01 00 35 04 06 00 FC D1 07 EC 18 9D 41 70 58 F8 36 42 A8 81 [11:12:25]CheckFolder [11:12:25]dirname=/storage/ofd_packets [11:12:25]CheckFolder done [11:12:25]ProducePacketName [11:12:25]name=ofd_packets/00112183 [11:12:25]NVStorageSaveData ofd_packets/00112183 [11:12:25]File name is /storage/ofd_packets/00112183 [11:12:25]Write 301 bytes [11:12:25]NVStorageSaveData done [11:12:25]OFDSenderStorePacket done [11:12:25]KKMCreateOFDPacket done [11:12:25]NVStorageSaveData kkm_last_timestamp [11:12:25]File name is /storage/kkm_last_timestamp [11:12:25]Write 4 bytes [11:12:25]NVStorageSaveData done [11:12:25]ExternCall_PrintAddStr [11:12:25]wPrintStart [11:12:25]Write to MH i2c: 01 00 00 E2 23 05 [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: 01 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: 01 07 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: 01 07 00 E2 23 00 00 00 00 00 FF 0F 1A [11:12:25]RasterBufferAndPrint [11:12:25]line Счет N : (1)320852 [11:12:25]line ИНН: 02508201610067 [11:12:25]line Контрольно-Кассовый Чек [11:12:25]line ПРОДАЖА [11:12:25]line ТРК (МРК, ГНК) : 11 [11:12:25]line Товар: 2710124130 [11:12:25]line Аи-92-К-5 [11:12:25]line 6.030 * 66.40 [11:12:25]line = 400.39 [11:12:25]line НДС 12% НСП 1% [11:12:25]line > о реализуемом товаре [11:12:25]line ОКРУГЛЕНИЕ: -0.39 [11:12:25]line ИТОГО: 400.00 [11:12:25]line Внесено: 400.00 [11:12:25]line СДАЧА: 0.00 [11:12:25]line НСП 1% : 3.54 [11:12:25]line НДС 12% : 42.52 [11:12:25]line Наличными: 400.00 [11:12:25]line Безнал.: 0.00 [11:12:25]line Место: АЗС № 65 "Партнер Нефть" [11:12:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:12:25]line СНО: Общий режим [11:12:25]line Чек 49 22.06.2024 11:12 [11:12:25]line Смена: 391 ФФД: 1.0 [11:12:25]line ЗНМ: 0300000198 [11:12:25]line РНМ: 0000000000092771 [11:12:25]line Версия ККМ: 001 [11:12:25]line ФМ: 0000000000875083 [11:12:25]line ФД: 112183 [11:12:25]line ФПД: 277974711277725 [11:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112183&fm=277974711277725&tin=02508201610067®Number=0000000000092771&sum=40000 [11:12:26]OFD Sender: Processing packet 112183 [packets to send 38, broken 37] [11:12:26]ProducePacketName [11:12:26]name=ofd_packets/00112183 [11:12:26]OFD Sender: To server: pG, [11:12:26]CommunicateWithHost lk.salyk.kg:30040 [11:12:26]ConnectInit lk.salyk.kg [11:12:26]written 0, free lines is 4095 [11:12:26]Connected sock=11 [11:12:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E 78 07 01 A4 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 31 00 00 00 F4 03 04 00 AD B1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B6 01 00 35 04 06 00 FC D1 07 EC 18 9D 41 70 58 F8 36 42 A8 81 [11:12:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C B3 47 00 56 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B6 01 00 F4 03 04 00 BB 48 76 66 B6 04 01 00 00 20 B5 35 25 F7 9F 7F B1 [11:12:26]CommunicateWithHost err = 0 [11:12:26]CheckOFDResponse [11:12:26]1017 (14) - 77093643461234 [11:12:26]1041 (16) - 0000000000875083 [11:12:26]1040 (4) - 112183 [11:12:26]1012 (4) - 22.06.2024 03:44 [11:12:26]1206 (1) - 0 [11:12:26]OFD Sender: Remove packet 112183 [11:12:26]ProducePacketName [11:12:26]name=ofd_packets/00112183 [11:12:26]NVStorageDeleteData [11:12:26]Write to MH i2c: 01 00 00 0D 24 31 [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 07 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 07 00 0D 24 00 00 00 00 00 E4 0C 28 [11:12:26]RasterBufferAndPrint [11:12:26]line [11:12:26]line [11:12:26]line [11:12:26]line [11:12:26]line [11:12:26]written 0, free lines is 3306 [11:12:26]MH_Cut [11:12:26]Write to MH i2c: D1 01 00 14 24 01 0A [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: D1 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: D1 01 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: D1 01 00 14 24 00 09 [11:12:26]Write to MH i2c: 01 00 00 15 24 39 [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]OFD Sender: No OFD packet to send [11:12:27]*** Cut start [11:12:27]*** Partial cut [11:12:27]*** CUTSNS_PIN = 1 [11:12:27]*** CUTSNS_PIN = 0 [11:12:27]*** Brake cut motor [11:12:27]Read from MH i2c: 01 [11:12:27]MH_I2C_Read... [11:12:27]*** Stop cut motor [11:12:27]*** Cut end [11:12:27]Read from MH i2c: 01 07 00 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: 01 07 00 15 24 00 00 00 00 00 FF 0F 4E [11:12:27]process_action close_receipt done [11:12:27]requested_data is exist [11:12:27]produce_requested_data [11:12:27]requested_item fm.sn is exist - process it [11:12:27]wFMCommunicate request_size=4 [11:12:27]MH_SAM_APDU [11:12:27]CAPDU: 80 11 00 00 [11:12:27]Write to MH i2c: E2 08 00 16 24 80 11 00 00 00 00 00 00 B4 [11:12:27]Write i2c OK [11:12:27]MH_I2C_Read... [11:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:27]Read from MH i2c: E2 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: E2 17 00 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: E2 17 00 16 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 06 [11:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:12:28]wFMCommunicate OK [11:12:28]requested_item fd.num is exist - process it [11:12:28]SAM_PROTO_GetFieldsCounters [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 13 00 00 [11:12:28]Write to MH i2c: E2 08 00 17 24 80 13 00 00 00 00 00 00 B7 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 62 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 62 00 17 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [11:12:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_GetFieldsCounters done [11:12:28]requested_item shift.num is exist - process it [11:12:28]requested_item shift.opened is exist - process it [11:12:28]req_shift_opened [11:12:28]FM_GetShiftState [11:12:28]SAM_PROTO_GetShiftState [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 13 01 00 [11:12:28]Write to MH i2c: E2 08 00 18 24 80 13 01 00 00 00 00 00 B9 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 0E 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 0E 00 18 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EE [11:12:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_GetShiftState done [11:12:28]FM_GetShiftState done [11:12:28]req_shift_opened done [11:12:28]requested_item shift.open_date is exist - process it [11:12:28]req_shift_open_date [11:12:28]req_shift_open_date done [11:12:28]produce_requested_data done [11:12:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112183,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:12:28]process_action_free close_receipt [11:12:28]json_value_free [11:12:28]json_value_free done [11:12:28]process_json_proto returns [11:12:28]Send response to host [11:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112183,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:12:28]free response buf [11:12:28]execute_script done [11:12:28]execute_script returns [11:12:28]free content buf [11:12:28]Sock 9.Close socket [11:12:28]Sock 9.Thread stoped [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:03]accept exits with 7 [11:19:03]New connection [11:19:03]New thread 3066957156 created [11:19:03]Thread 3066813796 joined [11:19:03]Waiting for new connection... [11:19:03] Sock 7.Parse request [11:19:03]Sock 7.Check first char [11:19:03]Sock 7.First char is OK [11:19:03]request: POST /json_proto HTTP/1.0 [11:19:03]Method: POST [11:19:03]URL: /json_proto [11:19:03]Method is POST - this is cgi request [11:19:03]url: /json_proto [11:19:03]query_string will be loaded in cgi processing [11:19:03]execute_cgi json_proto POST (null) [11:19:03]execute_cgi path=json_proto method=POST [11:19:03]POST find Content-Length [11:19:03]Host: 172.17.59.68:8080 [11:19:03]Content-Length: 682 [11:19:03]Content-Type: application/json [11:19:03] [11:19:03]POST finish read [11:19:03]Found Content-Length = 682 [11:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320853", "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.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:03]execute_script... [11:19: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)320853", "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.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:03]POST & json_proto [11:19:03]process_json_proto [11:19:03]json parsed OK: [11:19:03]protocol is kg_v1.0 [11:19:03]action value=close_receipt [11:19:03]process_action close_receipt [11:19:03]cmd_close_receipt [11:19:03]MH_GetDate [11:19:03]Write to MH i2c: F0 00 00 19 24 2C [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: F0 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: F0 09 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: F0 09 00 19 24 00 3C B3 76 66 BC EC 60 65 6D [11:19:03]GetLastDocTimeStamp 1719054765 [11:19:03]current date 1719055164 [11:19:03]FM_GetShiftState [11:19:03]SAM_PROTO_GetShiftState [11:19:03]wFMCommunicate request_size=4 [11:19:03]MH_SAM_APDU [11:19:03]CAPDU: 80 13 01 00 [11:19:03]Write to MH i2c: E2 08 00 1A 24 80 13 01 00 00 00 00 00 BB [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:03]Read from MH i2c: E2 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: E2 0E 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: E2 0E 00 1A 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F0 [11:19:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:19:03]wFMCommunicate OK [11:19:03]SAM_PROTO_GetShiftState done [11:19:03]FM_GetShiftState done [11:19:03]opened in 1719020067 [11:19:03]opened+sec_in_day 1719106467 [11:19:03]quantity*price = 250062 [11:19:03]sum+1 = 250063 [11:19:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 50 22.06.2024 11:19 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112184 ФПД: 240380192067539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111924&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112184&fm=240380192067539&tin=02508201610067®Number=0000000000092771&sum=250000 [11:19:04]StoreToDocumentArchive [11:19:04]shift 391 fd 112184 [11:19:04]save to /storage/0391/doc_00112184 [11:19:04]save last doc name /storage/0391/doc_00112184 to /storage/kkm_last_doc_name [11:19:04]save OK [11:19:04]Clear old archive folders... [11:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:04]tlvbuf is 01172AF0 [11:19:04]SAM_PROTO_ClearQueue [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 09 00 00 [11:19:04]Write to MH i2c: E2 08 00 27 24 80 09 00 00 00 00 00 00 BD [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 27 24 00 90 00 BF [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]SAM_PROTO_ClearQueue done [11:19:04]KKMCreateOFDPacket [11:19:04]OFDProtocolAddRootSTLVToBuf [11:19:04]FM_MakeSignedData [11:19:04]FM_MakeSignedData [11:19:04]SAM_PROTO_SignData [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 01 02 [11:19:04]Write to MH i2c: E2 08 00 28 24 80 0D 01 02 00 00 00 00 C5 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 28 24 00 90 00 C0 [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]wFMCommunicate request_size=255 [11:19:04]MH_SAM_APDU [11:19: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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 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 32 00 00 00 F4 03 04 00 3C B3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B6 01 00 35 04 06 00 DA [11:19:04]Write to MH i2c: E2 02 01 29 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 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 32 00 00 00 F4 03 04 00 3C B3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B6 01 00 35 04 06 00 DA 00 00 0B [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 29 24 00 90 00 C1 [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]wFMCommunicate request_size=10 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 02 02 05 9F DF F5 8F D3 [11:19:04]Write to MH i2c: E2 0D 00 2A 24 80 0D 02 02 05 00 9F DF F5 8F D3 00 00 A7 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 03 02 [11:19:04]Write to MH i2c: E2 08 00 2B 24 80 0D 03 02 00 00 00 00 CA [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0B 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0B 00 2B 24 00 3B 92 A9 7B 22 84 6A 55 90 00 21 [11:19:04]RAPDU: 3B 92 A9 7B 22 84 6A 55 90 00 [11:19:04]wFMCommunicate OK [11:19:04]SAM_PROTO_SignData done [11:19:04]FM_MakeSignedData done [11:19:04]CreateOFDProtocolMessage [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 11 00 00 [11:19:04]Write to MH i2c: E2 08 00 2C 24 80 11 00 00 00 00 00 00 CA [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 17 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 17 00 2C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [11:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:19:04]wFMCommunicate OK [11:19:04]CreateOFDProtocolMessage done [11:19:04]OFDSenderStorePacket 112184 [11:19:04]StoreOFDPacket docnum=112184 [11:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 29 07 01 F6 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 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 32 00 00 00 F4 03 04 00 3C B3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B6 01 00 35 04 06 00 DA 9F DF F5 8F D3 3B 92 A9 7B 22 84 6A 55 [11:19:04]CheckFolder [11:19:04]dirname=/storage/ofd_packets [11:19:04]CheckFolder done [11:19:04]ProducePacketName [11:19:04]name=ofd_packets/00112184 [11:19:04]NVStorageSaveData ofd_packets/00112184 [11:19:04]File name is /storage/ofd_packets/00112184 [11:19:04]Write 301 bytes [11:19:04]NVStorageSaveData done [11:19:04]OFDSenderStorePacket done [11:19:04]KKMCreateOFDPacket done [11:19:04]NVStorageSaveData kkm_last_timestamp [11:19:04]File name is /storage/kkm_last_timestamp [11:19:04]Write 4 bytes [11:19:04]NVStorageSaveData done [11:19:04]ExternCall_PrintAddStr [11:19:04]wPrintStart [11:19:04]Write to MH i2c: 01 00 00 2D 24 51 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 07 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 07 00 2D 24 00 00 00 00 00 FF 0F 66 [11:19:04]RasterBufferAndPrint [11:19:04]line Счет N : (1)320853 [11:19:04]line ИНН: 02508201610067 [11:19:04]line Контрольно-Кассовый Чек [11:19:04]line ПРОДАЖА [11:19:04]line ТРК (МРК, ГНК) : 11 [11:19:04]line Товар: 2710124130 [11:19:04]line Аи-92-К-5 [11:19:04]line 37.660 * 66.40 [11:19:04]line = 2500.62 [11:19:04]line НДС 12% НСП 1% [11:19:04]line > о реализуемом товаре [11:19:04]line ОКРУГЛЕНИЕ: -0.62 [11:19:04]line ИТОГО: 2500.00 [11:19:04]line Внесено: 2500.00 [11:19:04]line СДАЧА: 0.00 [11:19:04]line НСП 1% : 22.13 [11:19:04]line НДС 12% : 265.55 [11:19:04]line Наличными: 2500.00 [11:19:04]line Безнал.: 0.00 [11:19:04]line Место: АЗС № 65 "Партнер Нефть" [11:19:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:19:04]line СНО: Общий режим [11:19:04]line Чек 50 22.06.2024 11:19 [11:19:04]line Смена: 391 ФФД: 1.0 [11:19:04]line ЗНМ: 0300000198 [11:19:04]line РНМ: 0000000000092771 [11:19:04]line Версия ККМ: 001 [11:19:04]line ФМ: 0000000000875083 [11:19:04]line ФД: 112184 [11:19:04]line ФПД: 240380192067539 [11:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111924&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112184&fm=240380192067539&tin=02508201610067®Number=0000000000092771&sum=250000 [11:19:05]OFD Sender: Processing packet 112184 [packets to send 38, broken 37] [11:19:05]ProducePacketName [11:19:05]name=ofd_packets/00112184 [11:19:05]OFD Sender: To server: pG, [11:19:05]CommunicateWithHost lk.salyk.kg:30040 [11:19:05]ConnectInit lk.salyk.kg [11:19:05]written 0, free lines is 4095 [11:19:05]Connected sock=10 [11:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 29 07 01 F6 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 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 32 00 00 00 F4 03 04 00 3C B3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B6 01 00 35 04 06 00 DA 9F DF F5 8F D3 3B 92 A9 7B 22 84 6A 55 [11:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C1 22 47 00 56 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B6 01 00 F4 03 04 00 4A 4A 76 66 B6 04 01 00 00 DE A1 17 0E F5 DB 75 F2 [11:19:05]CommunicateWithHost err = 0 [11:19:05]CheckOFDResponse [11:19:05]1017 (14) - 77093643461234 [11:19:05]1041 (16) - 0000000000875083 [11:19:05]1040 (4) - 112184 [11:19:05]1012 (4) - 22.06.2024 03:51 [11:19:05]1206 (1) - 0 [11:19:05]OFD Sender: Remove packet 112184 [11:19:05]ProducePacketName [11:19:05]name=ofd_packets/00112184 [11:19:05]NVStorageDeleteData [11:19:05]Write to MH i2c: 01 00 00 58 24 7C [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 07 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 07 00 58 24 00 00 00 00 00 E5 0C 74 [11:19:05]RasterBufferAndPrint [11:19:05]line [11:19:05]line [11:19:05]line [11:19:05]line [11:19:05]line [11:19:05]written 0, free lines is 3307 [11:19:05]MH_Cut [11:19:05]Write to MH i2c: D1 01 00 5F 24 01 55 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: D1 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: D1 01 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: D1 01 00 5F 24 00 54 [11:19:05]Write to MH i2c: 01 00 00 60 24 84 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:06]OFD Sender: No OFD packet to send [11:19:06]*** Cut start [11:19:06]*** Partial cut [11:19:06]*** CUTSNS_PIN = 1 [11:19:06]*** CUTSNS_PIN = 0 [11:19:06]*** Brake cut motor [11:19:07]Read from MH i2c: 01 [11:19:07]MH_I2C_Read... [11:19:07]*** Stop cut motor [11:19:07]*** Cut end [11:19:07]Read from MH i2c: 01 07 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: 01 07 00 60 24 00 00 00 00 00 FF 0F 99 [11:19:07]process_action close_receipt done [11:19:07]requested_data is exist [11:19:07]produce_requested_data [11:19:07]requested_item fm.sn is exist - process it [11:19:07]wFMCommunicate request_size=4 [11:19:07]MH_SAM_APDU [11:19:07]CAPDU: 80 11 00 00 [11:19:07]Write to MH i2c: E2 08 00 61 24 80 11 00 00 00 00 00 00 FF [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 [11:19:07]MH_I2C_Read... [11:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:07]Read from MH i2c: E2 17 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 17 00 61 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [11:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:19:07]wFMCommunicate OK [11:19:07]requested_item fd.num is exist - process it [11:19:07]SAM_PROTO_GetFieldsCounters [11:19:07]wFMCommunicate request_size=4 [11:19:07]MH_SAM_APDU [11:19:07]CAPDU: 80 13 00 00 [11:19:07]Write to MH i2c: E2 08 00 62 24 80 13 00 00 00 00 00 00 02 [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:07]Read from MH i2c: E2 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 62 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 62 00 62 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:19:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:07]wFMCommunicate OK [11:19:07]SAM_PROTO_GetFieldsCounters done [11:19:07]requested_item shift.num is exist - process it [11:19:07]requested_item shift.opened is exist - process it [11:19:07]req_shift_opened [11:19:07]FM_GetShiftState [11:19:07]SAM_PROTO_GetShiftState [11:19:07]wFMCommunicate request_size=4 [11:19:07]MH_SAM_APDU [11:19:07]CAPDU: 80 13 01 00 [11:19:07]Write to MH i2c: E2 08 00 63 24 80 13 01 00 00 00 00 00 04 [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:07]Read from MH i2c: E2 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 0E 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: E2 0E 00 63 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 39 [11:19:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:19:07]wFMCommunicate OK [11:19:07]SAM_PROTO_GetShiftState done [11:19:07]FM_GetShiftState done [11:19:07]req_shift_opened done [11:19:07]requested_item shift.open_date is exist - process it [11:19:07]req_shift_open_date [11:19:07]req_shift_open_date done [11:19:07]produce_requested_data done [11:19:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112184,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:19:07]process_action_free close_receipt [11:19:07]json_value_free [11:19:07]json_value_free done [11:19:07]process_json_proto returns [11:19:07]Send response to host [11:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112184,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:19:07]free response buf [11:19:07]execute_script done [11:19:07]execute_script returns [11:19:07]free content buf [11:19:07]Sock 7.Close socket [11:19:07]Sock 7.Thread stoped [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:17]accept exits with 9 [11:24:17]New connection [11:24:17]New thread 3066813796 created [11:24:17]Thread 3066957156 joined [11:24:17]Waiting for new connection... [11:24:17] Sock 9.Parse request [11:24:17]Sock 9.Check first char [11:24:17]Sock 9.First char is OK [11:24:17]request: POST /json_proto HTTP/1.0 [11:24:17]Method: POST [11:24:17]URL: /json_proto [11:24:17]Method is POST - this is cgi request [11:24:17]url: /json_proto [11:24:17]query_string will be loaded in cgi processing [11:24:17]execute_cgi json_proto POST (null) [11:24:17]execute_cgi path=json_proto method=POST [11:24:17]POST find Content-Length [11:24:17]Host: 172.17.59.68:8080 [11:24:17]Content-Length: 1200 [11:24:17]Content-Type: application/json [11:24:17] [11:24:17]POST finish read [11:24:17]Found Content-Length = 1200 [11:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320854\u000A22.06.2024 09:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:17]execute_script... [11:24:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320854\u000A22.06.2024 09:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:17]POST & json_proto [11:24:17]process_json_proto [11:24:17]json parsed OK: [11:24:17]protocol is kg_v1.0 [11:24:17]action value=print_text [11:24:17]process_action print_text [11:24:17]cmd_print_text [11:24:17]ExternCall_PrintAddStr [11:24:17]wPrintStart [11:24:17]Write to MH i2c: 01 00 00 64 24 88 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 64 24 00 00 00 00 00 FF 0F 9D [11:24:17]RasterBufferAndPrint [11:24:17]line *****ТОВАРНЫЙ ЧЕК***** [11:24:17]line АЗС 65 [11:24:17]line Партнер нефть [11:24:17]line 02508201610067 [11:24:17]line Кассир : Амантуров Р. [11:24:17]line Счет N : (1)320854 [11:24:17]line 22.06.2024 09:51 [11:24:17]line ПРОДАЖА [11:24:17]line ТРК (МРК, ГНК): 11 [11:24:17]line Вид ГСМ : 2710124130 [11:24:17]line Аи-92-К-5 [11:24:17]line 10.000 x 66.40 [11:24:17]line ИТОГ: 664.00 [11:24:17]line Тип оплаты: Талоны: Топливная Карта [11:24:17]line 74814 [11:24:17]line ______________________ [11:24:17]line (подпись) [11:24:17]written 0, free lines is 4095 [11:24:17]Write to MH i2c: 01 00 00 78 24 9C [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 78 24 00 00 00 00 00 10 0E C1 [11:24:17]RasterBufferAndPrint [11:24:17]line [11:24:17]line [11:24:17]line [11:24:17]line [11:24:17]line [11:24:17]written 0, free lines is 3602 [11:24:17]MH_Cut [11:24:17]Write to MH i2c: D1 01 00 7F 24 01 75 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: D1 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: D1 01 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: D1 01 00 7F 24 00 74 [11:24:17]Write to MH i2c: 01 00 00 80 24 A4 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:18]*** Cut start [11:24:18]*** Partial cut [11:24:18]*** CUTSNS_PIN = 1 [11:24:18]*** CUTSNS_PIN = 0 [11:24:18]*** Brake cut motor [11:24:18]Read from MH i2c: 01 [11:24:18]MH_I2C_Read... [11:24:18]*** Stop cut motor [11:24:18]*** Cut end [11:24:18]Read from MH i2c: 01 07 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: 01 07 00 80 24 00 00 00 00 00 FF 0F B9 [11:24:18]process_action print_text done [11:24:18]requested_data is exist [11:24:18]produce_requested_data [11:24:18]requested_item fm.sn is exist - process it [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 11 00 00 [11:24:18]Write to MH i2c: E2 08 00 81 24 80 11 00 00 00 00 00 00 1F [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 17 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 17 00 81 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [11:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:24:18]wFMCommunicate OK [11:24:18]requested_item fd.num is exist - process it [11:24:18]SAM_PROTO_GetFieldsCounters [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 13 00 00 [11:24:18]Write to MH i2c: E2 08 00 82 24 80 13 00 00 00 00 00 00 22 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 62 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 62 00 82 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:24:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:18]wFMCommunicate OK [11:24:18]SAM_PROTO_GetFieldsCounters done [11:24:18]requested_item shift.num is exist - process it [11:24:18]requested_item shift.opened is exist - process it [11:24:18]req_shift_opened [11:24:18]FM_GetShiftState [11:24:18]SAM_PROTO_GetShiftState [11:24:18]wFMCommunicate request_size=4 [11:24:18]MH_SAM_APDU [11:24:18]CAPDU: 80 13 01 00 [11:24:18]Write to MH i2c: E2 08 00 83 24 80 13 01 00 00 00 00 00 24 [11:24:18]Write i2c OK [11:24:18]MH_I2C_Read... [11:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:18]Read from MH i2c: E2 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 0E 00 [11:24:18]MH_I2C_Read... [11:24:18]Read from MH i2c: E2 0E 00 83 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 59 [11:24:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:24:18]wFMCommunicate OK [11:24:18]SAM_PROTO_GetShiftState done [11:24:18]FM_GetShiftState done [11:24:18]req_shift_opened done [11:24:18]requested_item shift.open_date is exist - process it [11:24:18]req_shift_open_date [11:24:18]req_shift_open_date done [11:24:18]produce_requested_data done [11:24:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112184,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:24:18]process_action_free print_text [11:24:18]json_value_free [11:24:18]json_value_free done [11:24:18]process_json_proto returns [11:24:18]Send response to host [11:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112184,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:24:18]free response buf [11:24:18]execute_script done [11:24:18]execute_script returns [11:24:18]free content buf [11:24:18]Sock 9.Close socket [11:24:18]Sock 9.Thread stoped [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:11]accept exits with 7 [11:28:11]New connection [11:28:11]New thread 3066957156 created [11:28:11]Thread 3066813796 joined [11:28:11]Waiting for new connection... [11:28:11] Sock 7.Parse request [11:28:11]Sock 7.Check first char [11:28:11]Sock 7.First char is OK [11:28:11]request: POST /json_proto HTTP/1.0 [11:28:11]Method: POST [11:28:11]URL: /json_proto [11:28:11]Method is POST - this is cgi request [11:28:11]url: /json_proto [11:28:11]query_string will be loaded in cgi processing [11:28:11]execute_cgi json_proto POST (null) [11:28:11]execute_cgi path=json_proto method=POST [11:28:11]POST find Content-Length [11:28:11]Host: 172.17.59.68:8080 [11:28:11]Content-Length: 682 [11:28:11]Content-Type: application/json [11:28:11] [11:28:11]POST finish read [11:28:11]Found Content-Length = 682 [11:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320855", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:11]execute_script... [11:28: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)320855", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:11]POST & json_proto [11:28:11]process_json_proto [11:28:11]json parsed OK: [11:28:11]protocol is kg_v1.0 [11:28:11]action value=close_receipt [11:28:11]process_action close_receipt [11:28:11]cmd_close_receipt [11:28:11]MH_GetDate [11:28:11]Write to MH i2c: F0 00 00 84 24 97 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 09 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 09 00 84 24 00 61 B5 76 66 BC EC 60 65 FF [11:28:11]GetLastDocTimeStamp 1719055164 [11:28:11]current date 1719055713 [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 85 24 80 13 01 00 00 00 00 00 26 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 85 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5B [11:28:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetShiftState done [11:28:11]FM_GetShiftState done [11:28:11]opened in 1719020067 [11:28:11]opened+sec_in_day 1719106467 [11:28:11]quantity*price = 100064 [11:28:11]sum+1 = 100066 [11:28:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 51 22.06.2024 11:28 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112185 ФПД: 207229000466674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T112833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112185&fm=207229000466674&tin=02508201610067®Number=0000000000092771&sum=100000 [11:28:13]StoreToDocumentArchive [11:28:13]shift 391 fd 112185 [11:28:13]save to /storage/0391/doc_00112185 [11:28:13]save last doc name /storage/0391/doc_00112185 to /storage/kkm_last_doc_name [11:28:13]save OK [11:28:13]Clear old archive folders... [11:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:13]tlvbuf is 011858D0 [11:28:13]SAM_PROTO_ClearQueue [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 09 00 00 [11:28:13]Write to MH i2c: E2 08 00 92 24 80 09 00 00 00 00 00 00 28 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 92 24 00 90 00 2A [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_ClearQueue done [11:28:13]KKMCreateOFDPacket [11:28:13]OFDProtocolAddRootSTLVToBuf [11:28:13]FM_MakeSignedData [11:28:13]FM_MakeSignedData [11:28:13]SAM_PROTO_SignData [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 01 02 [11:28:13]Write to MH i2c: E2 08 00 93 24 80 0D 01 02 00 00 00 00 30 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 93 24 00 90 00 2B [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=255 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 61 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B6 01 00 35 04 06 00 BC [11:28:13]Write to MH i2c: E2 02 01 94 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 61 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B6 01 00 35 04 06 00 BC 00 00 8D [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 94 24 00 90 00 2C [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=10 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 02 02 05 79 42 F5 C0 F2 [11:28:13]Write to MH i2c: E2 0D 00 95 24 80 0D 02 02 05 00 79 42 F5 C0 F2 00 00 9F [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 95 24 00 90 00 2D [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 03 02 [11:28:13]Write to MH i2c: E2 08 00 96 24 80 0D 03 02 00 00 00 00 35 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0B 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0B 00 96 24 00 9D A2 77 33 7B F1 C1 99 90 00 E5 [11:28:13]RAPDU: 9D A2 77 33 7B F1 C1 99 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_SignData done [11:28:13]FM_MakeSignedData done [11:28:13]CreateOFDProtocolMessage [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 11 00 00 [11:28:13]Write to MH i2c: E2 08 00 97 24 80 11 00 00 00 00 00 00 35 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 17 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 17 00 97 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [11:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:28:13]wFMCommunicate OK [11:28:13]CreateOFDProtocolMessage done [11:28:13]OFDSenderStorePacket 112185 [11:28:13]StoreOFDPacket docnum=112185 [11:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DF DE 07 01 D7 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 61 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B6 01 00 35 04 06 00 BC 79 42 F5 C0 F2 9D A2 77 33 7B F1 C1 99 [11:28:13]CheckFolder [11:28:13]dirname=/storage/ofd_packets [11:28:13]CheckFolder done [11:28:13]ProducePacketName [11:28:13]name=ofd_packets/00112185 [11:28:13]NVStorageSaveData ofd_packets/00112185 [11:28:13]File name is /storage/ofd_packets/00112185 [11:28:13]Write 301 bytes [11:28:13]NVStorageSaveData done [11:28:13]OFDSenderStorePacket done [11:28:13]KKMCreateOFDPacket done [11:28:13]NVStorageSaveData kkm_last_timestamp [11:28:13]File name is /storage/kkm_last_timestamp [11:28:13]Write 4 bytes [11:28:13]NVStorageSaveData done [11:28:13]ExternCall_PrintAddStr [11:28:13]wPrintStart [11:28:13]Write to MH i2c: 01 00 00 98 24 BC [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 98 24 00 00 00 00 00 FF 0F D1 [11:28:13]RasterBufferAndPrint [11:28:13]line Счет N : (1)320855 [11:28:13]line ИНН: 02508201610067 [11:28:13]line Контрольно-Кассовый Чек [11:28:13]line ПРОДАЖА [11:28:13]line ТРК (МРК, ГНК) : 11 [11:28:13]line Товар: 2710124130 [11:28:13]line Аи-92-К-5 [11:28:13]line 15.070 * 66.40 [11:28:13]line = 1000.65 [11:28:13]line НДС 12% НСП 1% [11:28:13]line > о реализуемом товаре [11:28:13]line ОКРУГЛЕНИЕ: -0.65 [11:28:13]line ИТОГО: 1000.00 [11:28:13]line Внесено: 1000.00 [11:28:13]line СДАЧА: 0.00 [11:28:13]line НСП 1% : 8.85 [11:28:13]line НДС 12% : 106.26 [11:28:13]line Наличными: 1000.00 [11:28:13]line Безнал.: 0.00 [11:28:13]line Место: АЗС № 65 "Партнер Нефть" [11:28:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:28:13]line СНО: Общий режим [11:28:13]line Чек 51 22.06.2024 11:28 [11:28:13]line Смена: 391 ФФД: 1.0 [11:28:13]line ЗНМ: 0300000198 [11:28:13]line РНМ: 0000000000092771 [11:28:13]line Версия ККМ: 001 [11:28:13]line ФМ: 0000000000875083 [11:28:13]line ФД: 112185 [11:28:13]line ФПД: 207229000466674 [11:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T112833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112185&fm=207229000466674&tin=02508201610067®Number=0000000000092771&sum=100000 [11:28:13]OFD Sender: Processing packet 112185 [packets to send 38, broken 37] [11:28:13]ProducePacketName [11:28:13]name=ofd_packets/00112185 [11:28:13]OFD Sender: To server: pG, [11:28:13]CommunicateWithHost lk.salyk.kg:30040 [11:28:13]ConnectInit lk.salyk.kg [11:28:13]written 0, free lines is 4095 [11:28:14]Connected sock=10 [11:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DF DE 07 01 D7 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 61 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B6 01 00 35 04 06 00 BC 79 42 F5 C0 F2 9D A2 77 33 7B F1 C1 99 [11:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 35 86 47 00 DB 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B6 01 00 F4 03 04 00 6F 4C 76 66 B6 04 01 00 00 ED C5 A0 25 A0 94 06 0C [11:28:14]CommunicateWithHost err = 0 [11:28:14]CheckOFDResponse [11:28:14]1017 (14) - 77093643461234 [11:28:14]1041 (16) - 0000000000875083 [11:28:14]1040 (4) - 112185 [11:28:14]1012 (4) - 22.06.2024 04:00 [11:28:14]1206 (1) - 0 [11:28:14]OFD Sender: Remove packet 112185 [11:28:14]ProducePacketName [11:28:14]name=ofd_packets/00112185 [11:28:14]NVStorageDeleteData [11:28:14]Write to MH i2c: 01 00 00 C3 24 E7 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 E2 0C DC [11:28:14]RasterBufferAndPrint [11:28:14]line [11:28:14]line [11:28:14]line [11:28:14]line [11:28:14]line [11:28:14]written 0, free lines is 3304 [11:28:14]MH_Cut [11:28:14]Write to MH i2c: D1 01 00 CA 24 01 C0 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: D1 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: D1 01 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: D1 01 00 CA 24 00 BF [11:28:14]Write to MH i2c: 01 00 00 CB 24 EF [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]OFD Sender: No OFD packet to send [11:28:15]*** Cut start [11:28:15]*** Partial cut [11:28:15]*** CUTSNS_PIN = 1 [11:28:15]*** CUTSNS_PIN = 0 [11:28:15]*** Brake cut motor [11:28:15]Read from MH i2c: 01 [11:28:15]MH_I2C_Read... [11:28:15]*** Stop cut motor [11:28:15]*** Cut end [11:28:15]Read from MH i2c: 01 07 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 CB 24 00 00 00 00 00 FF 0F 04 [11:28:15]process_action close_receipt done [11:28:15]requested_data is exist [11:28:15]produce_requested_data [11:28:15]requested_item fm.sn is exist - process it [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 11 00 00 [11:28:15]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [11:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:28:15]wFMCommunicate OK [11:28:15]requested_item fd.num is exist - process it [11:28:15]SAM_PROTO_GetFieldsCounters [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 00 00 [11:28:15]Write to MH i2c: E2 08 00 CD 24 80 13 00 00 00 00 00 00 6D [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 62 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 62 00 CD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [11:28:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetFieldsCounters done [11:28:15]requested_item shift.num is exist - process it [11:28:15]requested_item shift.opened is exist - process it [11:28:15]req_shift_opened [11:28:15]FM_GetShiftState [11:28:15]SAM_PROTO_GetShiftState [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 01 00 [11:28:15]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A4 [11:28:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetShiftState done [11:28:15]FM_GetShiftState done [11:28:15]req_shift_opened done [11:28:15]requested_item shift.open_date is exist - process it [11:28:15]req_shift_open_date [11:28:15]req_shift_open_date done [11:28:15]produce_requested_data done [11:28:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112185,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:28:15]process_action_free close_receipt [11:28:15]json_value_free [11:28:15]json_value_free done [11:28:15]process_json_proto returns [11:28:15]Send response to host [11:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112185,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:28:15]free response buf [11:28:15]execute_script done [11:28:15]execute_script returns [11:28:15]free content buf [11:28:15]Sock 7.Close socket [11:28:15]Sock 7.Thread stoped [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:48]accept exits with 9 [11:29:48]New connection [11:29:48]New thread 3066813796 created [11:29:48]Thread 3066957156 joined [11:29:48]Waiting for new connection... [11:29:48] Sock 9.Parse request [11:29:48]Sock 9.Check first char [11:29:48]Sock 9.First char is OK [11:29:48]request: POST /json_proto HTTP/1.0 [11:29:48]Method: POST [11:29:48]URL: /json_proto [11:29:48]Method is POST - this is cgi request [11:29:48]url: /json_proto [11:29:48]query_string will be loaded in cgi processing [11:29:48]execute_cgi json_proto POST (null) [11:29:48]execute_cgi path=json_proto method=POST [11:29:48]POST find Content-Length [11:29:48]Host: 172.17.59.68:8080 [11:29:48]Content-Length: 677 [11:29:48]Content-Type: application/json [11:29:48] [11:29:48]POST finish read [11:29:48]Found Content-Length = 677 [11:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320856", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:29:48]execute_script... [11:29: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)320856", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:29:48]POST & json_proto [11:29:48]process_json_proto [11:29:48]json parsed OK: [11:29:48]protocol is kg_v1.0 [11:29:48]action value=close_receipt [11:29:48]process_action close_receipt [11:29:48]cmd_close_receipt [11:29:48]MH_GetDate [11:29:48]Write to MH i2c: F0 00 00 CF 24 E2 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: F0 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: F0 09 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: F0 09 00 CF 24 00 C1 B5 76 66 BC EC 60 65 AA [11:29:48]GetLastDocTimeStamp 1719055713 [11:29:48]current date 1719055809 [11:29:48]FM_GetShiftState [11:29:48]SAM_PROTO_GetShiftState [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 13 01 00 [11:29:48]Write to MH i2c: E2 08 00 D0 24 80 13 01 00 00 00 00 00 71 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0E 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0E 00 D0 24 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A6 [11:29:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_GetShiftState done [11:29:48]FM_GetShiftState done [11:29:48]opened in 1719020067 [11:29:48]opened+sec_in_day 1719106467 [11:29:48]quantity*price = 30012 [11:29:48]sum+1 = 30014 [11:29:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 52 22.06.2024 11:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112186 ФПД: 120228589337221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113010&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112186&fm=120228589337221&tin=02508201610067®Number=0000000000092771&sum=30000 [11:29:49]StoreToDocumentArchive [11:29:49]shift 391 fd 112186 [11:29:49]save to /storage/0391/doc_00112186 [11:29:49]save last doc name /storage/0391/doc_00112186 to /storage/kkm_last_doc_name [11:29:49]save OK [11:29:49]Clear old archive folders... [11:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:49]tlvbuf is 011C9EC0 [11:29:49]SAM_PROTO_ClearQueue [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 09 00 00 [11:29:49]Write to MH i2c: E2 08 00 DD 24 80 09 00 00 00 00 00 00 73 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [11:29:49]RAPDU: 90 00 [11:29:49]wFMCommunicate OK [11:29:49]SAM_PROTO_ClearQueue done [11:29:49]KKMCreateOFDPacket [11:29:49]OFDProtocolAddRootSTLVToBuf [11:29:49]FM_MakeSignedData [11:29:49]FM_MakeSignedData [11:29:49]SAM_PROTO_SignData [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 0D 01 02 [11:29:49]Write to MH i2c: E2 08 00 DE 24 80 0D 01 02 00 00 00 00 7B [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [11:29:49]RAPDU: 90 00 [11:29:49]wFMCommunicate OK [11:29:49]wFMCommunicate request_size=255 [11:29:49]MH_SAM_APDU [11:29: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C2 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B6 01 00 35 04 06 00 6D [11:29:49]Write to MH i2c: E2 02 01 DF 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C2 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B6 01 00 35 04 06 00 6D 00 00 3A [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]OFD Sender: No OFD packet to send [11:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 03 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 03 00 DF 24 00 90 00 77 [11:29:50]RAPDU: 90 00 [11:29:50]wFMCommunicate OK [11:29:50]wFMCommunicate request_size=10 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 0D 02 02 05 58 E6 5B FA 85 [11:29:50]Write to MH i2c: E2 0D 00 E0 24 80 0D 02 02 05 00 58 E6 5B FA 85 00 00 A0 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 03 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [11:29:50]RAPDU: 90 00 [11:29:50]wFMCommunicate OK [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 0D 03 02 [11:29:50]Write to MH i2c: E2 08 00 E1 24 80 0D 03 02 00 00 00 00 80 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0B 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0B 00 E1 24 00 97 6C 7F 55 A2 01 E9 49 90 00 2D [11:29:50]RAPDU: 97 6C 7F 55 A2 01 E9 49 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_SignData done [11:29:50]FM_MakeSignedData done [11:29:50]CreateOFDProtocolMessage [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 11 00 00 [11:29:50]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [11:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:29:50]wFMCommunicate OK [11:29:50]CreateOFDProtocolMessage done [11:29:50]OFDSenderStorePacket 112186 [11:29:50]StoreOFDPacket docnum=112186 [11:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 5D 07 01 63 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C2 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B6 01 00 35 04 06 00 6D 58 E6 5B FA 85 97 6C 7F 55 A2 01 E9 49 [11:29:50]CheckFolder [11:29:50]dirname=/storage/ofd_packets [11:29:50]CheckFolder done [11:29:50]ProducePacketName [11:29:50]name=ofd_packets/00112186 [11:29:50]NVStorageSaveData ofd_packets/00112186 [11:29:50]File name is /storage/ofd_packets/00112186 [11:29:50]Write 301 bytes [11:29:50]NVStorageSaveData done [11:29:50]OFDSenderStorePacket done [11:29:50]KKMCreateOFDPacket done [11:29:50]NVStorageSaveData kkm_last_timestamp [11:29:50]File name is /storage/kkm_last_timestamp [11:29:50]Write 4 bytes [11:29:50]NVStorageSaveData done [11:29:50]ExternCall_PrintAddStr [11:29:50]wPrintStart [11:29:50]Write to MH i2c: 01 00 00 E3 24 07 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [11:29:50]RasterBufferAndPrint [11:29:50]line Счет N : (1)320856 [11:29:50]line ИНН: 02508201610067 [11:29:50]line Контрольно-Кассовый Чек [11:29:50]line ПРОДАЖА [11:29:50]line ТРК (МРК, ГНК) : 11 [11:29:50]line Товар: 2710124130 [11:29:50]line Аи-92-К-5 [11:29:50]line 4.520 * 66.40 [11:29:50]line = 300.13 [11:29:50]line НДС 12% НСП 1% [11:29:50]line > о реализуемом товаре [11:29:50]line ОКРУГЛЕНИЕ: -0.13 [11:29:50]line ИТОГО: 300.00 [11:29:50]line Внесено: 300.00 [11:29:50]line СДАЧА: 0.00 [11:29:50]line НСП 1% : 2.66 [11:29:50]line НДС 12% : 31.87 [11:29:50]line Наличными: 300.00 [11:29:50]line Безнал.: 0.00 [11:29:50]line Место: АЗС № 65 "Партнер Нефть" [11:29:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:29:50]line СНО: Общий режим [11:29:50]line Чек 52 22.06.2024 11:30 [11:29:50]line Смена: 391 ФФД: 1.0 [11:29:50]line ЗНМ: 0300000198 [11:29:50]line РНМ: 0000000000092771 [11:29:50]line Версия ККМ: 001 [11:29:50]line ФМ: 0000000000875083 [11:29:50]line ФД: 112186 [11:29:50]line ФПД: 120228589337221 [11:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113010&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112186&fm=120228589337221&tin=02508201610067®Number=0000000000092771&sum=30000 [11:29:50]OFD Sender: Processing packet 112186 [packets to send 38, broken 37] [11:29:50]ProducePacketName [11:29:50]name=ofd_packets/00112186 [11:29:50]OFD Sender: To server: pG, [11:29:50]CommunicateWithHost lk.salyk.kg:30040 [11:29:50]ConnectInit lk.salyk.kg [11:29:50]written 0, free lines is 4095 [11:29:50]Connected sock=10 [11:29:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 5D 07 01 63 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C2 B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B6 01 00 35 04 06 00 6D 58 E6 5B FA 85 97 6C 7F 55 A2 01 E9 49 [11:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 07 D2 47 00 FF EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B6 01 00 F4 03 04 00 CF 4C 76 66 B6 04 01 00 00 F5 7F 0F C5 76 70 A1 69 [11:29:50]CommunicateWithHost err = 0 [11:29:50]CheckOFDResponse [11:29:50]1017 (14) - 77093643461234 [11:29:50]1041 (16) - 0000000000875083 [11:29:50]1040 (4) - 112186 [11:29:50]1012 (4) - 22.06.2024 04:02 [11:29:50]1206 (1) - 0 [11:29:50]OFD Sender: Remove packet 112186 [11:29:50]ProducePacketName [11:29:50]name=ofd_packets/00112186 [11:29:50]NVStorageDeleteData [11:29:50]Write to MH i2c: 01 00 00 0E 25 33 [11:29:51]Write i2c OK [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: 01 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: 01 07 00 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 E4 0C 2A [11:29:51]RasterBufferAndPrint [11:29:51]line [11:29:51]line [11:29:51]line [11:29:51]line [11:29:51]line [11:29:51]written 0, free lines is 3306 [11:29:51]MH_Cut [11:29:51]Write to MH i2c: D1 01 00 15 25 01 0C [11:29:51]Write i2c OK [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: D1 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: D1 01 00 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: D1 01 00 15 25 00 0B [11:29:51]Write to MH i2c: 01 00 00 16 25 3B [11:29:51]Write i2c OK [11:29:51]MH_I2C_Read... [11:29:51]OFD Sender: No OFD packet to send [11:29:51]*** Cut start [11:29:51]*** Partial cut [11:29:51]*** CUTSNS_PIN = 1 [11:29:51]*** CUTSNS_PIN = 0 [11:29:51]*** Brake cut motor [11:29:52]Read from MH i2c: 01 [11:29:52]MH_I2C_Read... [11:29:52]*** Stop cut motor [11:29:52]*** Cut end [11:29:52]Read from MH i2c: 01 07 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [11:29:52]process_action close_receipt done [11:29:52]requested_data is exist [11:29:52]produce_requested_data [11:29:52]requested_item fm.sn is exist - process it [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 11 00 00 [11:29:52]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 17 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [11:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:29:52]wFMCommunicate OK [11:29:52]requested_item fd.num is exist - process it [11:29:52]SAM_PROTO_GetFieldsCounters [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 13 00 00 [11:29:52]Write to MH i2c: E2 08 00 18 25 80 13 00 00 00 00 00 00 B9 [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 62 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 62 00 18 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [11:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:52]wFMCommunicate OK [11:29:52]SAM_PROTO_GetFieldsCounters done [11:29:52]requested_item shift.num is exist - process it [11:29:52]requested_item shift.opened is exist - process it [11:29:52]req_shift_opened [11:29:52]FM_GetShiftState [11:29:52]SAM_PROTO_GetShiftState [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 13 01 00 [11:29:52]Write to MH i2c: E2 08 00 19 25 80 13 01 00 00 00 00 00 BB [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0E 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0E 00 19 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F0 [11:29:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:29:52]wFMCommunicate OK [11:29:52]SAM_PROTO_GetShiftState done [11:29:52]FM_GetShiftState done [11:29:52]req_shift_opened done [11:29:52]requested_item shift.open_date is exist - process it [11:29:52]req_shift_open_date [11:29:52]req_shift_open_date done [11:29:52]produce_requested_data done [11:29:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112186,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:29:52]process_action_free close_receipt [11:29:52]json_value_free [11:29:52]json_value_free done [11:29:52]process_json_proto returns [11:29:52]Send response to host [11:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112186,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:29:52]free response buf [11:29:52]execute_script done [11:29:52]execute_script returns [11:29:52]free content buf [11:29:52]Sock 9.Close socket [11:29:52]Sock 9.Thread stoped [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:29]accept exits with 7 [11:30:29]New connection [11:30:29]New thread 3066957156 created [11:30:29]Thread 3066813796 joined [11:30:29]Waiting for new connection... [11:30:29] Sock 7.Parse request [11:30:29]Sock 7.Check first char [11:30:29]Sock 7.First char is OK [11:30:29]request: POST /json_proto HTTP/1.0 [11:30:29]Method: POST [11:30:29]URL: /json_proto [11:30:29]Method is POST - this is cgi request [11:30:29]url: /json_proto [11:30:29]query_string will be loaded in cgi processing [11:30:29]execute_cgi json_proto POST (null) [11:30:29]execute_cgi path=json_proto method=POST [11:30:29]POST find Content-Length [11:30:29]Host: 172.17.59.68:8080 [11:30:29]Content-Length: 677 [11:30:29]Content-Type: application/json [11:30:29] [11:30:29]POST finish read [11:30:29]Found Content-Length = 677 [11:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320857", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:30:29]execute_script... [11:30: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)320857", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:30:29]POST & json_proto [11:30:29]process_json_proto [11:30:29]json parsed OK: [11:30:29]protocol is kg_v1.0 [11:30:29]action value=close_receipt [11:30:29]process_action close_receipt [11:30:29]cmd_close_receipt [11:30:29]MH_GetDate [11:30:29]Write to MH i2c: F0 00 00 1A 25 2E [11:30:29]Write i2c OK [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: F0 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: F0 09 00 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: F0 09 00 1A 25 00 EA B5 76 66 BC EC 60 65 1F [11:30:29]GetLastDocTimeStamp 1719055810 [11:30:29]current date 1719055850 [11:30:29]FM_GetShiftState [11:30:29]SAM_PROTO_GetShiftState [11:30:29]wFMCommunicate request_size=4 [11:30:29]MH_SAM_APDU [11:30:29]CAPDU: 80 13 01 00 [11:30:29]Write to MH i2c: E2 08 00 1B 25 80 13 01 00 00 00 00 00 BD [11:30:29]Write i2c OK [11:30:29]MH_I2C_Read... [11:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:29]Read from MH i2c: E2 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: E2 0E 00 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: E2 0E 00 1B 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F2 [11:30:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:30:29]wFMCommunicate OK [11:30:29]SAM_PROTO_GetShiftState done [11:30:29]FM_GetShiftState done [11:30:29]opened in 1719020067 [11:30:29]opened+sec_in_day 1719106467 [11:30:29]quantity*price = 40039 [11:30:29]sum+1 = 40040 [11:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 53 22.06.2024 11:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112187 ФПД: 39805219196379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112187&fm=39805219196379&tin=02508201610067®Number=0000000000092771&sum=40000 [11:30:30]StoreToDocumentArchive [11:30:30]shift 391 fd 112187 [11:30:30]save to /storage/0391/doc_00112187 [11:30:30]save last doc name /storage/0391/doc_00112187 to /storage/kkm_last_doc_name [11:30:30]save OK [11:30:30]Clear old archive folders... [11:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:30]tlvbuf is 0112B430 [11:30:30]SAM_PROTO_ClearQueue [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 09 00 00 [11:30:30]Write to MH i2c: E2 08 00 28 25 80 09 00 00 00 00 00 00 BF [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_ClearQueue done [11:30:30]KKMCreateOFDPacket [11:30:30]OFDProtocolAddRootSTLVToBuf [11:30:30]FM_MakeSignedData [11:30:30]FM_MakeSignedData [11:30:30]SAM_PROTO_SignData [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 0D 01 02 [11:30:30]Write to MH i2c: E2 08 00 29 25 80 0D 01 02 00 00 00 00 C7 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]wFMCommunicate request_size=255 [11:30:30]MH_SAM_APDU [11:30: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 35 00 00 00 F4 03 04 00 EA B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B6 01 00 35 04 06 00 24 [11:30:30]Write to MH i2c: E2 02 01 2A 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 35 00 00 00 F4 03 04 00 EA B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B6 01 00 35 04 06 00 24 00 00 97 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]wFMCommunicate request_size=10 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 0D 02 02 05 33 DF F3 4D DB [11:30:30]Write to MH i2c: E2 0D 00 2B 25 80 0D 02 02 05 00 33 DF F3 4D DB 00 00 01 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 2B 25 00 90 00 C4 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 0D 03 02 [11:30:30]Write to MH i2c: E2 08 00 2C 25 80 0D 03 02 00 00 00 00 CC [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0B 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0B 00 2C 25 00 BA FD A0 82 D6 2A CF BF 90 00 34 [11:30:30]RAPDU: BA FD A0 82 D6 2A CF BF 90 00 [11:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_SignData done [11:30:30]FM_MakeSignedData done [11:30:30]CreateOFDProtocolMessage [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 11 00 00 [11:30:30]Write to MH i2c: E2 08 00 2D 25 80 11 00 00 00 00 00 00 CC [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 17 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 17 00 2D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [11:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:30:30]wFMCommunicate OK [11:30:30]CreateOFDProtocolMessage done [11:30:30]OFDSenderStorePacket 112187 [11:30:30]StoreOFDPacket docnum=112187 [11:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C A7 07 01 AC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 35 00 00 00 F4 03 04 00 EA B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B6 01 00 35 04 06 00 24 33 DF F3 4D DB BA FD A0 82 D6 2A CF BF [11:30:30]CheckFolder [11:30:30]dirname=/storage/ofd_packets [11:30:30]CheckFolder done [11:30:30]ProducePacketName [11:30:30]name=ofd_packets/00112187 [11:30:30]NVStorageSaveData ofd_packets/00112187 [11:30:30]File name is /storage/ofd_packets/00112187 [11:30:30]Write 301 bytes [11:30:30]NVStorageSaveData done [11:30:30]OFDSenderStorePacket done [11:30:30]KKMCreateOFDPacket done [11:30:30]NVStorageSaveData kkm_last_timestamp [11:30:30]File name is /storage/kkm_last_timestamp [11:30:30]Write 4 bytes [11:30:30]NVStorageSaveData done [11:30:30]ExternCall_PrintAddStr [11:30:30]wPrintStart [11:30:30]Write to MH i2c: 01 00 00 2E 25 53 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: 01 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: 01 07 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0F 68 [11:30:30]RasterBufferAndPrint [11:30:30]line Счет N : (1)320857 [11:30:30]line ИНН: 02508201610067 [11:30:30]line Контрольно-Кассовый Чек [11:30:30]line ПРОДАЖА [11:30:30]line ТРК (МРК, ГНК) : 11 [11:30:30]line Товар: 2710124130 [11:30:30]line Аи-92-К-5 [11:30:30]line 6.030 * 66.40 [11:30:30]line = 400.39 [11:30:30]line НДС 12% НСП 1% [11:30:30]line > о реализуемом товаре [11:30:30]line ОКРУГЛЕНИЕ: -0.39 [11:30:30]line ИТОГО: 400.00 [11:30:30]line Внесено: 400.00 [11:30:30]line СДАЧА: 0.00 [11:30:30]line НСП 1% : 3.54 [11:30:30]line НДС 12% : 42.52 [11:30:30]line Наличными: 400.00 [11:30:30]line Безнал.: 0.00 [11:30:30]line Место: АЗС № 65 "Партнер Нефть" [11:30:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:30:30]line СНО: Общий режим [11:30:30]line Чек 53 22.06.2024 11:30 [11:30:30]line Смена: 391 ФФД: 1.0 [11:30:30]line ЗНМ: 0300000198 [11:30:30]line РНМ: 0000000000092771 [11:30:30]line Версия ККМ: 001 [11:30:30]line ФМ: 0000000000875083 [11:30:30]line ФД: 112187 [11:30:30]line ФПД: 39805219196379 [11:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112187&fm=39805219196379&tin=02508201610067®Number=0000000000092771&sum=40000 [11:30:30]written 0, free lines is 4095 [11:30:30]OFD Sender: Processing packet 112187 [packets to send 38, broken 37] [11:30:30]ProducePacketName [11:30:30]name=ofd_packets/00112187 [11:30:30]OFD Sender: To server: pG, [11:30:30]CommunicateWithHost lk.salyk.kg:30040 [11:30:30]ConnectInit lk.salyk.kg [11:30:30]Connected sock=11 [11:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C A7 07 01 AC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 35 00 00 00 F4 03 04 00 EA B5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B6 01 00 35 04 06 00 24 33 DF F3 4D DB BA FD A0 82 D6 2A CF BF [11:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D6 F5 47 00 C0 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B6 01 00 F4 03 04 00 F7 4C 76 66 B6 04 01 00 00 11 73 0D 4B 77 F5 0C A6 [11:30:31]CommunicateWithHost err = 0 [11:30:31]CheckOFDResponse [11:30:31]1017 (14) - 77093643461234 [11:30:31]1041 (16) - 0000000000875083 [11:30:31]1040 (4) - 112187 [11:30:31]1012 (4) - 22.06.2024 04:03 [11:30:31]1206 (1) - 0 [11:30:31]OFD Sender: Remove packet 112187 [11:30:31]ProducePacketName [11:30:31]name=ofd_packets/00112187 [11:30:31]NVStorageDeleteData [11:30:31]Write to MH i2c: 01 00 00 59 25 7E [11:30:31]Write i2c OK [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: 01 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: 01 07 00 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: 01 07 00 59 25 00 00 00 00 00 D4 0C 65 [11:30:31]RasterBufferAndPrint [11:30:31]line [11:30:31]line [11:30:31]line [11:30:31]line [11:30:31]line [11:30:31]written 0, free lines is 3292 [11:30:31]MH_Cut [11:30:31]Write to MH i2c: D1 01 00 60 25 01 57 [11:30:31]Write i2c OK [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: D1 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: D1 01 00 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: D1 01 00 60 25 00 56 [11:30:31]Write to MH i2c: 01 00 00 61 25 86 [11:30:31]Write i2c OK [11:30:31]MH_I2C_Read... [11:30:31]OFD Sender: No OFD packet to send [11:30:31]*** Cut start [11:30:31]*** Partial cut [11:30:31]*** CUTSNS_PIN = 1 [11:30:31]*** CUTSNS_PIN = 0 [11:30:32]*** Brake cut motor [11:30:32]Read from MH i2c: 01 [11:30:32]MH_I2C_Read... [11:30:32]*** Stop cut motor [11:30:32]*** Cut end [11:30:32]Read from MH i2c: 01 07 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [11:30:32]process_action close_receipt done [11:30:32]requested_data is exist [11:30:32]produce_requested_data [11:30:32]requested_item fm.sn is exist - process it [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 11 00 00 [11:30:32]Write to MH i2c: E2 08 00 62 25 80 11 00 00 00 00 00 00 01 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 17 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 17 00 62 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [11:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:30:32]wFMCommunicate OK [11:30:32]requested_item fd.num is exist - process it [11:30:32]SAM_PROTO_GetFieldsCounters [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 13 00 00 [11:30:32]Write to MH i2c: E2 08 00 63 25 80 13 00 00 00 00 00 00 04 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 62 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 62 00 63 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [11:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:32]wFMCommunicate OK [11:30:32]SAM_PROTO_GetFieldsCounters done [11:30:32]requested_item shift.num is exist - process it [11:30:32]requested_item shift.opened is exist - process it [11:30:32]req_shift_opened [11:30:32]FM_GetShiftState [11:30:32]SAM_PROTO_GetShiftState [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 13 01 00 [11:30:32]Write to MH i2c: E2 08 00 64 25 80 13 01 00 00 00 00 00 06 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0E 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0E 00 64 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3B [11:30:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:30:32]wFMCommunicate OK [11:30:32]SAM_PROTO_GetShiftState done [11:30:32]FM_GetShiftState done [11:30:32]req_shift_opened done [11:30:32]requested_item shift.open_date is exist - process it [11:30:32]req_shift_open_date [11:30:32]req_shift_open_date done [11:30:32]produce_requested_data done [11:30:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112187,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:30:32]process_action_free close_receipt [11:30:32]json_value_free [11:30:32]json_value_free done [11:30:32]process_json_proto returns [11:30:32]Send response to host [11:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112187,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:30:32]free response buf [11:30:32]execute_script done [11:30:32]execute_script returns [11:30:32]free content buf [11:30:32]Sock 7.Close socket [11:30:32]Sock 7.Thread stoped [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:03]accept exits with 9 [11:31:03]New connection [11:31:03]New thread 3066813796 created [11:31:03]Thread 3066957156 joined [11:31:03]Waiting for new connection... [11:31:03] Sock 9.Parse request [11:31:03]Sock 9.Check first char [11:31:03]Sock 9.First char is OK [11:31:03]request: POST /json_proto HTTP/1.0 [11:31:03]Method: POST [11:31:03]URL: /json_proto [11:31:03]Method is POST - this is cgi request [11:31:03]url: /json_proto [11:31:03]query_string will be loaded in cgi processing [11:31:03]execute_cgi json_proto POST (null) [11:31:03]execute_cgi path=json_proto method=POST [11:31:03]POST find Content-Length [11:31:03]Host: 172.17.59.68:8080 [11:31:03]Content-Length: 673 [11:31:03]Content-Type: application/json [11:31:03] [11:31:03]POST finish read [11:31:03]Found Content-Length = 673 [11:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320859", "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.40, "quantity" : 1.060, "sum" : 70.38, "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" ] } } [11:31:03]execute_script... [11:31: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)320859", "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.40, "quantity" : 1.060, "sum" : 70.38, "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" ] } } [11:31:03]POST & json_proto [11:31:03]process_json_proto [11:31:03]json parsed OK: [11:31:03]protocol is kg_v1.0 [11:31:03]action value=close_receipt [11:31:03]process_action close_receipt [11:31:03]cmd_close_receipt [11:31:03]MH_GetDate [11:31:03]Write to MH i2c: F0 00 00 65 25 79 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: F0 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: F0 09 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: F0 09 00 65 25 00 0C B6 76 66 BC EC 60 65 8D [11:31:03]GetLastDocTimeStamp 1719055850 [11:31:03]current date 1719055884 [11:31:03]FM_GetShiftState [11:31:03]SAM_PROTO_GetShiftState [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 13 01 00 [11:31:03]Write to MH i2c: E2 08 00 66 25 80 13 01 00 00 00 00 00 08 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 0E 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 0E 00 66 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3D [11:31:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:31:03]wFMCommunicate OK [11:31:03]SAM_PROTO_GetShiftState done [11:31:03]FM_GetShiftState done [11:31:03]opened in 1719020067 [11:31:03]opened+sec_in_day 1719106467 [11:31:03]quantity*price = 7038 [11:31:03]sum+1 = 7039 [11:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.47 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 54 22.06.2024 11:31 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112188 ФПД: 48860833767212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112188&fm=48860833767212&tin=02508201610067®Number=0000000000092771&sum=7000 [11:31:04]StoreToDocumentArchive [11:31:04]shift 391 fd 112188 [11:31:04]save to /storage/0391/doc_00112188 [11:31:04]save last doc name /storage/0391/doc_00112188 to /storage/kkm_last_doc_name [11:31:04]save OK [11:31:04]Clear old archive folders... [11:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:04]tlvbuf is B6EA9540 [11:31:04]SAM_PROTO_ClearQueue [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 09 00 00 [11:31:04]Write to MH i2c: E2 08 00 73 25 80 09 00 00 00 00 00 00 0A [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 73 25 00 90 00 0C [11:31:04]RAPDU: 90 00 [11:31:04]wFMCommunicate OK [11:31:04]SAM_PROTO_ClearQueue done [11:31:04]KKMCreateOFDPacket [11:31:04]OFDProtocolAddRootSTLVToBuf [11:31:04]FM_MakeSignedData [11:31:04]FM_MakeSignedData [11:31:04]SAM_PROTO_SignData [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 0D 01 02 [11:31:04]Write to MH i2c: E2 08 00 74 25 80 0D 01 02 00 00 00 00 12 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [11:31:04]RAPDU: 90 00 [11:31:04]wFMCommunicate OK [11:31:04]wFMCommunicate request_size=255 [11:31:04]MH_SAM_APDU [11:31: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 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 36 00 00 00 F4 03 04 00 0C B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B6 01 00 35 04 06 00 2C [11:31:04]Write to MH i2c: E2 02 01 75 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 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 36 00 00 00 F4 03 04 00 0C B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B6 01 00 35 04 06 00 2C 00 00 72 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 75 25 00 90 00 0E [11:31:04]RAPDU: 90 00 [11:31:04]wFMCommunicate OK [11:31:04]wFMCommunicate request_size=10 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 0D 02 02 05 70 4C A3 DF 2C [11:31:04]Write to MH i2c: E2 0D 00 76 25 80 0D 02 02 05 00 70 4C A3 DF 2C 00 00 89 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:05]Read from MH i2c: E2 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 03 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 03 00 76 25 00 90 00 0F [11:31:05]RAPDU: 90 00 [11:31:05]wFMCommunicate OK [11:31:05]wFMCommunicate request_size=4 [11:31:05]MH_SAM_APDU [11:31:05]CAPDU: 80 0D 03 02 [11:31:05]Write to MH i2c: E2 08 00 77 25 80 0D 03 02 00 00 00 00 17 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:05]Read from MH i2c: E2 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 0B 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 0B 00 77 25 00 DC 0D 73 57 9D 6A 96 8F 90 00 F7 [11:31:05]RAPDU: DC 0D 73 57 9D 6A 96 8F 90 00 [11:31:05]wFMCommunicate OK [11:31:05]SAM_PROTO_SignData done [11:31:05]FM_MakeSignedData done [11:31:05]CreateOFDProtocolMessage [11:31:05]wFMCommunicate request_size=4 [11:31:05]MH_SAM_APDU [11:31:05]CAPDU: 80 11 00 00 [11:31:05]Write to MH i2c: E2 08 00 78 25 80 11 00 00 00 00 00 00 17 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:05]Read from MH i2c: E2 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 17 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 17 00 78 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [11:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:31:05]wFMCommunicate OK [11:31:05]CreateOFDProtocolMessage done [11:31:05]OFDSenderStorePacket 112188 [11:31:05]StoreOFDPacket docnum=112188 [11:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 1D 07 01 BD BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 36 00 00 00 F4 03 04 00 0C B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B6 01 00 35 04 06 00 2C 70 4C A3 DF 2C DC 0D 73 57 9D 6A 96 8F [11:31:05]CheckFolder [11:31:05]dirname=/storage/ofd_packets [11:31:05]CheckFolder done [11:31:05]ProducePacketName [11:31:05]name=ofd_packets/00112188 [11:31:05]NVStorageSaveData ofd_packets/00112188 [11:31:05]File name is /storage/ofd_packets/00112188 [11:31:05]Write 301 bytes [11:31:05]NVStorageSaveData done [11:31:05]OFDSenderStorePacket done [11:31:05]KKMCreateOFDPacket done [11:31:05]NVStorageSaveData kkm_last_timestamp [11:31:05]File name is /storage/kkm_last_timestamp [11:31:05]Write 4 bytes [11:31:05]NVStorageSaveData done [11:31:05]ExternCall_PrintAddStr [11:31:05]wPrintStart [11:31:05]Write to MH i2c: 01 00 00 79 25 9E [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 07 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 07 00 79 25 00 00 00 00 00 FF 0F B3 [11:31:05]RasterBufferAndPrint [11:31:05]line Счет N : (1)320859 [11:31:05]line ИНН: 02508201610067 [11:31:05]line Контрольно-Кассовый Чек [11:31:05]line ПРОДАЖА [11:31:05]line ТРК (МРК, ГНК) : 11 [11:31:05]line Товар: 2710124130 [11:31:05]line Аи-92-К-5 [11:31:05]line 1.060 * 66.40 [11:31:05]line = 70.38 [11:31:05]line НДС 12% НСП 1% [11:31:05]line > о реализуемом товаре [11:31:05]line ОКРУГЛЕНИЕ: -0.38 [11:31:05]line ИТОГО: 70.00 [11:31:05]line Внесено: 70.00 [11:31:05]line СДАЧА: 0.00 [11:31:05]line НСП 1% : 0.62 [11:31:05]line НДС 12% : 7.47 [11:31:05]line Наличными: 70.00 [11:31:05]line Безнал.: 0.00 [11:31:05]line Место: АЗС № 65 "Партнер Нефть" [11:31:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:31:05]line СНО: Общий режим [11:31:05]line Чек 54 22.06.2024 11:31 [11:31:05]line Смена: 391 ФФД: 1.0 [11:31:05]line ЗНМ: 0300000198 [11:31:05]line РНМ: 0000000000092771 [11:31:05]line Версия ККМ: 001 [11:31:05]line ФМ: 0000000000875083 [11:31:05]line ФД: 112188 [11:31:05]line ФПД: 48860833767212 [11:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112188&fm=48860833767212&tin=02508201610067®Number=0000000000092771&sum=7000 [11:31:05]OFD Sender: Processing packet 112188 [packets to send 38, broken 37] [11:31:05]ProducePacketName [11:31:05]name=ofd_packets/00112188 [11:31:05]OFD Sender: To server: pG, [11:31:05]CommunicateWithHost lk.salyk.kg:30040 [11:31:05]ConnectInit lk.salyk.kg [11:31:05]written 0, free lines is 4095 [11:31:05]Connected sock=10 [11:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 1D 07 01 BD BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 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 EB 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 36 00 00 00 F4 03 04 00 0C B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B6 01 00 35 04 06 00 2C 70 4C A3 DF 2C DC 0D 73 57 9D 6A 96 8F [11:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 93 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 35 30 38 33 10 04 04 00 3C B6 01 00 F4 03 04 00 1A 4D 76 66 B6 04 01 00 00 A0 B6 54 7B A1 F0 BB 0A [11:31:05]CommunicateWithHost err = 0 [11:31:05]CheckOFDResponse [11:31:05]1017 (14) - 77093643461234 [11:31:05]1041 (16) - 0000000000875083 [11:31:05]1040 (4) - 112188 [11:31:05]1012 (4) - 22.06.2024 04:03 [11:31:05]1206 (1) - 0 [11:31:05]OFD Sender: Remove packet 112188 [11:31:05]ProducePacketName [11:31:05]name=ofd_packets/00112188 [11:31:05]NVStorageDeleteData [11:31:05]Write to MH i2c: 01 00 00 A4 25 C9 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 07 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 07 00 A4 25 00 00 00 00 00 D8 0C B4 [11:31:05]RasterBufferAndPrint [11:31:05]line [11:31:05]line [11:31:05]line [11:31:05]line [11:31:05]line [11:31:05]written 0, free lines is 3295 [11:31:05]MH_Cut [11:31:05]Write to MH i2c: D1 01 00 AB 25 01 A2 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: D1 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: D1 01 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: D1 01 00 AB 25 00 A1 [11:31:05]Write to MH i2c: 01 00 00 AC 25 D1 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:06]OFD Sender: No OFD packet to send [11:31:06]*** Cut start [11:31:06]*** Partial cut [11:31:06]*** CUTSNS_PIN = 1 [11:31:06]*** CUTSNS_PIN = 0 [11:31:06]*** Brake cut motor [11:31:07]Read from MH i2c: 01 [11:31:07]MH_I2C_Read... [11:31:07]*** Stop cut motor [11:31:07]*** Cut end [11:31:07]Read from MH i2c: 01 07 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 07 00 AC 25 00 00 00 00 00 FF 0F E6 [11:31:07]process_action close_receipt done [11:31:07]requested_data is exist [11:31:07]produce_requested_data [11:31:07]requested_item fm.sn is exist - process it [11:31:07]wFMCommunicate request_size=4 [11:31:07]MH_SAM_APDU [11:31:07]CAPDU: 80 11 00 00 [11:31:07]Write to MH i2c: E2 08 00 AD 25 80 11 00 00 00 00 00 00 4C [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:07]Read from MH i2c: E2 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: E2 17 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: E2 17 00 AD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [11:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:31:07]wFMCommunicate OK [11:31:07]requested_item fd.num is exist - process it [11:31:07]SAM_PROTO_GetFieldsCounters [11:31:07]wFMCommunicate request_size=4 [11:31:07]MH_SAM_APDU [11:31:07]CAPDU: 80 13 00 00 [11:31:07]Write to MH i2c: E2 08 00 AE 25 80 13 00 00 00 00 00 00 4F [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:07]Read from MH i2c: E2 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: E2 62 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: E2 62 00 AE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:07]wFMCommunicate OK [11:31:07]SAM_PROTO_GetFieldsCounters done [11:31:07]requested_item shift.num is exist - process it [11:31:07]requested_item shift.opened is exist - process it [11:31:07]req_shift_opened [11:31:07]FM_GetShiftState [11:31:07]SAM_PROTO_GetShiftState [11:31:07]wFMCommunicate request_size=4 [11:31:07]MH_SAM_APDU [11:31:07]CAPDU: 80 13 01 00 [11:31:07]Write to MH i2c: E2 08 00 AF 25 80 13 01 00 00 00 00 00 51 [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:07]Read from MH i2c: E2 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: E2 0E 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: E2 0E 00 AF 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 86 [11:31:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:31:07]wFMCommunicate OK [11:31:07]SAM_PROTO_GetShiftState done [11:31:07]FM_GetShiftState done [11:31:07]req_shift_opened done [11:31:07]requested_item shift.open_date is exist - process it [11:31:07]req_shift_open_date [11:31:07]req_shift_open_date done [11:31:07]produce_requested_data done [11:31:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112188,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:31:07]process_action_free close_receipt [11:31:07]json_value_free [11:31:07]json_value_free done [11:31:07]process_json_proto returns [11:31:07]Send response to host [11:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112188,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:31:07]free response buf [11:31:07]execute_script done [11:31:07]execute_script returns [11:31:07]free content buf [11:31:07]Sock 9.Close socket [11:31:07]Sock 9.Thread stoped [11:31:07]accept exits with 7 [11:31:07]New connection [11:31:07]New thread 3066957156 created [11:31:07]Thread 3066813796 joined [11:31:07]Waiting for new connection... [11:31:07] Sock 7.Parse request [11:31:07]Sock 7.Check first char [11:31:07]Sock 7.First char is OK [11:31:07]request: POST /json_proto HTTP/1.0 [11:31:07]Method: POST [11:31:07]URL: /json_proto [11:31:07]Method is POST - this is cgi request [11:31:07]url: /json_proto [11:31:07]query_string will be loaded in cgi processing [11:31:07]execute_cgi json_proto POST (null) [11:31:07]execute_cgi path=json_proto method=POST [11:31:07]POST find Content-Length [11:31:07]Host: 172.17.59.68:8080 [11:31:07]Content-Length: 1196 [11:31:07]Content-Type: application/json [11:31:07] [11:31:07]POST finish read [11:31:07]Found Content-Length = 1196 [11:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320858\u000A22.06.2024 09:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4014128;4014126\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:07]execute_script... [11:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320858\u000A22.06.2024 09:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4014128;4014126\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:07]POST & json_proto [11:31:07]process_json_proto [11:31:07]json parsed OK: [11:31:07]protocol is kg_v1.0 [11:31:07]action value=print_text [11:31:07]process_action print_text [11:31:07]cmd_print_text [11:31:07]ExternCall_PrintAddStr [11:31:07]wPrintStart [11:31:07]Write to MH i2c: 01 00 00 B0 25 D5 [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 07 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 07 00 B0 25 00 00 00 00 00 FF 0F EA [11:31:07]RasterBufferAndPrint [11:31:07]line *****ТОВАРНЫЙ ЧЕК***** [11:31:07]line АЗС 65 [11:31:07]line Партнер нефть [11:31:07]line 02508201610067 [11:31:07]line Кассир : Амантуров Р. [11:31:07]line Счет N : (1)320858 [11:31:07]line 22.06.2024 09:58 [11:31:07]line ПРОДАЖА [11:31:07]line ТРК (МРК, ГНК): 22 [11:31:07]line Вид ГСМ : 2710194210 [11:31:07]line ДТ-К-5 [11:31:07]line 20.000 x 72.90 [11:31:07]line ИТОГ: 1458.00 [11:31:07]line Тип оплаты: Талоны: Партнер нефть [11:31:07]line 4014128;4014126 [11:31:07]line ______________________ [11:31:07]line (подпись) [11:31:07]written 0, free lines is 4095 [11:31:08]Write to MH i2c: 01 00 00 C4 25 E9 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: 01 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: 01 07 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: 01 07 00 C4 25 00 00 00 00 00 15 0E 13 [11:31:08]RasterBufferAndPrint [11:31:08]line [11:31:08]line [11:31:08]line [11:31:08]line [11:31:08]line [11:31:08]written 0, free lines is 3609 [11:31:08]MH_Cut [11:31:08]Write to MH i2c: D1 01 00 CB 25 01 C2 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: D1 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: D1 01 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: D1 01 00 CB 25 00 C1 [11:31:08]Write to MH i2c: 01 00 00 CC 25 F1 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** Cut start [11:31:08]*** Partial cut [11:31:08]*** CUTSNS_PIN = 1 [11:31:08]*** CUTSNS_PIN = 0 [11:31:08]*** Brake cut motor [11:31:09]Read from MH i2c: 01 [11:31:09]MH_I2C_Read... [11:31:09]*** Stop cut motor [11:31:09]*** Cut end [11:31:09]Read from MH i2c: 01 07 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: 01 07 00 CC 25 00 00 00 00 00 FF 0F 06 [11:31:09]process_action print_text done [11:31:09]requested_data is exist [11:31:09]produce_requested_data [11:31:09]requested_item fm.sn is exist - process it [11:31:09]wFMCommunicate request_size=4 [11:31:09]MH_SAM_APDU [11:31:09]CAPDU: 80 11 00 00 [11:31:09]Write to MH i2c: E2 08 00 CD 25 80 11 00 00 00 00 00 00 6C [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:09]Read from MH i2c: E2 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 17 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 17 00 CD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [11:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:31:09]wFMCommunicate OK [11:31:09]requested_item fd.num is exist - process it [11:31:09]SAM_PROTO_GetFieldsCounters [11:31:09]wFMCommunicate request_size=4 [11:31:09]MH_SAM_APDU [11:31:09]CAPDU: 80 13 00 00 [11:31:09]Write to MH i2c: E2 08 00 CE 25 80 13 00 00 00 00 00 00 6F [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:09]Read from MH i2c: E2 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 62 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 62 00 CE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:09]wFMCommunicate OK [11:31:09]SAM_PROTO_GetFieldsCounters done [11:31:09]requested_item shift.num is exist - process it [11:31:09]requested_item shift.opened is exist - process it [11:31:09]req_shift_opened [11:31:09]FM_GetShiftState [11:31:09]SAM_PROTO_GetShiftState [11:31:09]wFMCommunicate request_size=4 [11:31:09]MH_SAM_APDU [11:31:09]CAPDU: 80 13 01 00 [11:31:09]Write to MH i2c: E2 08 00 CF 25 80 13 01 00 00 00 00 00 71 [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:09]Read from MH i2c: E2 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 0E 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 0E 00 CF 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A6 [11:31:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:31:09]wFMCommunicate OK [11:31:09]SAM_PROTO_GetShiftState done [11:31:09]FM_GetShiftState done [11:31:09]req_shift_opened done [11:31:09]requested_item shift.open_date is exist - process it [11:31:09]req_shift_open_date [11:31:09]req_shift_open_date done [11:31:09]produce_requested_data done [11:31:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112188,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:31:09]process_action_free print_text [11:31:09]json_value_free [11:31:09]json_value_free done [11:31:09]process_json_proto returns [11:31:09]Send response to host [11:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112188,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:31:09]free response buf [11:31:09]execute_script done [11:31:09]execute_script returns [11:31:09]free content buf [11:31:09]Sock 7.Close socket [11:31:09]Sock 7.Thread stoped [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:08]accept exits with 9 [11:32:08]New connection [11:32:08]New thread 3066813796 created [11:32:08]Thread 3066957156 joined [11:32:08]Waiting for new connection... [11:32:08] Sock 9.Parse request [11:32:08]Sock 9.Check first char [11:32:08]Sock 9.First char is OK [11:32:08]request: POST /json_proto HTTP/1.0 [11:32:08]Method: POST [11:32:08]URL: /json_proto [11:32:08]Method is POST - this is cgi request [11:32:08]url: /json_proto [11:32:08]query_string will be loaded in cgi processing [11:32:08]execute_cgi json_proto POST (null) [11:32:08]execute_cgi path=json_proto method=POST [11:32:08]POST find Content-Length [11:32:08]Host: 172.17.59.68:8080 [11:32:08]Content-Length: 1196 [11:32:08]Content-Type: application/json [11:32:08] [11:32:08]POST finish read [11:32:08]Found Content-Length = 1196 [11:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320860\u000A22.06.2024 09:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4016023;4016021\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:08]execute_script... [11:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320860\u000A22.06.2024 09:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4016023;4016021\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:08]POST & json_proto [11:32:08]process_json_proto [11:32:08]json parsed OK: [11:32:08]protocol is kg_v1.0 [11:32:08]action value=print_text [11:32:08]process_action print_text [11:32:08]cmd_print_text [11:32:08]ExternCall_PrintAddStr [11:32:08]wPrintStart [11:32:08]Write to MH i2c: 01 00 00 D0 25 F5 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 07 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 07 00 D0 25 00 00 00 00 00 FF 0F 0A [11:32:08]RasterBufferAndPrint [11:32:08]line *****ТОВАРНЫЙ ЧЕК***** [11:32:08]line АЗС 65 [11:32:08]line Партнер нефть [11:32:08]line 02508201610067 [11:32:08]line Кассир : Амантуров Р. [11:32:08]line Счет N : (1)320860 [11:32:08]line 22.06.2024 09:59 [11:32:08]line ПРОДАЖА [11:32:08]line ТРК (МРК, ГНК): 22 [11:32:08]line Вид ГСМ : 2710194210 [11:32:08]line ДТ-К-5 [11:32:08]line 20.000 x 72.90 [11:32:08]line ИТОГ: 1458.00 [11:32:08]line Тип оплаты: Талоны: Партнер нефть [11:32:08]line 4016023;4016021 [11:32:08]line ______________________ [11:32:08]line (подпись) [11:32:08]written 0, free lines is 4095 [11:32:08]Write to MH i2c: 01 00 00 E4 25 09 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 07 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: 01 07 00 E4 25 00 00 00 00 00 15 0E 33 [11:32:08]RasterBufferAndPrint [11:32:08]line [11:32:08]line [11:32:08]line [11:32:08]line [11:32:08]line [11:32:08]written 0, free lines is 3607 [11:32:08]MH_Cut [11:32:08]Write to MH i2c: D1 01 00 EB 25 01 E2 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: D1 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: D1 01 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: D1 01 00 EB 25 00 E1 [11:32:08]Write to MH i2c: 01 00 00 EC 25 11 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** Cut start [11:32:08]*** Partial cut [11:32:08]*** CUTSNS_PIN = 1 [11:32:08]*** CUTSNS_PIN = 0 [11:32:09]*** Brake cut motor [11:32:09]Read from MH i2c: 01 [11:32:09]MH_I2C_Read... [11:32:09]*** Stop cut motor [11:32:09]*** Cut end [11:32:09]Read from MH i2c: 01 07 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 EC 25 00 00 00 00 00 FF 0F 26 [11:32:09]process_action print_text done [11:32:09]requested_data is exist [11:32:09]produce_requested_data [11:32:09]requested_item fm.sn is exist - process it [11:32:09]wFMCommunicate request_size=4 [11:32:09]MH_SAM_APDU [11:32:09]CAPDU: 80 11 00 00 [11:32:09]Write to MH i2c: E2 08 00 ED 25 80 11 00 00 00 00 00 00 8C [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:09]Read from MH i2c: E2 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 17 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 17 00 ED 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [11:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:32:09]wFMCommunicate OK [11:32:09]requested_item fd.num is exist - process it [11:32:09]SAM_PROTO_GetFieldsCounters [11:32:09]wFMCommunicate request_size=4 [11:32:09]MH_SAM_APDU [11:32:09]CAPDU: 80 13 00 00 [11:32:09]Write to MH i2c: E2 08 00 EE 25 80 13 00 00 00 00 00 00 8F [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:09]Read from MH i2c: E2 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 62 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 62 00 EE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [11:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:09]wFMCommunicate OK [11:32:09]SAM_PROTO_GetFieldsCounters done [11:32:09]requested_item shift.num is exist - process it [11:32:09]requested_item shift.opened is exist - process it [11:32:09]req_shift_opened [11:32:09]FM_GetShiftState [11:32:09]SAM_PROTO_GetShiftState [11:32:09]wFMCommunicate request_size=4 [11:32:09]MH_SAM_APDU [11:32:09]CAPDU: 80 13 01 00 [11:32:09]Write to MH i2c: E2 08 00 EF 25 80 13 01 00 00 00 00 00 91 [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:09]Read from MH i2c: E2 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 0E 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 0E 00 EF 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C6 [11:32:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:32:09]wFMCommunicate OK [11:32:09]SAM_PROTO_GetShiftState done [11:32:09]FM_GetShiftState done [11:32:09]req_shift_opened done [11:32:09]requested_item shift.open_date is exist - process it [11:32:09]req_shift_open_date [11:32:09]req_shift_open_date done [11:32:09]produce_requested_data done [11:32:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112188,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:32:09]process_action_free print_text [11:32:09]json_value_free [11:32:09]json_value_free done [11:32:09]process_json_proto returns [11:32:09]Send response to host [11:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112188,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:32:09]free response buf [11:32:09]execute_script done [11:32:09]execute_script returns [11:32:09]free content buf [11:32:09]Sock 9.Close socket [11:32:09]Sock 9.Thread stoped [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:35]accept exits with 7 [11:32:35]New connection [11:32:35]New thread 3066957156 created [11:32:35]Thread 3066813796 joined [11:32:35]Waiting for new connection... [11:32:35] Sock 7.Parse request [11:32:35]Sock 7.Check first char [11:32:35]Sock 7.First char is OK [11:32:35]request: POST /json_proto HTTP/1.0 [11:32:35]Method: POST [11:32:35]URL: /json_proto [11:32:35]Method is POST - this is cgi request [11:32:35]url: /json_proto [11:32:35]query_string will be loaded in cgi processing [11:32:35]execute_cgi json_proto POST (null) [11:32:35]execute_cgi path=json_proto method=POST [11:32:35]POST find Content-Length [11:32:35]Host: 172.17.59.68:8080 [11:32:35]Content-Length: 677 [11:32:35]Content-Type: application/json [11:32:35] [11:32:35]POST finish read [11:32:35]Found Content-Length = 677 [11:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "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" ] } } [11:32:35]execute_script... [11:32: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)320861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "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" ] } } [11:32:35]POST & json_proto [11:32:35]process_json_proto [11:32:35]json parsed OK: [11:32:35]protocol is kg_v1.0 [11:32:35]action value=close_receipt [11:32:35]process_action close_receipt [11:32:35]cmd_close_receipt [11:32:35]MH_GetDate [11:32:35]Write to MH i2c: F0 00 00 F0 25 04 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: F0 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: F0 09 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: F0 09 00 F0 25 00 69 B6 76 66 BC EC 60 65 75 [11:32:35]GetLastDocTimeStamp 1719055884 [11:32:35]current date 1719055977 [11:32:35]FM_GetShiftState [11:32:35]SAM_PROTO_GetShiftState [11:32:35]wFMCommunicate request_size=4 [11:32:35]MH_SAM_APDU [11:32:35]CAPDU: 80 13 01 00 [11:32:35]Write to MH i2c: E2 08 00 F1 25 80 13 01 00 00 00 00 00 93 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:35]Read from MH i2c: E2 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 0E 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 0E 00 F1 25 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C8 [11:32:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:32:35]wFMCommunicate OK [11:32:35]SAM_PROTO_GetShiftState done [11:32:35]FM_GetShiftState done [11:32:35]opened in 1719020067 [11:32:35]opened+sec_in_day 1719106467 [11:32:35]quantity*price = 55055 [11:32:35]sum+1 = 55057 [11:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 55 22.06.2024 11:32 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112189 ФПД: 271912338276875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113257&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112189&fm=271912338276875&tin=02508201610067®Number=0000000000092771&sum=55000 [11:32:36]StoreToDocumentArchive [11:32:36]shift 391 fd 112189 [11:32:36]save to /storage/0391/doc_00112189 [11:32:36]save last doc name /storage/0391/doc_00112189 to /storage/kkm_last_doc_name [11:32:36]save OK [11:32:36]Clear old archive folders... [11:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:36]tlvbuf is 0112C1C0 [11:32:36]SAM_PROTO_ClearQueue [11:32:36]wFMCommunicate request_size=4 [11:32:36]MH_SAM_APDU [11:32:36]CAPDU: 80 09 00 00 [11:32:36]Write to MH i2c: E2 08 00 FE 25 80 09 00 00 00 00 00 00 95 [11:32:36]Write i2c OK [11:32:36]MH_I2C_Read... [11:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:36]Read from MH i2c: E2 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 03 00 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 03 00 FE 25 00 90 00 97 [11:32:36]RAPDU: 90 00 [11:32:36]wFMCommunicate OK [11:32:36]SAM_PROTO_ClearQueue done [11:32:36]KKMCreateOFDPacket [11:32:36]OFDProtocolAddRootSTLVToBuf [11:32:36]FM_MakeSignedData [11:32:36]FM_MakeSignedData [11:32:36]SAM_PROTO_SignData [11:32:36]wFMCommunicate request_size=4 [11:32:36]MH_SAM_APDU [11:32:36]CAPDU: 80 0D 01 02 [11:32:36]Write to MH i2c: E2 08 00 FF 25 80 0D 01 02 00 00 00 00 9D [11:32:36]Write i2c OK [11:32:36]MH_I2C_Read... [11:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:36]Read from MH i2c: E2 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 03 00 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 03 00 FF 25 00 90 00 98 [11:32:36]RAPDU: 90 00 [11:32:36]wFMCommunicate OK [11:32:36]wFMCommunicate request_size=255 [11:32:36]MH_SAM_APDU [11:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 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 37 00 00 00 F4 03 04 00 69 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B6 01 00 35 04 06 00 F7 [11:32:36]Write to MH i2c: E2 02 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 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 37 00 00 00 F4 03 04 00 69 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B6 01 00 35 04 06 00 F7 00 00 9A [11:32:36]Write i2c OK [11:32:36]MH_I2C_Read... [11:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:37]Read from MH i2c: E2 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 03 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 03 00 00 26 00 90 00 9A [11:32:37]RAPDU: 90 00 [11:32:37]wFMCommunicate OK [11:32:37]wFMCommunicate request_size=10 [11:32:37]MH_SAM_APDU [11:32:37]CAPDU: 80 0D 02 02 05 4D 86 55 42 0B [11:32:37]Write to MH i2c: E2 0D 00 01 26 80 0D 02 02 05 00 4D 86 55 42 0B 00 00 20 [11:32:37]Write i2c OK [11:32:37]MH_I2C_Read... [11:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:37]Read from MH i2c: E2 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 03 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 03 00 01 26 00 90 00 9B [11:32:37]RAPDU: 90 00 [11:32:37]wFMCommunicate OK [11:32:37]wFMCommunicate request_size=4 [11:32:37]MH_SAM_APDU [11:32:37]CAPDU: 80 0D 03 02 [11:32:37]Write to MH i2c: E2 08 00 02 26 80 0D 03 02 00 00 00 00 A3 [11:32:37]Write i2c OK [11:32:37]MH_I2C_Read... [11:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:37]Read from MH i2c: E2 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 0B 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 0B 00 02 26 00 15 FD BC 65 52 4F 9B 35 90 00 48 [11:32:37]RAPDU: 15 FD BC 65 52 4F 9B 35 90 00 [11:32:37]wFMCommunicate OK [11:32:37]SAM_PROTO_SignData done [11:32:37]FM_MakeSignedData done [11:32:37]CreateOFDProtocolMessage [11:32:37]wFMCommunicate request_size=4 [11:32:37]MH_SAM_APDU [11:32:37]CAPDU: 80 11 00 00 [11:32:37]Write to MH i2c: E2 08 00 03 26 80 11 00 00 00 00 00 00 A3 [11:32:37]Write i2c OK [11:32:37]MH_I2C_Read... [11:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:37]Read from MH i2c: E2 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 17 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: E2 17 00 03 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [11:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:32:37]wFMCommunicate OK [11:32:37]CreateOFDProtocolMessage done [11:32:37]OFDSenderStorePacket 112189 [11:32:37]StoreOFDPacket docnum=112189 [11:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 EC 07 01 5D E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 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 37 00 00 00 F4 03 04 00 69 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B6 01 00 35 04 06 00 F7 4D 86 55 42 0B 15 FD BC 65 52 4F 9B 35 [11:32:37]CheckFolder [11:32:37]dirname=/storage/ofd_packets [11:32:37]CheckFolder done [11:32:37]ProducePacketName [11:32:37]name=ofd_packets/00112189 [11:32:37]NVStorageSaveData ofd_packets/00112189 [11:32:37]File name is /storage/ofd_packets/00112189 [11:32:37]Write 301 bytes [11:32:37]NVStorageSaveData done [11:32:37]OFDSenderStorePacket done [11:32:37]KKMCreateOFDPacket done [11:32:37]NVStorageSaveData kkm_last_timestamp [11:32:37]File name is /storage/kkm_last_timestamp [11:32:37]Write 4 bytes [11:32:37]NVStorageSaveData done [11:32:37]OFD Sender: Processing packet 112189 [packets to send 38, broken 37] [11:32:37]ProducePacketName [11:32:37]name=ofd_packets/00112189 [11:32:37]OFD Sender: To server: pG, [11:32:37]CommunicateWithHost lk.salyk.kg:30040 [11:32:37]ConnectInit lk.salyk.kg [11:32:37]ExternCall_PrintAddStr [11:32:37]wPrintStart [11:32:37]Write to MH i2c: 01 00 00 04 26 2A [11:32:37]Write i2c OK [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: 01 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: 01 07 00 [11:32:37]MH_I2C_Read... [11:32:37]Read from MH i2c: 01 07 00 04 26 00 00 00 00 00 FF 0F 3F [11:32:37]RasterBufferAndPrint [11:32:37]line Счет N : (1)320861 [11:32:37]line ИНН: 02508201610067 [11:32:37]line Контрольно-Кассовый Чек [11:32:37]line ПРОДАЖА [11:32:37]line ТРК (МРК, ГНК) : 12 [11:32:37]line Товар: 2710124500 [11:32:37]line Аи-95-К-5 [11:32:37]line 7.450 * 73.90 [11:32:37]line = 550.56 [11:32:37]line НДС 12% НСП 1% [11:32:37]line > о реализуемом товаре [11:32:37]line ОКРУГЛЕНИЕ: -0.56 [11:32:37]line ИТОГО: 550.00 [11:32:37]line Внесено: 550.00 [11:32:37]line СДАЧА: 0.00 [11:32:37]line НСП 1% : 4.87 [11:32:37]line НДС 12% : 58.47 [11:32:37]line Наличными: 550.00 [11:32:37]line Безнал.: 0.00 [11:32:37]line Место: АЗС № 65 "Партнер Нефть" [11:32:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:32:37]line СНО: Общий режим [11:32:37]line Чек 55 22.06.2024 11:32 [11:32:37]line Смена: 391 ФФД: 1.0 [11:32:37]line ЗНМ: 0300000198 [11:32:37]line РНМ: 0000000000092771 [11:32:37]line Версия ККМ: 001 [11:32:37]line ФМ: 0000000000875083 [11:32:37]line ФД: 112189 [11:32:37]line ФПД: 271912338276875 [11:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113257&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112189&fm=271912338276875&tin=02508201610067®Number=0000000000092771&sum=55000 [11:32:37]Connected sock=11 [11:32:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 EC 07 01 5D E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 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 37 00 00 00 F4 03 04 00 69 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B6 01 00 35 04 06 00 F7 4D 86 55 42 0B 15 FD BC 65 52 4F 9B 35 [11:32:37]written 0, free lines is 4095 [11:32:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E0 6F 47 00 67 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B6 01 00 F4 03 04 00 76 4D 76 66 B6 04 01 00 00 83 FC C9 50 33 72 54 93 [11:32:37]CommunicateWithHost err = 0 [11:32:37]CheckOFDResponse [11:32:37]1017 (14) - 77093643461234 [11:32:37]1041 (16) - 0000000000875083 [11:32:37]1040 (4) - 112189 [11:32:37]1012 (4) - 22.06.2024 04:05 [11:32:37]1206 (1) - 0 [11:32:37]OFD Sender: Remove packet 112189 [11:32:37]ProducePacketName [11:32:37]name=ofd_packets/00112189 [11:32:37]NVStorageDeleteData [11:32:38]Write to MH i2c: 01 00 00 2F 26 55 [11:32:38]Write i2c OK [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: 01 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: 01 07 00 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: 01 07 00 2F 26 00 00 00 00 00 DE 0C 46 [11:32:38]RasterBufferAndPrint [11:32:38]line [11:32:38]line [11:32:38]line [11:32:38]line [11:32:38]line [11:32:38]written 0, free lines is 3300 [11:32:38]MH_Cut [11:32:38]Write to MH i2c: D1 01 00 36 26 01 2E [11:32:38]Write i2c OK [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: D1 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: D1 01 00 [11:32:38]MH_I2C_Read... [11:32:38]Read from MH i2c: D1 01 00 36 26 00 2D [11:32:38]Write to MH i2c: 01 00 00 37 26 5D [11:32:38]Write i2c OK [11:32:38]MH_I2C_Read... [11:32:38]OFD Sender: No OFD packet to send [11:32:38]*** Cut start [11:32:38]*** Partial cut [11:32:38]*** CUTSNS_PIN = 1 [11:32:38]*** CUTSNS_PIN = 0 [11:32:39]*** Brake cut motor [11:32:39]Read from MH i2c: 01 [11:32:39]MH_I2C_Read... [11:32:39]*** Stop cut motor [11:32:39]*** Cut end [11:32:39]Read from MH i2c: 01 07 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: 01 07 00 37 26 00 00 00 00 00 FF 0F 72 [11:32:39]process_action close_receipt done [11:32:39]requested_data is exist [11:32:39]produce_requested_data [11:32:39]requested_item fm.sn is exist - process it [11:32:39]wFMCommunicate request_size=4 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 11 00 00 [11:32:39]Write to MH i2c: E2 08 00 38 26 80 11 00 00 00 00 00 00 D8 [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:39]Read from MH i2c: E2 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 17 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 17 00 38 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2A [11:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:32:39]wFMCommunicate OK [11:32:39]requested_item fd.num is exist - process it [11:32:39]SAM_PROTO_GetFieldsCounters [11:32:39]wFMCommunicate request_size=4 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 13 00 00 [11:32:39]Write to MH i2c: E2 08 00 39 26 80 13 00 00 00 00 00 00 DB [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:39]Read from MH i2c: E2 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 62 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 62 00 39 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [11:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:39]wFMCommunicate OK [11:32:39]SAM_PROTO_GetFieldsCounters done [11:32:39]requested_item shift.num is exist - process it [11:32:39]requested_item shift.opened is exist - process it [11:32:39]req_shift_opened [11:32:39]FM_GetShiftState [11:32:39]SAM_PROTO_GetShiftState [11:32:39]wFMCommunicate request_size=4 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 13 01 00 [11:32:39]Write to MH i2c: E2 08 00 3A 26 80 13 01 00 00 00 00 00 DD [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:39]Read from MH i2c: E2 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 0E 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 0E 00 3A 26 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 12 [11:32:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:32:39]wFMCommunicate OK [11:32:39]SAM_PROTO_GetShiftState done [11:32:39]FM_GetShiftState done [11:32:39]req_shift_opened done [11:32:39]requested_item shift.open_date is exist - process it [11:32:39]req_shift_open_date [11:32:39]req_shift_open_date done [11:32:39]produce_requested_data done [11:32:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112189,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:32:39]process_action_free close_receipt [11:32:39]json_value_free [11:32:39]json_value_free done [11:32:39]process_json_proto returns [11:32:39]Send response to host [11:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112189,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:32:39]free response buf [11:32:39]execute_script done [11:32:39]execute_script returns [11:32:39]free content buf [11:32:39]Sock 7.Close socket [11:32:39]Sock 7.Thread stoped [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:21]accept exits with 9 [11:34:21]New connection [11:34:21]New thread 3066813796 created [11:34:21]Thread 3066957156 joined [11:34:21]Waiting for new connection... [11:34:21] Sock 9.Parse request [11:34:21]Sock 9.Check first char [11:34:21]Sock 9.First char is OK [11:34:21]request: POST /json_proto HTTP/1.0 [11:34:21]Method: POST [11:34:21]URL: /json_proto [11:34:21]Method is POST - this is cgi request [11:34:21]url: /json_proto [11:34:21]query_string will be loaded in cgi processing [11:34:21]execute_cgi json_proto POST (null) [11:34:21]execute_cgi path=json_proto method=POST [11:34:21]POST find Content-Length [11:34:21]Host: 172.17.59.68:8080 [11:34:21]Content-Length: 679 [11:34:21]Content-Type: application/json [11:34:21] [11:34:21]POST finish read [11:34:21]Found Content-Length = 679 [11:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:21]execute_script... [11: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)320862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:21]POST & json_proto [11:34:21]process_json_proto [11:34:21]json parsed OK: [11:34:21]protocol is kg_v1.0 [11:34:21]action value=close_receipt [11:34:21]process_action close_receipt [11:34:21]cmd_close_receipt [11:34:21]MH_GetDate [11:34:21]Write to MH i2c: F0 00 00 3B 26 50 [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: F0 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: F0 09 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: F0 09 00 3B 26 00 D3 B6 76 66 BC EC 60 65 2B [11:34:21]GetLastDocTimeStamp 1719055977 [11:34:21]current date 1719056083 [11:34:21]FM_GetShiftState [11:34:21]SAM_PROTO_GetShiftState [11:34:21]wFMCommunicate request_size=4 [11:34:21]MH_SAM_APDU [11:34:21]CAPDU: 80 13 01 00 [11:34:21]Write to MH i2c: E2 08 00 3C 26 80 13 01 00 00 00 00 00 DF [11:34:21]Write i2c OK [11:34:21]MH_I2C_Read... [11:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:21]Read from MH i2c: E2 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 0E 00 [11:34:21]MH_I2C_Read... [11:34:21]Read from MH i2c: E2 0E 00 3C 26 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 14 [11:34:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:34:21]wFMCommunicate OK [11:34:21]SAM_PROTO_GetShiftState done [11:34:21]FM_GetShiftState done [11:34:21]opened in 1719020067 [11:34:21]opened+sec_in_day 1719106467 [11:34:21]quantity*price = 100018 [11:34:21]sum+1 = 100020 [11:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 56 22.06.2024 11:34 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112190 ФПД: 227701080841150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113443&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112190&fm=227701080841150&tin=02508201610067®Number=0000000000092771&sum=100000 [11:34:23]StoreToDocumentArchive [11:34:23]shift 391 fd 112190 [11:34:23]save to /storage/0391/doc_00112190 [11:34:23]save last doc name /storage/0391/doc_00112190 to /storage/kkm_last_doc_name [11:34:23]save OK [11:34:23]Clear old archive folders... [11:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:23]tlvbuf is 011CA260 [11:34:23]SAM_PROTO_ClearQueue [11:34:23]wFMCommunicate request_size=4 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 09 00 00 [11:34:23]Write to MH i2c: E2 08 00 49 26 80 09 00 00 00 00 00 00 E1 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 49 26 00 90 00 E3 [11:34:23]RAPDU: 90 00 [11:34:23]wFMCommunicate OK [11:34:23]SAM_PROTO_ClearQueue done [11:34:23]KKMCreateOFDPacket [11:34:23]OFDProtocolAddRootSTLVToBuf [11:34:23]FM_MakeSignedData [11:34:23]FM_MakeSignedData [11:34:23]SAM_PROTO_SignData [11:34:23]wFMCommunicate request_size=4 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 0D 01 02 [11:34:23]Write to MH i2c: E2 08 00 4A 26 80 0D 01 02 00 00 00 00 E9 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 4A 26 00 90 00 E4 [11:34:23]RAPDU: 90 00 [11:34:23]wFMCommunicate OK [11:34:23]wFMCommunicate request_size=255 [11:34:23]MH_SAM_APDU [11:34: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D3 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B6 01 00 35 04 06 00 CF 17 CA 09 [11:34:23]Write to MH i2c: E2 02 01 4B 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D3 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B6 01 00 35 04 06 00 CF 17 CA 09 00 00 22 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 4B 26 00 90 00 E5 [11:34:23]RAPDU: 90 00 [11:34:23]wFMCommunicate OK [11:34:23]wFMCommunicate request_size=7 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 0D 02 02 02 DB BE [11:34:23]Write to MH i2c: E2 0A 00 4C 26 80 0D 02 02 02 00 DB BE 00 00 89 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [11:34:23]RAPDU: 90 00 [11:34:23]wFMCommunicate OK [11:34:23]wFMCommunicate request_size=4 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 0D 03 02 [11:34:23]Write to MH i2c: E2 08 00 4D 26 80 0D 03 02 00 00 00 00 EE [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]OFD Sender: No OFD packet to send [11:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 0B 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 0B 00 4D 26 00 B1 E1 14 B0 4A 82 97 6A 90 00 12 [11:34:23]RAPDU: B1 E1 14 B0 4A 82 97 6A 90 00 [11:34:23]wFMCommunicate OK [11:34:23]SAM_PROTO_SignData done [11:34:23]FM_MakeSignedData done [11:34:23]CreateOFDProtocolMessage [11:34:23]wFMCommunicate request_size=4 [11:34:23]MH_SAM_APDU [11:34:23]CAPDU: 80 11 00 00 [11:34:23]Write to MH i2c: E2 08 00 4E 26 80 11 00 00 00 00 00 00 EE [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:23]Read from MH i2c: E2 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 17 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: E2 17 00 4E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [11:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:34:23]wFMCommunicate OK [11:34:23]CreateOFDProtocolMessage done [11:34:23]OFDSenderStorePacket 112190 [11:34:23]StoreOFDPacket docnum=112190 [11:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3A CB 04 01 26 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D3 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B6 01 00 35 04 06 00 CF 17 CA 09 DB BE B1 E1 14 B0 4A 82 97 6A [11:34:23]CheckFolder [11:34:23]dirname=/storage/ofd_packets [11:34:23]CheckFolder done [11:34:23]ProducePacketName [11:34:23]name=ofd_packets/00112190 [11:34:23]NVStorageSaveData ofd_packets/00112190 [11:34:23]File name is /storage/ofd_packets/00112190 [11:34:23]Write 298 bytes [11:34:23]NVStorageSaveData done [11:34:23]OFDSenderStorePacket done [11:34:23]KKMCreateOFDPacket done [11:34:23]NVStorageSaveData kkm_last_timestamp [11:34:23]File name is /storage/kkm_last_timestamp [11:34:23]Write 4 bytes [11:34:23]NVStorageSaveData done [11:34:23]ExternCall_PrintAddStr [11:34:23]wPrintStart [11:34:23]Write to MH i2c: 01 00 00 4F 26 75 [11:34:23]Write i2c OK [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: 01 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: 01 07 00 [11:34:23]MH_I2C_Read... [11:34:23]Read from MH i2c: 01 07 00 4F 26 00 00 00 00 00 FF 0F 8A [11:34:23]RasterBufferAndPrint [11:34:23]line Счет N : (1)320862 [11:34:23]line ИНН: 02508201610067 [11:34:23]line Контрольно-Кассовый Чек [11:34:23]line ПРОДАЖА [11:34:23]line ТРК (МРК, ГНК) : 22 [11:34:23]line Товар: 2710194210 [11:34:23]line ДТ-К-5 [11:34:23]line 13.720 * 72.90 [11:34:23]line = 1000.19 [11:34:23]line НДС 12% НСП 1% [11:34:23]line > о реализуемом товаре [11:34:23]line ОКРУГЛЕНИЕ: -0.19 [11:34:23]line ИТОГО: 1000.00 [11:34:23]line Внесено: 1000.00 [11:34:23]line СДАЧА: 0.00 [11:34:23]line НСП 1% : 8.85 [11:34:23]line НДС 12% : 106.21 [11:34:23]line Наличными: 1000.00 [11:34:23]line Безнал.: 0.00 [11:34:23]line Место: АЗС № 65 "Партнер Нефть" [11:34:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:34:23]line СНО: Общий режим [11:34:23]line Чек 56 22.06.2024 11:34 [11:34:23]line Смена: 391 ФФД: 1.0 [11:34:23]line ЗНМ: 0300000198 [11:34:23]line РНМ: 0000000000092771 [11:34:23]line Версия ККМ: 001 [11:34:23]line ФМ: 0000000000875083 [11:34:23]line ФД: 112190 [11:34:23]line ФПД: 227701080841150 [11:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113443&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112190&fm=227701080841150&tin=02508201610067®Number=0000000000092771&sum=100000 [11:34:23]OFD Sender: Processing packet 112190 [packets to send 38, broken 37] [11:34:23]ProducePacketName [11:34:23]name=ofd_packets/00112190 [11:34:23]OFD Sender: To server: pG, [11:34:23]CommunicateWithHost lk.salyk.kg:30040 [11:34:23]ConnectInit lk.salyk.kg [11:34:23]written 0, free lines is 4095 [11:34:23]Connected sock=10 [11: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 35 30 38 33 0C 01 00 00 3A CB 04 01 26 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D3 B6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B6 01 00 35 04 06 00 CF 17 CA 09 DB BE B1 E1 14 B0 4A 82 97 6A [11:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 05 6D 47 00 FE C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B6 01 00 F4 03 04 00 E1 4D 76 66 B6 04 01 00 00 13 18 67 CF 86 6D DF FB [11:34:24]CommunicateWithHost err = 0 [11:34:24]CheckOFDResponse [11:34:24]1017 (14) - 77093643461234 [11:34:24]1041 (16) - 0000000000875083 [11:34:24]1040 (4) - 112190 [11:34:24]1012 (4) - 22.06.2024 04:06 [11:34:24]1206 (1) - 0 [11:34:24]OFD Sender: Remove packet 112190 [11:34:24]ProducePacketName [11:34:24]name=ofd_packets/00112190 [11:34:24]NVStorageDeleteData [11:34:24]Write to MH i2c: 01 00 00 7A 26 A0 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: 01 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: 01 07 00 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: 01 07 00 7A 26 00 00 00 00 00 D6 0C 89 [11:34:24]RasterBufferAndPrint [11:34:24]line [11:34:24]line [11:34:24]line [11:34:24]line [11:34:24]line [11:34:24]written 0, free lines is 3290 [11:34:24]MH_Cut [11:34:24]Write to MH i2c: D1 01 00 81 26 01 79 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: D1 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: D1 01 00 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: D1 01 00 81 26 00 78 [11:34:24]Write to MH i2c: 01 00 00 82 26 A8 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]OFD Sender: No OFD packet to send [11:34:25]*** Cut start [11:34:25]*** Partial cut [11:34:25]*** CUTSNS_PIN = 1 [11:34:25]*** CUTSNS_PIN = 0 [11:34:25]*** Brake cut motor [11:34:25]Read from MH i2c: 01 [11:34:25]MH_I2C_Read... [11:34:25]*** Stop cut motor [11:34:25]*** Cut end [11:34:25]Read from MH i2c: 01 07 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: 01 07 00 82 26 00 00 00 00 00 FF 0F BD [11:34:25]process_action close_receipt done [11:34:25]requested_data is exist [11:34:25]produce_requested_data [11:34:25]requested_item fm.sn is exist - process it [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 11 00 00 [11:34:25]Write to MH i2c: E2 08 00 83 26 80 11 00 00 00 00 00 00 23 [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 17 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 17 00 83 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [11:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:34:25]wFMCommunicate OK [11:34:25]requested_item fd.num is exist - process it [11:34:25]SAM_PROTO_GetFieldsCounters [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 13 00 00 [11:34:25]Write to MH i2c: E2 08 00 84 26 80 13 00 00 00 00 00 00 26 [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 62 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 62 00 84 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:25]wFMCommunicate OK [11:34:25]SAM_PROTO_GetFieldsCounters done [11:34:25]requested_item shift.num is exist - process it [11:34:25]requested_item shift.opened is exist - process it [11:34:25]req_shift_opened [11:34:25]FM_GetShiftState [11:34:25]SAM_PROTO_GetShiftState [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 13 01 00 [11:34:25]Write to MH i2c: E2 08 00 85 26 80 13 01 00 00 00 00 00 28 [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 0E 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 0E 00 85 26 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5D [11:34:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:34:25]wFMCommunicate OK [11:34:25]SAM_PROTO_GetShiftState done [11:34:25]FM_GetShiftState done [11:34:25]req_shift_opened done [11:34:25]requested_item shift.open_date is exist - process it [11:34:25]req_shift_open_date [11:34:25]req_shift_open_date done [11:34:25]produce_requested_data done [11:34:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112190,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:34:25]process_action_free close_receipt [11:34:25]json_value_free [11:34:25]json_value_free done [11:34:25]process_json_proto returns [11:34:25]Send response to host [11:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112190,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:34:25]free response buf [11:34:25]execute_script done [11:34:25]execute_script returns [11:34:25]free content buf [11:34:25]Sock 9.Close socket [11:34:25]Sock 9.Thread stoped [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:57]accept exits with 7 [11:36:57]New connection [11:36:57]New thread 3066957156 created [11:36:57]Thread 3066813796 joined [11:36:57]Waiting for new connection... [11:36:57] Sock 7.Parse request [11:36:57]Sock 7.Check first char [11:36:57]Sock 7.First char is OK [11:36:57]request: POST /json_proto HTTP/1.0 [11:36:57]Method: POST [11:36:57]URL: /json_proto [11:36:57]Method is POST - this is cgi request [11:36:57]url: /json_proto [11:36:57]query_string will be loaded in cgi processing [11:36:57]execute_cgi json_proto POST (null) [11:36:57]execute_cgi path=json_proto method=POST [11:36:57]POST find Content-Length [11:36:57]Host: 172.17.59.68:8080 [11:36:57]Content-Length: 682 [11:36:57]Content-Type: application/json [11:36:57] [11:36:57]POST finish read [11:36:57]Found Content-Length = 682 [11:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:57]execute_script... [11:36: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)320863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:57]POST & json_proto [11:36:57]process_json_proto [11:36:57]json parsed OK: [11:36:57]protocol is kg_v1.0 [11:36:57]action value=close_receipt [11:36:57]process_action close_receipt [11:36:57]cmd_close_receipt [11:36:57]MH_GetDate [11:36:57]Write to MH i2c: F0 00 00 86 26 9B [11:36:57]Write i2c OK [11:36:57]MH_I2C_Read... [11:36:57]Read from MH i2c: F0 [11:36:57]MH_I2C_Read... [11:36:57]Read from MH i2c: F0 09 00 [11:36:57]MH_I2C_Read... [11:36:57]Read from MH i2c: F0 09 00 86 26 00 6E B7 76 66 BC EC 60 65 12 [11:36:57]GetLastDocTimeStamp 1719056083 [11:36:57]current date 1719056238 [11:36:57]FM_GetShiftState [11:36:57]SAM_PROTO_GetShiftState [11:36:57]wFMCommunicate request_size=4 [11:36:57]MH_SAM_APDU [11:36:57]CAPDU: 80 13 01 00 [11:36:57]Write to MH i2c: E2 08 00 87 26 80 13 01 00 00 00 00 00 2A [11:36:57]Write i2c OK [11:36:57]MH_I2C_Read... [11:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:57]Read from MH i2c: E2 [11:36:57]MH_I2C_Read... [11:36:57]Read from MH i2c: E2 0E 00 [11:36:57]MH_I2C_Read... [11:36:57]Read from MH i2c: E2 0E 00 87 26 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5F [11:36:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:36:57]wFMCommunicate OK [11:36:57]SAM_PROTO_GetShiftState done [11:36:57]FM_GetShiftState done [11:36:57]opened in 1719020067 [11:36:57]opened+sec_in_day 1719106467 [11:36:57]quantity*price = 250003 [11:36:57]sum+1 = 250005 [11:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 57 22.06.2024 11:37 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112191 ФПД: 61855594875086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112191&fm=61855594875086&tin=02508201610067®Number=0000000000092771&sum=250000 [11:36:58]StoreToDocumentArchive [11:36:58]shift 391 fd 112191 [11:36:58]save to /storage/0391/doc_00112191 [11:36:58]save last doc name /storage/0391/doc_00112191 to /storage/kkm_last_doc_name [11:36:58]save OK [11:36:58]Clear old archive folders... [11:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:58]tlvbuf is B6EC25B0 [11:36:58]SAM_PROTO_ClearQueue [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 09 00 00 [11:36:58]Write to MH i2c: E2 08 00 94 26 80 09 00 00 00 00 00 00 2C [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 94 26 00 90 00 2E [11:36:58]RAPDU: 90 00 [11:36:58]wFMCommunicate OK [11:36:58]SAM_PROTO_ClearQueue done [11:36:58]KKMCreateOFDPacket [11:36:58]OFDProtocolAddRootSTLVToBuf [11:36:58]FM_MakeSignedData [11:36:58]FM_MakeSignedData [11:36:58]SAM_PROTO_SignData [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 0D 01 02 [11:36:58]Write to MH i2c: E2 08 00 95 26 80 0D 01 02 00 00 00 00 34 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 95 26 00 90 00 2F [11:36:58]RAPDU: 90 00 [11:36:58]wFMCommunicate OK [11:36:58]wFMCommunicate request_size=255 [11:36:58]MH_SAM_APDU [11:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 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 39 00 00 00 F4 03 04 00 6E B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B6 01 00 35 04 06 00 38 [11:36:58]Write to MH i2c: E2 02 01 96 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 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 39 00 00 00 F4 03 04 00 6E B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B6 01 00 35 04 06 00 38 00 00 CB [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 96 26 00 90 00 30 [11:36:58]RAPDU: 90 00 [11:36:58]wFMCommunicate OK [11:36:58]wFMCommunicate request_size=10 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 0D 02 02 05 41 E0 C2 88 CE [11:36:58]Write to MH i2c: E2 0D 00 97 26 80 0D 02 02 05 00 41 E0 C2 88 CE 00 00 7A [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [11:36:58]RAPDU: 90 00 [11:36:58]wFMCommunicate OK [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 0D 03 02 [11:36:58]Write to MH i2c: E2 08 00 98 26 80 0D 03 02 00 00 00 00 39 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0B 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0B 00 98 26 00 70 02 4D AE 54 1A DE A2 90 00 95 [11:36:58]RAPDU: 70 02 4D AE 54 1A DE A2 90 00 [11:36:58]wFMCommunicate OK [11:36:58]SAM_PROTO_SignData done [11:36:58]FM_MakeSignedData done [11:36:58]CreateOFDProtocolMessage [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 11 00 00 [11:36:58]Write to MH i2c: E2 08 00 99 26 80 11 00 00 00 00 00 00 39 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 17 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 17 00 99 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [11:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:36:58]wFMCommunicate OK [11:36:58]CreateOFDProtocolMessage done [11:36:58]OFDSenderStorePacket 112191 [11:36:58]StoreOFDPacket docnum=112191 [11:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 4E 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 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 39 00 00 00 F4 03 04 00 6E B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B6 01 00 35 04 06 00 38 41 E0 C2 88 CE 70 02 4D AE 54 1A DE A2 [11:36:58]CheckFolder [11:36:58]dirname=/storage/ofd_packets [11:36:58]CheckFolder done [11:36:58]ProducePacketName [11:36:58]name=ofd_packets/00112191 [11:36:58]NVStorageSaveData ofd_packets/00112191 [11:36:58]File name is /storage/ofd_packets/00112191 [11:36:58]Write 301 bytes [11:36:58]NVStorageSaveData done [11:36:58]OFDSenderStorePacket done [11:36:58]KKMCreateOFDPacket done [11:36:58]NVStorageSaveData kkm_last_timestamp [11:36:58]File name is /storage/kkm_last_timestamp [11:36:58]Write 4 bytes [11:36:58]NVStorageSaveData done [11:36:58]ExternCall_PrintAddStr [11:36:58]wPrintStart [11:36:58]Write to MH i2c: 01 00 00 9A 26 C0 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: 01 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: 01 07 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: 01 07 00 9A 26 00 00 00 00 00 FF 0F D5 [11:36:58]RasterBufferAndPrint [11:36:58]line Счет N : (1)320863 [11:36:58]line ИНН: 02508201610067 [11:36:58]line Контрольно-Кассовый Чек [11:36:58]line ПРОДАЖА [11:36:58]line ТРК (МРК, ГНК) : 12 [11:36:58]line Товар: 2710124500 [11:36:58]line Аи-95-К-5 [11:36:58]line 33.830 * 73.90 [11:36:58]line = 2500.04 [11:36:58]line НДС 12% НСП 1% [11:36:58]line > о реализуемом товаре [11:36:58]line ОКРУГЛЕНИЕ: -0.04 [11:36:58]line ИТОГО: 2500.00 [11:36:58]line Внесено: 2500.00 [11:36:58]line СДАЧА: 0.00 [11:36:58]line НСП 1% : 22.12 [11:36:58]line НДС 12% : 265.49 [11:36:58]line Наличными: 2500.00 [11:36:58]line Безнал.: 0.00 [11:36:58]line Место: АЗС № 65 "Партнер Нефть" [11:36:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:36:58]line СНО: Общий режим [11:36:58]line Чек 57 22.06.2024 11:37 [11:36:58]line Смена: 391 ФФД: 1.0 [11:36:58]line ЗНМ: 0300000198 [11:36:58]line РНМ: 0000000000092771 [11:36:58]line Версия ККМ: 001 [11:36:58]line ФМ: 0000000000875083 [11:36:58]line ФД: 112191 [11:36:58]line ФПД: 61855594875086 [11:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112191&fm=61855594875086&tin=02508201610067®Number=0000000000092771&sum=250000 [11:36:59]OFD Sender: Processing packet 112191 [packets to send 38, broken 37] [11:36:59]ProducePacketName [11:36:59]name=ofd_packets/00112191 [11:36:59]OFD Sender: To server: pG, [11:36:59]CommunicateWithHost lk.salyk.kg:30040 [11:36:59]ConnectInit lk.salyk.kg [11:36:59]written 0, free lines is 4095 [11:36:59]Connected sock=10 [11:36:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 4E 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 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 39 00 00 00 F4 03 04 00 6E B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B6 01 00 35 04 06 00 38 41 E0 C2 88 CE 70 02 4D AE 54 1A DE A2 [11:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A6 2F 47 00 AB 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B6 01 00 F4 03 04 00 7C 4E 76 66 B6 04 01 00 00 BE DA 55 71 A0 6F EE B2 [11:36:59]CommunicateWithHost err = 0 [11:36:59]CheckOFDResponse [11:36:59]1017 (14) - 77093643461234 [11:36:59]1041 (16) - 0000000000875083 [11:36:59]1040 (4) - 112191 [11:36:59]1012 (4) - 22.06.2024 04:09 [11:36:59]1206 (1) - 0 [11:36:59]OFD Sender: Remove packet 112191 [11:36:59]ProducePacketName [11:36:59]name=ofd_packets/00112191 [11:36:59]NVStorageDeleteData [11:36:59]Write to MH i2c: 01 00 00 C5 26 EB [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 07 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 07 00 C5 26 00 00 00 00 00 ED 0C EB [11:36:59]RasterBufferAndPrint [11:36:59]line [11:36:59]line [11:36:59]line [11:36:59]line [11:36:59]line [11:36:59]written 0, free lines is 3315 [11:36:59]MH_Cut [11:36:59]Write to MH i2c: D1 01 00 CC 26 01 C4 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: D1 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: D1 01 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: D1 01 00 CC 26 00 C3 [11:36:59]Write to MH i2c: 01 00 00 CD 26 F3 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]OFD Sender: No OFD packet to send [11:37:00]*** Cut start [11:37:00]*** Partial cut [11:37:00]*** CUTSNS_PIN = 1 [11:37:00]*** CUTSNS_PIN = 0 [11:37:00]*** Brake cut motor [11:37:00]Read from MH i2c: 01 [11:37:00]MH_I2C_Read... [11:37:00]*** Stop cut motor [11:37:00]*** Cut end [11:37:00]Read from MH i2c: 01 07 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 CD 26 00 00 00 00 00 FF 0F 08 [11:37:00]process_action close_receipt done [11:37:00]requested_data is exist [11:37:00]produce_requested_data [11:37:00]requested_item fm.sn is exist - process it [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 11 00 00 [11:37:00]Write to MH i2c: E2 08 00 CE 26 80 11 00 00 00 00 00 00 6E [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 CE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C0 [11:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:37:00]wFMCommunicate OK [11:37:00]requested_item fd.num is exist - process it [11:37:00]SAM_PROTO_GetFieldsCounters [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 13 00 00 [11:37:00]Write to MH i2c: E2 08 00 CF 26 80 13 00 00 00 00 00 00 71 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:01]Read from MH i2c: E2 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: E2 62 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: E2 62 00 CF 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:37:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:01]wFMCommunicate OK [11:37:01]SAM_PROTO_GetFieldsCounters done [11:37:01]requested_item shift.num is exist - process it [11:37:01]requested_item shift.opened is exist - process it [11:37:01]req_shift_opened [11:37:01]FM_GetShiftState [11:37:01]SAM_PROTO_GetShiftState [11:37:01]wFMCommunicate request_size=4 [11:37:01]MH_SAM_APDU [11:37:01]CAPDU: 80 13 01 00 [11:37:01]Write to MH i2c: E2 08 00 D0 26 80 13 01 00 00 00 00 00 73 [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:01]Read from MH i2c: E2 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: E2 0E 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: E2 0E 00 D0 26 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A8 [11:37:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:37:01]wFMCommunicate OK [11:37:01]SAM_PROTO_GetShiftState done [11:37:01]FM_GetShiftState done [11:37:01]req_shift_opened done [11:37:01]requested_item shift.open_date is exist - process it [11:37:01]req_shift_open_date [11:37:01]req_shift_open_date done [11:37:01]produce_requested_data done [11:37:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112191,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:37:01]process_action_free close_receipt [11:37:01]json_value_free [11:37:01]json_value_free done [11:37:01]process_json_proto returns [11:37:01]Send response to host [11:37:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112191,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:37:01]free response buf [11:37:01]execute_script done [11:37:01]execute_script returns [11:37:01]free content buf [11:37:01]Sock 7.Close socket [11:37:01]Sock 7.Thread stoped [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]accept exits with 9 [11:38:19]New connection [11:38:19]New thread 3066813796 created [11:38:19]Thread 3066957156 joined [11:38:19]Waiting for new connection... [11:38:19] Sock 9.Parse request [11:38:19]Sock 9.Check first char [11:38:19]Sock 9.First char is OK [11:38:19]request: POST /json_proto HTTP/1.0 [11:38:19]Method: POST [11:38:19]URL: /json_proto [11:38:19]Method is POST - this is cgi request [11:38:19]url: /json_proto [11:38:19]query_string will be loaded in cgi processing [11:38:19]execute_cgi json_proto POST (null) [11:38:19]execute_cgi path=json_proto method=POST [11:38:19]POST find Content-Length [11:38:19]Host: 172.17.59.68:8080 [11:38:19]Content-Length: 679 [11:38:19]Content-Type: application/json [11:38:19] [11:38:19]POST finish read [11:38:19]Found Content-Length = 679 [11:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:19]execute_script... [11: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)320864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:19]POST & json_proto [11:38:19]process_json_proto [11:38:19]json parsed OK: [11:38:19]protocol is kg_v1.0 [11:38:19]action value=close_receipt [11:38:19]process_action close_receipt [11:38:19]cmd_close_receipt [11:38:19]MH_GetDate [11:38:19]Write to MH i2c: F0 00 00 D1 26 E6 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: F0 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: F0 09 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: F0 09 00 D1 26 00 C0 B7 76 66 BC EC 60 65 AF [11:38:19]GetLastDocTimeStamp 1719056238 [11:38:19]current date 1719056320 [11:38:19]FM_GetShiftState [11:38:19]SAM_PROTO_GetShiftState [11:38:19]wFMCommunicate request_size=4 [11:38:19]MH_SAM_APDU [11:38:19]CAPDU: 80 13 01 00 [11:38:19]Write to MH i2c: E2 08 00 D2 26 80 13 01 00 00 00 00 00 75 [11:38:19]Write i2c OK [11:38:19]MH_I2C_Read... [11:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:19]Read from MH i2c: E2 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 0E 00 [11:38:19]MH_I2C_Read... [11:38:19]Read from MH i2c: E2 0E 00 D2 26 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AA [11:38:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:38:19]wFMCommunicate OK [11:38:19]SAM_PROTO_GetShiftState done [11:38:19]FM_GetShiftState done [11:38:19]opened in 1719020067 [11:38:19]opened+sec_in_day 1719106467 [11:38:19]quantity*price = 100018 [11:38:19]sum+1 = 100020 [11:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 58 22.06.2024 11:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112192 ФПД: 8756254136554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112192&fm=8756254136554&tin=02508201610067®Number=0000000000092771&sum=100000 [11:38:20]StoreToDocumentArchive [11:38:20]shift 391 fd 112192 [11:38:20]save to /storage/0391/doc_00112192 [11:38:20]save last doc name /storage/0391/doc_00112192 to /storage/kkm_last_doc_name [11:38:20]save OK [11:38:20]Clear old archive folders... [11:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:20]tlvbuf is B6EC2A50 [11:38:20]SAM_PROTO_ClearQueue [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 09 00 00 [11:38:20]Write to MH i2c: E2 08 00 DF 26 80 09 00 00 00 00 00 00 77 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 DF 26 00 90 00 79 [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]SAM_PROTO_ClearQueue done [11:38:20]KKMCreateOFDPacket [11:38:20]OFDProtocolAddRootSTLVToBuf [11:38:20]FM_MakeSignedData [11:38:20]FM_MakeSignedData [11:38:20]SAM_PROTO_SignData [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 0D 01 02 [11:38:20]Write to MH i2c: E2 08 00 E0 26 80 0D 01 02 00 00 00 00 7F [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 E0 26 00 90 00 7A [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]wFMCommunicate request_size=255 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C0 B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B6 01 00 35 04 06 00 07 F6 B9 6A [11:38:20]Write to MH i2c: E2 02 01 E1 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C0 B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B6 01 00 35 04 06 00 07 F6 B9 6A 00 00 11 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]wFMCommunicate request_size=7 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 0D 02 02 02 D8 EA [11:38:20]Write to MH i2c: E2 0A 00 E2 26 80 0D 02 02 02 00 D8 EA 00 00 48 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [11:38:20]RAPDU: 90 00 [11:38:20]wFMCommunicate OK [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 0D 03 02 [11:38:20]Write to MH i2c: E2 08 00 E3 26 80 0D 03 02 00 00 00 00 84 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 0B 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 0B 00 E3 26 00 FD E7 6A 39 67 31 50 0A 90 00 FE [11:38:20]RAPDU: FD E7 6A 39 67 31 50 0A 90 00 [11:38:20]wFMCommunicate OK [11:38:20]SAM_PROTO_SignData done [11:38:20]FM_MakeSignedData done [11:38:20]CreateOFDProtocolMessage [11:38:20]wFMCommunicate request_size=4 [11:38:20]MH_SAM_APDU [11:38:20]CAPDU: 80 11 00 00 [11:38:20]Write to MH i2c: E2 08 00 E4 26 80 11 00 00 00 00 00 00 84 [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:20]Read from MH i2c: E2 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 17 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: E2 17 00 E4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [11:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:20]wFMCommunicate OK [11:38:20]CreateOFDProtocolMessage done [11:38:20]OFDSenderStorePacket 112192 [11:38:20]StoreOFDPacket docnum=112192 [11:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C5 23 04 01 C3 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C0 B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B6 01 00 35 04 06 00 07 F6 B9 6A D8 EA FD E7 6A 39 67 31 50 0A [11:38:20]CheckFolder [11:38:20]dirname=/storage/ofd_packets [11:38:20]CheckFolder done [11:38:20]ProducePacketName [11:38:20]name=ofd_packets/00112192 [11:38:20]NVStorageSaveData ofd_packets/00112192 [11:38:20]File name is /storage/ofd_packets/00112192 [11:38:20]Write 298 bytes [11:38:20]NVStorageSaveData done [11:38:20]OFDSenderStorePacket done [11:38:20]KKMCreateOFDPacket done [11:38:20]NVStorageSaveData kkm_last_timestamp [11:38:20]File name is /storage/kkm_last_timestamp [11:38:20]Write 4 bytes [11:38:20]NVStorageSaveData done [11:38:20]ExternCall_PrintAddStr [11:38:20]wPrintStart [11:38:20]Write to MH i2c: 01 00 00 E5 26 0B [11:38:20]Write i2c OK [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 07 00 [11:38:20]MH_I2C_Read... [11:38:20]Read from MH i2c: 01 07 00 E5 26 00 00 00 00 00 FF 0F 20 [11:38:20]RasterBufferAndPrint [11:38:20]line Счет N : (1)320864 [11:38:20]line ИНН: 02508201610067 [11:38:20]line Контрольно-Кассовый Чек [11:38:20]line ПРОДАЖА [11:38:20]line ТРК (МРК, ГНК) : 22 [11:38:20]line Товар: 2710194210 [11:38:20]line ДТ-К-5 [11:38:20]line 13.720 * 72.90 [11:38:20]line = 1000.19 [11:38:20]line НДС 12% НСП 1% [11:38:20]line > о реализуемом товаре [11:38:20]line ОКРУГЛЕНИЕ: -0.19 [11:38:20]line ИТОГО: 1000.00 [11:38:20]line Внесено: 1000.00 [11:38:20]line СДАЧА: 0.00 [11:38:20]line НСП 1% : 8.85 [11:38:20]line НДС 12% : 106.21 [11:38:20]line Наличными: 1000.00 [11:38:20]line Безнал.: 0.00 [11:38:20]line Место: АЗС № 65 "Партнер Нефть" [11:38:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:38:20]line СНО: Общий режим [11:38:20]line Чек 58 22.06.2024 11:38 [11:38:20]line Смена: 391 ФФД: 1.0 [11:38:20]line ЗНМ: 0300000198 [11:38:20]line РНМ: 0000000000092771 [11:38:20]line Версия ККМ: 001 [11:38:20]line ФМ: 0000000000875083 [11:38:20]line ФД: 112192 [11:38:20]line ФПД: 8756254136554 [11:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112192&fm=8756254136554&tin=02508201610067®Number=0000000000092771&sum=100000 [11:38:21]written 0, free lines is 4095 [11:38:21]OFD Sender: Processing packet 112192 [packets to send 38, broken 37] [11:38:21]ProducePacketName [11:38:21]name=ofd_packets/00112192 [11:38:21]OFD Sender: To server: pG, [11:38:21]CommunicateWithHost lk.salyk.kg:30040 [11:38:21]ConnectInit lk.salyk.kg [11:38:21]Connected sock=10 [11: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 35 30 38 33 0C 01 00 00 C5 23 04 01 C3 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C0 B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B6 01 00 35 04 06 00 07 F6 B9 6A D8 EA FD E7 6A 39 67 31 50 0A [11:38:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB 15 47 00 77 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B6 01 00 F4 03 04 00 CE 4E 76 66 B6 04 01 00 00 75 37 82 7C A3 69 FE 4A [11:38:21]CommunicateWithHost err = 0 [11:38:21]CheckOFDResponse [11:38:21]1017 (14) - 77093643461234 [11:38:21]1041 (16) - 0000000000875083 [11:38:21]1040 (4) - 112192 [11:38:21]1012 (4) - 22.06.2024 04:10 [11:38:21]1206 (1) - 0 [11:38:21]OFD Sender: Remove packet 112192 [11:38:21]ProducePacketName [11:38:21]name=ofd_packets/00112192 [11:38:21]NVStorageDeleteData [11:38:21]Write to MH i2c: 01 00 00 10 27 37 [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 07 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: 01 07 00 10 27 00 00 00 00 00 FA 0C 44 [11:38:21]RasterBufferAndPrint [11:38:21]line [11:38:21]line [11:38:21]line [11:38:21]line [11:38:21]line [11:38:21]written 0, free lines is 3329 [11:38:21]MH_Cut [11:38:21]Write to MH i2c: D1 01 00 17 27 01 10 [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: D1 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: D1 01 00 [11:38:21]MH_I2C_Read... [11:38:21]Read from MH i2c: D1 01 00 17 27 00 0F [11:38:21]Write to MH i2c: 01 00 00 18 27 3F [11:38:21]Write i2c OK [11:38:21]MH_I2C_Read... [11:38:21]OFD Sender: No OFD packet to send [11:38:22]*** Cut start [11:38:22]*** Partial cut [11:38:22]*** CUTSNS_PIN = 1 [11:38:22]*** CUTSNS_PIN = 0 [11:38:22]*** Brake cut motor [11:38:22]Read from MH i2c: 01 [11:38:22]MH_I2C_Read... [11:38:22]*** Stop cut motor [11:38:22]*** Cut end [11:38:22]Read from MH i2c: 01 07 00 [11:38:22]MH_I2C_Read... [11:38:22]Read from MH i2c: 01 07 00 18 27 00 00 00 00 00 FF 0F 54 [11:38:22]process_action close_receipt done [11:38:22]requested_data is exist [11:38:22]produce_requested_data [11:38:22]requested_item fm.sn is exist - process it [11:38:22]wFMCommunicate request_size=4 [11:38:22]MH_SAM_APDU [11:38:22]CAPDU: 80 11 00 00 [11:38:22]Write to MH i2c: E2 08 00 19 27 80 11 00 00 00 00 00 00 BA [11:38:22]Write i2c OK [11:38:22]MH_I2C_Read... [11:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:23]Read from MH i2c: E2 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 17 00 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 17 00 19 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [11:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:23]wFMCommunicate OK [11:38:23]requested_item fd.num is exist - process it [11:38:23]SAM_PROTO_GetFieldsCounters [11:38:23]wFMCommunicate request_size=4 [11:38:23]MH_SAM_APDU [11:38:23]CAPDU: 80 13 00 00 [11:38:23]Write to MH i2c: E2 08 00 1A 27 80 13 00 00 00 00 00 00 BD [11:38:23]Write i2c OK [11:38:23]MH_I2C_Read... [11:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:23]Read from MH i2c: E2 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 62 00 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 62 00 1A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:23]wFMCommunicate OK [11:38:23]SAM_PROTO_GetFieldsCounters done [11:38:23]requested_item shift.num is exist - process it [11:38:23]requested_item shift.opened is exist - process it [11:38:23]req_shift_opened [11:38:23]FM_GetShiftState [11:38:23]SAM_PROTO_GetShiftState [11:38:23]wFMCommunicate request_size=4 [11:38:23]MH_SAM_APDU [11:38:23]CAPDU: 80 13 01 00 [11:38:23]Write to MH i2c: E2 08 00 1B 27 80 13 01 00 00 00 00 00 BF [11:38:23]Write i2c OK [11:38:23]MH_I2C_Read... [11:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:23]Read from MH i2c: E2 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 0E 00 [11:38:23]MH_I2C_Read... [11:38:23]Read from MH i2c: E2 0E 00 1B 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F4 [11:38:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:38:23]wFMCommunicate OK [11:38:23]SAM_PROTO_GetShiftState done [11:38:23]FM_GetShiftState done [11:38:23]req_shift_opened done [11:38:23]requested_item shift.open_date is exist - process it [11:38:23]req_shift_open_date [11:38:23]req_shift_open_date done [11:38:23]produce_requested_data done [11:38:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112192,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:38:23]process_action_free close_receipt [11:38:23]json_value_free [11:38:23]json_value_free done [11:38:23]process_json_proto returns [11:38:23]Send response to host [11:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112192,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:38:23]free response buf [11:38:23]execute_script done [11:38:23]execute_script returns [11:38:23]free content buf [11:38:23]Sock 9.Close socket [11:38:23]Sock 9.Thread stoped [11:38:26]OFD Sender: No OFD packet to send [11:38:30]accept exits with 7 [11:38:30]New connection [11:38:30]New thread 3066957156 created [11:38:30]Thread 3066813796 joined [11:38:30]Waiting for new connection... [11:38:30] Sock 7.Parse request [11:38:30]Sock 7.Check first char [11:38:30]Sock 7.First char is OK [11:38:30]request: POST /json_proto HTTP/1.0 [11:38:30]Method: POST [11:38:30]URL: /json_proto [11:38:30]Method is POST - this is cgi request [11:38:30]url: /json_proto [11:38:30]query_string will be loaded in cgi processing [11:38:30]execute_cgi json_proto POST (null) [11:38:30]execute_cgi path=json_proto method=POST [11:38:30]POST find Content-Length [11:38:30]Host: 172.17.59.68:8080 [11:38:30]Content-Length: 682 [11:38:30]Content-Type: application/json [11:38:30] [11:38:30]POST finish read [11:38:30]Found Content-Length = 682 [11:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320865", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:30]execute_script... [11:38: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)320865", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:30]POST & json_proto [11:38:30]process_json_proto [11:38:30]json parsed OK: [11:38:30]protocol is kg_v1.0 [11:38:30]action value=close_receipt [11:38:30]process_action close_receipt [11:38:30]cmd_close_receipt [11:38:30]MH_GetDate [11:38:30]Write to MH i2c: F0 00 00 1C 27 32 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: F0 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: F0 09 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: F0 09 00 1C 27 00 CB B7 76 66 BC EC 60 65 06 [11:38:30]GetLastDocTimeStamp 1719056320 [11:38:30]current date 1719056331 [11:38:30]FM_GetShiftState [11:38:30]SAM_PROTO_GetShiftState [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 13 01 00 [11:38:30]Write to MH i2c: E2 08 00 1D 27 80 13 01 00 00 00 00 00 C1 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0E 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0E 00 1D 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F6 [11:38:30]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_GetShiftState done [11:38:30]FM_GetShiftState done [11:38:30]opened in 1719020067 [11:38:30]opened+sec_in_day 1719106467 [11:38:30]quantity*price = 100064 [11:38:30]sum+1 = 100066 [11:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 59 22.06.2024 11:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112193 ФПД: 95225743227537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112193&fm=95225743227537&tin=02508201610067®Number=0000000000092771&sum=100000 [11:38:31]StoreToDocumentArchive [11:38:31]shift 391 fd 112193 [11:38:31]save to /storage/0391/doc_00112193 [11:38:31]save last doc name /storage/0391/doc_00112193 to /storage/kkm_last_doc_name [11:38:31]save OK [11:38:31]Clear old archive folders... [11:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:31]tlvbuf is 011D8A10 [11:38:31]SAM_PROTO_ClearQueue [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 09 00 00 [11:38:31]Write to MH i2c: E2 08 00 2A 27 80 09 00 00 00 00 00 00 C3 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 2A 27 00 90 00 C5 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]SAM_PROTO_ClearQueue done [11:38:31]KKMCreateOFDPacket [11:38:31]OFDProtocolAddRootSTLVToBuf [11:38:31]FM_MakeSignedData [11:38:31]FM_MakeSignedData [11:38:31]SAM_PROTO_SignData [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 01 02 [11:38:31]Write to MH i2c: E2 08 00 2B 27 80 0D 01 02 00 00 00 00 CB [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 2B 27 00 90 00 C6 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=255 [11:38:31]MH_SAM_APDU [11:38: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B6 01 00 35 04 06 00 56 [11:38:31]Write to MH i2c: E2 02 01 2C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B6 01 00 35 04 06 00 56 00 00 3E [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=10 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 02 02 05 9B 78 99 3A 91 [11:38:31]Write to MH i2c: E2 0D 00 2D 27 80 0D 02 02 05 00 9B 78 99 3A 91 00 00 4F [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [11:38:31]RAPDU: 90 00 [11:38:31]wFMCommunicate OK [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 0D 03 02 [11:38:31]Write to MH i2c: E2 08 00 2E 27 80 0D 03 02 00 00 00 00 D0 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 0B 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 0B 00 2E 27 00 F1 5D 5C 87 2C A8 DE 7D 90 00 31 [11:38:31]RAPDU: F1 5D 5C 87 2C A8 DE 7D 90 00 [11:38:31]wFMCommunicate OK [11:38:31]SAM_PROTO_SignData done [11:38:31]FM_MakeSignedData done [11:38:31]CreateOFDProtocolMessage [11:38:31]wFMCommunicate request_size=4 [11:38:31]MH_SAM_APDU [11:38:31]CAPDU: 80 11 00 00 [11:38:31]Write to MH i2c: E2 08 00 2F 27 80 11 00 00 00 00 00 00 D0 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:31]Read from MH i2c: E2 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 17 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: E2 17 00 2F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [11:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:31]wFMCommunicate OK [11:38:31]CreateOFDProtocolMessage done [11:38:31]OFDSenderStorePacket 112193 [11:38:31]StoreOFDPacket docnum=112193 [11:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 82 07 01 BC 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B6 01 00 35 04 06 00 56 9B 78 99 3A 91 F1 5D 5C 87 2C A8 DE 7D [11:38:31]CheckFolder [11:38:31]dirname=/storage/ofd_packets [11:38:31]CheckFolder done [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00112193 [11:38:31]NVStorageSaveData ofd_packets/00112193 [11:38:31]File name is /storage/ofd_packets/00112193 [11:38:31]Write 301 bytes [11:38:31]NVStorageSaveData done [11:38:31]OFDSenderStorePacket done [11:38:31]KKMCreateOFDPacket done [11:38:31]NVStorageSaveData kkm_last_timestamp [11:38:31]File name is /storage/kkm_last_timestamp [11:38:31]Write 4 bytes [11:38:31]NVStorageSaveData done [11:38:31]ExternCall_PrintAddStr [11:38:31]wPrintStart [11:38:31]Write to MH i2c: 01 00 00 30 27 57 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 30 27 00 00 00 00 00 FF 0F 6C [11:38:31]RasterBufferAndPrint [11:38:31]line Счет N : (1)320865 [11:38:31]line ИНН: 02508201610067 [11:38:31]line Контрольно-Кассовый Чек [11:38:31]line ПРОДАЖА [11:38:31]line ТРК (МРК, ГНК) : 11 [11:38:31]line Товар: 2710124130 [11:38:31]line Аи-92-К-5 [11:38:31]line 15.070 * 66.40 [11:38:31]line = 1000.65 [11:38:31]line НДС 12% НСП 1% [11:38:31]line > о реализуемом товаре [11:38:31]line ОКРУГЛЕНИЕ: -0.65 [11:38:31]line ИТОГО: 1000.00 [11:38:31]line Внесено: 1000.00 [11:38:31]line СДАЧА: 0.00 [11:38:31]line НСП 1% : 8.85 [11:38:31]line НДС 12% : 106.26 [11:38:31]line Наличными: 1000.00 [11:38:31]line Безнал.: 0.00 [11:38:31]line Место: АЗС № 65 "Партнер Нефть" [11:38:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:38:31]line СНО: Общий режим [11:38:31]line Чек 59 22.06.2024 11:38 [11:38:31]line Смена: 391 ФФД: 1.0 [11:38:31]line ЗНМ: 0300000198 [11:38:31]line РНМ: 0000000000092771 [11:38:31]line Версия ККМ: 001 [11:38:31]line ФМ: 0000000000875083 [11:38:31]line ФД: 112193 [11:38:31]line ФПД: 95225743227537 [11:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112193&fm=95225743227537&tin=02508201610067®Number=0000000000092771&sum=100000 [11:38:31]written 0, free lines is 4095 [11:38:31]OFD Sender: Processing packet 112193 [packets to send 38, broken 37] [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00112193 [11:38:31]OFD Sender: To server: pG, [11:38:31]CommunicateWithHost lk.salyk.kg:30040 [11:38:31]ConnectInit lk.salyk.kg [11:38:32]Write to MH i2c: 01 00 00 5B 27 82 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 07 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 07 00 5B 27 00 00 00 00 00 DD 0C 72 [11:38:32]RasterBufferAndPrint [11:38:32]line [11:38:32]line [11:38:32]line [11:38:32]line [11:38:32]line [11:38:32]written 0, free lines is 3300 [11:38:32]MH_Cut [11:38:32]Write to MH i2c: D1 01 00 62 27 01 5B [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 01 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: D1 01 00 62 27 00 5A [11:38:32]Write to MH i2c: 01 00 00 63 27 8A [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]*** Cut start [11:38:32]*** Partial cut [11:38:32]*** CUTSNS_PIN = 1 [11:38:33]*** CUTSNS_PIN = 0 [11:38:33]*** Brake cut motor [11:38:33]Read from MH i2c: 01 [11:38:33]MH_I2C_Read... [11:38:33]*** Stop cut motor [11:38:33]*** Cut end [11:38:33]Read from MH i2c: 01 07 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: 01 07 00 63 27 00 00 00 00 00 FF 0F 9F [11:38:33]process_action close_receipt done [11:38:33]requested_data is exist [11:38:33]produce_requested_data [11:38:33]requested_item fm.sn is exist - process it [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 11 00 00 [11:38:33]Write to MH i2c: E2 08 00 64 27 80 11 00 00 00 00 00 00 05 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 64 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [11:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:33]wFMCommunicate OK [11:38:33]requested_item fd.num is exist - process it [11:38:33]SAM_PROTO_GetFieldsCounters [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 00 00 [11:38:33]Write to MH i2c: E2 08 00 65 27 80 13 00 00 00 00 00 00 08 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 65 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetFieldsCounters done [11:38:33]requested_item shift.num is exist - process it [11:38:33]requested_item shift.opened is exist - process it [11:38:33]req_shift_opened [11:38:33]FM_GetShiftState [11:38:33]SAM_PROTO_GetShiftState [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 01 00 [11:38:33]Write to MH i2c: E2 08 00 66 27 80 13 01 00 00 00 00 00 0A [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:33]Read from MH i2c: E2 0E 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 66 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3F [11:38:33]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetShiftState done [11:38:33]FM_GetShiftState done [11:38:33]req_shift_opened done [11:38:33]requested_item shift.open_date is exist - process it [11:38:33]req_shift_open_date [11:38:33]req_shift_open_date done [11:38:33]produce_requested_data done [11:38:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112193,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:38:33]process_action_free close_receipt [11:38:33]json_value_free [11:38:33]json_value_free done [11:38:33]process_json_proto returns [11:38:33]Send response to host [11:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112193,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:38:33]free response buf [11:38:33]execute_script done [11:38:33]execute_script returns [11:38:33]free content buf [11:38:33]Sock 7.Close socket [11:38:33]Sock 7.Thread stoped [11:39:17]accept exits with 9 [11:39:17]New connection [11:39:17]New thread 3066813796 created [11:39:17]Thread 3066957156 joined [11:39:17]Waiting for new connection... [11:39:17] Sock 9.Parse request [11:39:17]Sock 9.Check first char [11:39:17]Sock 9.First char is OK [11:39:17]request: POST /json_proto HTTP/1.0 [11:39:17]Method: POST [11:39:17]URL: /json_proto [11:39:17]Method is POST - this is cgi request [11:39:17]url: /json_proto [11:39:17]query_string will be loaded in cgi processing [11:39:17]execute_cgi json_proto POST (null) [11:39:17]execute_cgi path=json_proto method=POST [11:39:17]POST find Content-Length [11:39:17]Host: 172.17.59.68:8080 [11:39:17]Content-Length: 678 [11:39:17]Content-Type: application/json [11:39:17] [11:39:17]POST finish read [11:39:17]Found Content-Length = 678 [11:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320866", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:17]execute_script... [11:39: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)320866", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:17]POST & json_proto [11:39:17]process_json_proto [11:39:17]json parsed OK: [11:39:17]protocol is kg_v1.0 [11:39:17]action value=close_receipt [11:39:17]process_action close_receipt [11:39:17]cmd_close_receipt [11:39:17]MH_GetDate [11:39:17]Write to MH i2c: F0 00 00 67 27 7D [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: F0 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: F0 09 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: F0 09 00 67 27 00 FB B7 76 66 BC EC 60 65 81 [11:39:17]GetLastDocTimeStamp 1719056331 [11:39:17]current date 1719056379 [11:39:17]FM_GetShiftState [11:39:17]SAM_PROTO_GetShiftState [11:39:17]wFMCommunicate request_size=4 [11:39:17]MH_SAM_APDU [11:39:17]CAPDU: 80 13 01 00 [11:39:17]Write to MH i2c: E2 08 00 68 27 80 13 01 00 00 00 00 00 0C [11:39:17]Write i2c OK [11:39:17]MH_I2C_Read... [11:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:17]Read from MH i2c: E2 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 0E 00 [11:39:17]MH_I2C_Read... [11:39:17]Read from MH i2c: E2 0E 00 68 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 41 [11:39:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:39:17]wFMCommunicate OK [11:39:17]SAM_PROTO_GetShiftState done [11:39:17]FM_GetShiftState done [11:39:17]opened in 1719020067 [11:39:17]opened+sec_in_day 1719106467 [11:39:17]quantity*price = 70052 [11:39:17]sum+1 = 70053 [11:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 60 22.06.2024 11:39 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112194 ФПД: 77054384248172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113939&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112194&fm=77054384248172&tin=02508201610067®Number=0000000000092771&sum=70000 [11:39:18]StoreToDocumentArchive [11:39:18]shift 391 fd 112194 [11:39:18]save to /storage/0391/doc_00112194 [11:39:18]save last doc name /storage/0391/doc_00112194 to /storage/kkm_last_doc_name [11:39:18]save OK [11:39:18]Clear old archive folders... [11:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:18]tlvbuf is 0117FE20 [11:39:18]SAM_PROTO_ClearQueue [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 09 00 00 [11:39:18]Write to MH i2c: E2 08 00 75 27 80 09 00 00 00 00 00 00 0E [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 03 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 03 00 75 27 00 90 00 10 [11:39:18]RAPDU: 90 00 [11:39:18]wFMCommunicate OK [11:39:18]SAM_PROTO_ClearQueue done [11:39:18]KKMCreateOFDPacket [11:39:18]OFDProtocolAddRootSTLVToBuf [11:39:18]FM_MakeSignedData [11:39:18]FM_MakeSignedData [11:39:18]SAM_PROTO_SignData [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 0D 01 02 [11:39:18]Write to MH i2c: E2 08 00 76 27 80 0D 01 02 00 00 00 00 16 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 03 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 03 00 76 27 00 90 00 11 [11:39:18]RAPDU: 90 00 [11:39:18]wFMCommunicate OK [11:39:18]wFMCommunicate request_size=255 [11:39:18]MH_SAM_APDU [11:39: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B6 01 00 35 04 06 00 46 [11:39:18]Write to MH i2c: E2 02 01 77 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B6 01 00 35 04 06 00 46 00 00 6D [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 03 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 03 00 77 27 00 90 00 12 [11:39:19]RAPDU: 90 00 [11:39:19]wFMCommunicate OK [11:39:19]wFMCommunicate request_size=10 [11:39:19]MH_SAM_APDU [11:39:19]CAPDU: 80 0D 02 02 05 14 9F 33 95 6C [11:39:19]Write to MH i2c: E2 0D 00 78 27 80 0D 02 02 05 00 14 9F 33 95 6C 00 00 0A [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 03 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 03 00 78 27 00 90 00 13 [11:39:19]RAPDU: 90 00 [11:39:19]wFMCommunicate OK [11:39:19]wFMCommunicate request_size=4 [11:39:19]MH_SAM_APDU [11:39:19]CAPDU: 80 0D 03 02 [11:39:19]Write to MH i2c: E2 08 00 79 27 80 0D 03 02 00 00 00 00 1B [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0B 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0B 00 79 27 00 40 C5 FF F1 47 97 BB 6C 90 00 16 [11:39:19]RAPDU: 40 C5 FF F1 47 97 BB 6C 90 00 [11:39:19]wFMCommunicate OK [11:39:19]SAM_PROTO_SignData done [11:39:19]FM_MakeSignedData done [11:39:19]CreateOFDProtocolMessage [11:39:19]wFMCommunicate request_size=4 [11:39:19]MH_SAM_APDU [11:39:19]CAPDU: 80 11 00 00 [11:39:19]Write to MH i2c: E2 08 00 7A 27 80 11 00 00 00 00 00 00 1B [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 17 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 17 00 7A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [11:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:39:19]wFMCommunicate OK [11:39:19]CreateOFDProtocolMessage done [11:39:19]OFDSenderStorePacket 112194 [11:39:19]StoreOFDPacket docnum=112194 [11:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 6C 07 01 83 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B6 01 00 35 04 06 00 46 14 9F 33 95 6C 40 C5 FF F1 47 97 BB 6C [11:39:19]CheckFolder [11:39:19]dirname=/storage/ofd_packets [11:39:19]CheckFolder done [11:39:19]ProducePacketName [11:39:19]name=ofd_packets/00112194 [11:39:19]NVStorageSaveData ofd_packets/00112194 [11:39:19]File name is /storage/ofd_packets/00112194 [11:39:19]Write 301 bytes [11:39:19]NVStorageSaveData done [11:39:19]OFDSenderStorePacket done [11:39:19]KKMCreateOFDPacket done [11:39:19]NVStorageSaveData kkm_last_timestamp [11:39:19]File name is /storage/kkm_last_timestamp [11:39:19]Write 4 bytes [11:39:19]NVStorageSaveData done [11:39:19]ExternCall_PrintAddStr [11:39:19]wPrintStart [11:39:19]Write to MH i2c: 01 00 00 7B 27 A2 [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: 01 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: 01 07 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: 01 07 00 7B 27 00 00 00 00 00 FF 0F B7 [11:39:19]RasterBufferAndPrint [11:39:19]line Счет N : (1)320866 [11:39:19]line ИНН: 02508201610067 [11:39:19]line Контрольно-Кассовый Чек [11:39:19]line ПРОДАЖА [11:39:19]line ТРК (МРК, ГНК) : 11 [11:39:19]line Товар: 2710124130 [11:39:19]line Аи-92-К-5 [11:39:19]line 10.550 * 66.40 [11:39:19]line = 700.52 [11:39:19]line НДС 12% НСП 1% [11:39:19]line > о реализуемом товаре [11:39:19]line ОКРУГЛЕНИЕ: -0.52 [11:39:19]line ИТОГО: 700.00 [11:39:19]line Внесено: 700.00 [11:39:19]line СДАЧА: 0.00 [11:39:19]line НСП 1% : 6.20 [11:39:19]line НДС 12% : 74.39 [11:39:19]line Наличными: 700.00 [11:39:19]line Безнал.: 0.00 [11:39:19]line Место: АЗС № 65 "Партнер Нефть" [11:39:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:39:19]line СНО: Общий режим [11:39:19]line Чек 60 22.06.2024 11:39 [11:39:19]line Смена: 391 ФФД: 1.0 [11:39:19]line ЗНМ: 0300000198 [11:39:19]line РНМ: 0000000000092771 [11:39:19]line Версия ККМ: 001 [11:39:19]line ФМ: 0000000000875083 [11:39:19]line ФД: 112194 [11:39:19]line ФПД: 77054384248172 [11:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113939&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112194&fm=77054384248172&tin=02508201610067®Number=0000000000092771&sum=70000 [11:39:19]written 0, free lines is 4095 [11:39:19]Write to MH i2c: 01 00 00 A6 27 CD [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: 01 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: 01 07 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: 01 07 00 A6 27 00 00 00 00 00 D9 0C B9 [11:39:19]RasterBufferAndPrint [11:39:19]line [11:39:19]line [11:39:19]line [11:39:19]line [11:39:19]line [11:39:19]written 0, free lines is 3296 [11:39:20]MH_Cut [11:39:20]Write to MH i2c: D1 01 00 AD 27 01 A6 [11:39:20]Write i2c OK [11:39:20]MH_I2C_Read... [11:39:20]Read from MH i2c: D1 [11:39:20]MH_I2C_Read... [11:39:20]Read from MH i2c: D1 01 00 [11:39:20]MH_I2C_Read... [11:39:20]Read from MH i2c: D1 01 00 AD 27 00 A5 [11:39:20]Write to MH i2c: 01 00 00 AE 27 D5 [11:39:20]Write i2c OK [11:39:20]MH_I2C_Read... [11:39:20]*** Cut start [11:39:20]*** Partial cut [11:39:20]*** CUTSNS_PIN = 1 [11:39:20]*** CUTSNS_PIN = 0 [11:39:20]*** Brake cut motor [11:39:21]Read from MH i2c: 01 [11:39:21]MH_I2C_Read... [11:39:21]*** Stop cut motor [11:39:21]*** Cut end [11:39:21]Read from MH i2c: 01 07 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 FF 0F EA [11:39:21]process_action close_receipt done [11:39:21]requested_data is exist [11:39:21]produce_requested_data [11:39:21]requested_item fm.sn is exist - process it [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 11 00 00 [11:39:21]Write to MH i2c: E2 08 00 AF 27 80 11 00 00 00 00 00 00 50 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 17 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 17 00 AF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [11:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:39:21]wFMCommunicate OK [11:39:21]requested_item fd.num is exist - process it [11:39:21]SAM_PROTO_GetFieldsCounters [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 13 00 00 [11:39:21]Write to MH i2c: E2 08 00 B0 27 80 13 00 00 00 00 00 00 53 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 62 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 62 00 B0 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_GetFieldsCounters done [11:39:21]requested_item shift.num is exist - process it [11:39:21]requested_item shift.opened is exist - process it [11:39:21]req_shift_opened [11:39:21]FM_GetShiftState [11:39:21]SAM_PROTO_GetShiftState [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 13 01 00 [11:39:21]Write to MH i2c: E2 08 00 B1 27 80 13 01 00 00 00 00 00 55 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0E 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0E 00 B1 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8A [11:39:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_GetShiftState done [11:39:21]FM_GetShiftState done [11:39:21]req_shift_opened done [11:39:21]requested_item shift.open_date is exist - process it [11:39:21]req_shift_open_date [11:39:21]req_shift_open_date done [11:39:21]produce_requested_data done [11:39:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112194,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:39:21]process_action_free close_receipt [11:39:21]json_value_free [11:39:21]json_value_free done [11:39:21]process_json_proto returns [11:39:21]Send response to host [11:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112194,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:39:21]free response buf [11:39:21]execute_script done [11:39:21]execute_script returns [11:39:21]free content buf [11:39:21]Sock 9.Close socket [11:39:21]Sock 9.Thread stoped [11:40:41]ConnectInit Can't connect to host [11:40:41]CommunicateWithHost connect error [11:40:41]CommunicateWithHost err = -1 [11:40:41]OFD Sender: Server communicate error [11:40:41]OFD Sender: Processing packet 112193 [packets to send 39, broken 37] [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00112193 [11:40:41]OFD Sender: To server: pG, [11:40:41]CommunicateWithHost lk.salyk.kg:30040 [11:40:41]ConnectInit lk.salyk.kg [11:40:41]Connected sock=9 [11:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 82 07 01 BC 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B6 01 00 35 04 06 00 56 9B 78 99 3A 91 F1 5D 5C 87 2C A8 DE 7D [11:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B9 3C 47 00 9A B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B6 01 00 F4 03 04 00 5A 4F 76 66 B6 04 01 00 00 24 63 56 D5 59 1B 96 15 [11:40:41]CommunicateWithHost err = 0 [11:40:41]CheckOFDResponse [11:40:41]1017 (14) - 77093643461234 [11:40:41]1041 (16) - 0000000000875083 [11:40:41]1040 (4) - 112193 [11:40:41]1012 (4) - 22.06.2024 04:13 [11:40:41]1206 (1) - 0 [11:40:41]OFD Sender: Remove packet 112193 [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00112193 [11:40:41]NVStorageDeleteData [11:40:42]OFD Sender: Processing packet 112194 [packets to send 38, broken 37] [11:40:42]ProducePacketName [11:40:42]name=ofd_packets/00112194 [11:40:42]OFD Sender: To server: pG, [11:40:42]CommunicateWithHost lk.salyk.kg:30040 [11:40:42]ConnectInit lk.salyk.kg [11:40:42]Connected sock=9 [11:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 6C 07 01 83 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB B7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B6 01 00 35 04 06 00 46 14 9F 33 95 6C 40 C5 FF F1 47 97 BB 6C [11:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5F 6E 47 00 30 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B6 01 00 F4 03 04 00 5B 4F 76 66 B6 04 01 00 00 12 37 FC 0B 8B 64 3A 8F [11:40:42]CommunicateWithHost err = 0 [11:40:42]CheckOFDResponse [11:40:42]1017 (14) - 77093643461234 [11:40:42]1041 (16) - 0000000000875083 [11:40:42]1040 (4) - 112194 [11:40:42]1012 (4) - 22.06.2024 04:13 [11:40:42]1206 (1) - 0 [11:40:42]OFD Sender: Remove packet 112194 [11:40:42]ProducePacketName [11:40:42]name=ofd_packets/00112194 [11:40:42]NVStorageDeleteData [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:50]accept exits with 7 [11:40:50]New connection [11:40:50]New thread 3066957156 created [11:40:50]Thread 3066813796 joined [11:40:50]Waiting for new connection... [11:40:50] Sock 7.Parse request [11:40:50]Sock 7.Check first char [11:40:50]Sock 7.First char is OK [11:40:50]request: POST /json_proto HTTP/1.0 [11:40:50]Method: POST [11:40:50]URL: /json_proto [11:40:50]Method is POST - this is cgi request [11:40:50]url: /json_proto [11:40:50]query_string will be loaded in cgi processing [11:40:50]execute_cgi json_proto POST (null) [11:40:50]execute_cgi path=json_proto method=POST [11:40:50]POST find Content-Length [11:40:50]Host: 172.17.59.68:8080 [11:40:50]Content-Length: 678 [11:40:50]Content-Type: application/json [11:40:50] [11:40:50]POST finish read [11:40:50]Found Content-Length = 678 [11:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320867", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:50]execute_script... [11:40:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320867", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:50]POST & json_proto [11:40:50]process_json_proto [11:40:50]json parsed OK: [11:40:50]protocol is kg_v1.0 [11:40:50]action value=close_receipt [11:40:50]process_action close_receipt [11:40:50]cmd_close_receipt [11:40:50]MH_GetDate [11:40:50]Write to MH i2c: F0 00 00 B2 27 C8 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: F0 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: F0 09 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: F0 09 00 B2 27 00 58 B8 76 66 BC EC 60 65 2A [11:40:50]GetLastDocTimeStamp 1719056379 [11:40:50]current date 1719056472 [11:40:50]FM_GetShiftState [11:40:50]SAM_PROTO_GetShiftState [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 01 00 [11:40:50]Write to MH i2c: E2 08 00 B3 27 80 13 01 00 00 00 00 00 57 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 B3 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8C [11:40:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetShiftState done [11:40:50]FM_GetShiftState done [11:40:50]opened in 1719020067 [11:40:50]opened+sec_in_day 1719106467 [11:40:50]quantity*price = 70052 [11:40:50]sum+1 = 70053 [11:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 61 22.06.2024 11:41 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112195 ФПД: 109625461512551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114112&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112195&fm=109625461512551&tin=02508201610067®Number=0000000000092771&sum=70000 [11:40:52]StoreToDocumentArchive [11:40:52]shift 391 fd 112195 [11:40:52]save to /storage/0391/doc_00112195 [11:40:52]save last doc name /storage/0391/doc_00112195 to /storage/kkm_last_doc_name [11:40:52]save OK [11:40:52]Clear old archive folders... [11:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:52]tlvbuf is 011CA590 [11:40:52]SAM_PROTO_ClearQueue [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 09 00 00 [11:40:52]Write to MH i2c: E2 08 00 C0 27 80 09 00 00 00 00 00 00 59 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [11:40:52]RAPDU: 90 00 [11:40:52]wFMCommunicate OK [11:40:52]SAM_PROTO_ClearQueue done [11:40:52]KKMCreateOFDPacket [11:40:52]OFDProtocolAddRootSTLVToBuf [11:40:52]FM_MakeSignedData [11:40:52]FM_MakeSignedData [11:40:52]SAM_PROTO_SignData [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 0D 01 02 [11:40:52]Write to MH i2c: E2 08 00 C1 27 80 0D 01 02 00 00 00 00 61 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 C1 27 00 90 00 5C [11:40:52]RAPDU: 90 00 [11:40:52]wFMCommunicate OK [11:40:52]wFMCommunicate request_size=255 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 58 B8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B6 01 00 35 04 06 00 63 [11:40:52]Write to MH i2c: E2 02 01 C2 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 58 B8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B6 01 00 35 04 06 00 63 00 00 35 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 C2 27 00 90 00 5D [11:40:52]RAPDU: 90 00 [11:40:52]wFMCommunicate OK [11:40:52]wFMCommunicate request_size=10 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 0D 02 02 05 B4 2A B1 19 67 [11:40:52]Write to MH i2c: E2 0D 00 C3 27 80 0D 02 02 05 00 B4 2A B1 19 67 00 00 7D [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 03 00 C3 27 00 90 00 5E [11:40:52]RAPDU: 90 00 [11:40:52]wFMCommunicate OK [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 0D 03 02 [11:40:52]Write to MH i2c: E2 08 00 C4 27 80 0D 03 02 00 00 00 00 66 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 0B 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 0B 00 C4 27 00 57 88 06 16 E8 AB 13 60 90 00 68 [11:40:52]RAPDU: 57 88 06 16 E8 AB 13 60 90 00 [11:40:52]wFMCommunicate OK [11:40:52]SAM_PROTO_SignData done [11:40:52]FM_MakeSignedData done [11:40:52]CreateOFDProtocolMessage [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 11 00 00 [11:40:52]Write to MH i2c: E2 08 00 C5 27 80 11 00 00 00 00 00 00 66 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 17 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 17 00 C5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [11:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:40:52]wFMCommunicate OK [11:40:52]CreateOFDProtocolMessage done [11:40:52]OFDSenderStorePacket 112195 [11:40:52]StoreOFDPacket docnum=112195 [11:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 C2 07 01 5B 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 58 B8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B6 01 00 35 04 06 00 63 B4 2A B1 19 67 57 88 06 16 E8 AB 13 60 [11:40:52]CheckFolder [11:40:52]dirname=/storage/ofd_packets [11:40:52]CheckFolder done [11:40:52]ProducePacketName [11:40:52]name=ofd_packets/00112195 [11:40:52]NVStorageSaveData ofd_packets/00112195 [11:40:52]File name is /storage/ofd_packets/00112195 [11:40:52]Write 301 bytes [11:40:52]NVStorageSaveData done [11:40:52]OFDSenderStorePacket done [11:40:52]KKMCreateOFDPacket done [11:40:52]NVStorageSaveData kkm_last_timestamp [11:40:52]File name is /storage/kkm_last_timestamp [11:40:52]Write 4 bytes [11:40:52]NVStorageSaveData done [11:40:52]ExternCall_PrintAddStr [11:40:52]wPrintStart [11:40:52]Write to MH i2c: 01 00 00 C6 27 ED [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 C6 27 00 00 00 00 00 FF 0F 02 [11:40:52]RasterBufferAndPrint [11:40:52]line Счет N : (1)320867 [11:40:52]line ИНН: 02508201610067 [11:40:52]line Контрольно-Кассовый Чек [11:40:52]line ПРОДАЖА [11:40:52]line ТРК (МРК, ГНК) : 11 [11:40:52]line Товар: 2710124130 [11:40:52]line Аи-92-К-5 [11:40:52]line 10.550 * 66.40 [11:40:52]line = 700.52 [11:40:52]line НДС 12% НСП 1% [11:40:52]line > о реализуемом товаре [11:40:52]line ОКРУГЛЕНИЕ: -0.52 [11:40:52]line ИТОГО: 700.00 [11:40:52]line Внесено: 700.00 [11:40:52]line СДАЧА: 0.00 [11:40:52]line НСП 1% : 6.20 [11:40:52]line НДС 12% : 74.39 [11:40:52]line Наличными: 700.00 [11:40:52]line Безнал.: 0.00 [11:40:52]line Место: АЗС № 65 "Партнер Нефть" [11:40:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:40:52]line СНО: Общий режим [11:40:52]line Чек 61 22.06.2024 11:41 [11:40:52]line Смена: 391 ФФД: 1.0 [11:40:52]line ЗНМ: 0300000198 [11:40:52]line РНМ: 0000000000092771 [11:40:52]line Версия ККМ: 001 [11:40:52]line ФМ: 0000000000875083 [11:40:52]line ФД: 112195 [11:40:52]line ФПД: 109625461512551 [11:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114112&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112195&fm=109625461512551&tin=02508201610067®Number=0000000000092771&sum=70000 [11:40:52]OFD Sender: Processing packet 112195 [packets to send 38, broken 37] [11:40:52]ProducePacketName [11:40:52]name=ofd_packets/00112195 [11:40:52]OFD Sender: To server: pG, [11:40:52]CommunicateWithHost lk.salyk.kg:30040 [11:40:52]ConnectInit lk.salyk.kg [11:40:52]written 0, free lines is 4095 [11:40:53]Connected sock=10 [11:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 C2 07 01 5B 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 58 B8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B6 01 00 35 04 06 00 63 B4 2A B1 19 67 57 88 06 16 E8 AB 13 60 [11:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 21 47 00 1C 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B6 01 00 F4 03 04 00 66 4F 76 66 B6 04 01 00 00 DD 47 30 E5 F1 0F AF 7E [11:40:53]CommunicateWithHost err = 0 [11:40:53]CheckOFDResponse [11:40:53]1017 (14) - 77093643461234 [11:40:53]1041 (16) - 0000000000875083 [11:40:53]1040 (4) - 112195 [11:40:53]1012 (4) - 22.06.2024 04:13 [11:40:53]1206 (1) - 0 [11:40:53]OFD Sender: Remove packet 112195 [11:40:53]ProducePacketName [11:40:53]name=ofd_packets/00112195 [11:40:53]NVStorageDeleteData [11:40:53]Write to MH i2c: 01 00 00 F1 27 18 [11:40:53]Write i2c OK [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: 01 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: 01 07 00 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: 01 07 00 F1 27 00 00 00 00 00 E4 0C 0F [11:40:53]RasterBufferAndPrint [11:40:53]line [11:40:53]line [11:40:53]line [11:40:53]line [11:40:53]line [11:40:53]written 0, free lines is 3306 [11:40:53]MH_Cut [11:40:53]Write to MH i2c: D1 01 00 F8 27 01 F1 [11:40:53]Write i2c OK [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: D1 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: D1 01 00 [11:40:53]MH_I2C_Read... [11:40:53]Read from MH i2c: D1 01 00 F8 27 00 F0 [11:40:53]Write to MH i2c: 01 00 00 F9 27 20 [11:40:53]Write i2c OK [11:40:53]MH_I2C_Read... [11:40:53]OFD Sender: No OFD packet to send [11:40:54]*** Cut start [11:40:54]*** Partial cut [11:40:54]*** CUTSNS_PIN = 1 [11:40:54]*** CUTSNS_PIN = 0 [11:40:54]*** Brake cut motor [11:40:54]Read from MH i2c: 01 [11:40:54]MH_I2C_Read... [11:40:54]*** Stop cut motor [11:40:54]*** Cut end [11:40:54]Read from MH i2c: 01 07 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 FF 0F 35 [11:40:54]process_action close_receipt done [11:40:54]requested_data is exist [11:40:54]produce_requested_data [11:40:54]requested_item fm.sn is exist - process it [11:40:54]wFMCommunicate request_size=4 [11:40:54]MH_SAM_APDU [11:40:54]CAPDU: 80 11 00 00 [11:40:54]Write to MH i2c: E2 08 00 FA 27 80 11 00 00 00 00 00 00 9B [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:54]Read from MH i2c: E2 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 17 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 17 00 FA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 ED [11:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:40:54]wFMCommunicate OK [11:40:54]requested_item fd.num is exist - process it [11:40:54]SAM_PROTO_GetFieldsCounters [11:40:54]wFMCommunicate request_size=4 [11:40:54]MH_SAM_APDU [11:40:54]CAPDU: 80 13 00 00 [11:40:54]Write to MH i2c: E2 08 00 FB 27 80 13 00 00 00 00 00 00 9E [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:54]Read from MH i2c: E2 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 62 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 62 00 FB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:55]wFMCommunicate OK [11:40:55]SAM_PROTO_GetFieldsCounters done [11:40:55]requested_item shift.num is exist - process it [11:40:55]requested_item shift.opened is exist - process it [11:40:55]req_shift_opened [11:40:55]FM_GetShiftState [11:40:55]SAM_PROTO_GetShiftState [11:40:55]wFMCommunicate request_size=4 [11:40:55]MH_SAM_APDU [11:40:55]CAPDU: 80 13 01 00 [11:40:55]Write to MH i2c: E2 08 00 FC 27 80 13 01 00 00 00 00 00 A0 [11:40:55]Write i2c OK [11:40:55]MH_I2C_Read... [11:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:55]Read from MH i2c: E2 [11:40:55]MH_I2C_Read... [11:40:55]Read from MH i2c: E2 0E 00 [11:40:55]MH_I2C_Read... [11:40:55]Read from MH i2c: E2 0E 00 FC 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D5 [11:40:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:40:55]wFMCommunicate OK [11:40:55]SAM_PROTO_GetShiftState done [11:40:55]FM_GetShiftState done [11:40:55]req_shift_opened done [11:40:55]requested_item shift.open_date is exist - process it [11:40:55]req_shift_open_date [11:40:55]req_shift_open_date done [11:40:55]produce_requested_data done [11:40:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112195,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:40:55]process_action_free close_receipt [11:40:55]json_value_free [11:40:55]json_value_free done [11:40:55]process_json_proto returns [11:40:55]Send response to host [11:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112195,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:40:55]free response buf [11:40:55]execute_script done [11:40:55]execute_script returns [11:40:55]free content buf [11:40:55]Sock 7.Close socket [11:40:55]Sock 7.Thread stoped [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:52]accept exits with 9 [11:43:52]New connection [11:43:52]New thread 3066813796 created [11:43:52]Thread 3066957156 joined [11:43:52]Waiting for new connection... [11:43:52] Sock 9.Parse request [11:43:52]Sock 9.Check first char [11:43:52]Sock 9.First char is OK [11:43:52]request: POST /json_proto HTTP/1.0 [11:43:52]Method: POST [11:43:52]URL: /json_proto [11:43:52]Method is POST - this is cgi request [11:43:52]url: /json_proto [11:43:52]query_string will be loaded in cgi processing [11:43:52]execute_cgi json_proto POST (null) [11:43:52]execute_cgi path=json_proto method=POST [11:43:52]POST find Content-Length [11:43:52]Host: 172.17.59.68:8080 [11:43:52]Content-Length: 678 [11:43:52]Content-Type: application/json [11:43:52] [11:43:52]POST finish read [11:43:52]Found Content-Length = 678 [11:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320868", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:52]execute_script... [11:43: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)320868", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:52]POST & json_proto [11:43:52]process_json_proto [11:43:52]json parsed OK: [11:43:52]protocol is kg_v1.0 [11:43:52]action value=close_receipt [11:43:52]process_action close_receipt [11:43:52]cmd_close_receipt [11:43:52]MH_GetDate [11:43:52]Write to MH i2c: F0 00 00 FD 27 13 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: F0 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: F0 09 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: F0 09 00 FD 27 00 0E B9 76 66 BC EC 60 65 2C [11:43:52]GetLastDocTimeStamp 1719056472 [11:43:52]current date 1719056654 [11:43:52]FM_GetShiftState [11:43:52]SAM_PROTO_GetShiftState [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 13 01 00 [11:43:52]Write to MH i2c: E2 08 00 FE 27 80 13 01 00 00 00 00 00 A2 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 0E 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 0E 00 FE 27 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D7 [11:43:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:43:52]wFMCommunicate OK [11:43:52]SAM_PROTO_GetShiftState done [11:43:52]FM_GetShiftState done [11:43:52]opened in 1719020067 [11:43:52]opened+sec_in_day 1719106467 [11:43:52]quantity*price = 70052 [11:43:52]sum+1 = 70053 [11:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 62 22.06.2024 11:44 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112196 ФПД: 39351562375952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112196&fm=39351562375952&tin=02508201610067®Number=0000000000092771&sum=70000 [11:43:53]StoreToDocumentArchive [11:43:53]shift 391 fd 112196 [11:43:53]save to /storage/0391/doc_00112196 [11:43:53]save last doc name /storage/0391/doc_00112196 to /storage/kkm_last_doc_name [11:43:53]save OK [11:43:53]Clear old archive folders... [11:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:53]tlvbuf is B6F56AA0 [11:43:53]SAM_PROTO_ClearQueue [11:43:53]wFMCommunicate request_size=4 [11:43:53]MH_SAM_APDU [11:43:53]CAPDU: 80 09 00 00 [11:43:53]Write to MH i2c: E2 08 00 0B 28 80 09 00 00 00 00 00 00 A5 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 0B 28 00 90 00 A7 [11:43:53]RAPDU: 90 00 [11:43:53]wFMCommunicate OK [11:43:53]SAM_PROTO_ClearQueue done [11:43:53]KKMCreateOFDPacket [11:43:53]OFDProtocolAddRootSTLVToBuf [11:43:53]FM_MakeSignedData [11:43:53]FM_MakeSignedData [11:43:53]SAM_PROTO_SignData [11:43:53]wFMCommunicate request_size=4 [11:43:53]MH_SAM_APDU [11:43:53]CAPDU: 80 0D 01 02 [11:43:53]Write to MH i2c: E2 08 00 0C 28 80 0D 01 02 00 00 00 00 AD [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 0C 28 00 90 00 A8 [11:43:53]RAPDU: 90 00 [11:43:53]wFMCommunicate OK [11:43:53]wFMCommunicate request_size=255 [11:43:53]MH_SAM_APDU [11:43: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B6 01 00 35 04 06 00 23 [11:43:53]Write to MH i2c: E2 02 01 0D 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B6 01 00 35 04 06 00 23 00 00 FA [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 0D 28 00 90 00 A9 [11:43:53]RAPDU: 90 00 [11:43:53]wFMCommunicate OK [11:43:53]wFMCommunicate request_size=10 [11:43:53]MH_SAM_APDU [11:43:53]CAPDU: 80 0D 02 02 05 CA 3F E5 93 10 [11:43:53]Write to MH i2c: E2 0D 00 0E 28 80 0D 02 02 05 00 CA 3F E5 93 10 00 00 4B [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 03 00 0E 28 00 90 00 AA [11:43:53]RAPDU: 90 00 [11:43:53]wFMCommunicate OK [11:43:53]wFMCommunicate request_size=4 [11:43:53]MH_SAM_APDU [11:43:53]CAPDU: 80 0D 03 02 [11:43:53]Write to MH i2c: E2 08 00 0F 28 80 0D 03 02 00 00 00 00 B2 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]OFD Sender: No OFD packet to send [11:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:54]Read from MH i2c: E2 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 0B 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 0B 00 0F 28 00 7A AA 93 72 82 00 40 D5 90 00 73 [11:43:54]RAPDU: 7A AA 93 72 82 00 40 D5 90 00 [11:43:54]wFMCommunicate OK [11:43:54]SAM_PROTO_SignData done [11:43:54]FM_MakeSignedData done [11:43:54]CreateOFDProtocolMessage [11:43:54]wFMCommunicate request_size=4 [11:43:54]MH_SAM_APDU [11:43:54]CAPDU: 80 11 00 00 [11:43:54]Write to MH i2c: E2 08 00 10 28 80 11 00 00 00 00 00 00 B2 [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:54]Read from MH i2c: E2 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 17 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 17 00 10 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [11:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:43:54]wFMCommunicate OK [11:43:54]CreateOFDProtocolMessage done [11:43:54]OFDSenderStorePacket 112196 [11:43:54]StoreOFDPacket docnum=112196 [11:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 EF 07 01 1A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B6 01 00 35 04 06 00 23 CA 3F E5 93 10 7A AA 93 72 82 00 40 D5 [11:43:54]CheckFolder [11:43:54]dirname=/storage/ofd_packets [11:43:54]CheckFolder done [11:43:54]ProducePacketName [11:43:54]name=ofd_packets/00112196 [11:43:54]NVStorageSaveData ofd_packets/00112196 [11:43:54]File name is /storage/ofd_packets/00112196 [11:43:54]Write 301 bytes [11:43:54]NVStorageSaveData done [11:43:54]OFDSenderStorePacket done [11:43:54]KKMCreateOFDPacket done [11:43:54]NVStorageSaveData kkm_last_timestamp [11:43:54]File name is /storage/kkm_last_timestamp [11:43:54]Write 4 bytes [11:43:54]NVStorageSaveData done [11:43:54]ExternCall_PrintAddStr [11:43:54]wPrintStart [11:43:54]Write to MH i2c: 01 00 00 11 28 39 [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 07 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 07 00 11 28 00 00 00 00 00 FF 0F 4E [11:43:54]RasterBufferAndPrint [11:43:54]line Счет N : (1)320868 [11:43:54]line ИНН: 02508201610067 [11:43:54]line Контрольно-Кассовый Чек [11:43:54]line ПРОДАЖА [11:43:54]line ТРК (МРК, ГНК) : 11 [11:43:54]line Товар: 2710124130 [11:43:54]line Аи-92-К-5 [11:43:54]line 10.550 * 66.40 [11:43:54]line = 700.52 [11:43:54]line НДС 12% НСП 1% [11:43:54]line > о реализуемом товаре [11:43:54]line ОКРУГЛЕНИЕ: -0.52 [11:43:54]line ИТОГО: 700.00 [11:43:54]line Внесено: 700.00 [11:43:54]line СДАЧА: 0.00 [11:43:54]line НСП 1% : 6.20 [11:43:54]line НДС 12% : 74.39 [11:43:54]line Наличными: 700.00 [11:43:54]line Безнал.: 0.00 [11:43:54]line Место: АЗС № 65 "Партнер Нефть" [11:43:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:43:54]line СНО: Общий режим [11:43:54]line Чек 62 22.06.2024 11:44 [11:43:54]line Смена: 391 ФФД: 1.0 [11:43:54]line ЗНМ: 0300000198 [11:43:54]line РНМ: 0000000000092771 [11:43:54]line Версия ККМ: 001 [11:43:54]line ФМ: 0000000000875083 [11:43:54]line ФД: 112196 [11:43:54]line ФПД: 39351562375952 [11:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112196&fm=39351562375952&tin=02508201610067®Number=0000000000092771&sum=70000 [11:43:54]written 0, free lines is 4095 [11:43:54]OFD Sender: Processing packet 112196 [packets to send 38, broken 37] [11:43:54]ProducePacketName [11:43:54]name=ofd_packets/00112196 [11:43:54]OFD Sender: To server: pG, [11:43:54]CommunicateWithHost lk.salyk.kg:30040 [11:43:54]ConnectInit lk.salyk.kg [11:43:54]Connected sock=10 [11:43:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 EF 07 01 1A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0E B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B6 01 00 35 04 06 00 23 CA 3F E5 93 10 7A AA 93 72 82 00 40 D5 [11:43:54]Write to MH i2c: 01 00 00 3C 28 64 [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 07 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 07 00 3C 28 00 00 00 00 00 E1 0C 58 [11:43:54]RasterBufferAndPrint [11:43:54]line [11:43:54]line [11:43:54]line [11:43:54]line [11:43:54]line [11:43:54]written 0, free lines is 3306 [11:43:54]MH_Cut [11:43:54]Write to MH i2c: D1 01 00 43 28 01 3D [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: D1 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: D1 01 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: D1 01 00 43 28 00 3C [11:43:54]Write to MH i2c: 01 00 00 44 28 6C [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 50 D5 47 00 8C 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B6 01 00 F4 03 04 00 1B 50 76 66 B6 04 01 00 00 8A 69 0B AB 7E 05 EB 39 [11:43:54]CommunicateWithHost err = 0 [11:43:54]CheckOFDResponse [11:43:54]1017 (14) - 77093643461234 [11:43:54]1041 (16) - 0000000000875083 [11:43:54]1040 (4) - 112196 [11:43:54]1012 (4) - 22.06.2024 04:16 [11:43:54]1206 (1) - 0 [11:43:54]OFD Sender: Remove packet 112196 [11:43:54]ProducePacketName [11:43:54]name=ofd_packets/00112196 [11:43:54]NVStorageDeleteData [11:43:55]OFD Sender: No OFD packet to send [11:43:55]*** Cut start [11:43:55]*** Partial cut [11:43:55]*** CUTSNS_PIN = 1 [11:43:55]*** CUTSNS_PIN = 0 [11:43:55]*** Brake cut motor [11:43:55]Read from MH i2c: 01 [11:43:55]MH_I2C_Read... [11:43:55]*** Stop cut motor [11:43:55]*** Cut end [11:43:55]Read from MH i2c: 01 07 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: 01 07 00 44 28 00 00 00 00 00 FF 0F 81 [11:43:55]process_action close_receipt done [11:43:55]requested_data is exist [11:43:55]produce_requested_data [11:43:55]requested_item fm.sn is exist - process it [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 11 00 00 [11:43:55]Write to MH i2c: E2 08 00 45 28 80 11 00 00 00 00 00 00 E7 [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 17 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 17 00 45 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [11:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:43:55]wFMCommunicate OK [11:43:55]requested_item fd.num is exist - process it [11:43:55]SAM_PROTO_GetFieldsCounters [11:43:55]wFMCommunicate request_size=4 [11:43:55]MH_SAM_APDU [11:43:55]CAPDU: 80 13 00 00 [11:43:55]Write to MH i2c: E2 08 00 46 28 80 13 00 00 00 00 00 00 EA [11:43:55]Write i2c OK [11:43:55]MH_I2C_Read... [11:43:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:56]Read from MH i2c: E2 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: E2 62 00 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: E2 62 00 46 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:43:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:56]wFMCommunicate OK [11:43:56]SAM_PROTO_GetFieldsCounters done [11:43:56]requested_item shift.num is exist - process it [11:43:56]requested_item shift.opened is exist - process it [11:43:56]req_shift_opened [11:43:56]FM_GetShiftState [11:43:56]SAM_PROTO_GetShiftState [11:43:56]wFMCommunicate request_size=4 [11:43:56]MH_SAM_APDU [11:43:56]CAPDU: 80 13 01 00 [11:43:56]Write to MH i2c: E2 08 00 47 28 80 13 01 00 00 00 00 00 EC [11:43:56]Write i2c OK [11:43:56]MH_I2C_Read... [11:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:56]Read from MH i2c: E2 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: E2 0E 00 [11:43:56]MH_I2C_Read... [11:43:56]Read from MH i2c: E2 0E 00 47 28 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 21 [11:43:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:43:56]wFMCommunicate OK [11:43:56]SAM_PROTO_GetShiftState done [11:43:56]FM_GetShiftState done [11:43:56]req_shift_opened done [11:43:56]requested_item shift.open_date is exist - process it [11:43:56]req_shift_open_date [11:43:56]req_shift_open_date done [11:43:56]produce_requested_data done [11:43:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112196,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:43:56]process_action_free close_receipt [11:43:56]json_value_free [11:43:56]json_value_free done [11:43:56]process_json_proto returns [11:43:56]Send response to host [11:43:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112196,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:43:56]free response buf [11:43:56]execute_script done [11:43:56]execute_script returns [11:43:56]free content buf [11:43:56]Sock 9.Close socket [11:43:56]Sock 9.Thread stoped [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:36]accept exits with 7 [11:47:36]New connection [11:47:36]New thread 3066957156 created [11:47:36]Thread 3066813796 joined [11:47:36]Waiting for new connection... [11:47:36] Sock 7.Parse request [11:47:36]Sock 7.Check first char [11:47:36]Sock 7.First char is OK [11:47:36]request: POST /json_proto HTTP/1.0 [11:47:36]Method: POST [11:47:36]URL: /json_proto [11:47:36]Method is POST - this is cgi request [11:47:36]url: /json_proto [11:47:36]query_string will be loaded in cgi processing [11:47:36]execute_cgi json_proto POST (null) [11:47:36]execute_cgi path=json_proto method=POST [11:47:36]POST find Content-Length [11:47:36]Host: 172.17.59.68:8080 [11:47:36]Content-Length: 682 [11:47:36]Content-Type: application/json [11:47:36] [11:47:36]POST finish read [11:47:36]Found Content-Length = 682 [11:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320869", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:36]execute_script... [11: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)320869", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:36]POST & json_proto [11:47:36]process_json_proto [11:47:36]json parsed OK: [11:47:36]protocol is kg_v1.0 [11:47:36]action value=close_receipt [11:47:36]process_action close_receipt [11:47:36]cmd_close_receipt [11:47:36]MH_GetDate [11:47:36]Write to MH i2c: F0 00 00 48 28 5F [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: F0 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: F0 09 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: F0 09 00 48 28 00 EE B9 76 66 BC EC 60 65 58 [11:47:36]GetLastDocTimeStamp 1719056654 [11:47:36]current date 1719056878 [11:47:36]FM_GetShiftState [11:47:36]SAM_PROTO_GetShiftState [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 13 01 00 [11:47:36]Write to MH i2c: E2 08 00 49 28 80 13 01 00 00 00 00 00 EE [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 0E 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 0E 00 49 28 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 23 [11:47:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:47:36]wFMCommunicate OK [11:47:36]SAM_PROTO_GetShiftState done [11:47:36]FM_GetShiftState done [11:47:36]opened in 1719020067 [11:47:36]opened+sec_in_day 1719106467 [11:47:36]quantity*price = 100064 [11:47:36]sum+1 = 100066 [11:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 63 22.06.2024 11:47 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112197 ФПД: 37449481898191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114758&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112197&fm=37449481898191&tin=02508201610067®Number=0000000000092771&sum=100000 [11:47:37]StoreToDocumentArchive [11:47:37]shift 391 fd 112197 [11:47:37]save to /storage/0391/doc_00112197 [11:47:37]save last doc name /storage/0391/doc_00112197 to /storage/kkm_last_doc_name [11:47:37]save OK [11:47:37]Clear old archive folders... [11:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:37]tlvbuf is 01201D00 [11:47:37]SAM_PROTO_ClearQueue [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 09 00 00 [11:47:37]Write to MH i2c: E2 08 00 56 28 80 09 00 00 00 00 00 00 F0 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 56 28 00 90 00 F2 [11:47:38]RAPDU: 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_ClearQueue done [11:47:38]KKMCreateOFDPacket [11:47:38]OFDProtocolAddRootSTLVToBuf [11:47:38]FM_MakeSignedData [11:47:38]FM_MakeSignedData [11:47:38]SAM_PROTO_SignData [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 0D 01 02 [11:47:38]Write to MH i2c: E2 08 00 57 28 80 0D 01 02 00 00 00 00 F8 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 57 28 00 90 00 F3 [11:47:38]RAPDU: 90 00 [11:47:38]wFMCommunicate OK [11:47:38]wFMCommunicate request_size=255 [11:47:38]MH_SAM_APDU [11:47: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EE B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B6 01 00 35 04 06 00 22 [11:47:38]Write to MH i2c: E2 02 01 58 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EE B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B6 01 00 35 04 06 00 22 00 00 64 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 58 28 00 90 00 F4 [11:47:38]RAPDU: 90 00 [11:47:38]wFMCommunicate OK [11:47:38]wFMCommunicate request_size=10 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 0D 02 02 05 0F 63 10 C8 CF [11:47:38]Write to MH i2c: E2 0D 00 59 28 80 0D 02 02 05 00 0F 63 10 C8 CF 00 00 1E [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [11:47:38]RAPDU: 90 00 [11:47:38]wFMCommunicate OK [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 0D 03 02 [11:47:38]Write to MH i2c: E2 08 00 5A 28 80 0D 03 02 00 00 00 00 FD [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0B 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0B 00 5A 28 00 A1 2C 62 A5 3C B4 AB 96 90 00 03 [11:47:38]RAPDU: A1 2C 62 A5 3C B4 AB 96 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_SignData done [11:47:38]FM_MakeSignedData done [11:47:38]CreateOFDProtocolMessage [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 11 00 00 [11:47:38]Write to MH i2c: E2 08 00 5B 28 80 11 00 00 00 00 00 00 FD [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 17 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 17 00 5B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [11:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:47:38]wFMCommunicate OK [11:47:38]CreateOFDProtocolMessage done [11:47:38]OFDSenderStorePacket 112197 [11:47:38]StoreOFDPacket docnum=112197 [11:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD 42 07 01 F8 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EE B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B6 01 00 35 04 06 00 22 0F 63 10 C8 CF A1 2C 62 A5 3C B4 AB 96 [11:47:38]CheckFolder [11:47:38]dirname=/storage/ofd_packets [11:47:38]CheckFolder done [11:47:38]ProducePacketName [11:47:38]name=ofd_packets/00112197 [11:47:38]NVStorageSaveData ofd_packets/00112197 [11:47:38]File name is /storage/ofd_packets/00112197 [11:47:38]Write 301 bytes [11:47:38]NVStorageSaveData done [11:47:38]OFDSenderStorePacket done [11:47:38]KKMCreateOFDPacket done [11:47:38]NVStorageSaveData kkm_last_timestamp [11:47:38]File name is /storage/kkm_last_timestamp [11:47:38]Write 4 bytes [11:47:38]NVStorageSaveData done [11:47:38]ExternCall_PrintAddStr [11:47:38]wPrintStart [11:47:38]Write to MH i2c: 01 00 00 5C 28 84 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 07 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 07 00 5C 28 00 00 00 00 00 FF 0F 99 [11:47:38]RasterBufferAndPrint [11:47:38]line Счет N : (1)320869 [11:47:38]line ИНН: 02508201610067 [11:47:38]line Контрольно-Кассовый Чек [11:47:38]line ПРОДАЖА [11:47:38]line ТРК (МРК, ГНК) : 11 [11:47:38]line Товар: 2710124130 [11:47:38]line Аи-92-К-5 [11:47:38]line 15.070 * 66.40 [11:47:38]line = 1000.65 [11:47:38]line НДС 12% НСП 1% [11:47:38]line > о реализуемом товаре [11:47:38]line ОКРУГЛЕНИЕ: -0.65 [11:47:38]line ИТОГО: 1000.00 [11:47:38]line Внесено: 1000.00 [11:47:38]line СДАЧА: 0.00 [11:47:38]line НСП 1% : 8.85 [11:47:38]line НДС 12% : 106.26 [11:47:38]line Наличными: 1000.00 [11:47:38]line Безнал.: 0.00 [11:47:38]line Место: АЗС № 65 "Партнер Нефть" [11:47:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:47:38]line СНО: Общий режим [11:47:38]line Чек 63 22.06.2024 11:47 [11:47:38]line Смена: 391 ФФД: 1.0 [11:47:38]line ЗНМ: 0300000198 [11:47:38]line РНМ: 0000000000092771 [11:47:38]line Версия ККМ: 001 [11:47:38]line ФМ: 0000000000875083 [11:47:38]line ФД: 112197 [11:47:38]line ФПД: 37449481898191 [11:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114758&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112197&fm=37449481898191&tin=02508201610067®Number=0000000000092771&sum=100000 [11:47:38]OFD Sender: Processing packet 112197 [packets to send 38, broken 37] [11:47:38]ProducePacketName [11:47:38]name=ofd_packets/00112197 [11:47:38]OFD Sender: To server: pG, [11:47:38]CommunicateWithHost lk.salyk.kg:30040 [11:47:38]ConnectInit lk.salyk.kg [11:47:38]written 0, free lines is 4095 [11:47:38]Connected sock=10 [11:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD 42 07 01 F8 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EE B9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B6 01 00 35 04 06 00 22 0F 63 10 C8 CF A1 2C 62 A5 3C B4 AB 96 [11:47:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1F 81 47 00 33 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 35 30 38 33 10 04 04 00 45 B6 01 00 F4 03 04 00 FC 50 76 66 B6 04 01 00 00 29 11 EC D8 EC 75 38 CB [11:47:39]CommunicateWithHost err = 0 [11:47:39]CheckOFDResponse [11:47:39]1017 (14) - 77093643461234 [11:47:39]1041 (16) - 0000000000875083 [11:47:39]1040 (4) - 112197 [11:47:39]1012 (4) - 22.06.2024 04:20 [11:47:39]1206 (1) - 0 [11:47:39]OFD Sender: Remove packet 112197 [11:47:39]ProducePacketName [11:47:39]name=ofd_packets/00112197 [11:47:39]NVStorageDeleteData [11:47:39]Write to MH i2c: 01 00 00 87 28 AF [11:47:39]Write i2c OK [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: 01 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: 01 07 00 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 E4 0C A6 [11:47:39]RasterBufferAndPrint [11:47:39]line [11:47:39]line [11:47:39]line [11:47:39]line [11:47:39]line [11:47:39]written 0, free lines is 3306 [11:47:39]MH_Cut [11:47:39]Write to MH i2c: D1 01 00 8E 28 01 88 [11:47:39]Write i2c OK [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: D1 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: D1 01 00 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: D1 01 00 8E 28 00 87 [11:47:39]Write to MH i2c: 01 00 00 8F 28 B7 [11:47:39]Write i2c OK [11:47:39]MH_I2C_Read... [11:47:39]OFD Sender: No OFD packet to send [11:47:40]*** Cut start [11:47:40]*** Partial cut [11:47:40]*** CUTSNS_PIN = 1 [11:47:40]*** CUTSNS_PIN = 0 [11:47:40]*** Brake cut motor [11:47:40]Read from MH i2c: 01 [11:47:40]MH_I2C_Read... [11:47:40]*** Stop cut motor [11:47:40]*** Cut end [11:47:40]Read from MH i2c: 01 07 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: 01 07 00 8F 28 00 00 00 00 00 FF 0F CC [11:47:40]process_action close_receipt done [11:47:40]requested_data is exist [11:47:40]produce_requested_data [11:47:40]requested_item fm.sn is exist - process it [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 11 00 00 [11:47:40]Write to MH i2c: E2 08 00 90 28 80 11 00 00 00 00 00 00 32 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 17 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 17 00 90 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [11:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:47:40]wFMCommunicate OK [11:47:40]requested_item fd.num is exist - process it [11:47:40]SAM_PROTO_GetFieldsCounters [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 13 00 00 [11:47:40]Write to MH i2c: E2 08 00 91 28 80 13 00 00 00 00 00 00 35 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 62 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 62 00 91 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [11:47:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:40]wFMCommunicate OK [11:47:40]SAM_PROTO_GetFieldsCounters done [11:47:40]requested_item shift.num is exist - process it [11:47:40]requested_item shift.opened is exist - process it [11:47:40]req_shift_opened [11:47:40]FM_GetShiftState [11:47:40]SAM_PROTO_GetShiftState [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 13 01 00 [11:47:40]Write to MH i2c: E2 08 00 92 28 80 13 01 00 00 00 00 00 37 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 0E 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 0E 00 92 28 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6C [11:47:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:47:40]wFMCommunicate OK [11:47:40]SAM_PROTO_GetShiftState done [11:47:40]FM_GetShiftState done [11:47:40]req_shift_opened done [11:47:40]requested_item shift.open_date is exist - process it [11:47:40]req_shift_open_date [11:47:40]req_shift_open_date done [11:47:40]produce_requested_data done [11:47:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112197,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:47:40]process_action_free close_receipt [11:47:40]json_value_free [11:47:40]json_value_free done [11:47:40]process_json_proto returns [11:47:40]Send response to host [11:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112197,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:47:40]free response buf [11:47:40]execute_script done [11:47:40]execute_script returns [11:47:40]free content buf [11:47:40]Sock 7.Close socket [11:47:40]Sock 7.Thread stoped [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: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:15]accept exits with 9 [11:49:15]New connection [11:49:15]New thread 3066813796 created [11:49:15]Thread 3066957156 joined [11:49:15]Waiting for new connection... [11:49:15] Sock 9.Parse request [11:49:15]Sock 9.Check first char [11:49:15]Sock 9.First char is OK [11:49:15]request: POST /json_proto HTTP/1.0 [11:49:15]Method: POST [11:49:15]URL: /json_proto [11:49:15]Method is POST - this is cgi request [11:49:15]url: /json_proto [11:49:15]query_string will be loaded in cgi processing [11:49:15]execute_cgi json_proto POST (null) [11:49:15]execute_cgi path=json_proto method=POST [11:49:15]POST find Content-Length [11:49:15]Host: 172.17.59.68:8080 [11:49:15]Content-Length: 677 [11:49:15]Content-Type: application/json [11:49:15] [11:49:15]POST finish read [11:49:15]Found Content-Length = 677 [11:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320870", "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.40, "quantity" : 1.960, "sum" : 130.14, "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" ] } } [11:49:15]execute_script... [11:49: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)320870", "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.40, "quantity" : 1.960, "sum" : 130.14, "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" ] } } [11:49:15]POST & json_proto [11:49:15]process_json_proto [11:49:15]json parsed OK: [11:49:15]protocol is kg_v1.0 [11:49:15]action value=close_receipt [11:49:15]process_action close_receipt [11:49:15]cmd_close_receipt [11:49:15]MH_GetDate [11:49:15]Write to MH i2c: F0 00 00 93 28 AA [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 93 28 00 50 BA 76 66 BC EC 60 65 06 [11:49:15]GetLastDocTimeStamp 1719056878 [11:49:15]current date 1719056976 [11:49:15]FM_GetShiftState [11:49:15]SAM_PROTO_GetShiftState [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 13 01 00 [11:49:15]Write to MH i2c: E2 08 00 94 28 80 13 01 00 00 00 00 00 39 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 94 28 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6E [11:49:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_GetShiftState done [11:49:15]FM_GetShiftState done [11:49:15]opened in 1719020067 [11:49:15]opened+sec_in_day 1719106467 [11:49:15]quantity*price = 13014 [11:49:15]sum+1 = 13015 [11:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.82 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 64 22.06.2024 11:49 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112198 ФПД: 62895781922278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112198&fm=62895781922278&tin=02508201610067®Number=0000000000092771&sum=13000 [11:49:16]StoreToDocumentArchive [11:49:16]shift 391 fd 112198 [11:49:16]save to /storage/0391/doc_00112198 [11:49:16]save last doc name /storage/0391/doc_00112198 to /storage/kkm_last_doc_name [11:49:16]save OK [11:49:16]Clear old archive folders... [11:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:16]tlvbuf is 011C9A90 [11:49:16]SAM_PROTO_ClearQueue [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 09 00 00 [11:49:16]Write to MH i2c: E2 08 00 A1 28 80 09 00 00 00 00 00 00 3B [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A1 28 00 90 00 3D [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_ClearQueue done [11:49:16]KKMCreateOFDPacket [11:49:16]OFDProtocolAddRootSTLVToBuf [11:49:16]FM_MakeSignedData [11:49:16]FM_MakeSignedData [11:49:16]SAM_PROTO_SignData [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 01 02 [11:49:16]Write to MH i2c: E2 08 00 A2 28 80 0D 01 02 00 00 00 00 43 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=255 [11:49:16]MH_SAM_APDU [11:49: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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 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 66 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 40 00 00 00 F4 03 04 00 51 BA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B6 01 00 35 04 06 00 39 [11:49:16]Write to MH i2c: E2 02 01 A3 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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 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 66 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 40 00 00 00 F4 03 04 00 51 BA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B6 01 00 35 04 06 00 39 00 00 C4 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=10 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 02 02 05 34 10 BD 45 E6 [11:49:16]Write to MH i2c: E2 0D 00 A4 28 80 0D 02 02 05 00 34 10 BD 45 E6 00 00 7C [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 03 02 [11:49:16]Write to MH i2c: E2 08 00 A5 28 80 0D 03 02 00 00 00 00 48 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 0B 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 0B 00 A5 28 00 21 A3 EF 73 4E EC 08 14 90 00 C5 [11:49:16]RAPDU: 21 A3 EF 73 4E EC 08 14 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_SignData done [11:49:16]FM_MakeSignedData done [11:49:16]CreateOFDProtocolMessage [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 11 00 00 [11:49:16]Write to MH i2c: E2 08 00 A6 28 80 11 00 00 00 00 00 00 48 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 17 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 17 00 A6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [11:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:49:16]wFMCommunicate OK [11:49:16]CreateOFDProtocolMessage done [11:49:16]OFDSenderStorePacket 112198 [11:49:16]StoreOFDPacket docnum=112198 [11:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 D3 07 01 82 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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 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 66 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 40 00 00 00 F4 03 04 00 51 BA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B6 01 00 35 04 06 00 39 34 10 BD 45 E6 21 A3 EF 73 4E EC 08 14 [11:49:16]CheckFolder [11:49:16]dirname=/storage/ofd_packets [11:49:16]CheckFolder done [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00112198 [11:49:16]NVStorageSaveData ofd_packets/00112198 [11:49:16]File name is /storage/ofd_packets/00112198 [11:49:16]Write 301 bytes [11:49:16]NVStorageSaveData done [11:49:16]OFDSenderStorePacket done [11:49:16]KKMCreateOFDPacket done [11:49:16]NVStorageSaveData kkm_last_timestamp [11:49:16]File name is /storage/kkm_last_timestamp [11:49:16]Write 4 bytes [11:49:16]NVStorageSaveData done [11:49:16]ExternCall_PrintAddStr [11:49:16]wPrintStart [11:49:16]Write to MH i2c: 01 00 00 A7 28 CF [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 A7 28 00 00 00 00 00 FF 0F E4 [11:49:16]RasterBufferAndPrint [11:49:16]line Счет N : (1)320870 [11:49:16]line ИНН: 02508201610067 [11:49:16]line Контрольно-Кассовый Чек [11:49:16]line ПРОДАЖА [11:49:16]line ТРК (МРК, ГНК) : 11 [11:49:16]line Товар: 2710124130 [11:49:16]line Аи-92-К-5 [11:49:16]line 1.960 * 66.40 [11:49:16]line = 130.14 [11:49:16]line НДС 12% НСП 1% [11:49:16]line > о реализуемом товаре [11:49:16]line ОКРУГЛЕНИЕ: -0.14 [11:49:16]line ИТОГО: 130.00 [11:49:16]line Внесено: 130.00 [11:49:16]line СДАЧА: 0.00 [11:49:16]line НСП 1% : 1.15 [11:49:16]line НДС 12% : 13.82 [11:49:16]line Наличными: 130.00 [11:49:16]line Безнал.: 0.00 [11:49:16]line Место: АЗС № 65 "Партнер Нефть" [11:49:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:49:16]line СНО: Общий режим [11:49:16]line Чек 64 22.06.2024 11:49 [11:49:16]line Смена: 391 ФФД: 1.0 [11:49:16]line ЗНМ: 0300000198 [11:49:16]line РНМ: 0000000000092771 [11:49:16]line Версия ККМ: 001 [11:49:16]line ФМ: 0000000000875083 [11:49:16]line ФД: 112198 [11:49:16]line ФПД: 62895781922278 [11:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112198&fm=62895781922278&tin=02508201610067®Number=0000000000092771&sum=13000 [11:49:17]OFD Sender: Processing packet 112198 [packets to send 38, broken 37] [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00112198 [11:49:17]OFD Sender: To server: pG, [11:49:17]CommunicateWithHost lk.salyk.kg:30040 [11:49:17]ConnectInit lk.salyk.kg [11:49:17]written 0, free lines is 4095 [11:49:17]Connected sock=10 [11:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 D3 07 01 82 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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 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 66 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 40 00 00 00 F4 03 04 00 51 BA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B6 01 00 35 04 06 00 39 34 10 BD 45 E6 21 A3 EF 73 4E EC 08 14 [11:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9F 01 47 00 5F 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B6 01 00 F4 03 04 00 5E 51 76 66 B6 04 01 00 00 71 65 DB 38 DA 47 0B 17 [11:49:17]CommunicateWithHost err = 0 [11:49:17]CheckOFDResponse [11:49:17]1017 (14) - 77093643461234 [11:49:17]1041 (16) - 0000000000875083 [11:49:17]1040 (4) - 112198 [11:49:17]1012 (4) - 22.06.2024 04:21 [11:49:17]1206 (1) - 0 [11:49:17]OFD Sender: Remove packet 112198 [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00112198 [11:49:17]NVStorageDeleteData [11:49:17]Write to MH i2c: 01 00 00 D2 28 FA [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 E6 0C F3 [11:49:17]RasterBufferAndPrint [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]written 0, free lines is 3309 [11:49:17]MH_Cut [11:49:17]Write to MH i2c: D1 01 00 D9 28 01 D3 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 D9 28 00 D2 [11:49:17]Write to MH i2c: 01 00 00 DA 28 02 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]OFD Sender: No OFD packet to send [11:49:18]*** Cut start [11:49:18]*** Partial cut [11:49:18]*** CUTSNS_PIN = 1 [11:49:18]*** CUTSNS_PIN = 0 [11:49:18]*** Brake cut motor [11:49:18]Read from MH i2c: 01 [11:49:18]MH_I2C_Read... [11:49:18]*** Stop cut motor [11:49:18]*** Cut end [11:49:18]Read from MH i2c: 01 07 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: 01 07 00 DA 28 00 00 00 00 00 FF 0F 17 [11:49:18]process_action close_receipt done [11:49:18]requested_data is exist [11:49:18]produce_requested_data [11:49:18]requested_item fm.sn is exist - process it [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 11 00 00 [11:49:18]Write to MH i2c: E2 08 00 DB 28 80 11 00 00 00 00 00 00 7D [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 17 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 17 00 DB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [11:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:49:19]wFMCommunicate OK [11:49:19]requested_item fd.num is exist - process it [11:49:19]SAM_PROTO_GetFieldsCounters [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 00 00 [11:49:19]Write to MH i2c: E2 08 00 DC 28 80 13 00 00 00 00 00 00 80 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 62 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 62 00 DC 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetFieldsCounters done [11:49:19]requested_item shift.num is exist - process it [11:49:19]requested_item shift.opened is exist - process it [11:49:19]req_shift_opened [11:49:19]FM_GetShiftState [11:49:19]SAM_PROTO_GetShiftState [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 01 00 [11:49:19]Write to MH i2c: E2 08 00 DD 28 80 13 01 00 00 00 00 00 82 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 DD 28 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B7 [11:49:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetShiftState done [11:49:19]FM_GetShiftState done [11:49:19]req_shift_opened done [11:49:19]requested_item shift.open_date is exist - process it [11:49:19]req_shift_open_date [11:49:19]req_shift_open_date done [11:49:19]produce_requested_data done [11:49:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112198,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:49:19]process_action_free close_receipt [11:49:19]json_value_free [11:49:19]json_value_free done [11:49:19]process_json_proto returns [11:49:19]Send response to host [11:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112198,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:49:19]free response buf [11:49:19]execute_script done [11:49:19]execute_script returns [11:49:19]free content buf [11:49:19]Sock 9.Close socket [11:49:19]Sock 9.Thread stoped [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:40]accept exits with 7 [11:53:40]New connection [11:53:40]New thread 3066957156 created [11:53:40]Thread 3066813796 joined [11:53:40]Waiting for new connection... [11:53:40] Sock 7.Parse request [11:53:40]Sock 7.Check first char [11:53:40]Sock 7.First char is OK [11:53:40]request: POST /json_proto HTTP/1.0 [11:53:40]Method: POST [11:53:40]URL: /json_proto [11:53:40]Method is POST - this is cgi request [11:53:40]url: /json_proto [11:53:40]query_string will be loaded in cgi processing [11:53:40]execute_cgi json_proto POST (null) [11:53:40]execute_cgi path=json_proto method=POST [11:53:40]POST find Content-Length [11:53:40]Host: 172.17.59.68:8080 [11:53:40]Content-Length: 682 [11:53:40]Content-Type: application/json [11:53:40] [11:53:40]POST finish read [11:53:40]Found Content-Length = 682 [11:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320871", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:40]execute_script... [11:53: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)320871", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:40]POST & json_proto [11:53:40]process_json_proto [11:53:40]json parsed OK: [11:53:40]protocol is kg_v1.0 [11:53:40]action value=close_receipt [11:53:40]process_action close_receipt [11:53:40]cmd_close_receipt [11:53:40]MH_GetDate [11:53:40]Write to MH i2c: F0 00 00 DE 28 F5 [11:53:40]Write i2c OK [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: F0 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: F0 09 00 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: F0 09 00 DE 28 00 5A BB 76 66 BC EC 60 65 5C [11:53:40]GetLastDocTimeStamp 1719056977 [11:53:40]current date 1719057242 [11:53:40]FM_GetShiftState [11:53:40]SAM_PROTO_GetShiftState [11:53:40]wFMCommunicate request_size=4 [11:53:40]MH_SAM_APDU [11:53:40]CAPDU: 80 13 01 00 [11:53:40]Write to MH i2c: E2 08 00 DF 28 80 13 01 00 00 00 00 00 84 [11:53:40]Write i2c OK [11:53:40]MH_I2C_Read... [11:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:40]Read from MH i2c: E2 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: E2 0E 00 [11:53:40]MH_I2C_Read... [11:53:40]Read from MH i2c: E2 0E 00 DF 28 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B9 [11:53:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:53:40]wFMCommunicate OK [11:53:40]SAM_PROTO_GetShiftState done [11:53:40]FM_GetShiftState done [11:53:40]opened in 1719020067 [11:53:40]opened+sec_in_day 1719106467 [11:53:40]quantity*price = 100064 [11:53:40]sum+1 = 100066 [11:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 65 22.06.2024 11:54 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112199 ФПД: 278027138599615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115402&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112199&fm=278027138599615&tin=02508201610067®Number=0000000000092771&sum=100000 [11:53:41]StoreToDocumentArchive [11:53:41]shift 391 fd 112199 [11:53:41]save to /storage/0391/doc_00112199 [11:53:41]save last doc name /storage/0391/doc_00112199 to /storage/kkm_last_doc_name [11:53:41]save OK [11:53:41]Clear old archive folders... [11:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:41]tlvbuf is 011C7E20 [11:53:41]SAM_PROTO_ClearQueue [11:53:41]wFMCommunicate request_size=4 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 09 00 00 [11:53:41]Write to MH i2c: E2 08 00 EC 28 80 09 00 00 00 00 00 00 86 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [11:53:41]RAPDU: 90 00 [11:53:41]wFMCommunicate OK [11:53:41]SAM_PROTO_ClearQueue done [11:53:41]KKMCreateOFDPacket [11:53:41]OFDProtocolAddRootSTLVToBuf [11:53:41]FM_MakeSignedData [11:53:41]FM_MakeSignedData [11:53:41]SAM_PROTO_SignData [11:53:41]wFMCommunicate request_size=4 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 0D 01 02 [11:53:41]Write to MH i2c: E2 08 00 ED 28 80 0D 01 02 00 00 00 00 8E [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [11:53:41]RAPDU: 90 00 [11:53:41]wFMCommunicate OK [11:53:41]wFMCommunicate request_size=255 [11:53:41]MH_SAM_APDU [11:53: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5A BB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B6 01 00 35 04 06 00 FC [11:53:41]Write to MH i2c: E2 02 01 EE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5A BB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B6 01 00 35 04 06 00 FC 00 00 46 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [11:53:42]RAPDU: 90 00 [11:53:42]wFMCommunicate OK [11:53:42]wFMCommunicate request_size=10 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 0D 02 02 05 DD 3C D5 8A BF [11:53:42]Write to MH i2c: E2 0D 00 EF 28 80 0D 02 02 05 00 DD 3C D5 8A BF 00 00 D2 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [11:53:42]RAPDU: 90 00 [11:53:42]wFMCommunicate OK [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 0D 03 02 [11:53:42]Write to MH i2c: E2 08 00 F0 28 80 0D 03 02 00 00 00 00 93 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0B 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0B 00 F0 28 00 C8 1E 67 B0 58 A7 78 7C 90 00 84 [11:53:42]RAPDU: C8 1E 67 B0 58 A7 78 7C 90 00 [11:53:42]wFMCommunicate OK [11:53:42]SAM_PROTO_SignData done [11:53:42]FM_MakeSignedData done [11:53:42]CreateOFDProtocolMessage [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 11 00 00 [11:53:42]Write to MH i2c: E2 08 00 F1 28 80 11 00 00 00 00 00 00 93 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 17 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 17 00 F1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [11:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:53:42]wFMCommunicate OK [11:53:42]CreateOFDProtocolMessage done [11:53:42]OFDSenderStorePacket 112199 [11:53:42]StoreOFDPacket docnum=112199 [11:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 BE 07 01 E5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5A BB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B6 01 00 35 04 06 00 FC DD 3C D5 8A BF C8 1E 67 B0 58 A7 78 7C [11:53:42]CheckFolder [11:53:42]dirname=/storage/ofd_packets [11:53:42]CheckFolder done [11:53:42]ProducePacketName [11:53:42]name=ofd_packets/00112199 [11:53:42]NVStorageSaveData ofd_packets/00112199 [11:53:42]File name is /storage/ofd_packets/00112199 [11:53:42]Write 301 bytes [11:53:42]NVStorageSaveData done [11:53:42]OFDSenderStorePacket done [11:53:42]KKMCreateOFDPacket done [11:53:42]NVStorageSaveData kkm_last_timestamp [11:53:42]File name is /storage/kkm_last_timestamp [11:53:42]Write 4 bytes [11:53:42]NVStorageSaveData done [11:53:42]ExternCall_PrintAddStr [11:53:42]wPrintStart [11:53:42]Write to MH i2c: 01 00 00 F2 28 1A [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 07 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 07 00 F2 28 00 00 00 00 00 FF 0F 2F [11:53:42]RasterBufferAndPrint [11:53:42]line Счет N : (1)320871 [11:53:42]line ИНН: 02508201610067 [11:53:42]line Контрольно-Кассовый Чек [11:53:42]line ПРОДАЖА [11:53:42]line ТРК (МРК, ГНК) : 11 [11:53:42]line Товар: 2710124130 [11:53:42]line Аи-92-К-5 [11:53:42]line 15.070 * 66.40 [11:53:42]line = 1000.65 [11:53:42]line НДС 12% НСП 1% [11:53:42]line > о реализуемом товаре [11:53:42]line ОКРУГЛЕНИЕ: -0.65 [11:53:42]line ИТОГО: 1000.00 [11:53:42]line Внесено: 1000.00 [11:53:42]line СДАЧА: 0.00 [11:53:42]line НСП 1% : 8.85 [11:53:42]line НДС 12% : 106.26 [11:53:42]line Наличными: 1000.00 [11:53:42]line Безнал.: 0.00 [11:53:42]line Место: АЗС № 65 "Партнер Нефть" [11:53:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:53:42]line СНО: Общий режим [11:53:42]line Чек 65 22.06.2024 11:54 [11:53:42]line Смена: 391 ФФД: 1.0 [11:53:42]line ЗНМ: 0300000198 [11:53:42]line РНМ: 0000000000092771 [11:53:42]line Версия ККМ: 001 [11:53:42]line ФМ: 0000000000875083 [11:53:42]line ФД: 112199 [11:53:42]line ФПД: 278027138599615 [11:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115402&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112199&fm=278027138599615&tin=02508201610067®Number=0000000000092771&sum=100000 [11:53:42]OFD Sender: Processing packet 112199 [packets to send 38, broken 37] [11:53:42]ProducePacketName [11:53:42]name=ofd_packets/00112199 [11:53:42]OFD Sender: To server: pG, [11:53:42]CommunicateWithHost lk.salyk.kg:30040 [11:53:42]ConnectInit lk.salyk.kg [11:53:42]written 0, free lines is 4095 [11:53:42]Connected sock=10 [11:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 BE 07 01 E5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5A BB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B6 01 00 35 04 06 00 FC DD 3C D5 8A BF C8 1E 67 B0 58 A7 78 7C [11:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 11 5B 47 00 67 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B6 01 00 F4 03 04 00 68 52 76 66 B6 04 01 00 00 69 5B DE A3 45 FA 19 A3 [11:53:43]CommunicateWithHost err = 0 [11:53:43]CheckOFDResponse [11:53:43]1017 (14) - 77093643461234 [11:53:43]1041 (16) - 0000000000875083 [11:53:43]1040 (4) - 112199 [11:53:43]1012 (4) - 22.06.2024 04:26 [11:53:43]1206 (1) - 0 [11:53:43]OFD Sender: Remove packet 112199 [11:53:43]ProducePacketName [11:53:43]name=ofd_packets/00112199 [11:53:43]NVStorageDeleteData [11:53:43]Write to MH i2c: 01 00 00 1D 29 46 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 1D 29 00 00 00 00 00 F0 0C 49 [11:53:43]RasterBufferAndPrint [11:53:43]line [11:53:43]line [11:53:43]line [11:53:43]line [11:53:43]line [11:53:43]written 0, free lines is 3318 [11:53:43]MH_Cut [11:53:43]Write to MH i2c: D1 01 00 24 29 01 1F [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: D1 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: D1 01 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: D1 01 00 24 29 00 1E [11:53:43]Write to MH i2c: 01 00 00 25 29 4E [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]OFD Sender: No OFD packet to send [11:53:43]*** Cut start [11:53:43]*** Partial cut [11:53:43]*** CUTSNS_PIN = 1 [11:53:44]*** CUTSNS_PIN = 0 [11:53:44]*** Brake cut motor [11:53:44]Read from MH i2c: 01 [11:53:44]MH_I2C_Read... [11:53:44]*** Stop cut motor [11:53:44]*** Cut end [11:53:44]Read from MH i2c: 01 07 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: 01 07 00 25 29 00 00 00 00 00 FF 0F 63 [11:53:44]process_action close_receipt done [11:53:44]requested_data is exist [11:53:44]produce_requested_data [11:53:44]requested_item fm.sn is exist - process it [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 11 00 00 [11:53:44]Write to MH i2c: E2 08 00 26 29 80 11 00 00 00 00 00 00 C9 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 17 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 17 00 26 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [11:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:53:44]wFMCommunicate OK [11:53:44]requested_item fd.num is exist - process it [11:53:44]SAM_PROTO_GetFieldsCounters [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 13 00 00 [11:53:44]Write to MH i2c: E2 08 00 27 29 80 13 00 00 00 00 00 00 CC [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 62 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 62 00 27 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:44]wFMCommunicate OK [11:53:44]SAM_PROTO_GetFieldsCounters done [11:53:44]requested_item shift.num is exist - process it [11:53:44]requested_item shift.opened is exist - process it [11:53:44]req_shift_opened [11:53:44]FM_GetShiftState [11:53:44]SAM_PROTO_GetShiftState [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 13 01 00 [11:53:44]Write to MH i2c: E2 08 00 28 29 80 13 01 00 00 00 00 00 CE [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 0E 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 0E 00 28 29 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 03 [11:53:44]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:53:44]wFMCommunicate OK [11:53:44]SAM_PROTO_GetShiftState done [11:53:44]FM_GetShiftState done [11:53:44]req_shift_opened done [11:53:44]requested_item shift.open_date is exist - process it [11:53:44]req_shift_open_date [11:53:44]req_shift_open_date done [11:53:44]produce_requested_data done [11:53:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112199,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:53:44]process_action_free close_receipt [11:53:44]json_value_free [11:53:44]json_value_free done [11:53:44]process_json_proto returns [11:53:44]Send response to host [11:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112199,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:53:44]free response buf [11:53:44]execute_script done [11:53:44]execute_script returns [11:53:44]free content buf [11:53:44]Sock 7.Close socket [11:53:44]Sock 7.Thread stoped [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:04]accept exits with 9 [11:57:04]New connection [11:57:04]New thread 3066813796 created [11:57:04]Thread 3066957156 joined [11:57:04]Waiting for new connection... [11:57:04] Sock 9.Parse request [11:57:04]Sock 9.Check first char [11:57:04]Sock 9.First char is OK [11:57:04]request: POST /json_proto HTTP/1.0 [11:57:04]Method: POST [11:57:04]URL: /json_proto [11:57:04]Method is POST - this is cgi request [11:57:04]url: /json_proto [11:57:04]query_string will be loaded in cgi processing [11:57:04]execute_cgi json_proto POST (null) [11:57:04]execute_cgi path=json_proto method=POST [11:57:04]POST find Content-Length [11:57:04]Host: 172.17.59.68:8080 [11:57:04]Content-Length: 682 [11:57:04]Content-Type: application/json [11:57:04] [11:57:04]POST finish read [11:57:04]Found Content-Length = 682 [11:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320872", "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.40, "quantity" : 18.080, "sum" : 1200.51, "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" ] } } [11:57:04]execute_script... [11:57: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)320872", "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.40, "quantity" : 18.080, "sum" : 1200.51, "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" ] } } [11:57:04]POST & json_proto [11:57:04]process_json_proto [11:57:04]json parsed OK: [11:57:04]protocol is kg_v1.0 [11:57:04]action value=close_receipt [11:57:04]process_action close_receipt [11:57:04]cmd_close_receipt [11:57:04]MH_GetDate [11:57:04]Write to MH i2c: F0 00 00 29 29 41 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: F0 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: F0 09 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: F0 09 00 29 29 00 26 BC 76 66 BC EC 60 65 75 [11:57:04]GetLastDocTimeStamp 1719057242 [11:57:04]current date 1719057446 [11:57:04]FM_GetShiftState [11:57:04]SAM_PROTO_GetShiftState [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 13 01 00 [11:57:04]Write to MH i2c: E2 08 00 2A 29 80 13 01 00 00 00 00 00 D0 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 0E 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 0E 00 2A 29 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 05 [11:57:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:57:04]wFMCommunicate OK [11:57:04]SAM_PROTO_GetShiftState done [11:57:04]FM_GetShiftState done [11:57:04]opened in 1719020067 [11:57:04]opened+sec_in_day 1719106467 [11:57:04]quantity*price = 120051 [11:57:04]sum+1 = 120052 [11:57:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 66 22.06.2024 11:57 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112200 ФПД: 115297221712824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115726&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112200&fm=115297221712824&tin=02508201610067®Number=0000000000092771&sum=120000 [11:57:05]StoreToDocumentArchive [11:57:05]shift 391 fd 112200 [11:57:05]save to /storage/0391/doc_00112200 [11:57:05]save last doc name /storage/0391/doc_00112200 to /storage/kkm_last_doc_name [11:57:05]save OK [11:57:05]Clear old archive folders... [11:57:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:05]tlvbuf is B6EA9290 [11:57:05]SAM_PROTO_ClearQueue [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 09 00 00 [11:57:05]Write to MH i2c: E2 08 00 37 29 80 09 00 00 00 00 00 00 D2 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [11:57:05]RAPDU: 90 00 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_ClearQueue done [11:57:05]KKMCreateOFDPacket [11:57:05]OFDProtocolAddRootSTLVToBuf [11:57:05]FM_MakeSignedData [11:57:05]FM_MakeSignedData [11:57:05]SAM_PROTO_SignData [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 0D 01 02 [11:57:05]Write to MH i2c: E2 08 00 38 29 80 0D 01 02 00 00 00 00 DA [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [11:57:05]RAPDU: 90 00 [11:57:05]wFMCommunicate OK [11:57:05]wFMCommunicate request_size=255 [11:57:05]MH_SAM_APDU [11:57: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 42 00 00 00 F4 03 04 00 26 BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B6 01 00 35 04 06 00 68 [11:57:05]Write to MH i2c: E2 02 01 39 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 42 00 00 00 F4 03 04 00 26 BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B6 01 00 35 04 06 00 68 00 00 DC [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [11:57:05]RAPDU: 90 00 [11:57:05]wFMCommunicate OK [11:57:05]wFMCommunicate request_size=10 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 0D 02 02 05 DC B9 F1 9B B8 [11:57:05]Write to MH i2c: E2 0D 00 3A 29 80 0D 02 02 05 00 DC B9 F1 9B B8 00 00 C0 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [11:57:05]RAPDU: 90 00 [11:57:05]wFMCommunicate OK [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 0D 03 02 [11:57:05]Write to MH i2c: E2 08 00 3B 29 80 0D 03 02 00 00 00 00 DF [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0B 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0B 00 3B 29 00 C3 E9 24 3B 2E A6 EF A8 90 00 56 [11:57:05]RAPDU: C3 E9 24 3B 2E A6 EF A8 90 00 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_SignData done [11:57:05]FM_MakeSignedData done [11:57:05]CreateOFDProtocolMessage [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 11 00 00 [11:57:05]Write to MH i2c: E2 08 00 3C 29 80 11 00 00 00 00 00 00 DF [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 3C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [11:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:57:05]wFMCommunicate OK [11:57:05]CreateOFDProtocolMessage done [11:57:05]OFDSenderStorePacket 112200 [11:57:05]StoreOFDPacket docnum=112200 [11:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B DB 07 01 EA 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 42 00 00 00 F4 03 04 00 26 BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B6 01 00 35 04 06 00 68 DC B9 F1 9B B8 C3 E9 24 3B 2E A6 EF A8 [11:57:05]CheckFolder [11:57:05]dirname=/storage/ofd_packets [11:57:05]CheckFolder done [11:57:05]ProducePacketName [11:57:05]name=ofd_packets/00112200 [11:57:05]NVStorageSaveData ofd_packets/00112200 [11:57:05]File name is /storage/ofd_packets/00112200 [11:57:05]Write 301 bytes [11:57:05]NVStorageSaveData done [11:57:05]OFDSenderStorePacket done [11:57:05]KKMCreateOFDPacket done [11:57:05]NVStorageSaveData kkm_last_timestamp [11:57:05]File name is /storage/kkm_last_timestamp [11:57:05]Write 4 bytes [11:57:05]NVStorageSaveData done [11:57:05]OFD Sender: Processing packet 112200 [packets to send 38, broken 37] [11:57:05]ProducePacketName [11:57:05]name=ofd_packets/00112200 [11:57:05]OFD Sender: To server: pG, [11:57:05]CommunicateWithHost lk.salyk.kg:30040 [11:57:05]ConnectInit lk.salyk.kg [11:57:05]ExternCall_PrintAddStr [11:57:05]wPrintStart [11:57:05]Write to MH i2c: 01 00 00 3D 29 66 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 3D 29 00 00 00 00 00 FF 0F 7B [11:57:05]RasterBufferAndPrint [11:57:05]line Счет N : (1)320872 [11:57:05]line ИНН: 02508201610067 [11:57:05]line Контрольно-Кассовый Чек [11:57:05]line ПРОДАЖА [11:57:05]line ТРК (МРК, ГНК) : 11 [11:57:05]line Товар: 2710124130 [11:57:05]line Аи-92-К-5 [11:57:05]line 18.080 * 66.40 [11:57:05]line = 1200.51 [11:57:05]line НДС 12% НСП 1% [11:57:05]line > о реализуемом товаре [11:57:05]line ОКРУГЛЕНИЕ: -0.51 [11:57:05]line ИТОГО: 1200.00 [11:57:05]line Внесено: 1200.00 [11:57:05]line СДАЧА: 0.00 [11:57:05]line НСП 1% : 10.62 [11:57:05]line НДС 12% : 127.49 [11:57:05]line Наличными: 1200.00 [11:57:05]line Безнал.: 0.00 [11:57:05]line Место: АЗС № 65 "Партнер Нефть" [11:57:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:57:05]line СНО: Общий режим [11:57:05]line Чек 66 22.06.2024 11:57 [11:57:05]line Смена: 391 ФФД: 1.0 [11:57:05]line ЗНМ: 0300000198 [11:57:05]line РНМ: 0000000000092771 [11:57:05]line Версия ККМ: 001 [11:57:05]line ФМ: 0000000000875083 [11:57:05]line ФД: 112200 [11:57:05]line ФПД: 115297221712824 [11:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T115726&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112200&fm=115297221712824&tin=02508201610067®Number=0000000000092771&sum=120000 [11:57:06]Connected sock=11 [11:57:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B DB 07 01 EA 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 42 00 00 00 F4 03 04 00 26 BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B6 01 00 35 04 06 00 68 DC B9 F1 9B B8 C3 E9 24 3B 2E A6 EF A8 [11:57:06]written 0, free lines is 4095 [11:57:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6B 60 47 00 38 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B6 01 00 F4 03 04 00 33 53 76 66 B6 04 01 00 00 95 BC 8F 75 34 D7 5D 5B [11:57:06]CommunicateWithHost err = 0 [11:57:06]CheckOFDResponse [11:57:06]1017 (14) - 77093643461234 [11:57:06]1041 (16) - 0000000000875083 [11:57:06]1040 (4) - 112200 [11:57:06]1012 (4) - 22.06.2024 04:29 [11:57:06]1206 (1) - 0 [11:57:06]OFD Sender: Remove packet 112200 [11:57:06]ProducePacketName [11:57:06]name=ofd_packets/00112200 [11:57:06]NVStorageDeleteData [11:57:06]Write to MH i2c: 01 00 00 68 29 91 [11:57:06]Write i2c OK [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: 01 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: 01 07 00 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: 01 07 00 68 29 00 00 00 00 00 DC 0C 80 [11:57:06]RasterBufferAndPrint [11:57:06]line [11:57:06]line [11:57:06]line [11:57:06]line [11:57:06]line [11:57:06]written 0, free lines is 3302 [11:57:06]MH_Cut [11:57:06]Write to MH i2c: D1 01 00 6F 29 01 6A [11:57:06]Write i2c OK [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: D1 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: D1 01 00 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: D1 01 00 6F 29 00 69 [11:57:06]Write to MH i2c: 01 00 00 70 29 99 [11:57:06]Write i2c OK [11:57:06]MH_I2C_Read... [11:57:06]OFD Sender: No OFD packet to send [11:57:07]*** Cut start [11:57:07]*** Partial cut [11:57:07]*** CUTSNS_PIN = 1 [11:57:07]*** CUTSNS_PIN = 0 [11:57:07]*** Brake cut motor [11:57:08]Read from MH i2c: 01 [11:57:08]MH_I2C_Read... [11:57:08]*** Stop cut motor [11:57:08]*** Cut end [11:57:08]Read from MH i2c: 01 07 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: 01 07 00 70 29 00 00 00 00 00 FF 0F AE [11:57:08]process_action close_receipt done [11:57:08]requested_data is exist [11:57:08]produce_requested_data [11:57:08]requested_item fm.sn is exist - process it [11:57:08]wFMCommunicate request_size=4 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 11 00 00 [11:57:08]Write to MH i2c: E2 08 00 71 29 80 11 00 00 00 00 00 00 14 [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:08]Read from MH i2c: E2 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 17 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 17 00 71 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [11:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:57:08]wFMCommunicate OK [11:57:08]requested_item fd.num is exist - process it [11:57:08]SAM_PROTO_GetFieldsCounters [11:57:08]wFMCommunicate request_size=4 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 13 00 00 [11:57:08]Write to MH i2c: E2 08 00 72 29 80 13 00 00 00 00 00 00 17 [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:08]Read from MH i2c: E2 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 62 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 62 00 72 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:57:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:08]wFMCommunicate OK [11:57:08]SAM_PROTO_GetFieldsCounters done [11:57:08]requested_item shift.num is exist - process it [11:57:08]requested_item shift.opened is exist - process it [11:57:08]req_shift_opened [11:57:08]FM_GetShiftState [11:57:08]SAM_PROTO_GetShiftState [11:57:08]wFMCommunicate request_size=4 [11:57:08]MH_SAM_APDU [11:57:08]CAPDU: 80 13 01 00 [11:57:08]Write to MH i2c: E2 08 00 73 29 80 13 01 00 00 00 00 00 19 [11:57:08]Write i2c OK [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 [11:57:08]MH_I2C_Read... [11:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:08]Read from MH i2c: E2 0E 00 [11:57:08]MH_I2C_Read... [11:57:08]Read from MH i2c: E2 0E 00 73 29 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4E [11:57:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [11:57:08]wFMCommunicate OK [11:57:08]SAM_PROTO_GetShiftState done [11:57:08]FM_GetShiftState done [11:57:08]req_shift_opened done [11:57:08]requested_item shift.open_date is exist - process it [11:57:08]req_shift_open_date [11:57:08]req_shift_open_date done [11:57:08]produce_requested_data done [11:57:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112200,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [11:57:08]process_action_free close_receipt [11:57:08]json_value_free [11:57:08]json_value_free done [11:57:08]process_json_proto returns [11:57:08]Send response to host [11:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112200,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [11:57:08]free response buf [11:57:08]execute_script done [11:57:08]execute_script returns [11:57:08]free content buf [11:57:08]Sock 9.Close socket [11:57:08]Sock 9.Thread stoped [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:24]accept exits with 7 [12:00:24]New connection [12:00:24]New thread 3066957156 created [12:00:24]Thread 3066813796 joined [12:00:24]Waiting for new connection... [12:00:24] Sock 7.Parse request [12:00:24]Sock 7.Check first char [12:00:24]Sock 7.First char is OK [12:00:24]request: POST /json_proto HTTP/1.0 [12:00:24]Method: POST [12:00:24]URL: /json_proto [12:00:24]Method is POST - this is cgi request [12:00:24]url: /json_proto [12:00:24]query_string will be loaded in cgi processing [12:00:24]execute_cgi json_proto POST (null) [12:00:24]execute_cgi path=json_proto method=POST [12:00:24]POST find Content-Length [12:00:24]Host: 172.17.59.68:8080 [12:00:24]Content-Length: 677 [12:00:24]Content-Type: application/json [12:00:24] [12:00:24]POST finish read [12:00:24]Found Content-Length = 677 [12:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320873", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:24]execute_script... [12: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)320873", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:24]POST & json_proto [12:00:24]process_json_proto [12:00:24]json parsed OK: [12:00:24]protocol is kg_v1.0 [12:00:24]action value=close_receipt [12:00:24]process_action close_receipt [12:00:24]cmd_close_receipt [12:00:24]MH_GetDate [12:00:24]Write to MH i2c: F0 00 00 74 29 8C [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: F0 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: F0 09 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: F0 09 00 74 29 00 EF BC 76 66 BC EC 60 65 89 [12:00:24]GetLastDocTimeStamp 1719057446 [12:00:24]current date 1719057647 [12:00:24]FM_GetShiftState [12:00:24]SAM_PROTO_GetShiftState [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 13 01 00 [12:00:24]Write to MH i2c: E2 08 00 75 29 80 13 01 00 00 00 00 00 1B [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0E 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0E 00 75 29 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 50 [12:00:24]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:00:24]wFMCommunicate OK [12:00:24]SAM_PROTO_GetShiftState done [12:00:24]FM_GetShiftState done [12:00:24]opened in 1719020067 [12:00:24]opened+sec_in_day 1719106467 [12:00:24]quantity*price = 50065 [12:00:24]sum+1 = 50067 [12:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 67 22.06.2024 12:00 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112201 ФПД: 108156239016909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120047&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112201&fm=108156239016909&tin=02508201610067®Number=0000000000092771&sum=50000 [12:00:26]StoreToDocumentArchive [12:00:26]shift 391 fd 112201 [12:00:26]save to /storage/0391/doc_00112201 [12:00:26]save last doc name /storage/0391/doc_00112201 to /storage/kkm_last_doc_name [12:00:26]save OK [12:00:26]Clear old archive folders... [12:00:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:26]tlvbuf is B6EC20E0 [12:00:26]SAM_PROTO_ClearQueue [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 09 00 00 [12:00:26]Write to MH i2c: E2 08 00 82 29 80 09 00 00 00 00 00 00 1D [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [12:00:26]RAPDU: 90 00 [12:00:26]wFMCommunicate OK [12:00:26]SAM_PROTO_ClearQueue done [12:00:26]KKMCreateOFDPacket [12:00:26]OFDProtocolAddRootSTLVToBuf [12:00:26]FM_MakeSignedData [12:00:26]FM_MakeSignedData [12:00:26]SAM_PROTO_SignData [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 0D 01 02 [12:00:26]Write to MH i2c: E2 08 00 83 29 80 0D 01 02 00 00 00 00 25 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [12:00:26]RAPDU: 90 00 [12:00:26]wFMCommunicate OK [12:00:26]wFMCommunicate request_size=255 [12:00:26]MH_SAM_APDU [12: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EF BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B6 01 00 35 04 06 00 62 [12:00:26]Write to MH i2c: E2 02 01 84 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EF BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B6 01 00 35 04 06 00 62 00 00 8D [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [12:00:26]RAPDU: 90 00 [12:00:26]wFMCommunicate OK [12:00:26]wFMCommunicate request_size=10 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 0D 02 02 05 5E 16 34 F3 CD [12:00:26]Write to MH i2c: E2 0D 00 85 29 80 0D 02 02 05 00 5E 16 34 F3 CD 00 00 9A [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [12:00:26]RAPDU: 90 00 [12:00:26]wFMCommunicate OK [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 0D 03 02 [12:00:26]Write to MH i2c: E2 08 00 86 29 80 0D 03 02 00 00 00 00 2A [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 0B 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 0B 00 86 29 00 20 44 48 F2 8F B1 4D 7B 90 00 D1 [12:00:26]RAPDU: 20 44 48 F2 8F B1 4D 7B 90 00 [12:00:26]wFMCommunicate OK [12:00:26]SAM_PROTO_SignData done [12:00:26]FM_MakeSignedData done [12:00:26]CreateOFDProtocolMessage [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 11 00 00 [12:00:26]Write to MH i2c: E2 08 00 87 29 80 11 00 00 00 00 00 00 2A [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 17 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 17 00 87 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [12:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:00:26]wFMCommunicate OK [12:00:26]CreateOFDProtocolMessage done [12:00:26]OFDSenderStorePacket 112201 [12:00:26]StoreOFDPacket docnum=112201 [12:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 1A 07 01 51 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EF BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B6 01 00 35 04 06 00 62 5E 16 34 F3 CD 20 44 48 F2 8F B1 4D 7B [12:00:26]CheckFolder [12:00:26]dirname=/storage/ofd_packets [12:00:26]CheckFolder done [12:00:26]ProducePacketName [12:00:26]name=ofd_packets/00112201 [12:00:26]NVStorageSaveData ofd_packets/00112201 [12:00:26]File name is /storage/ofd_packets/00112201 [12:00:26]Write 301 bytes [12:00:26]NVStorageSaveData done [12:00:26]OFDSenderStorePacket done [12:00:26]KKMCreateOFDPacket done [12:00:26]NVStorageSaveData kkm_last_timestamp [12:00:26]File name is /storage/kkm_last_timestamp [12:00:26]Write 4 bytes [12:00:26]NVStorageSaveData done [12:00:26]ExternCall_PrintAddStr [12:00:26]wPrintStart [12:00:26]Write to MH i2c: 01 00 00 88 29 B1 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: 01 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: 01 07 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: 01 07 00 88 29 00 00 00 00 00 FF 0F C6 [12:00:26]RasterBufferAndPrint [12:00:26]line Счет N : (1)320873 [12:00:26]line ИНН: 02508201610067 [12:00:26]line Контрольно-Кассовый Чек [12:00:26]line ПРОДАЖА [12:00:26]line ТРК (МРК, ГНК) : 11 [12:00:26]line Товар: 2710124130 [12:00:26]line Аи-92-К-5 [12:00:26]line 7.540 * 66.40 [12:00:26]line = 500.66 [12:00:26]line НДС 12% НСП 1% [12:00:26]line > о реализуемом товаре [12:00:26]line ОКРУГЛЕНИЕ: -0.66 [12:00:26]line ИТОГО: 500.00 [12:00:26]line Внесено: 500.00 [12:00:26]line СДАЧА: 0.00 [12:00:26]line НСП 1% : 4.43 [12:00:26]line НДС 12% : 53.17 [12:00:26]line Наличными: 500.00 [12:00:26]line Безнал.: 0.00 [12:00:26]line Место: АЗС № 65 "Партнер Нефть" [12:00:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:00:26]line СНО: Общий режим [12:00:26]line Чек 67 22.06.2024 12:00 [12:00:26]line Смена: 391 ФФД: 1.0 [12:00:26]line ЗНМ: 0300000198 [12:00:26]line РНМ: 0000000000092771 [12:00:26]line Версия ККМ: 001 [12:00:26]line ФМ: 0000000000875083 [12:00:26]line ФД: 112201 [12:00:26]line ФПД: 108156239016909 [12:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120047&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112201&fm=108156239016909&tin=02508201610067®Number=0000000000092771&sum=50000 [12:00:26]written 0, free lines is 4095 [12:00:26]OFD Sender: Processing packet 112201 [packets to send 38, broken 37] [12:00:26]ProducePacketName [12:00:26]name=ofd_packets/00112201 [12:00:26]OFD Sender: To server: pG, [12:00:26]CommunicateWithHost lk.salyk.kg:30040 [12:00:26]ConnectInit lk.salyk.kg [12:00:26]Connected sock=10 [12:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 1A 07 01 51 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EF BC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B6 01 00 35 04 06 00 62 5E 16 34 F3 CD 20 44 48 F2 8F B1 4D 7B [12:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 08 12 47 00 3C DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B6 01 00 F4 03 04 00 FB 53 76 66 B6 04 01 00 00 3B AA F5 1C 45 9A 58 20 [12:00:26]CommunicateWithHost err = 0 [12:00:26]CheckOFDResponse [12:00:26]1017 (14) - 77093643461234 [12:00:26]1041 (16) - 0000000000875083 [12:00:26]1040 (4) - 112201 [12:00:26]1012 (4) - 22.06.2024 04:32 [12:00:26]1206 (1) - 0 [12:00:26]OFD Sender: Remove packet 112201 [12:00:26]ProducePacketName [12:00:26]name=ofd_packets/00112201 [12:00:26]NVStorageDeleteData [12:00:27]Write to MH i2c: 01 00 00 B3 29 DC [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: 01 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: 01 07 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: 01 07 00 B3 29 00 00 00 00 00 E4 0C D3 [12:00:27]RasterBufferAndPrint [12:00:27]line [12:00:27]line [12:00:27]line [12:00:27]line [12:00:27]line [12:00:27]written 0, free lines is 3306 [12:00:27]MH_Cut [12:00:27]Write to MH i2c: D1 01 00 BA 29 01 B5 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: D1 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: D1 01 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: D1 01 00 BA 29 00 B4 [12:00:27]Write to MH i2c: 01 00 00 BB 29 E4 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]OFD Sender: No OFD packet to send [12:00:27]*** Cut start [12:00:27]*** Partial cut [12:00:27]*** CUTSNS_PIN = 1 [12:00:27]*** CUTSNS_PIN = 0 [12:00:28]*** Brake cut motor [12:00:28]Read from MH i2c: 01 [12:00:28]MH_I2C_Read... [12:00:28]*** Stop cut motor [12:00:28]*** Cut end [12:00:28]Read from MH i2c: 01 07 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 BB 29 00 00 00 00 00 FF 0F F9 [12:00:28]process_action close_receipt done [12:00:28]requested_data is exist [12:00:28]produce_requested_data [12:00:28]requested_item fm.sn is exist - process it [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 11 00 00 [12:00:28]Write to MH i2c: E2 08 00 BC 29 80 11 00 00 00 00 00 00 5F [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:28]Read from MH i2c: E2 17 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 BC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [12:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:00:28]wFMCommunicate OK [12:00:28]requested_item fd.num is exist - process it [12:00:28]SAM_PROTO_GetFieldsCounters [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 13 00 00 [12:00:28]Write to MH i2c: E2 08 00 BD 29 80 13 00 00 00 00 00 00 62 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 62 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 62 00 BD 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_GetFieldsCounters done [12:00:28]requested_item shift.num is exist - process it [12:00:28]requested_item shift.opened is exist - process it [12:00:28]req_shift_opened [12:00:28]FM_GetShiftState [12:00:28]SAM_PROTO_GetShiftState [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 13 01 00 [12:00:28]Write to MH i2c: E2 08 00 BE 29 80 13 01 00 00 00 00 00 64 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0E 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0E 00 BE 29 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 99 [12:00:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_GetShiftState done [12:00:28]FM_GetShiftState done [12:00:28]req_shift_opened done [12:00:28]requested_item shift.open_date is exist - process it [12:00:28]req_shift_open_date [12:00:28]req_shift_open_date done [12:00:28]produce_requested_data done [12:00:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112201,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:00:28]process_action_free close_receipt [12:00:28]json_value_free [12:00:28]json_value_free done [12:00:28]process_json_proto returns [12:00:28]Send response to host [12:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112201,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:00:28]free response buf [12:00:28]execute_script done [12:00:28]execute_script returns [12:00:28]free content buf [12:00:28]Sock 7.Close socket [12:00:28]Sock 7.Thread stoped [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:17]accept exits with 9 [12:16:17]New connection [12:16:17]New thread 3066813796 created [12:16:17]Thread 3066957156 joined [12:16:17]Waiting for new connection... [12:16:17] Sock 9.Parse request [12:16:17]Sock 9.Check first char [12:16:17]Sock 9.First char is OK [12:16:17]request: POST /json_proto HTTP/1.0 [12:16:17]Method: POST [12:16:17]URL: /json_proto [12:16:17]Method is POST - this is cgi request [12:16:17]url: /json_proto [12:16:17]query_string will be loaded in cgi processing [12:16:17]execute_cgi json_proto POST (null) [12:16:17]execute_cgi path=json_proto method=POST [12:16:17]POST find Content-Length [12:16:17]Host: 172.17.59.68:8080 [12:16:17]Content-Length: 677 [12:16:17]Content-Type: application/json [12:16:17] [12:16:17]POST finish read [12:16:17]Found Content-Length = 677 [12:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320874", "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.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:17]execute_script... [12:16: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)320874", "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.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:17]POST & json_proto [12:16:17]process_json_proto [12:16:17]json parsed OK: [12:16:17]protocol is kg_v1.0 [12:16:17]action value=close_receipt [12:16:17]process_action close_receipt [12:16:17]cmd_close_receipt [12:16:17]MH_GetDate [12:16:17]Write to MH i2c: F0 00 00 BF 29 D7 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: F0 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: F0 09 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: F0 09 00 BF 29 00 A7 C0 76 66 BC EC 60 65 90 [12:16:17]GetLastDocTimeStamp 1719057647 [12:16:17]current date 1719058599 [12:16:17]FM_GetShiftState [12:16:17]SAM_PROTO_GetShiftState [12:16:17]wFMCommunicate request_size=4 [12:16:17]MH_SAM_APDU [12:16:17]CAPDU: 80 13 01 00 [12:16:17]Write to MH i2c: E2 08 00 C0 29 80 13 01 00 00 00 00 00 66 [12:16:17]Write i2c OK [12:16:17]MH_I2C_Read... [12:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:17]Read from MH i2c: E2 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 0E 00 [12:16:17]MH_I2C_Read... [12:16:17]Read from MH i2c: E2 0E 00 C0 29 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9B [12:16:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:16:17]wFMCommunicate OK [12:16:17]SAM_PROTO_GetShiftState done [12:16:17]FM_GetShiftState done [12:16:17]opened in 1719020067 [12:16:17]opened+sec_in_day 1719106467 [12:16:17]quantity*price = 14010 [12:16:17]sum+1 = 14011 [12:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 68 22.06.2024 12:16 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112202 ФПД: 111788502758807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121639&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112202&fm=111788502758807&tin=02508201610067®Number=0000000000092771&sum=14000 [12:16:18]StoreToDocumentArchive [12:16:18]shift 391 fd 112202 [12:16:18]save to /storage/0391/doc_00112202 [12:16:18]save last doc name /storage/0391/doc_00112202 to /storage/kkm_last_doc_name [12:16:18]save OK [12:16:18]Clear old archive folders... [12:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:18]tlvbuf is B6EA9090 [12:16:18]SAM_PROTO_ClearQueue [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 09 00 00 [12:16:18]Write to MH i2c: E2 08 00 CD 29 80 09 00 00 00 00 00 00 68 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [12:16:18]RAPDU: 90 00 [12:16:18]wFMCommunicate OK [12:16:18]SAM_PROTO_ClearQueue done [12:16:18]KKMCreateOFDPacket [12:16:18]OFDProtocolAddRootSTLVToBuf [12:16:18]FM_MakeSignedData [12:16:18]FM_MakeSignedData [12:16:18]SAM_PROTO_SignData [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 0D 01 02 [12:16:18]Write to MH i2c: E2 08 00 CE 29 80 0D 01 02 00 00 00 00 70 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [12:16:18]RAPDU: 90 00 [12:16:18]wFMCommunicate OK [12:16:18]wFMCommunicate request_size=255 [12:16:18]MH_SAM_APDU [12:16: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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B6 01 00 35 04 06 00 65 [12:16:18]Write to MH i2c: E2 02 01 CF 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B6 01 00 35 04 06 00 65 00 00 4B [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [12:16:18]RAPDU: 90 00 [12:16:18]wFMCommunicate OK [12:16:18]wFMCommunicate request_size=10 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 0D 02 02 05 AB C9 FF 35 97 [12:16:18]Write to MH i2c: E2 0D 00 D0 29 80 0D 02 02 05 00 AB C9 FF 35 97 00 00 BC [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [12:16:18]RAPDU: 90 00 [12:16:18]wFMCommunicate OK [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 0D 03 02 [12:16:18]Write to MH i2c: E2 08 00 D1 29 80 0D 03 02 00 00 00 00 75 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:18]Read from MH i2c: E2 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 0B 00 [12:16:18]MH_I2C_Read... [12:16:18]Read from MH i2c: E2 0B 00 D1 29 00 EA CF EE F5 DE F0 DD D0 90 00 8D [12:16:18]RAPDU: EA CF EE F5 DE F0 DD D0 90 00 [12:16:18]wFMCommunicate OK [12:16:18]SAM_PROTO_SignData done [12:16:18]FM_MakeSignedData done [12:16:18]CreateOFDProtocolMessage [12:16:18]wFMCommunicate request_size=4 [12:16:18]MH_SAM_APDU [12:16:18]CAPDU: 80 11 00 00 [12:16:18]Write to MH i2c: E2 08 00 D2 29 80 11 00 00 00 00 00 00 75 [12:16:18]Write i2c OK [12:16:18]MH_I2C_Read... [12:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:19]Read from MH i2c: E2 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 17 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: E2 17 00 D2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [12:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:16:19]wFMCommunicate OK [12:16:19]CreateOFDProtocolMessage done [12:16:19]OFDSenderStorePacket 112202 [12:16:19]StoreOFDPacket docnum=112202 [12:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 A5 07 01 64 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B6 01 00 35 04 06 00 65 AB C9 FF 35 97 EA CF EE F5 DE F0 DD D0 [12:16:19]CheckFolder [12:16:19]dirname=/storage/ofd_packets [12:16:19]CheckFolder done [12:16:19]ProducePacketName [12:16:19]name=ofd_packets/00112202 [12:16:19]NVStorageSaveData ofd_packets/00112202 [12:16:19]File name is /storage/ofd_packets/00112202 [12:16:19]Write 301 bytes [12:16:19]NVStorageSaveData done [12:16:19]OFDSenderStorePacket done [12:16:19]KKMCreateOFDPacket done [12:16:19]NVStorageSaveData kkm_last_timestamp [12:16:19]File name is /storage/kkm_last_timestamp [12:16:19]Write 4 bytes [12:16:19]NVStorageSaveData done [12:16:19]ExternCall_PrintAddStr [12:16:19]wPrintStart [12:16:19]Write to MH i2c: 01 00 00 D3 29 FC [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 07 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 07 00 D3 29 00 00 00 00 00 FF 0F 11 [12:16:19]RasterBufferAndPrint [12:16:19]line Счет N : (1)320874 [12:16:19]line ИНН: 02508201610067 [12:16:19]line Контрольно-Кассовый Чек [12:16:19]line ПРОДАЖА [12:16:19]line ТРК (МРК, ГНК) : 11 [12:16:19]line Товар: 2710124130 [12:16:19]line Аи-92-К-5 [12:16:19]line 2.110 * 66.40 [12:16:19]line = 140.10 [12:16:19]line НДС 12% НСП 1% [12:16:19]line > о реализуемом товаре [12:16:19]line ОКРУГЛЕНИЕ: -0.10 [12:16:19]line ИТОГО: 140.00 [12:16:19]line Внесено: 140.00 [12:16:19]line СДАЧА: 0.00 [12:16:19]line НСП 1% : 1.24 [12:16:19]line НДС 12% : 14.88 [12:16:19]line Наличными: 140.00 [12:16:19]line Безнал.: 0.00 [12:16:19]line Место: АЗС № 65 "Партнер Нефть" [12:16:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:16:19]line СНО: Общий режим [12:16:19]line Чек 68 22.06.2024 12:16 [12:16:19]line Смена: 391 ФФД: 1.0 [12:16:19]line ЗНМ: 0300000198 [12:16:19]line РНМ: 0000000000092771 [12:16:19]line Версия ККМ: 001 [12:16:19]line ФМ: 0000000000875083 [12:16:19]line ФД: 112202 [12:16:19]line ФПД: 111788502758807 [12:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121639&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112202&fm=111788502758807&tin=02508201610067®Number=0000000000092771&sum=14000 [12:16:19]OFD Sender: Processing packet 112202 [packets to send 38, broken 37] [12:16:19]ProducePacketName [12:16:19]name=ofd_packets/00112202 [12:16:19]OFD Sender: To server: pG, [12:16:19]CommunicateWithHost lk.salyk.kg:30040 [12:16:19]ConnectInit lk.salyk.kg [12:16:19]written 0, free lines is 4095 [12:16:19]Connected sock=10 [12:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 A5 07 01 64 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B6 01 00 35 04 06 00 65 AB C9 FF 35 97 EA CF EE F5 DE F0 DD D0 [12:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 0B 47 00 6A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B6 01 00 F4 03 04 00 B4 57 76 66 B6 04 01 00 00 2B 50 7B 73 50 A8 9F AA [12:16:19]CommunicateWithHost err = 0 [12:16:19]CheckOFDResponse [12:16:19]1017 (14) - 77093643461234 [12:16:19]1041 (16) - 0000000000875083 [12:16:19]1040 (4) - 112202 [12:16:19]1012 (4) - 22.06.2024 04:48 [12:16:19]1206 (1) - 0 [12:16:19]OFD Sender: Remove packet 112202 [12:16:19]ProducePacketName [12:16:19]name=ofd_packets/00112202 [12:16:19]NVStorageDeleteData [12:16:19]Write to MH i2c: 01 00 00 FE 29 27 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 07 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: 01 07 00 FE 29 00 00 00 00 00 E4 0C 1E [12:16:19]RasterBufferAndPrint [12:16:19]line [12:16:19]line [12:16:19]line [12:16:19]line [12:16:19]line [12:16:19]written 0, free lines is 3309 [12:16:19]MH_Cut [12:16:19]Write to MH i2c: D1 01 00 05 2A 01 01 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: D1 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: D1 01 00 [12:16:19]MH_I2C_Read... [12:16:19]Read from MH i2c: D1 01 00 05 2A 00 00 [12:16:19]Write to MH i2c: 01 00 00 06 2A 30 [12:16:19]Write i2c OK [12:16:19]MH_I2C_Read... [12:16:20]OFD Sender: No OFD packet to send [12:16:20]*** Cut start [12:16:20]*** Partial cut [12:16:20]*** CUTSNS_PIN = 1 [12:16:20]*** CUTSNS_PIN = 0 [12:16:20]*** Brake cut motor [12:16:21]Read from MH i2c: 01 [12:16:21]MH_I2C_Read... [12:16:21]*** Stop cut motor [12:16:21]*** Cut end [12:16:21]Read from MH i2c: 01 07 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: 01 07 00 06 2A 00 00 00 00 00 FF 0F 45 [12:16:21]process_action close_receipt done [12:16:21]requested_data is exist [12:16:21]produce_requested_data [12:16:21]requested_item fm.sn is exist - process it [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 11 00 00 [12:16:21]Write to MH i2c: E2 08 00 07 2A 80 11 00 00 00 00 00 00 AB [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 17 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 17 00 07 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [12:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:16:21]wFMCommunicate OK [12:16:21]requested_item fd.num is exist - process it [12:16:21]SAM_PROTO_GetFieldsCounters [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 13 00 00 [12:16:21]Write to MH i2c: E2 08 00 08 2A 80 13 00 00 00 00 00 00 AE [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 62 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 62 00 08 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [12:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:21]wFMCommunicate OK [12:16:21]SAM_PROTO_GetFieldsCounters done [12:16:21]requested_item shift.num is exist - process it [12:16:21]requested_item shift.opened is exist - process it [12:16:21]req_shift_opened [12:16:21]FM_GetShiftState [12:16:21]SAM_PROTO_GetShiftState [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 13 01 00 [12:16:21]Write to MH i2c: E2 08 00 09 2A 80 13 01 00 00 00 00 00 B0 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 0E 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 0E 00 09 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E5 [12:16:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:16:21]wFMCommunicate OK [12:16:21]SAM_PROTO_GetShiftState done [12:16:21]FM_GetShiftState done [12:16:21]req_shift_opened done [12:16:21]requested_item shift.open_date is exist - process it [12:16:21]req_shift_open_date [12:16:21]req_shift_open_date done [12:16:21]produce_requested_data done [12:16:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112202,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:16:21]process_action_free close_receipt [12:16:21]json_value_free [12:16:21]json_value_free done [12:16:21]process_json_proto returns [12:16:21]Send response to host [12:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112202,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:16:21]free response buf [12:16:21]execute_script done [12:16:21]execute_script returns [12:16:21]free content buf [12:16:21]Sock 9.Close socket [12:16:21]Sock 9.Thread stoped [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:38]accept exits with 7 [12:16:38]New connection [12:16:38]New thread 3066957156 created [12:16:38]Thread 3066813796 joined [12:16:38]Waiting for new connection... [12:16:38] Sock 7.Parse request [12:16:38]Sock 7.Check first char [12:16:38]Sock 7.First char is OK [12:16:38]request: POST /json_proto HTTP/1.0 [12:16:38]Method: POST [12:16:38]URL: /json_proto [12:16:38]Method is POST - this is cgi request [12:16:38]url: /json_proto [12:16:38]query_string will be loaded in cgi processing [12:16:38]execute_cgi json_proto POST (null) [12:16:38]execute_cgi path=json_proto method=POST [12:16:38]POST find Content-Length [12:16:38]Host: 172.17.59.68:8080 [12:16:38]Content-Length: 805 [12:16:38]Content-Type: application/json [12:16:38] [12:16:38]POST finish read [12:16:38]Found Content-Length = 805 [12:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320875", "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.40, "quantity" : 3.920, "sum" : 260.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:38]execute_script... [12:16: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)320875", "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.40, "quantity" : 3.920, "sum" : 260.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:38]POST & json_proto [12:16:38]process_json_proto [12:16:38]json parsed OK: [12:16:38]protocol is kg_v1.0 [12:16:38]action value=close_receipt [12:16:38]process_action close_receipt [12:16:38]cmd_close_receipt [12:16:38]MH_GetDate [12:16:38]Write to MH i2c: F0 00 00 0A 2A 23 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: F0 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: F0 09 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: F0 09 00 0A 2A 00 BD C0 76 66 BC EC 60 65 F2 [12:16:38]GetLastDocTimeStamp 1719058599 [12:16:38]current date 1719058621 [12:16:38]FM_GetShiftState [12:16:38]SAM_PROTO_GetShiftState [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 01 00 [12:16:38]Write to MH i2c: E2 08 00 0B 2A 80 13 01 00 00 00 00 00 B2 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 0B 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E7 [12:16:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetShiftState done [12:16:38]FM_GetShiftState done [12:16:38]opened in 1719020067 [12:16:38]opened+sec_in_day 1719106467 [12:16:38]quantity*price = 26028 [12:16:38]sum+1 = 26030 [12:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.29 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 0.00 Безнал.: 260.29 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 69 22.06.2024 12:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112203 ФПД: 53683834246630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121701&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112203&fm=53683834246630&tin=02508201610067®Number=0000000000092771&sum=26029 [12:16:39]StoreToDocumentArchive [12:16:39]shift 391 fd 112203 [12:16:39]save to /storage/0391/doc_00112203 [12:16:39]save last doc name /storage/0391/doc_00112203 to /storage/kkm_last_doc_name [12:16:39]save OK [12:16:39]Clear old archive folders... [12:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:39]tlvbuf is B6EC2140 [12:16:39]SAM_PROTO_ClearQueue [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 09 00 00 [12:16:39]Write to MH i2c: E2 08 00 18 2A 80 09 00 00 00 00 00 00 B4 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [12:16:39]RAPDU: 90 00 [12:16:39]wFMCommunicate OK [12:16:39]SAM_PROTO_ClearQueue done [12:16:39]KKMCreateOFDPacket [12:16:39]OFDProtocolAddRootSTLVToBuf [12:16:39]FM_MakeSignedData [12:16:39]FM_MakeSignedData [12:16:39]SAM_PROTO_SignData [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 0D 01 02 [12:16:39]Write to MH i2c: E2 08 00 19 2A 80 0D 01 02 00 00 00 00 BC [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [12:16:39]RAPDU: 90 00 [12:16:39]wFMCommunicate OK [12:16:39]wFMCommunicate request_size=255 [12:16:39]MH_SAM_APDU [12:16: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 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 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 AD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 BD C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B6 01 00 35 04 06 00 30 [12:16:39]Write to MH i2c: E2 02 01 1A 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 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 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 AD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 BD C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B6 01 00 35 04 06 00 30 00 00 78 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 03 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [12:16:40]RAPDU: 90 00 [12:16:40]wFMCommunicate OK [12:16:40]wFMCommunicate request_size=10 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 0D 02 02 05 D3 3D DE D5 E6 [12:16:40]Write to MH i2c: E2 0D 00 1B 2A 80 0D 02 02 05 00 D3 3D DE D5 E6 00 00 72 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 03 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [12:16:40]RAPDU: 90 00 [12:16:40]wFMCommunicate OK [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 0D 03 02 [12:16:40]Write to MH i2c: E2 08 00 1C 2A 80 0D 03 02 00 00 00 00 C1 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0B 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0B 00 1C 2A 00 8E F8 95 85 63 01 3C 5C 90 00 5E [12:16:40]RAPDU: 8E F8 95 85 63 01 3C 5C 90 00 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_SignData done [12:16:40]FM_MakeSignedData done [12:16:40]CreateOFDProtocolMessage [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 11 00 00 [12:16:40]Write to MH i2c: E2 08 00 1D 2A 80 11 00 00 00 00 00 00 C1 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 1D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [12:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:16:40]wFMCommunicate OK [12:16:40]CreateOFDProtocolMessage done [12:16:40]OFDSenderStorePacket 112203 [12:16:40]StoreOFDPacket docnum=112203 [12:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 94 7B 07 01 EE 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 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 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 AD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 BD C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B6 01 00 35 04 06 00 30 D3 3D DE D5 E6 8E F8 95 85 63 01 3C 5C [12:16:40]CheckFolder [12:16:40]dirname=/storage/ofd_packets [12:16:40]CheckFolder done [12:16:40]ProducePacketName [12:16:40]name=ofd_packets/00112203 [12:16:40]NVStorageSaveData ofd_packets/00112203 [12:16:40]File name is /storage/ofd_packets/00112203 [12:16:40]Write 301 bytes [12:16:40]NVStorageSaveData done [12:16:40]OFDSenderStorePacket done [12:16:40]KKMCreateOFDPacket done [12:16:40]NVStorageSaveData kkm_last_timestamp [12:16:40]File name is /storage/kkm_last_timestamp [12:16:40]Write 4 bytes [12:16:40]NVStorageSaveData done [12:16:40]ExternCall_PrintAddStr [12:16:40]wPrintStart [12:16:40]Write to MH i2c: 01 00 00 1E 2A 48 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 1E 2A 00 00 00 00 00 FF 0F 5D [12:16:40]RasterBufferAndPrint [12:16:40]line Счет N : (1)320875 [12:16:40]line ИНН: 02508201610067 [12:16:40]line Контрольно-Кассовый Чек [12:16:40]line ПРОДАЖА [12:16:40]line ТРК (МРК, ГНК) : 11 [12:16:40]line Товар: 2710124130 [12:16:40]line Аи-92-К-5 [12:16:40]line 3.920 * 66.40 [12:16:40]line = 260.29 [12:16:40]line НДС 12% НСП 1% [12:16:40]line > о реализуемом товаре [12:16:40]line ИТОГО: 260.29 [12:16:40]line НСП 1% : 2.30 [12:16:40]line НДС 12% : 27.64 [12:16:40]line Наличными: 0.00 [12:16:40]line Безнал.: 260.29 [12:16:40]line Место: АЗС № 65 "Партнер Нефть" [12:16:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:16:40]line СНО: Общий режим [12:16:40]line Чек 69 22.06.2024 12:17 [12:16:40]line Смена: 391 ФФД: 1.0 [12:16:40]line ЗНМ: 0300000198 [12:16:40]line РНМ: 0000000000092771 [12:16:40]line Версия ККМ: 001 [12:16:40]line Платежная система: О! деньги [12:16:40]line ФМ: 0000000000875083 [12:16:40]line ФД: 112203 [12:16:40]line ФПД: 53683834246630 [12:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121701&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112203&fm=53683834246630&tin=02508201610067®Number=0000000000092771&sum=26029 [12:16:40]written 0, free lines is 4095 [12:16:40]OFD Sender: Processing packet 112203 [packets to send 38, broken 37] [12:16:40]ProducePacketName [12:16:40]name=ofd_packets/00112203 [12:16:40]OFD Sender: To server: pG, [12:16:40]CommunicateWithHost lk.salyk.kg:30040 [12:16:40]ConnectInit lk.salyk.kg [12:16:40]Connected sock=10 [12:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 94 7B 07 01 EE 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 50 0F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 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 AD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 BD C0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B6 01 00 35 04 06 00 30 D3 3D DE D5 E6 8E F8 95 85 63 01 3C 5C [12:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E C7 47 00 28 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B6 01 00 F4 03 04 00 C9 57 76 66 B6 04 01 00 00 B6 B8 A3 E4 C7 1C C9 08 [12:16:40]CommunicateWithHost err = 0 [12:16:40]CheckOFDResponse [12:16:40]1017 (14) - 77093643461234 [12:16:40]1041 (16) - 0000000000875083 [12:16:40]1040 (4) - 112203 [12:16:40]1012 (4) - 22.06.2024 04:49 [12:16:40]1206 (1) - 0 [12:16:40]OFD Sender: Remove packet 112203 [12:16:40]ProducePacketName [12:16:40]name=ofd_packets/00112203 [12:16:40]NVStorageDeleteData [12:16:41]Write to MH i2c: 01 00 00 48 2A 72 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 07 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 07 00 48 2A 00 00 00 00 00 EB 0C 70 [12:16:41]RasterBufferAndPrint [12:16:41]line [12:16:41]line [12:16:41]line [12:16:41]line [12:16:41]line [12:16:41]written 0, free lines is 3313 [12:16:41]MH_Cut [12:16:41]Write to MH i2c: D1 01 00 4F 2A 01 4B [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: D1 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: D1 01 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: D1 01 00 4F 2A 00 4A [12:16:41]Write to MH i2c: 01 00 00 50 2A 7A [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]OFD Sender: No OFD packet to send [12:16:41]*** Cut start [12:16:41]*** Partial cut [12:16:41]*** CUTSNS_PIN = 1 [12:16:41]*** CUTSNS_PIN = 0 [12:16:42]*** Brake cut motor [12:16:42]Read from MH i2c: 01 [12:16:42]MH_I2C_Read... [12:16:42]*** Stop cut motor [12:16:42]*** Cut end [12:16:42]Read from MH i2c: 01 07 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: 01 07 00 50 2A 00 00 00 00 00 FF 0F 8F [12:16:42]process_action close_receipt done [12:16:42]requested_data is exist [12:16:42]produce_requested_data [12:16:42]requested_item fm.sn is exist - process it [12:16:42]wFMCommunicate request_size=4 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 11 00 00 [12:16:42]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 17 00 [12:16:42]MH_I2C_Read... [12:16:42]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 35 30 38 33 90 00 47 [12:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:16:42]wFMCommunicate OK [12:16:42]requested_item fd.num is exist - process it [12:16:42]SAM_PROTO_GetFieldsCounters [12:16:42]wFMCommunicate request_size=4 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 13 00 00 [12:16:42]Write to MH i2c: E2 08 00 52 2A 80 13 00 00 00 00 00 00 F8 [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 62 00 [12:16:42]MH_I2C_Read... [12:16:42]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:42]wFMCommunicate OK [12:16:42]SAM_PROTO_GetFieldsCounters done [12:16:42]requested_item shift.num is exist - process it [12:16:42]requested_item shift.opened is exist - process it [12:16:42]req_shift_opened [12:16:42]FM_GetShiftState [12:16:42]SAM_PROTO_GetShiftState [12:16:42]wFMCommunicate request_size=4 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 13 01 00 [12:16:42]Write to MH i2c: E2 08 00 53 2A 80 13 01 00 00 00 00 00 FA [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 0E 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 0E 00 53 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2F [12:16:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:16:42]wFMCommunicate OK [12:16:42]SAM_PROTO_GetShiftState done [12:16:42]FM_GetShiftState done [12:16:42]req_shift_opened done [12:16:42]requested_item shift.open_date is exist - process it [12:16:42]req_shift_open_date [12:16:42]req_shift_open_date done [12:16:42]produce_requested_data done [12:16:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112203,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:16:42]process_action_free close_receipt [12:16:42]json_value_free [12:16:42]json_value_free done [12:16:42]process_json_proto returns [12:16:42]Send response to host [12:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112203,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:16:42]free response buf [12:16:42]execute_script done [12:16:42]execute_script returns [12:16:42]free content buf [12:16:42]Sock 7.Close socket [12:16:42]Sock 7.Thread stoped [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]accept exits with 9 [12:18:36]New connection [12:18:36]New thread 3066813796 created [12:18:36]Thread 3066957156 joined [12:18:36]Waiting for new connection... [12:18:36] Sock 9.Parse request [12:18:36]Sock 9.Check first char [12:18:36]Sock 9.First char is OK [12:18:36]request: POST /json_proto HTTP/1.0 [12:18:36]Method: POST [12:18:36]URL: /json_proto [12:18:36]Method is POST - this is cgi request [12:18:36]url: /json_proto [12:18:36]query_string will be loaded in cgi processing [12:18:36]execute_cgi json_proto POST (null) [12:18:36]execute_cgi path=json_proto method=POST [12:18:36]POST find Content-Length [12:18:36]Host: 172.17.59.68:8080 [12:18:36]Content-Length: 682 [12:18:36]Content-Type: application/json [12:18:36] [12:18:36]POST finish read [12:18:36]Found Content-Length = 682 [12:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320876", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:36]execute_script... [12:18: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)320876", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:36]POST & json_proto [12:18:36]process_json_proto [12:18:36]json parsed OK: [12:18:36]protocol is kg_v1.0 [12:18:36]action value=close_receipt [12:18:36]process_action close_receipt [12:18:36]cmd_close_receipt [12:18:36]MH_GetDate [12:18:36]Write to MH i2c: F0 00 00 54 2A 6D [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: F0 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: F0 09 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: F0 09 00 54 2A 00 32 C1 76 66 BC EC 60 65 B2 [12:18:36]GetLastDocTimeStamp 1719058621 [12:18:36]current date 1719058738 [12:18:36]FM_GetShiftState [12:18:36]SAM_PROTO_GetShiftState [12:18:36]wFMCommunicate request_size=4 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 13 01 00 [12:18:36]Write to MH i2c: E2 08 00 55 2A 80 13 01 00 00 00 00 00 FC [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 0E 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 0E 00 55 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 31 [12:18:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:18:36]wFMCommunicate OK [12:18:36]SAM_PROTO_GetShiftState done [12:18:36]FM_GetShiftState done [12:18:36]opened in 1719020067 [12:18:36]opened+sec_in_day 1719106467 [12:18:36]quantity*price = 200063 [12:18:36]sum+1 = 200064 [12:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 70 22.06.2024 12:18 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112204 ФПД: 149350240274121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112204&fm=149350240274121&tin=02508201610067®Number=0000000000092771&sum=200000 [12:18:37]StoreToDocumentArchive [12:18:37]shift 391 fd 112204 [12:18:37]save to /storage/0391/doc_00112204 [12:18:37]save last doc name /storage/0391/doc_00112204 to /storage/kkm_last_doc_name [12:18:37]save OK [12:18:37]Clear old archive folders... [12:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:37]tlvbuf is 0112B490 [12:18:37]SAM_PROTO_ClearQueue [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 09 00 00 [12:18:37]Write to MH i2c: E2 08 00 62 2A 80 09 00 00 00 00 00 00 FE [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_ClearQueue done [12:18:37]KKMCreateOFDPacket [12:18:37]OFDProtocolAddRootSTLVToBuf [12:18:37]FM_MakeSignedData [12:18:37]FM_MakeSignedData [12:18:37]SAM_PROTO_SignData [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 01 02 [12:18:37]Write to MH i2c: E2 08 00 63 2A 80 0D 01 02 00 00 00 00 06 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=255 [12:18:37]MH_SAM_APDU [12:18: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 46 00 00 00 F4 03 04 00 32 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B6 01 00 35 04 06 00 87 [12:18:37]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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 46 00 00 00 F4 03 04 00 32 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B6 01 00 35 04 06 00 87 00 00 D6 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=10 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 02 02 05 D5 50 04 C6 C9 [12:18:37]Write to MH i2c: E2 0D 00 65 2A 80 0D 02 02 05 00 D5 50 04 C6 C9 00 00 CB [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 03 02 [12:18:37]Write to MH i2c: E2 08 00 66 2A 80 0D 03 02 00 00 00 00 0B [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0B 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0B 00 66 2A 00 90 26 D9 A5 AA A8 83 8D 90 00 A2 [12:18:37]RAPDU: 90 26 D9 A5 AA A8 83 8D 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_SignData done [12:18:37]FM_MakeSignedData done [12:18:37]CreateOFDProtocolMessage [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 11 00 00 [12:18:37]Write to MH i2c: E2 08 00 67 2A 80 11 00 00 00 00 00 00 0B [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 17 00 [12:18:38]MH_I2C_Read... [12:18:38]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 35 30 38 33 90 00 5D [12:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:18:38]wFMCommunicate OK [12:18:38]CreateOFDProtocolMessage done [12:18:38]OFDSenderStorePacket 112204 [12:18:38]StoreOFDPacket docnum=112204 [12:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B FA 07 01 BA 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 46 00 00 00 F4 03 04 00 32 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B6 01 00 35 04 06 00 87 D5 50 04 C6 C9 90 26 D9 A5 AA A8 83 8D [12:18:38]CheckFolder [12:18:38]dirname=/storage/ofd_packets [12:18:38]CheckFolder done [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00112204 [12:18:38]NVStorageSaveData ofd_packets/00112204 [12:18:38]File name is /storage/ofd_packets/00112204 [12:18:38]Write 301 bytes [12:18:38]NVStorageSaveData done [12:18:38]OFDSenderStorePacket done [12:18:38]KKMCreateOFDPacket done [12:18:38]NVStorageSaveData kkm_last_timestamp [12:18:38]File name is /storage/kkm_last_timestamp [12:18:38]Write 4 bytes [12:18:38]NVStorageSaveData done [12:18:38]ExternCall_PrintAddStr [12:18:38]wPrintStart [12:18:38]Write to MH i2c: 01 00 00 68 2A 92 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 68 2A 00 00 00 00 00 FF 0F A7 [12:18:38]RasterBufferAndPrint [12:18:38]line Счет N : (1)320876 [12:18:38]line ИНН: 02508201610067 [12:18:38]line Контрольно-Кассовый Чек [12:18:38]line ПРОДАЖА [12:18:38]line ТРК (МРК, ГНК) : 11 [12:18:38]line Товар: 2710124130 [12:18:38]line Аи-92-К-5 [12:18:38]line 30.130 * 66.40 [12:18:38]line = 2000.63 [12:18:38]line НДС 12% НСП 1% [12:18:38]line > о реализуемом товаре [12:18:38]line ОКРУГЛЕНИЕ: -0.63 [12:18:38]line ИТОГО: 2000.00 [12:18:38]line Внесено: 2000.00 [12:18:38]line СДАЧА: 0.00 [12:18:38]line НСП 1% : 17.70 [12:18:38]line НДС 12% : 212.46 [12:18:38]line Наличными: 2000.00 [12:18:38]line Безнал.: 0.00 [12:18:38]line Место: АЗС № 65 "Партнер Нефть" [12:18:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:18:38]line СНО: Общий режим [12:18:38]line Чек 70 22.06.2024 12:18 [12:18:38]line Смена: 391 ФФД: 1.0 [12:18:38]line ЗНМ: 0300000198 [12:18:38]line РНМ: 0000000000092771 [12:18:38]line Версия ККМ: 001 [12:18:38]line ФМ: 0000000000875083 [12:18:38]line ФД: 112204 [12:18:38]line ФПД: 149350240274121 [12:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112204&fm=149350240274121&tin=02508201610067®Number=0000000000092771&sum=200000 [12:18:38]OFD Sender: Processing packet 112204 [packets to send 38, broken 37] [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00112204 [12:18:38]OFD Sender: To server: pG, [12:18:38]CommunicateWithHost lk.salyk.kg:30040 [12:18:38]ConnectInit lk.salyk.kg [12:18:38]written 0, free lines is 4095 [12:18:38]Connected sock=10 [12:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B FA 07 01 BA 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 46 00 00 00 F4 03 04 00 32 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B6 01 00 35 04 06 00 87 D5 50 04 C6 C9 90 26 D9 A5 AA A8 83 8D [12:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F2 60 47 00 DD 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 35 30 38 33 10 04 04 00 4C B6 01 00 F4 03 04 00 3F 58 76 66 B6 04 01 00 00 66 4F B4 A5 E9 30 5D DD [12:18:38]CommunicateWithHost err = 0 [12:18:38]CheckOFDResponse [12:18:38]1017 (14) - 77093643461234 [12:18:38]1041 (16) - 0000000000875083 [12:18:38]1040 (4) - 112204 [12:18:38]1012 (4) - 22.06.2024 04:51 [12:18:38]1206 (1) - 0 [12:18:38]OFD Sender: Remove packet 112204 [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00112204 [12:18:38]NVStorageDeleteData [12:18:38]Write to MH i2c: 01 00 00 93 2A BD [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 93 2A 00 00 00 00 00 E4 0C B4 [12:18:38]RasterBufferAndPrint [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]written 0, free lines is 3306 [12:18:38]MH_Cut [12:18:38]Write to MH i2c: D1 01 00 9A 2A 01 96 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 01 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 01 00 9A 2A 00 95 [12:18:38]Write to MH i2c: 01 00 00 9B 2A C5 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:39]OFD Sender: No OFD packet to send [12:18:39]*** Cut start [12:18:39]*** Partial cut [12:18:39]*** CUTSNS_PIN = 1 [12:18:39]*** CUTSNS_PIN = 0 [12:18:39]*** Brake cut motor [12:18:40]Read from MH i2c: 01 [12:18:40]MH_I2C_Read... [12:18:40]*** Stop cut motor [12:18:40]*** Cut end [12:18:40]Read from MH i2c: 01 07 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 9B 2A 00 00 00 00 00 FF 0F DA [12:18:40]process_action close_receipt done [12:18:40]requested_data is exist [12:18:40]produce_requested_data [12:18:40]requested_item fm.sn is exist - process it [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 11 00 00 [12:18:40]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [12:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:18:40]wFMCommunicate OK [12:18:40]requested_item fd.num is exist - process it [12:18:40]SAM_PROTO_GetFieldsCounters [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 13 00 00 [12:18:40]Write to MH i2c: E2 08 00 9D 2A 80 13 00 00 00 00 00 00 43 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 62 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 62 00 9D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_GetFieldsCounters done [12:18:40]requested_item shift.num is exist - process it [12:18:40]requested_item shift.opened is exist - process it [12:18:40]req_shift_opened [12:18:40]FM_GetShiftState [12:18:40]SAM_PROTO_GetShiftState [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 13 01 00 [12:18:40]Write to MH i2c: E2 08 00 9E 2A 80 13 01 00 00 00 00 00 45 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0E 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0E 00 9E 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7A [12:18:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_GetShiftState done [12:18:40]FM_GetShiftState done [12:18:40]req_shift_opened done [12:18:40]requested_item shift.open_date is exist - process it [12:18:40]req_shift_open_date [12:18:40]req_shift_open_date done [12:18:40]produce_requested_data done [12:18:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112204,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:18:40]process_action_free close_receipt [12:18:40]json_value_free [12:18:40]json_value_free done [12:18:40]process_json_proto returns [12:18:40]Send response to host [12:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112204,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:18:40]free response buf [12:18:40]execute_script done [12:18:40]execute_script returns [12:18:40]free content buf [12:18:40]Sock 9.Close socket [12:18:40]Sock 9.Thread stoped [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:42]accept exits with 7 [12:19:42]New connection [12:19:42]New thread 3066957156 created [12:19:42]Thread 3066813796 joined [12:19:42]Waiting for new connection... [12:19:42] Sock 7.Parse request [12:19:42]Sock 7.Check first char [12:19:42]Sock 7.First char is OK [12:19:42]request: POST /json_proto HTTP/1.0 [12:19:42]Method: POST [12:19:42]URL: /json_proto [12:19:42]Method is POST - this is cgi request [12:19:42]url: /json_proto [12:19:42]query_string will be loaded in cgi processing [12:19:42]execute_cgi json_proto POST (null) [12:19:42]execute_cgi path=json_proto method=POST [12:19:42]POST find Content-Length [12:19:42]Host: 172.17.59.68:8080 [12:19:42]Content-Length: 682 [12:19:42]Content-Type: application/json [12:19:42] [12:19:42]POST finish read [12:19:42]Found Content-Length = 682 [12:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320877", "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.40, "quantity" : 24.850, "sum" : 1650.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:42]execute_script... [12:19: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)320877", "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.40, "quantity" : 24.850, "sum" : 1650.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:42]POST & json_proto [12:19:42]process_json_proto [12:19:42]json parsed OK: [12:19:42]protocol is kg_v1.0 [12:19:42]action value=close_receipt [12:19:42]process_action close_receipt [12:19:42]cmd_close_receipt [12:19:42]MH_GetDate [12:19:42]Write to MH i2c: F0 00 00 9F 2A B8 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 09 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 09 00 9F 2A 00 74 C1 76 66 BC EC 60 65 3F [12:19:42]GetLastDocTimeStamp 1719058738 [12:19:42]current date 1719058804 [12:19:42]FM_GetShiftState [12:19:42]SAM_PROTO_GetShiftState [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 01 00 [12:19:42]Write to MH i2c: E2 08 00 A0 2A 80 13 01 00 00 00 00 00 47 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 A0 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7C [12:19:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetShiftState done [12:19:42]FM_GetShiftState done [12:19:42]opened in 1719020067 [12:19:42]opened+sec_in_day 1719106467 [12:19:42]quantity*price = 165004 [12:19:42]sum+1 = 165005 [12:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1650.00 Внесено: 1650.00 СДАЧА: 0.00 НСП 1% : 14.60 НДС 12% : 175.22 Наличными: 1650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 71 22.06.2024 12:20 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112205 ФПД: 17116532066550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122004&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112205&fm=17116532066550&tin=02508201610067®Number=0000000000092771&sum=165000 [12:19:43]StoreToDocumentArchive [12:19:43]shift 391 fd 112205 [12:19:43]save to /storage/0391/doc_00112205 [12:19:43]save last doc name /storage/0391/doc_00112205 to /storage/kkm_last_doc_name [12:19:43]save OK [12:19:43]Clear old archive folders... [12:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:43]tlvbuf is B6DA9850 [12:19:43]SAM_PROTO_ClearQueue [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 09 00 00 [12:19:43]Write to MH i2c: E2 08 00 AD 2A 80 09 00 00 00 00 00 00 49 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_ClearQueue done [12:19:43]KKMCreateOFDPacket [12:19:43]OFDProtocolAddRootSTLVToBuf [12:19:43]FM_MakeSignedData [12:19:43]FM_MakeSignedData [12:19:43]SAM_PROTO_SignData [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 01 02 [12:19:43]Write to MH i2c: E2 08 00 AE 2A 80 0D 01 02 00 00 00 00 51 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]wFMCommunicate request_size=255 [12:19:43]MH_SAM_APDU [12:19: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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 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 74 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B6 01 00 35 04 06 00 0F [12:19:43]Write to MH i2c: E2 02 01 AF 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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 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 74 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B6 01 00 35 04 06 00 0F 00 00 67 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]wFMCommunicate request_size=10 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 02 02 05 91 40 D0 48 F6 [12:19:43]Write to MH i2c: E2 0D 00 B0 2A 80 0D 02 02 05 00 91 40 D0 48 F6 00 00 3D [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [12:19:43]RAPDU: 90 00 [12:19:43]wFMCommunicate OK [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 0D 03 02 [12:19:43]Write to MH i2c: E2 08 00 B1 2A 80 0D 03 02 00 00 00 00 56 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0B 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0B 00 B1 2A 00 59 9B 1E 08 77 55 7F 85 90 00 41 [12:19:43]RAPDU: 59 9B 1E 08 77 55 7F 85 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_SignData done [12:19:43]FM_MakeSignedData done [12:19:43]CreateOFDProtocolMessage [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 11 00 00 [12:19:43]Write to MH i2c: E2 08 00 B2 2A 80 11 00 00 00 00 00 00 56 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 B2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [12:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:19:43]wFMCommunicate OK [12:19:43]CreateOFDProtocolMessage done [12:19:43]OFDSenderStorePacket 112205 [12:19:43]StoreOFDPacket docnum=112205 [12:19:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 F8 07 01 7F 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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 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 74 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B6 01 00 35 04 06 00 0F 91 40 D0 48 F6 59 9B 1E 08 77 55 7F 85 [12:19:43]CheckFolder [12:19:43]dirname=/storage/ofd_packets [12:19:43]CheckFolder done [12:19:43]ProducePacketName [12:19:43]name=ofd_packets/00112205 [12:19:43]NVStorageSaveData ofd_packets/00112205 [12:19:43]File name is /storage/ofd_packets/00112205 [12:19:43]Write 301 bytes [12:19:43]NVStorageSaveData done [12:19:43]OFDSenderStorePacket done [12:19:43]KKMCreateOFDPacket done [12:19:43]NVStorageSaveData kkm_last_timestamp [12:19:43]File name is /storage/kkm_last_timestamp [12:19:43]Write 4 bytes [12:19:43]NVStorageSaveData done [12:19:43]ExternCall_PrintAddStr [12:19:43]wPrintStart [12:19:43]Write to MH i2c: 01 00 00 B3 2A DD [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 B3 2A 00 00 00 00 00 FF 0F F2 [12:19:43]RasterBufferAndPrint [12:19:43]line Счет N : (1)320877 [12:19:43]line ИНН: 02508201610067 [12:19:43]line Контрольно-Кассовый Чек [12:19:43]line ПРОДАЖА [12:19:43]line ТРК (МРК, ГНК) : 11 [12:19:43]line Товар: 2710124130 [12:19:43]line Аи-92-К-5 [12:19:43]line 24.850 * 66.40 [12:19:43]line = 1650.04 [12:19:43]line НДС 12% НСП 1% [12:19:43]line > о реализуемом товаре [12:19:43]line ОКРУГЛЕНИЕ: -0.04 [12:19:43]line ИТОГО: 1650.00 [12:19:43]line Внесено: 1650.00 [12:19:43]line СДАЧА: 0.00 [12:19:43]line НСП 1% : 14.60 [12:19:43]line НДС 12% : 175.22 [12:19:43]line Наличными: 1650.00 [12:19:43]line Безнал.: 0.00 [12:19:43]line Место: АЗС № 65 "Партнер Нефть" [12:19:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:19:43]line СНО: Общий режим [12:19:43]line Чек 71 22.06.2024 12:20 [12:19:43]line Смена: 391 ФФД: 1.0 [12:19:43]line ЗНМ: 0300000198 [12:19:43]line РНМ: 0000000000092771 [12:19:43]line Версия ККМ: 001 [12:19:43]line ФМ: 0000000000875083 [12:19:43]line ФД: 112205 [12:19:43]line ФПД: 17116532066550 [12:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122004&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112205&fm=17116532066550&tin=02508201610067®Number=0000000000092771&sum=165000 [12:19:44]OFD Sender: Processing packet 112205 [packets to send 38, broken 37] [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00112205 [12:19:44]OFD Sender: To server: pG, [12:19:44]CommunicateWithHost lk.salyk.kg:30040 [12:19:44]ConnectInit lk.salyk.kg [12:19:44]written 0, free lines is 4095 [12:19:44]Connected sock=10 [12:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 F8 07 01 7F 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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 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 74 C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B6 01 00 35 04 06 00 0F 91 40 D0 48 F6 59 9B 1E 08 77 55 7F 85 [12:19:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 4F 47 00 37 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B6 01 00 F4 03 04 00 81 58 76 66 B6 04 01 00 00 74 99 A9 C2 79 0E E8 0C [12:19:44]CommunicateWithHost err = 0 [12:19:44]CheckOFDResponse [12:19:44]1017 (14) - 77093643461234 [12:19:44]1041 (16) - 0000000000875083 [12:19:44]1040 (4) - 112205 [12:19:44]1012 (4) - 22.06.2024 04:52 [12:19:44]1206 (1) - 0 [12:19:44]OFD Sender: Remove packet 112205 [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00112205 [12:19:44]NVStorageDeleteData [12:19:44]Write to MH i2c: 01 00 00 DE 2A 08 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 DE 2A 00 00 00 00 00 E2 0C FD [12:19:44]RasterBufferAndPrint [12:19:44]line [12:19:44]line [12:19:44]line [12:19:44]line [12:19:44]line [12:19:44]written 0, free lines is 3304 [12:19:44]MH_Cut [12:19:44]Write to MH i2c: D1 01 00 E5 2A 01 E1 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: D1 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: D1 01 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: D1 01 00 E5 2A 00 E0 [12:19:44]Write to MH i2c: 01 00 00 E6 2A 10 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]OFD Sender: No OFD packet to send [12:19:45]*** Cut start [12:19:45]*** Partial cut [12:19:45]*** CUTSNS_PIN = 1 [12:19:45]*** CUTSNS_PIN = 0 [12:19:45]*** Brake cut motor [12:19:45]Read from MH i2c: 01 [12:19:45]MH_I2C_Read... [12:19:45]*** Stop cut motor [12:19:45]*** Cut end [12:19:45]Read from MH i2c: 01 07 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: 01 07 00 E6 2A 00 00 00 00 00 FF 0F 25 [12:19:45]process_action close_receipt done [12:19:45]requested_data is exist [12:19:45]produce_requested_data [12:19:45]requested_item fm.sn is exist - process it [12:19:45]wFMCommunicate request_size=4 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 11 00 00 [12:19:45]Write to MH i2c: E2 08 00 E7 2A 80 11 00 00 00 00 00 00 8B [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:45]Read from MH i2c: E2 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 17 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 17 00 E7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [12:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:19:45]wFMCommunicate OK [12:19:45]requested_item fd.num is exist - process it [12:19:45]SAM_PROTO_GetFieldsCounters [12:19:45]wFMCommunicate request_size=4 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 13 00 00 [12:19:45]Write to MH i2c: E2 08 00 E8 2A 80 13 00 00 00 00 00 00 8E [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 E8 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetFieldsCounters done [12:19:46]requested_item shift.num is exist - process it [12:19:46]requested_item shift.opened is exist - process it [12:19:46]req_shift_opened [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 E9 2A 80 13 01 00 00 00 00 00 90 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 E9 2A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C5 [12:19:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetShiftState done [12:19:46]FM_GetShiftState done [12:19:46]req_shift_opened done [12:19:46]requested_item shift.open_date is exist - process it [12:19:46]req_shift_open_date [12:19:46]req_shift_open_date done [12:19:46]produce_requested_data done [12:19:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112205,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:19:46]process_action_free close_receipt [12:19:46]json_value_free [12:19:46]json_value_free done [12:19:46]process_json_proto returns [12:19:46]Send response to host [12:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112205,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:19:46]free response buf [12:19:46]execute_script done [12:19:46]execute_script returns [12:19:46]free content buf [12:19:46]Sock 7.Close socket [12:19:46]Sock 7.Thread stoped [12:19:49]OFD Sender: No OFD packet to send [12:19:50]int [12:19:50]Write to MH i2c: 01 00 00 EA 2A 14 [12:19:50]*** FLAG_PRN_PAP1 set [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 EA 2A 00 01 00 00 00 FF 0F 2A [12:19:50]state=0 [12:19:50]No paper [12:19:50]int [12:19:50]Write to MH i2c: 01 00 00 EB 2A 15 [12:19:50]*** FLAG_PRN_PAP2 set [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 EB 2A 00 03 00 00 00 FF 0F 2D [12:19:50]state=0 [12:19:50]No paper [12:19:50]Cover opened [12:19:54]OFD Sender: No OFD packet to send [12:19:55]Write to MH i2c: 01 00 00 EC 2A 16 [12:19:55]Write i2c OK [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: 01 [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: 01 07 00 [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: 01 07 00 EC 2A 00 03 00 00 00 FF 0F 2E [12:19:55]state=3 [12:19:55]No paper [12:19:55]Cover opened [12:19:59]OFD Sender: No OFD packet to send [12:20:00]Write to MH i2c: 01 00 00 ED 2A 17 [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: 01 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: 01 07 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: 01 07 00 ED 2A 00 03 00 00 00 FF 0F 2F [12:20:00]state=3 [12:20:00]No paper [12:20:00]Cover opened [12:20:04]OFD Sender: No OFD packet to send [12:20:05]Write to MH i2c: 01 00 00 EE 2A 18 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 EE 2A 00 03 00 00 00 FF 0F 30 [12:20:05]state=3 [12:20:05]No paper [12:20:05]Cover opened [12:20:08]int [12:20:08]Write to MH i2c: 01 00 00 EF 2A 19 [12:20:08]*** FLAG_PRN_PAP2 reset [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 07 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 07 00 EF 2A 00 01 00 00 00 FF 0F 2F [12:20:08]state=3 [12:20:08]No paper [12:20:08]Cover closed [12:20:08]int [12:20:08]Write to MH i2c: 01 00 00 F0 2A 1A [12:20:08]*** FLAG_PRN_PAP1 reset [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 07 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: 01 07 00 F0 2A 00 00 00 00 00 FF 0F 2F [12:20:08]state=0 [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]OFD Sender: No OFD packet to send [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:41]accept exits with 9 [12:21:41]New connection [12:21:41]New thread 3066813796 created [12:21:41]Thread 3066957156 joined [12:21:41]Waiting for new connection... [12:21:41] Sock 9.Parse request [12:21:41]Sock 9.Check first char [12:21:41]Sock 9.First char is OK [12:21:41]request: POST /json_proto HTTP/1.0 [12:21:41]Method: POST [12:21:41]URL: /json_proto [12:21:41]Method is POST - this is cgi request [12:21:41]url: /json_proto [12:21:41]query_string will be loaded in cgi processing [12:21:41]execute_cgi json_proto POST (null) [12:21:41]execute_cgi path=json_proto method=POST [12:21:41]POST find Content-Length [12:21:41]Host: 172.17.59.68:8080 [12:21:41]Content-Length: 1198 [12:21:41]Content-Type: application/json [12:21:41] [12:21:41]POST finish read [12:21:41]Found Content-Length = 1198 [12:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320878\u000A22.06.2024 10:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:41]execute_script... [12:21:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320878\u000A22.06.2024 10:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:41]POST & json_proto [12:21:41]process_json_proto [12:21:41]json parsed OK: [12:21:41]protocol is kg_v1.0 [12:21:41]action value=print_text [12:21:41]process_action print_text [12:21:41]cmd_print_text [12:21:41]ExternCall_PrintAddStr [12:21:41]wPrintStart [12:21:41]Write to MH i2c: 01 00 00 F1 2A 1B [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 07 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 07 00 F1 2A 00 00 00 00 00 FF 0F 30 [12:21:41]RasterBufferAndPrint [12:21:41]line *****ТОВАРНЫЙ ЧЕК***** [12:21:41]line АЗС 65 [12:21:41]line Партнер нефть [12:21:41]line 02508201610067 [12:21:41]line Кассир : Амантуров Р. [12:21:41]line Счет N : (1)320878 [12:21:41]line 22.06.2024 10:48 [12:21:41]line ПРОДАЖА [12:21:41]line ТРК (МРК, ГНК): 22 [12:21:41]line Вид ГСМ : 2710194210 [12:21:41]line ДТ-К-5 [12:21:41]line 30.000 x 72.90 [12:21:41]line ИТОГ: 2187.00 [12:21:41]line Тип оплаты: Талоны: Топливная Карта [12:21:41]line 01591 [12:21:41]line ______________________ [12:21:41]line (подпись) [12:21:41]written 0, free lines is 4095 [12:21:41]Write to MH i2c: 01 00 00 05 2B 30 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 07 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: 01 07 00 05 2B 00 00 00 00 00 10 0E 55 [12:21:41]RasterBufferAndPrint [12:21:41]line [12:21:41]line [12:21:41]line [12:21:41]line [12:21:41]line [12:21:41]written 0, free lines is 3601 [12:21:41]MH_Cut [12:21:41]Write to MH i2c: D1 01 00 0C 2B 01 09 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: D1 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: D1 01 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: D1 01 00 0C 2B 00 08 [12:21:41]Write to MH i2c: 01 00 00 0D 2B 38 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:42]*** Cut start [12:21:42]*** Partial cut [12:21:42]*** CUTSNS_PIN = 1 [12:21:42]*** CUTSNS_PIN = 0 [12:21:42]*** Brake cut motor [12:21:42]Read from MH i2c: 01 [12:21:42]MH_I2C_Read... [12:21:42]*** Stop cut motor [12:21:42]*** Cut end [12:21:42]Read from MH i2c: 01 07 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 0D 2B 00 00 00 00 00 FF 0F 4D [12:21:42]process_action print_text done [12:21:42]requested_data is exist [12:21:42]produce_requested_data [12:21:42]requested_item fm.sn is exist - process it [12:21:42]wFMCommunicate request_size=4 [12:21:42]MH_SAM_APDU [12:21:42]CAPDU: 80 11 00 00 [12:21:42]Write to MH i2c: E2 08 00 0E 2B 80 11 00 00 00 00 00 00 B3 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 17 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 17 00 0E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [12:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:42]wFMCommunicate OK [12:21:42]requested_item fd.num is exist - process it [12:21:42]SAM_PROTO_GetFieldsCounters [12:21:42]wFMCommunicate request_size=4 [12:21:42]MH_SAM_APDU [12:21:42]CAPDU: 80 13 00 00 [12:21:42]Write to MH i2c: E2 08 00 0F 2B 80 13 00 00 00 00 00 00 B6 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 62 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 62 00 0F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:42]wFMCommunicate OK [12:21:42]SAM_PROTO_GetFieldsCounters done [12:21:42]requested_item shift.num is exist - process it [12:21:42]requested_item shift.opened is exist - process it [12:21:42]req_shift_opened [12:21:42]FM_GetShiftState [12:21:42]SAM_PROTO_GetShiftState [12:21:42]wFMCommunicate request_size=4 [12:21:42]MH_SAM_APDU [12:21:42]CAPDU: 80 13 01 00 [12:21:42]Write to MH i2c: E2 08 00 10 2B 80 13 01 00 00 00 00 00 B8 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 0E 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 0E 00 10 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 ED [12:21:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:21:42]wFMCommunicate OK [12:21:42]SAM_PROTO_GetShiftState done [12:21:42]FM_GetShiftState done [12:21:42]req_shift_opened done [12:21:42]requested_item shift.open_date is exist - process it [12:21:42]req_shift_open_date [12:21:42]req_shift_open_date done [12:21:42]produce_requested_data done [12:21:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112205,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:21:42]process_action_free print_text [12:21:42]json_value_free [12:21:42]json_value_free done [12:21:42]process_json_proto returns [12:21:42]Send response to host [12:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112205,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:21:42]free response buf [12:21:42]execute_script done [12:21:42]execute_script returns [12:21:42]free content buf [12:21:42]Sock 9.Close socket [12:21:42]Sock 9.Thread stoped [12:21:43]accept exits with 7 [12:21:43]New connection [12:21:43]New thread 3066957156 created [12:21:43]Thread 3066813796 joined [12:21:43]Waiting for new connection... [12:21:43] Sock 7.Parse request [12:21:43]Sock 7.Check first char [12:21:43]Sock 7.First char is OK [12:21:43]request: POST /json_proto HTTP/1.0 [12:21:43]Method: POST [12:21:43]URL: /json_proto [12:21:43]Method is POST - this is cgi request [12:21:43]url: /json_proto [12:21:43]query_string will be loaded in cgi processing [12:21:43]execute_cgi json_proto POST (null) [12:21:43]execute_cgi path=json_proto method=POST [12:21:43]POST find Content-Length [12:21:43]Host: 172.17.59.68:8080 [12:21:43]Content-Length: 677 [12:21:43]Content-Type: application/json [12:21:43] [12:21:43]POST finish read [12:21:43]Found Content-Length = 677 [12:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320879", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:43]execute_script... [12:21: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)320879", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:43]POST & json_proto [12:21:43]process_json_proto [12:21:43]json parsed OK: [12:21:43]protocol is kg_v1.0 [12:21:43]action value=close_receipt [12:21:43]process_action close_receipt [12:21:43]cmd_close_receipt [12:21:43]MH_GetDate [12:21:43]Write to MH i2c: F0 00 00 11 2B 2B [12:21:43]Write i2c OK [12:21:43]MH_I2C_Read... [12:21:43]Read from MH i2c: F0 [12:21:43]MH_I2C_Read... [12:21:43]Read from MH i2c: F0 09 00 [12:21:43]MH_I2C_Read... [12:21:43]Read from MH i2c: F0 09 00 11 2B 00 ED C1 76 66 BC EC 60 65 2B [12:21:43]GetLastDocTimeStamp 1719058804 [12:21:43]current date 1719058925 [12:21:43]FM_GetShiftState [12:21:43]SAM_PROTO_GetShiftState [12:21:43]wFMCommunicate request_size=4 [12:21:43]MH_SAM_APDU [12:21:43]CAPDU: 80 13 01 00 [12:21:43]Write to MH i2c: E2 08 00 12 2B 80 13 01 00 00 00 00 00 BA [12:21:43]Write i2c OK [12:21:43]MH_I2C_Read... [12:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:43]Read from MH i2c: E2 [12:21:43]MH_I2C_Read... [12:21:43]Read from MH i2c: E2 0E 00 [12:21:43]MH_I2C_Read... [12:21:43]Read from MH i2c: E2 0E 00 12 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EF [12:21:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:21:43]wFMCommunicate OK [12:21:43]SAM_PROTO_GetShiftState done [12:21:43]FM_GetShiftState done [12:21:43]opened in 1719020067 [12:21:43]opened+sec_in_day 1719106467 [12:21:43]quantity*price = 50065 [12:21:43]sum+1 = 50067 [12:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 72 22.06.2024 12:22 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112206 ФПД: 134508362420231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112206&fm=134508362420231&tin=02508201610067®Number=0000000000092771&sum=50000 [12:21:44]StoreToDocumentArchive [12:21:44]shift 391 fd 112206 [12:21:44]save to /storage/0391/doc_00112206 [12:21:44]save last doc name /storage/0391/doc_00112206 to /storage/kkm_last_doc_name [12:21:44]save OK [12:21:44]Clear old archive folders... [12:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:44]tlvbuf is B6F56850 [12:21:44]SAM_PROTO_ClearQueue [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 09 00 00 [12:21:44]Write to MH i2c: E2 08 00 1F 2B 80 09 00 00 00 00 00 00 BC [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 03 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 03 00 1F 2B 00 90 00 BE [12:21:44]RAPDU: 90 00 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_ClearQueue done [12:21:44]KKMCreateOFDPacket [12:21:44]OFDProtocolAddRootSTLVToBuf [12:21:44]FM_MakeSignedData [12:21:44]FM_MakeSignedData [12:21:44]SAM_PROTO_SignData [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 0D 01 02 [12:21:44]Write to MH i2c: E2 08 00 20 2B 80 0D 01 02 00 00 00 00 C4 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:44]Read from MH i2c: E2 03 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 03 00 20 2B 00 90 00 BF [12:21:44]RAPDU: 90 00 [12:21:44]wFMCommunicate OK [12:21:44]wFMCommunicate request_size=255 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B6 01 00 35 04 06 00 7A [12:21:44]Write to MH i2c: E2 02 01 21 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B6 01 00 35 04 06 00 7A 00 00 51 [12:21:45]OFD Sender: No OFD packet to send [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 21 2B 00 90 00 C0 [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]wFMCommunicate request_size=10 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 0D 02 02 05 55 AB 29 50 07 [12:21:45]Write to MH i2c: E2 0D 00 22 2B 80 0D 02 02 05 00 55 AB 29 50 07 00 00 51 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 03 00 22 2B 00 90 00 C1 [12:21:45]RAPDU: 90 00 [12:21:45]wFMCommunicate OK [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 0D 03 02 [12:21:45]Write to MH i2c: E2 08 00 23 2B 80 0D 03 02 00 00 00 00 C9 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 0B 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 0B 00 23 2B 00 66 01 F6 E3 EA 5F 2D 3B 90 00 BB [12:21:45]RAPDU: 66 01 F6 E3 EA 5F 2D 3B 90 00 [12:21:45]wFMCommunicate OK [12:21:45]SAM_PROTO_SignData done [12:21:45]FM_MakeSignedData done [12:21:45]CreateOFDProtocolMessage [12:21:45]wFMCommunicate request_size=4 [12:21:45]MH_SAM_APDU [12:21:45]CAPDU: 80 11 00 00 [12:21:45]Write to MH i2c: E2 08 00 24 2B 80 11 00 00 00 00 00 00 C9 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:45]Read from MH i2c: E2 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 17 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: E2 17 00 24 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [12:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:45]wFMCommunicate OK [12:21:45]CreateOFDProtocolMessage done [12:21:45]OFDSenderStorePacket 112206 [12:21:45]StoreOFDPacket docnum=112206 [12:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 00 07 01 A1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B6 01 00 35 04 06 00 7A 55 AB 29 50 07 66 01 F6 E3 EA 5F 2D 3B [12:21:45]CheckFolder [12:21:45]dirname=/storage/ofd_packets [12:21:45]CheckFolder done [12:21:45]ProducePacketName [12:21:45]name=ofd_packets/00112206 [12:21:45]NVStorageSaveData ofd_packets/00112206 [12:21:45]File name is /storage/ofd_packets/00112206 [12:21:45]Write 301 bytes [12:21:45]NVStorageSaveData done [12:21:45]OFDSenderStorePacket done [12:21:45]KKMCreateOFDPacket done [12:21:45]NVStorageSaveData kkm_last_timestamp [12:21:45]File name is /storage/kkm_last_timestamp [12:21:45]Write 4 bytes [12:21:45]NVStorageSaveData done [12:21:45]ExternCall_PrintAddStr [12:21:45]wPrintStart [12:21:45]Write to MH i2c: 01 00 00 25 2B 50 [12:21:45]Write i2c OK [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: 01 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: 01 07 00 [12:21:45]MH_I2C_Read... [12:21:45]Read from MH i2c: 01 07 00 25 2B 00 00 00 00 00 FF 0F 65 [12:21:45]RasterBufferAndPrint [12:21:45]line Счет N : (1)320879 [12:21:45]line ИНН: 02508201610067 [12:21:45]line Контрольно-Кассовый Чек [12:21:45]line ПРОДАЖА [12:21:45]line ТРК (МРК, ГНК) : 11 [12:21:45]line Товар: 2710124130 [12:21:45]line Аи-92-К-5 [12:21:45]line 7.540 * 66.40 [12:21:45]line = 500.66 [12:21:45]line НДС 12% НСП 1% [12:21:45]line > о реализуемом товаре [12:21:45]line ОКРУГЛЕНИЕ: -0.66 [12:21:45]line ИТОГО: 500.00 [12:21:45]line Внесено: 500.00 [12:21:45]line СДАЧА: 0.00 [12:21:45]line НСП 1% : 4.43 [12:21:45]line НДС 12% : 53.17 [12:21:45]line Наличными: 500.00 [12:21:45]line Безнал.: 0.00 [12:21:45]line Место: АЗС № 65 "Партнер Нефть" [12:21:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:21:45]line СНО: Общий режим [12:21:45]line Чек 72 22.06.2024 12:22 [12:21:45]line Смена: 391 ФФД: 1.0 [12:21:45]line ЗНМ: 0300000198 [12:21:45]line РНМ: 0000000000092771 [12:21:45]line Версия ККМ: 001 [12:21:45]line ФМ: 0000000000875083 [12:21:45]line ФД: 112206 [12:21:45]line ФПД: 134508362420231 [12:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112206&fm=134508362420231&tin=02508201610067®Number=0000000000092771&sum=50000 [12:21:45]written 0, free lines is 4095 [12:21:45]OFD Sender: Processing packet 112206 [packets to send 38, broken 37] [12:21:45]ProducePacketName [12:21:45]name=ofd_packets/00112206 [12:21:45]OFD Sender: To server: pG, [12:21:45]CommunicateWithHost lk.salyk.kg:30040 [12:21:45]ConnectInit lk.salyk.kg [12:21:45]Connected sock=10 [12:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 00 07 01 A1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 ED C1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B6 01 00 35 04 06 00 7A 55 AB 29 50 07 66 01 F6 E3 EA 5F 2D 3B [12:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 5C 47 00 81 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B6 01 00 F4 03 04 00 FA 58 76 66 B6 04 01 00 00 DA B0 6D 98 8E 2C 0C A2 [12:21:45]CommunicateWithHost err = 0 [12:21:45]CheckOFDResponse [12:21:45]1017 (14) - 77093643461234 [12:21:45]1041 (16) - 0000000000875083 [12:21:45]1040 (4) - 112206 [12:21:45]1012 (4) - 22.06.2024 04:54 [12:21:45]1206 (1) - 0 [12:21:45]OFD Sender: Remove packet 112206 [12:21:45]ProducePacketName [12:21:45]name=ofd_packets/00112206 [12:21:45]NVStorageDeleteData [12:21:46]Write to MH i2c: 01 00 00 50 2B 7B [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 07 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: 01 07 00 50 2B 00 00 00 00 00 DE 0C 6C [12:21:46]RasterBufferAndPrint [12:21:46]line [12:21:46]line [12:21:46]line [12:21:46]line [12:21:46]line [12:21:46]written 0, free lines is 3303 [12:21:46]MH_Cut [12:21:46]Write to MH i2c: D1 01 00 57 2B 01 54 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: D1 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: D1 01 00 [12:21:46]MH_I2C_Read... [12:21:46]Read from MH i2c: D1 01 00 57 2B 00 53 [12:21:46]Write to MH i2c: 01 00 00 58 2B 83 [12:21:46]Write i2c OK [12:21:46]MH_I2C_Read... [12:21:46]OFD Sender: No OFD packet to send [12:21:46]*** Cut start [12:21:46]*** Partial cut [12:21:46]*** CUTSNS_PIN = 1 [12:21:46]*** CUTSNS_PIN = 0 [12:21:46]*** Brake cut motor [12:21:47]Read from MH i2c: 01 [12:21:47]MH_I2C_Read... [12:21:47]*** Stop cut motor [12:21:47]*** Cut end [12:21:47]Read from MH i2c: 01 07 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: 01 07 00 58 2B 00 00 00 00 00 FF 0F 98 [12:21:47]process_action close_receipt done [12:21:47]requested_data is exist [12:21:47]produce_requested_data [12:21:47]requested_item fm.sn is exist - process it [12:21:47]wFMCommunicate request_size=4 [12:21:47]MH_SAM_APDU [12:21:47]CAPDU: 80 11 00 00 [12:21:47]Write to MH i2c: E2 08 00 59 2B 80 11 00 00 00 00 00 00 FE [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:47]Read from MH i2c: E2 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 17 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 17 00 59 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [12:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:21:47]wFMCommunicate OK [12:21:47]requested_item fd.num is exist - process it [12:21:47]SAM_PROTO_GetFieldsCounters [12:21:47]wFMCommunicate request_size=4 [12:21:47]MH_SAM_APDU [12:21:47]CAPDU: 80 13 00 00 [12:21:47]Write to MH i2c: E2 08 00 5A 2B 80 13 00 00 00 00 00 00 01 [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:47]Read from MH i2c: E2 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 62 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 62 00 5A 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:47]wFMCommunicate OK [12:21:47]SAM_PROTO_GetFieldsCounters done [12:21:47]requested_item shift.num is exist - process it [12:21:47]requested_item shift.opened is exist - process it [12:21:47]req_shift_opened [12:21:47]FM_GetShiftState [12:21:47]SAM_PROTO_GetShiftState [12:21:47]wFMCommunicate request_size=4 [12:21:47]MH_SAM_APDU [12:21:47]CAPDU: 80 13 01 00 [12:21:47]Write to MH i2c: E2 08 00 5B 2B 80 13 01 00 00 00 00 00 03 [12:21:47]Write i2c OK [12:21:47]MH_I2C_Read... [12:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:47]Read from MH i2c: E2 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 0E 00 [12:21:47]MH_I2C_Read... [12:21:47]Read from MH i2c: E2 0E 00 5B 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 38 [12:21:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:21:47]wFMCommunicate OK [12:21:47]SAM_PROTO_GetShiftState done [12:21:47]FM_GetShiftState done [12:21:47]req_shift_opened done [12:21:47]requested_item shift.open_date is exist - process it [12:21:47]req_shift_open_date [12:21:47]req_shift_open_date done [12:21:47]produce_requested_data done [12:21:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112206,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:21:47]process_action_free close_receipt [12:21:47]json_value_free [12:21:47]json_value_free done [12:21:47]process_json_proto returns [12:21:47]Send response to host [12:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112206,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:21:47]free response buf [12:21:47]execute_script done [12:21:47]execute_script returns [12:21:47]free content buf [12:21:47]Sock 7.Close socket [12:21:47]Sock 7.Thread stoped [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:14]accept exits with 9 [12:23:14]New connection [12:23:14]New thread 3066813796 created [12:23:14]Thread 3066957156 joined [12:23:14]Waiting for new connection... [12:23:14] Sock 9.Parse request [12:23:14]Sock 9.Check first char [12:23:14]Sock 9.First char is OK [12:23:14]request: POST /json_proto HTTP/1.0 [12:23:14]Method: POST [12:23:14]URL: /json_proto [12:23:14]Method is POST - this is cgi request [12:23:14]url: /json_proto [12:23:14]query_string will be loaded in cgi processing [12:23:14]execute_cgi json_proto POST (null) [12:23:14]execute_cgi path=json_proto method=POST [12:23:14]POST find Content-Length [12:23:14]Host: 172.17.59.68:8080 [12:23:14]Content-Length: 677 [12:23:14]Content-Type: application/json [12:23:14] [12:23:14]POST finish read [12:23:14]Found Content-Length = 677 [12:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320880", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:14]execute_script... [12:23: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)320880", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:14]POST & json_proto [12:23:14]process_json_proto [12:23:14]json parsed OK: [12:23:14]protocol is kg_v1.0 [12:23:14]action value=close_receipt [12:23:14]process_action close_receipt [12:23:14]cmd_close_receipt [12:23:14]MH_GetDate [12:23:14]Write to MH i2c: F0 00 00 5C 2B 76 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: F0 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: F0 09 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: F0 09 00 5C 2B 00 49 C2 76 66 BC EC 60 65 D3 [12:23:14]GetLastDocTimeStamp 1719058925 [12:23:14]current date 1719059017 [12:23:14]FM_GetShiftState [12:23:14]SAM_PROTO_GetShiftState [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 13 01 00 [12:23:14]Write to MH i2c: E2 08 00 5D 2B 80 13 01 00 00 00 00 00 05 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 0E 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 0E 00 5D 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3A [12:23:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:23:14]wFMCommunicate OK [12:23:14]SAM_PROTO_GetShiftState done [12:23:14]FM_GetShiftState done [12:23:14]opened in 1719020067 [12:23:14]opened+sec_in_day 1719106467 [12:23:14]quantity*price = 20052 [12:23:14]sum+1 = 20054 [12:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 73 22.06.2024 12:23 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112207 ФПД: 153415179675974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112207&fm=153415179675974&tin=02508201610067®Number=0000000000092771&sum=20000 [12:23:15]StoreToDocumentArchive [12:23:15]shift 391 fd 112207 [12:23:15]save to /storage/0391/doc_00112207 [12:23:15]save last doc name /storage/0391/doc_00112207 to /storage/kkm_last_doc_name [12:23:15]save OK [12:23:15]Clear old archive folders... [12:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:15]tlvbuf is 011EB930 [12:23:15]SAM_PROTO_ClearQueue [12:23:15]wFMCommunicate request_size=4 [12:23:15]MH_SAM_APDU [12:23:15]CAPDU: 80 09 00 00 [12:23:15]Write to MH i2c: E2 08 00 6A 2B 80 09 00 00 00 00 00 00 07 [12:23:15]Write i2c OK [12:23:15]MH_I2C_Read... [12:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:15]Read from MH i2c: E2 [12:23:15]MH_I2C_Read... [12:23:15]Read from MH i2c: E2 03 00 [12:23:15]MH_I2C_Read... [12:23:15]Read from MH i2c: E2 03 00 6A 2B 00 90 00 09 [12:23:15]RAPDU: 90 00 [12:23:15]wFMCommunicate OK [12:23:15]SAM_PROTO_ClearQueue done [12:23:15]KKMCreateOFDPacket [12:23:15]OFDProtocolAddRootSTLVToBuf [12:23:15]FM_MakeSignedData [12:23:15]FM_MakeSignedData [12:23:15]SAM_PROTO_SignData [12:23:15]wFMCommunicate request_size=4 [12:23:15]MH_SAM_APDU [12:23:15]CAPDU: 80 0D 01 02 [12:23:15]Write to MH i2c: E2 08 00 6B 2B 80 0D 01 02 00 00 00 00 0F [12:23:15]Write i2c OK [12:23:15]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 03 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 03 00 6B 2B 00 90 00 0A [12:23:16]RAPDU: 90 00 [12:23:16]wFMCommunicate OK [12:23:16]wFMCommunicate request_size=255 [12:23:16]MH_SAM_APDU [12:23: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 49 C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B6 01 00 35 04 06 00 8B [12:23:16]Write to MH i2c: E2 02 01 6C 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 49 C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B6 01 00 35 04 06 00 8B 00 00 CB [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 03 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 03 00 6C 2B 00 90 00 0B [12:23:16]RAPDU: 90 00 [12:23:16]wFMCommunicate OK [12:23:16]wFMCommunicate request_size=10 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 0D 02 02 05 87 C1 49 A9 46 [12:23:16]Write to MH i2c: E2 0D 00 6D 2B 80 0D 02 02 05 00 87 C1 49 A9 46 00 00 9C [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 03 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 03 00 6D 2B 00 90 00 0C [12:23:16]RAPDU: 90 00 [12:23:16]wFMCommunicate OK [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 0D 03 02 [12:23:16]Write to MH i2c: E2 08 00 6E 2B 80 0D 03 02 00 00 00 00 14 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0B 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0B 00 6E 2B 00 88 C1 05 05 A5 13 94 7A 90 00 2E [12:23:16]RAPDU: 88 C1 05 05 A5 13 94 7A 90 00 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_SignData done [12:23:16]FM_MakeSignedData done [12:23:16]CreateOFDProtocolMessage [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 11 00 00 [12:23:16]Write to MH i2c: E2 08 00 6F 2B 80 11 00 00 00 00 00 00 14 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 17 00 [12:23:16]MH_I2C_Read... [12:23:16]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 35 30 38 33 90 00 66 [12:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:23:16]wFMCommunicate OK [12:23:16]CreateOFDProtocolMessage done [12:23:16]OFDSenderStorePacket 112207 [12:23:16]StoreOFDPacket docnum=112207 [12:23:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 78 07 01 E7 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 49 C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B6 01 00 35 04 06 00 8B 87 C1 49 A9 46 88 C1 05 05 A5 13 94 7A [12:23:16]CheckFolder [12:23:16]dirname=/storage/ofd_packets [12:23:16]CheckFolder done [12:23:16]ProducePacketName [12:23:16]name=ofd_packets/00112207 [12:23:16]NVStorageSaveData ofd_packets/00112207 [12:23:16]File name is /storage/ofd_packets/00112207 [12:23:16]Write 301 bytes [12:23:16]NVStorageSaveData done [12:23:16]OFDSenderStorePacket done [12:23:16]KKMCreateOFDPacket done [12:23:16]NVStorageSaveData kkm_last_timestamp [12:23:16]File name is /storage/kkm_last_timestamp [12:23:16]Write 4 bytes [12:23:16]NVStorageSaveData done [12:23:16]ExternCall_PrintAddStr [12:23:16]wPrintStart [12:23:16]Write to MH i2c: 01 00 00 70 2B 9B [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 70 2B 00 00 00 00 00 FF 0F B0 [12:23:16]RasterBufferAndPrint [12:23:16]line Счет N : (1)320880 [12:23:16]line ИНН: 02508201610067 [12:23:16]line Контрольно-Кассовый Чек [12:23:16]line ПРОДАЖА [12:23:16]line ТРК (МРК, ГНК) : 11 [12:23:16]line Товар: 2710124130 [12:23:16]line Аи-92-К-5 [12:23:16]line 3.020 * 66.40 [12:23:16]line = 200.53 [12:23:16]line НДС 12% НСП 1% [12:23:16]line > о реализуемом товаре [12:23:16]line ОКРУГЛЕНИЕ: -0.53 [12:23:16]line ИТОГО: 200.00 [12:23:16]line Внесено: 200.00 [12:23:16]line СДАЧА: 0.00 [12:23:16]line НСП 1% : 1.77 [12:23:16]line НДС 12% : 21.29 [12:23:16]line Наличными: 200.00 [12:23:16]line Безнал.: 0.00 [12:23:16]line Место: АЗС № 65 "Партнер Нефть" [12:23:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:23:16]line СНО: Общий режим [12:23:16]line Чек 73 22.06.2024 12:23 [12:23:16]line Смена: 391 ФФД: 1.0 [12:23:16]line ЗНМ: 0300000198 [12:23:16]line РНМ: 0000000000092771 [12:23:16]line Версия ККМ: 001 [12:23:16]line ФМ: 0000000000875083 [12:23:16]line ФД: 112207 [12:23:16]line ФПД: 153415179675974 [12:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112207&fm=153415179675974&tin=02508201610067®Number=0000000000092771&sum=20000 [12:23:16]OFD Sender: Processing packet 112207 [packets to send 38, broken 37] [12:23:16]ProducePacketName [12:23:16]name=ofd_packets/00112207 [12:23:16]OFD Sender: To server: pG, [12:23:16]CommunicateWithHost lk.salyk.kg:30040 [12:23:16]ConnectInit lk.salyk.kg [12:23:16]written 0, free lines is 4095 [12:23:16]Connected sock=7 [12:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 78 07 01 E7 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 49 C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B6 01 00 35 04 06 00 8B 87 C1 49 A9 46 88 C1 05 05 A5 13 94 7A [12:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E A8 47 00 A4 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B6 01 00 F4 03 04 00 56 59 76 66 B6 04 01 00 00 63 9F C6 21 12 21 27 6A [12:23:17]CommunicateWithHost err = 0 [12:23:17]CheckOFDResponse [12:23:17]1017 (14) - 77093643461234 [12:23:17]1041 (16) - 0000000000875083 [12:23:17]1040 (4) - 112207 [12:23:17]1012 (4) - 22.06.2024 04:55 [12:23:17]1206 (1) - 0 [12:23:17]OFD Sender: Remove packet 112207 [12:23:17]ProducePacketName [12:23:17]name=ofd_packets/00112207 [12:23:17]NVStorageDeleteData [12:23:17]Write to MH i2c: 01 00 00 9B 2B C6 [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 07 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 07 00 9B 2B 00 00 00 00 00 D7 0C B0 [12:23:17]RasterBufferAndPrint [12:23:17]line [12:23:17]line [12:23:17]line [12:23:17]line [12:23:17]line [12:23:17]written 0, free lines is 3294 [12:23:17]MH_Cut [12:23:17]Write to MH i2c: D1 01 00 A2 2B 01 9F [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: D1 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: D1 01 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: D1 01 00 A2 2B 00 9E [12:23:17]Write to MH i2c: 01 00 00 A3 2B CE [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]OFD Sender: No OFD packet to send [12:23:18]*** Cut start [12:23:18]*** Partial cut [12:23:18]*** CUTSNS_PIN = 1 [12:23:18]*** CUTSNS_PIN = 0 [12:23:18]*** Brake cut motor [12:23:18]Read from MH i2c: 01 [12:23:18]MH_I2C_Read... [12:23:18]*** Stop cut motor [12:23:18]*** Cut end [12:23:18]Read from MH i2c: 01 07 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: 01 07 00 A3 2B 00 00 00 00 00 FF 0F E3 [12:23:18]process_action close_receipt done [12:23:18]requested_data is exist [12:23:18]produce_requested_data [12:23:18]requested_item fm.sn is exist - process it [12:23:18]wFMCommunicate request_size=4 [12:23:18]MH_SAM_APDU [12:23:18]CAPDU: 80 11 00 00 [12:23:18]Write to MH i2c: E2 08 00 A4 2B 80 11 00 00 00 00 00 00 49 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:18]Read from MH i2c: E2 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 17 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 17 00 A4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [12:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:23:18]wFMCommunicate OK [12:23:18]requested_item fd.num is exist - process it [12:23:18]SAM_PROTO_GetFieldsCounters [12:23:18]wFMCommunicate request_size=4 [12:23:18]MH_SAM_APDU [12:23:18]CAPDU: 80 13 00 00 [12:23:18]Write to MH i2c: E2 08 00 A5 2B 80 13 00 00 00 00 00 00 4C [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:18]Read from MH i2c: E2 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 62 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 62 00 A5 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:18]wFMCommunicate OK [12:23:18]SAM_PROTO_GetFieldsCounters done [12:23:18]requested_item shift.num is exist - process it [12:23:18]requested_item shift.opened is exist - process it [12:23:18]req_shift_opened [12:23:18]FM_GetShiftState [12:23:18]SAM_PROTO_GetShiftState [12:23:18]wFMCommunicate request_size=4 [12:23:18]MH_SAM_APDU [12:23:18]CAPDU: 80 13 01 00 [12:23:18]Write to MH i2c: E2 08 00 A6 2B 80 13 01 00 00 00 00 00 4E [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:18]Read from MH i2c: E2 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 0E 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: E2 0E 00 A6 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 83 [12:23:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:23:18]wFMCommunicate OK [12:23:18]SAM_PROTO_GetShiftState done [12:23:18]FM_GetShiftState done [12:23:18]req_shift_opened done [12:23:18]requested_item shift.open_date is exist - process it [12:23:18]req_shift_open_date [12:23:18]req_shift_open_date done [12:23:18]produce_requested_data done [12:23:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112207,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:23:18]process_action_free close_receipt [12:23:18]json_value_free [12:23:18]json_value_free done [12:23:18]process_json_proto returns [12:23:18]Send response to host [12:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112207,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:23:18]free response buf [12:23:18]execute_script done [12:23:18]execute_script returns [12:23:18]free content buf [12:23:18]Sock 9.Close socket [12:23:18]Sock 9.Thread stoped [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:40]accept exits with 10 [12:25:40]New connection [12:25:40]New thread 3066957156 created [12:25:40]Thread 3066813796 joined [12:25:40]Waiting for new connection... [12:25:40] Sock 10.Parse request [12:25:40]Sock 10.Check first char [12:25:40]Sock 10.First char is OK [12:25:40]request: POST /json_proto HTTP/1.0 [12:25:40]Method: POST [12:25:40]URL: /json_proto [12:25:40]Method is POST - this is cgi request [12:25:40]url: /json_proto [12:25:40]query_string will be loaded in cgi processing [12:25:40]execute_cgi json_proto POST (null) [12:25:40]execute_cgi path=json_proto method=POST [12:25:40]POST find Content-Length [12:25:40]Host: 172.17.59.68:8080 [12:25:40]Content-Length: 677 [12:25:40]Content-Type: application/json [12:25:40] [12:25:40]POST finish read [12:25:40]Found Content-Length = 677 [12:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320881", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:40]execute_script... [12:25: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)320881", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:40]POST & json_proto [12:25:40]process_json_proto [12:25:40]json parsed OK: [12:25:40]protocol is kg_v1.0 [12:25:40]action value=close_receipt [12:25:40]process_action close_receipt [12:25:40]cmd_close_receipt [12:25:40]MH_GetDate [12:25:40]Write to MH i2c: F0 00 00 A7 2B C1 [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: F0 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: F0 09 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: F0 09 00 A7 2B 00 DB C2 76 66 BC EC 60 65 B0 [12:25:40]GetLastDocTimeStamp 1719059017 [12:25:40]current date 1719059163 [12:25:40]FM_GetShiftState [12:25:40]SAM_PROTO_GetShiftState [12:25:40]wFMCommunicate request_size=4 [12:25:40]MH_SAM_APDU [12:25:40]CAPDU: 80 13 01 00 [12:25:40]Write to MH i2c: E2 08 00 A8 2B 80 13 01 00 00 00 00 00 50 [12:25:40]Write i2c OK [12:25:40]MH_I2C_Read... [12:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:40]Read from MH i2c: E2 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 0E 00 [12:25:40]MH_I2C_Read... [12:25:40]Read from MH i2c: E2 0E 00 A8 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 85 [12:25:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:25:40]wFMCommunicate OK [12:25:40]SAM_PROTO_GetShiftState done [12:25:40]FM_GetShiftState done [12:25:40]opened in 1719020067 [12:25:40]opened+sec_in_day 1719106467 [12:25:40]quantity*price = 50065 [12:25:40]sum+1 = 50067 [12:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 74 22.06.2024 12:26 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112208 ФПД: 66784629981661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122603&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112208&fm=66784629981661&tin=02508201610067®Number=0000000000092771&sum=50000 [12:25:42]StoreToDocumentArchive [12:25:42]shift 391 fd 112208 [12:25:42]save to /storage/0391/doc_00112208 [12:25:42]save last doc name /storage/0391/doc_00112208 to /storage/kkm_last_doc_name [12:25:42]save OK [12:25:42]Clear old archive folders... [12:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:42]tlvbuf is 0119A480 [12:25:42]SAM_PROTO_ClearQueue [12:25:42]wFMCommunicate request_size=4 [12:25:42]MH_SAM_APDU [12:25:42]CAPDU: 80 09 00 00 [12:25:42]Write to MH i2c: E2 08 00 B5 2B 80 09 00 00 00 00 00 00 52 [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 B5 2B 00 90 00 54 [12:25:42]RAPDU: 90 00 [12:25:42]wFMCommunicate OK [12:25:42]SAM_PROTO_ClearQueue done [12:25:42]KKMCreateOFDPacket [12:25:42]OFDProtocolAddRootSTLVToBuf [12:25:42]FM_MakeSignedData [12:25:42]FM_MakeSignedData [12:25:42]SAM_PROTO_SignData [12:25:42]wFMCommunicate request_size=4 [12:25:42]MH_SAM_APDU [12:25:42]CAPDU: 80 0D 01 02 [12:25:42]Write to MH i2c: E2 08 00 B6 2B 80 0D 01 02 00 00 00 00 5A [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 B6 2B 00 90 00 55 [12:25:42]RAPDU: 90 00 [12:25:42]wFMCommunicate OK [12:25:42]wFMCommunicate request_size=255 [12:25:42]MH_SAM_APDU [12:25: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DB C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B6 01 00 35 04 06 00 3C [12:25:42]Write to MH i2c: E2 02 01 B7 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DB C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B6 01 00 35 04 06 00 3C 00 00 9C [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 B7 2B 00 90 00 56 [12:25:42]RAPDU: 90 00 [12:25:42]wFMCommunicate OK [12:25:42]wFMCommunicate request_size=10 [12:25:42]MH_SAM_APDU [12:25:42]CAPDU: 80 0D 02 02 05 BD 82 25 81 DD [12:25:42]Write to MH i2c: E2 0D 00 B8 2B 80 0D 02 02 05 00 BD 82 25 81 DD 00 00 29 [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 03 00 B8 2B 00 90 00 57 [12:25:42]RAPDU: 90 00 [12:25:42]wFMCommunicate OK [12:25:42]wFMCommunicate request_size=4 [12:25:42]MH_SAM_APDU [12:25:42]CAPDU: 80 0D 03 02 [12:25:42]Write to MH i2c: E2 08 00 B9 2B 80 0D 03 02 00 00 00 00 5F [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 0B 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 0B 00 B9 2B 00 B2 DC E3 30 41 5C 2F 9E 90 00 6B [12:25:42]RAPDU: B2 DC E3 30 41 5C 2F 9E 90 00 [12:25:42]wFMCommunicate OK [12:25:42]SAM_PROTO_SignData done [12:25:42]FM_MakeSignedData done [12:25:42]CreateOFDProtocolMessage [12:25:42]wFMCommunicate request_size=4 [12:25:42]MH_SAM_APDU [12:25:42]CAPDU: 80 11 00 00 [12:25:42]Write to MH i2c: E2 08 00 BA 2B 80 11 00 00 00 00 00 00 5F [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 17 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 17 00 BA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [12:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:25:42]wFMCommunicate OK [12:25:42]CreateOFDProtocolMessage done [12:25:42]OFDSenderStorePacket 112208 [12:25:42]StoreOFDPacket docnum=112208 [12:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 3F 07 01 63 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DB C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B6 01 00 35 04 06 00 3C BD 82 25 81 DD B2 DC E3 30 41 5C 2F 9E [12:25:42]CheckFolder [12:25:42]dirname=/storage/ofd_packets [12:25:42]CheckFolder done [12:25:42]ProducePacketName [12:25:42]name=ofd_packets/00112208 [12:25:42]NVStorageSaveData ofd_packets/00112208 [12:25:42]File name is /storage/ofd_packets/00112208 [12:25:42]Write 301 bytes [12:25:42]NVStorageSaveData done [12:25:42]OFDSenderStorePacket done [12:25:42]KKMCreateOFDPacket done [12:25:42]NVStorageSaveData kkm_last_timestamp [12:25:42]File name is /storage/kkm_last_timestamp [12:25:42]Write 4 bytes [12:25:42]NVStorageSaveData done [12:25:42]ExternCall_PrintAddStr [12:25:42]wPrintStart [12:25:42]Write to MH i2c: 01 00 00 BB 2B E6 [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 07 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 07 00 BB 2B 00 00 00 00 00 FF 0F FB [12:25:42]RasterBufferAndPrint [12:25:42]line Счет N : (1)320881 [12:25:42]line ИНН: 02508201610067 [12:25:42]line Контрольно-Кассовый Чек [12:25:42]line ПРОДАЖА [12:25:42]line ТРК (МРК, ГНК) : 11 [12:25:42]line Товар: 2710124130 [12:25:42]line Аи-92-К-5 [12:25:42]line 7.540 * 66.40 [12:25:42]line = 500.66 [12:25:42]line НДС 12% НСП 1% [12:25:42]line > о реализуемом товаре [12:25:42]line ОКРУГЛЕНИЕ: -0.66 [12:25:42]line ИТОГО: 500.00 [12:25:42]line Внесено: 500.00 [12:25:42]line СДАЧА: 0.00 [12:25:42]line НСП 1% : 4.43 [12:25:42]line НДС 12% : 53.17 [12:25:42]line Наличными: 500.00 [12:25:42]line Безнал.: 0.00 [12:25:42]line Место: АЗС № 65 "Партнер Нефть" [12:25:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:25:42]line СНО: Общий режим [12:25:42]line Чек 74 22.06.2024 12:26 [12:25:42]line Смена: 391 ФФД: 1.0 [12:25:42]line ЗНМ: 0300000198 [12:25:42]line РНМ: 0000000000092771 [12:25:42]line Версия ККМ: 001 [12:25:42]line ФМ: 0000000000875083 [12:25:42]line ФД: 112208 [12:25:42]line ФПД: 66784629981661 [12:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122603&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112208&fm=66784629981661&tin=02508201610067®Number=0000000000092771&sum=50000 [12:25:42]OFD Sender: Processing packet 112208 [packets to send 38, broken 37] [12:25:42]ProducePacketName [12:25:42]name=ofd_packets/00112208 [12:25:42]OFD Sender: To server: pG, [12:25:42]CommunicateWithHost lk.salyk.kg:30040 [12:25:42]ConnectInit lk.salyk.kg [12:25:42]written 0, free lines is 4095 [12:25:43]Connected sock=11 [12:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 3F 07 01 63 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DB C2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B6 01 00 35 04 06 00 3C BD 82 25 81 DD B2 DC E3 30 41 5C 2F 9E [12:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E4 85 47 00 E3 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B6 01 00 F4 03 04 00 E8 59 76 66 B6 04 01 00 00 9A 76 33 1C 86 9F C1 DC [12:25:43]CommunicateWithHost err = 0 [12:25:43]CheckOFDResponse [12:25:43]1017 (14) - 77093643461234 [12:25:43]1041 (16) - 0000000000875083 [12:25:43]1040 (4) - 112208 [12:25:43]1012 (4) - 22.06.2024 04:58 [12:25:43]1206 (1) - 0 [12:25:43]OFD Sender: Remove packet 112208 [12:25:43]ProducePacketName [12:25:43]name=ofd_packets/00112208 [12:25:43]NVStorageDeleteData [12:25:43]Write to MH i2c: 01 00 00 E6 2B 11 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: 01 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: 01 07 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: 01 07 00 E6 2B 00 00 00 00 00 D9 0C FD [12:25:43]RasterBufferAndPrint [12:25:43]line [12:25:43]line [12:25:43]line [12:25:43]line [12:25:43]line [12:25:43]written 0, free lines is 3296 [12:25:43]MH_Cut [12:25:43]Write to MH i2c: D1 01 00 ED 2B 01 EA [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: D1 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: D1 01 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: D1 01 00 ED 2B 00 E9 [12:25:43]Write to MH i2c: 01 00 00 EE 2B 19 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]OFD Sender: No OFD packet to send [12:25:44]*** Cut start [12:25:44]*** Partial cut [12:25:44]*** CUTSNS_PIN = 1 [12:25:44]*** CUTSNS_PIN = 0 [12:25:44]*** Brake cut motor [12:25:44]Read from MH i2c: 01 [12:25:44]MH_I2C_Read... [12:25:44]*** Stop cut motor [12:25:44]*** Cut end [12:25:44]Read from MH i2c: 01 07 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 07 00 EE 2B 00 00 00 00 00 FF 0F 2E [12:25:44]process_action close_receipt done [12:25:44]requested_data is exist [12:25:44]produce_requested_data [12:25:44]requested_item fm.sn is exist - process it [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 11 00 00 [12:25:44]Write to MH i2c: E2 08 00 EF 2B 80 11 00 00 00 00 00 00 94 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 17 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 17 00 EF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [12:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:25:44]wFMCommunicate OK [12:25:44]requested_item fd.num is exist - process it [12:25:44]SAM_PROTO_GetFieldsCounters [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 13 00 00 [12:25:44]Write to MH i2c: E2 08 00 F0 2B 80 13 00 00 00 00 00 00 97 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 62 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 62 00 F0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [12:25:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_GetFieldsCounters done [12:25:44]requested_item shift.num is exist - process it [12:25:44]requested_item shift.opened is exist - process it [12:25:44]req_shift_opened [12:25:44]FM_GetShiftState [12:25:44]SAM_PROTO_GetShiftState [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 13 01 00 [12:25:44]Write to MH i2c: E2 08 00 F1 2B 80 13 01 00 00 00 00 00 99 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0E 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0E 00 F1 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CE [12:25:45]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:25:45]wFMCommunicate OK [12:25:45]SAM_PROTO_GetShiftState done [12:25:45]FM_GetShiftState done [12:25:45]req_shift_opened done [12:25:45]requested_item shift.open_date is exist - process it [12:25:45]req_shift_open_date [12:25:45]req_shift_open_date done [12:25:45]produce_requested_data done [12:25:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112208,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:25:45]process_action_free close_receipt [12:25:45]json_value_free [12:25:45]json_value_free done [12:25:45]process_json_proto returns [12:25:45]Send response to host [12:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112208,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:25:45]free response buf [12:25:45]execute_script done [12:25:45]execute_script returns [12:25:45]free content buf [12:25:45]Sock 10.Close socket [12:25:45]Sock 10.Thread stoped [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:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:20]accept exits with 7 [12:29:20]New connection [12:29:20]New thread 3066813796 created [12:29:20]Thread 3066957156 joined [12:29:20]Waiting for new connection... [12:29:20] Sock 7.Parse request [12:29:20]Sock 7.Check first char [12:29:20]Sock 7.First char is OK [12:29:20]request: POST /json_proto HTTP/1.0 [12:29:20]Method: POST [12:29:20]URL: /json_proto [12:29:20]Method is POST - this is cgi request [12:29:20]url: /json_proto [12:29:20]query_string will be loaded in cgi processing [12:29:20]execute_cgi json_proto POST (null) [12:29:20]execute_cgi path=json_proto method=POST [12:29:20]POST find Content-Length [12:29:20]Host: 172.17.59.68:8080 [12:29:20]Content-Length: 808 [12:29:20]Content-Type: application/json [12:29:20] [12:29:20]POST finish read [12:29:20]Found Content-Length = 808 [12:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320882", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:20]execute_script... [12:29: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)320882", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:20]POST & json_proto [12:29:20]process_json_proto [12:29:20]json parsed OK: [12:29:20]protocol is kg_v1.0 [12:29:20]action value=close_receipt [12:29:20]process_action close_receipt [12:29:20]cmd_close_receipt [12:29:20]MH_GetDate [12:29:20]Write to MH i2c: F0 00 00 F2 2B 0C [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: F0 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: F0 09 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: F0 09 00 F2 2B 00 B7 C3 76 66 BC EC 60 65 D8 [12:29:20]GetLastDocTimeStamp 1719059163 [12:29:20]current date 1719059383 [12:29:20]FM_GetShiftState [12:29:20]SAM_PROTO_GetShiftState [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 13 01 00 [12:29:20]Write to MH i2c: E2 08 00 F3 2B 80 13 01 00 00 00 00 00 9B [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0E 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0E 00 F3 2B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D0 [12:29:20]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:29:20]wFMCommunicate OK [12:29:20]SAM_PROTO_GetShiftState done [12:29:20]FM_GetShiftState done [12:29:20]opened in 1719020067 [12:29:20]opened+sec_in_day 1719106467 [12:29:20]quantity*price = 200063 [12:29:20]sum+1 = 200064 [12:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 75 22.06.2024 12:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112209 ФПД: 89405209644586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112209&fm=89405209644586&tin=02508201610067®Number=0000000000092771&sum=200063 [12:29:21]StoreToDocumentArchive [12:29:21]shift 391 fd 112209 [12:29:21]save to /storage/0391/doc_00112209 [12:29:21]save last doc name /storage/0391/doc_00112209 to /storage/kkm_last_doc_name [12:29:21]save OK [12:29:21]Clear old archive folders... [12:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:21]tlvbuf is 011D1110 [12:29:21]SAM_PROTO_ClearQueue [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 09 00 00 [12:29:21]Write to MH i2c: E2 08 00 00 2C 80 09 00 00 00 00 00 00 9E [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 00 2C 00 90 00 A0 [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]SAM_PROTO_ClearQueue done [12:29:21]KKMCreateOFDPacket [12:29:21]OFDProtocolAddRootSTLVToBuf [12:29:21]FM_MakeSignedData [12:29:21]FM_MakeSignedData [12:29:21]SAM_PROTO_SignData [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 01 02 [12:29:21]Write to MH i2c: E2 08 00 01 2C 80 0D 01 02 00 00 00 00 A6 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 01 2C 00 90 00 A1 [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]wFMCommunicate request_size=255 [12:29:21]MH_SAM_APDU [12:29: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B7 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B6 01 00 35 04 06 00 51 [12:29:21]Write to MH i2c: E2 02 01 02 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B7 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B6 01 00 35 04 06 00 51 00 00 4F [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 02 2C 00 90 00 A2 [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]wFMCommunicate request_size=10 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 02 02 05 50 45 C3 0E 2A [12:29:21]Write to MH i2c: E2 0D 00 03 2C 80 0D 02 02 05 00 50 45 C3 0E 2A 00 00 43 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 03 2C 00 90 00 A3 [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 03 02 [12:29:21]Write to MH i2c: E2 08 00 04 2C 80 0D 03 02 00 00 00 00 AB [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 0B 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 0B 00 04 2C 00 3F C6 EC BD A7 0F 4E A3 90 00 01 [12:29:21]RAPDU: 3F C6 EC BD A7 0F 4E A3 90 00 [12:29:21]wFMCommunicate OK [12:29:21]SAM_PROTO_SignData done [12:29:21]FM_MakeSignedData done [12:29:21]CreateOFDProtocolMessage [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 11 00 00 [12:29:21]Write to MH i2c: E2 08 00 05 2C 80 11 00 00 00 00 00 00 AB [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 17 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 17 00 05 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [12:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:22]wFMCommunicate OK [12:29:22]CreateOFDProtocolMessage done [12:29:22]OFDSenderStorePacket 112209 [12:29:22]StoreOFDPacket docnum=112209 [12:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 34 07 01 17 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B7 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B6 01 00 35 04 06 00 51 50 45 C3 0E 2A 3F C6 EC BD A7 0F 4E A3 [12:29:22]CheckFolder [12:29:22]dirname=/storage/ofd_packets [12:29:22]CheckFolder done [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00112209 [12:29:22]NVStorageSaveData ofd_packets/00112209 [12:29:22]File name is /storage/ofd_packets/00112209 [12:29:22]Write 301 bytes [12:29:22]NVStorageSaveData done [12:29:22]OFDSenderStorePacket done [12:29:22]KKMCreateOFDPacket done [12:29:22]NVStorageSaveData kkm_last_timestamp [12:29:22]File name is /storage/kkm_last_timestamp [12:29:22]Write 4 bytes [12:29:22]NVStorageSaveData done [12:29:22]ExternCall_PrintAddStr [12:29:22]wPrintStart [12:29:22]Write to MH i2c: 01 00 00 06 2C 32 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 06 2C 00 00 00 00 00 FF 0F 47 [12:29:22]RasterBufferAndPrint [12:29:22]line Счет N : (1)320882 [12:29:22]line ИНН: 02508201610067 [12:29:22]line Контрольно-Кассовый Чек [12:29:22]line ПРОДАЖА [12:29:22]line ТРК (МРК, ГНК) : 11 [12:29:22]line Товар: 2710124130 [12:29:22]line Аи-92-К-5 [12:29:22]line 30.130 * 66.40 [12:29:22]line = 2000.63 [12:29:22]line НДС 12% НСП 1% [12:29:22]line > о реализуемом товаре [12:29:22]line ИТОГО: 2000.63 [12:29:22]line НСП 1% : 17.70 [12:29:22]line НДС 12% : 212.46 [12:29:22]line Наличными: 0.00 [12:29:22]line Безнал.: 2000.63 [12:29:22]line Место: АЗС № 65 "Партнер Нефть" [12:29:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:29:22]line СНО: Общий режим [12:29:22]line Чек 75 22.06.2024 12:29 [12:29:22]line Смена: 391 ФФД: 1.0 [12:29:22]line ЗНМ: 0300000198 [12:29:22]line РНМ: 0000000000092771 [12:29:22]line Версия ККМ: 001 [12:29:22]line Платежная система: О! деньги [12:29:22]line ФМ: 0000000000875083 [12:29:22]line ФД: 112209 [12:29:22]line ФПД: 89405209644586 [12:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112209&fm=89405209644586&tin=02508201610067®Number=0000000000092771&sum=200063 [12:29:22]written 0, free lines is 4095 [12:29:22]OFD Sender: Processing packet 112209 [packets to send 38, broken 37] [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00112209 [12:29:22]OFD Sender: To server: pG, [12:29:22]CommunicateWithHost lk.salyk.kg:30040 [12:29:22]ConnectInit lk.salyk.kg [12:29:22]Connected sock=10 [12:29:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 34 07 01 17 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B7 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B6 01 00 35 04 06 00 51 50 45 C3 0E 2A 3F C6 EC BD A7 0F 4E A3 [12:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 12 C2 47 00 C0 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B6 01 00 F4 03 04 00 C3 5A 76 66 B6 04 01 00 00 DA E6 31 4D 65 EF 8E EC [12:29:22]CommunicateWithHost err = 0 [12:29:22]CheckOFDResponse [12:29:22]1017 (14) - 77093643461234 [12:29:22]1041 (16) - 0000000000875083 [12:29:22]1040 (4) - 112209 [12:29:22]1012 (4) - 22.06.2024 05:01 [12:29:22]1206 (1) - 0 [12:29:22]OFD Sender: Remove packet 112209 [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00112209 [12:29:22]NVStorageDeleteData [12:29:22]Write to MH i2c: 01 00 00 30 2C 5C [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 30 2C 00 00 00 00 00 FB 0C 6A [12:29:22]RasterBufferAndPrint [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]written 0, free lines is 3330 [12:29:22]MH_Cut [12:29:22]Write to MH i2c: D1 01 00 37 2C 01 35 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: D1 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: D1 01 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: D1 01 00 37 2C 00 34 [12:29:22]Write to MH i2c: 01 00 00 38 2C 64 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:23]OFD Sender: No OFD packet to send [12:29:23]*** Cut start [12:29:23]*** Partial cut [12:29:23]*** CUTSNS_PIN = 1 [12:29:23]*** CUTSNS_PIN = 0 [12:29:23]*** Brake cut motor [12:29:24]Read from MH i2c: 01 [12:29:24]MH_I2C_Read... [12:29:24]*** Stop cut motor [12:29:24]*** Cut end [12:29:24]Read from MH i2c: 01 07 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 07 00 38 2C 00 00 00 00 00 FF 0F 79 [12:29:24]process_action close_receipt done [12:29:24]requested_data is exist [12:29:24]produce_requested_data [12:29:24]requested_item fm.sn is exist - process it [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 11 00 00 [12:29:24]Write to MH i2c: E2 08 00 39 2C 80 11 00 00 00 00 00 00 DF [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 39 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [12:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:24]wFMCommunicate OK [12:29:24]requested_item fd.num is exist - process it [12:29:24]SAM_PROTO_GetFieldsCounters [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 13 00 00 [12:29:24]Write to MH i2c: E2 08 00 3A 2C 80 13 00 00 00 00 00 00 E2 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 62 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 62 00 3A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_GetFieldsCounters done [12:29:24]requested_item shift.num is exist - process it [12:29:24]requested_item shift.opened is exist - process it [12:29:24]req_shift_opened [12:29:24]FM_GetShiftState [12:29:24]SAM_PROTO_GetShiftState [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 13 01 00 [12:29:24]Write to MH i2c: E2 08 00 3B 2C 80 13 01 00 00 00 00 00 E4 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 3B 2C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 19 [12:29:24]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_GetShiftState done [12:29:24]FM_GetShiftState done [12:29:24]req_shift_opened done [12:29:24]requested_item shift.open_date is exist - process it [12:29:24]req_shift_open_date [12:29:24]req_shift_open_date done [12:29:24]produce_requested_data done [12:29:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112209,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:29:24]process_action_free close_receipt [12:29:24]json_value_free [12:29:24]json_value_free done [12:29:24]process_json_proto returns [12:29:24]Send response to host [12:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112209,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:29:24]free response buf [12:29:24]execute_script done [12:29:24]execute_script returns [12:29:24]free content buf [12:29:24]Sock 7.Close socket [12:29:24]Sock 7.Thread stoped [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:49]accept exits with 9 [12:29:49]New connection [12:29:49]New thread 3066957156 created [12:29:49]Thread 3066813796 joined [12:29:49]Waiting for new connection... [12:29:49] Sock 9.Parse request [12:29:49]Sock 9.Check first char [12:29:49]Sock 9.First char is OK [12:29:49]request: POST /json_proto HTTP/1.0 [12:29:49]Method: POST [12:29:49]URL: /json_proto [12:29:49]Method is POST - this is cgi request [12:29:49]url: /json_proto [12:29:49]query_string will be loaded in cgi processing [12:29:49]execute_cgi json_proto POST (null) [12:29:49]execute_cgi path=json_proto method=POST [12:29:49]POST find Content-Length [12:29:49]Host: 172.17.59.68:8080 [12:29:49]Content-Length: 677 [12:29:49]Content-Type: application/json [12:29:49] [12:29:49]POST finish read [12:29:49]Found Content-Length = 677 [12:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320883", "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.40, "quantity" : 6.780, "sum" : 450.19, "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" ] } } [12:29:49]execute_script... [12:29: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)320883", "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.40, "quantity" : 6.780, "sum" : 450.19, "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" ] } } [12:29:49]POST & json_proto [12:29:49]process_json_proto [12:29:49]json parsed OK: [12:29:49]protocol is kg_v1.0 [12:29:49]action value=close_receipt [12:29:49]process_action close_receipt [12:29:49]cmd_close_receipt [12:29:49]MH_GetDate [12:29:49]Write to MH i2c: F0 00 00 3C 2C 57 [12:29:49]Write i2c OK [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: F0 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: F0 09 00 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: F0 09 00 3C 2C 00 D4 C3 76 66 BC EC 60 65 40 [12:29:49]GetLastDocTimeStamp 1719059383 [12:29:49]current date 1719059412 [12:29:49]FM_GetShiftState [12:29:49]SAM_PROTO_GetShiftState [12:29:49]wFMCommunicate request_size=4 [12:29:49]MH_SAM_APDU [12:29:49]CAPDU: 80 13 01 00 [12:29:49]Write to MH i2c: E2 08 00 3D 2C 80 13 01 00 00 00 00 00 E6 [12:29:49]Write i2c OK [12:29:49]MH_I2C_Read... [12:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:49]Read from MH i2c: E2 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 0E 00 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 0E 00 3D 2C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1B [12:29:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:29:49]wFMCommunicate OK [12:29:49]SAM_PROTO_GetShiftState done [12:29:49]FM_GetShiftState done [12:29:49]opened in 1719020067 [12:29:49]opened+sec_in_day 1719106467 [12:29:49]quantity*price = 45019 [12:29:49]sum+1 = 45020 [12:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 76 22.06.2024 12:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112210 ФПД: 115131391465467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123012&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112210&fm=115131391465467&tin=02508201610067®Number=0000000000092771&sum=45000 [12:29:51]StoreToDocumentArchive [12:29:51]shift 391 fd 112210 [12:29:51]save to /storage/0391/doc_00112210 [12:29:51]save last doc name /storage/0391/doc_00112210 to /storage/kkm_last_doc_name [12:29:51]save OK [12:29:51]Clear old archive folders... [12:29:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:51]tlvbuf is 011D1310 [12:29:51]SAM_PROTO_ClearQueue [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 09 00 00 [12:29:51]Write to MH i2c: E2 08 00 4A 2C 80 09 00 00 00 00 00 00 E8 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 4A 2C 00 90 00 EA [12:29:51]RAPDU: 90 00 [12:29:51]wFMCommunicate OK [12:29:51]SAM_PROTO_ClearQueue done [12:29:51]KKMCreateOFDPacket [12:29:51]OFDProtocolAddRootSTLVToBuf [12:29:51]FM_MakeSignedData [12:29:51]FM_MakeSignedData [12:29:51]SAM_PROTO_SignData [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 0D 01 02 [12:29:51]Write to MH i2c: E2 08 00 4B 2C 80 0D 01 02 00 00 00 00 F0 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 4B 2C 00 90 00 EB [12:29:51]RAPDU: 90 00 [12:29:51]wFMCommunicate OK [12:29:51]wFMCommunicate request_size=255 [12:29:51]MH_SAM_APDU [12:29: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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 4C 00 00 00 F4 03 04 00 D4 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B6 01 00 35 04 06 00 68 [12:29:51]Write to MH i2c: E2 02 01 4C 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 4C 00 00 00 F4 03 04 00 D4 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B6 01 00 35 04 06 00 68 00 00 17 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 4C 2C 00 90 00 EC [12:29:51]RAPDU: 90 00 [12:29:51]wFMCommunicate OK [12:29:51]wFMCommunicate request_size=10 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 0D 02 02 05 B6 1D B0 D7 FB [12:29:51]Write to MH i2c: E2 0D 00 4D 2C 80 0D 02 02 05 00 B6 1D B0 D7 FB 00 00 52 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 03 00 4D 2C 00 90 00 ED [12:29:51]RAPDU: 90 00 [12:29:51]wFMCommunicate OK [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 0D 03 02 [12:29:51]Write to MH i2c: E2 08 00 4E 2C 80 0D 03 02 00 00 00 00 F5 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 0B 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 0B 00 4E 2C 00 74 15 60 D6 45 EC CB 73 90 00 24 [12:29:51]RAPDU: 74 15 60 D6 45 EC CB 73 90 00 [12:29:51]wFMCommunicate OK [12:29:51]SAM_PROTO_SignData done [12:29:51]FM_MakeSignedData done [12:29:51]CreateOFDProtocolMessage [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 11 00 00 [12:29:51]Write to MH i2c: E2 08 00 4F 2C 80 11 00 00 00 00 00 00 F5 [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:51]Read from MH i2c: E2 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 17 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: E2 17 00 4F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [12:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:51]wFMCommunicate OK [12:29:51]CreateOFDProtocolMessage done [12:29:51]OFDSenderStorePacket 112210 [12:29:51]StoreOFDPacket docnum=112210 [12:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D0 96 07 01 C0 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 4C 00 00 00 F4 03 04 00 D4 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B6 01 00 35 04 06 00 68 B6 1D B0 D7 FB 74 15 60 D6 45 EC CB 73 [12:29:51]CheckFolder [12:29:51]dirname=/storage/ofd_packets [12:29:51]CheckFolder done [12:29:51]ProducePacketName [12:29:51]name=ofd_packets/00112210 [12:29:51]NVStorageSaveData ofd_packets/00112210 [12:29:51]File name is /storage/ofd_packets/00112210 [12:29:51]Write 301 bytes [12:29:51]NVStorageSaveData done [12:29:51]OFDSenderStorePacket done [12:29:51]KKMCreateOFDPacket done [12:29:51]NVStorageSaveData kkm_last_timestamp [12:29:51]File name is /storage/kkm_last_timestamp [12:29:51]Write 4 bytes [12:29:51]NVStorageSaveData done [12:29:51]ExternCall_PrintAddStr [12:29:51]wPrintStart [12:29:51]Write to MH i2c: 01 00 00 50 2C 7C [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: 01 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: 01 07 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: 01 07 00 50 2C 00 00 00 00 00 FF 0F 91 [12:29:51]RasterBufferAndPrint [12:29:51]line Счет N : (1)320883 [12:29:51]line ИНН: 02508201610067 [12:29:51]line Контрольно-Кассовый Чек [12:29:51]line ПРОДАЖА [12:29:51]line ТРК (МРК, ГНК) : 11 [12:29:51]line Товар: 2710124130 [12:29:51]line Аи-92-К-5 [12:29:51]line 6.780 * 66.40 [12:29:51]line = 450.19 [12:29:51]line НДС 12% НСП 1% [12:29:51]line > о реализуемом товаре [12:29:51]line ОКРУГЛЕНИЕ: -0.19 [12:29:51]line ИТОГО: 450.00 [12:29:51]line Внесено: 450.00 [12:29:51]line СДАЧА: 0.00 [12:29:51]line НСП 1% : 3.98 [12:29:51]line НДС 12% : 47.81 [12:29:51]line Наличными: 450.00 [12:29:51]line Безнал.: 0.00 [12:29:51]line Место: АЗС № 65 "Партнер Нефть" [12:29:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:29:51]line СНО: Общий режим [12:29:51]line Чек 76 22.06.2024 12:30 [12:29:51]line Смена: 391 ФФД: 1.0 [12:29:51]line ЗНМ: 0300000198 [12:29:51]line РНМ: 0000000000092771 [12:29:51]line Версия ККМ: 001 [12:29:51]line ФМ: 0000000000875083 [12:29:51]line ФД: 112210 [12:29:51]line ФПД: 115131391465467 [12:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123012&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112210&fm=115131391465467&tin=02508201610067®Number=0000000000092771&sum=45000 [12:29:51]OFD Sender: Processing packet 112210 [packets to send 38, broken 37] [12:29:51]ProducePacketName [12:29:51]name=ofd_packets/00112210 [12:29:51]OFD Sender: To server: pG, [12:29:51]CommunicateWithHost lk.salyk.kg:30040 [12:29:51]ConnectInit lk.salyk.kg [12:29:51]written 0, free lines is 4095 [12:29:52]Connected sock=10 [12:29:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D0 96 07 01 C0 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 4C 00 00 00 F4 03 04 00 D4 C3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B6 01 00 35 04 06 00 68 B6 1D B0 D7 FB 74 15 60 D6 45 EC CB 73 [12:29:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 90 47 00 09 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B6 01 00 F4 03 04 00 E1 5A 76 66 B6 04 01 00 00 F9 83 B7 88 96 63 11 88 [12:29:52]CommunicateWithHost err = 0 [12:29:52]CheckOFDResponse [12:29:52]1017 (14) - 77093643461234 [12:29:52]1041 (16) - 0000000000875083 [12:29:52]1040 (4) - 112210 [12:29:52]1012 (4) - 22.06.2024 05:02 [12:29:52]1206 (1) - 0 [12:29:52]OFD Sender: Remove packet 112210 [12:29:52]ProducePacketName [12:29:52]name=ofd_packets/00112210 [12:29:52]NVStorageDeleteData [12:29:52]Write to MH i2c: 01 00 00 7B 2C A7 [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: 01 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: 01 07 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: 01 07 00 7B 2C 00 00 00 00 00 D8 0C 92 [12:29:52]RasterBufferAndPrint [12:29:52]line [12:29:52]line [12:29:52]line [12:29:52]line [12:29:52]line [12:29:52]written 0, free lines is 3296 [12:29:52]MH_Cut [12:29:52]Write to MH i2c: D1 01 00 82 2C 01 80 [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: D1 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: D1 01 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: D1 01 00 82 2C 00 7F [12:29:52]Write to MH i2c: 01 00 00 83 2C AF [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]OFD Sender: No OFD packet to send [12:29:53]*** Cut start [12:29:53]*** Partial cut [12:29:53]*** CUTSNS_PIN = 1 [12:29:53]*** CUTSNS_PIN = 0 [12:29:53]*** Brake cut motor [12:29:53]Read from MH i2c: 01 [12:29:53]MH_I2C_Read... [12:29:53]*** Stop cut motor [12:29:53]*** Cut end [12:29:53]Read from MH i2c: 01 07 00 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: 01 07 00 83 2C 00 00 00 00 00 FF 0F C4 [12:29:53]process_action close_receipt done [12:29:53]requested_data is exist [12:29:53]produce_requested_data [12:29:53]requested_item fm.sn is exist - process it [12:29:53]wFMCommunicate request_size=4 [12:29:53]MH_SAM_APDU [12:29:53]CAPDU: 80 11 00 00 [12:29:53]Write to MH i2c: E2 08 00 84 2C 80 11 00 00 00 00 00 00 2A [12:29:53]Write i2c OK [12:29:53]MH_I2C_Read... [12:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:53]Read from MH i2c: E2 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: E2 17 00 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: E2 17 00 84 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [12:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:53]wFMCommunicate OK [12:29:53]requested_item fd.num is exist - process it [12:29:53]SAM_PROTO_GetFieldsCounters [12:29:53]wFMCommunicate request_size=4 [12:29:53]MH_SAM_APDU [12:29:53]CAPDU: 80 13 00 00 [12:29:53]Write to MH i2c: E2 08 00 85 2C 80 13 00 00 00 00 00 00 2D [12:29:53]Write i2c OK [12:29:53]MH_I2C_Read... [12:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:53]Read from MH i2c: E2 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: E2 62 00 [12:29:53]MH_I2C_Read... [12:29:53]Read from MH i2c: E2 62 00 85 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [12:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:53]wFMCommunicate OK [12:29:53]SAM_PROTO_GetFieldsCounters done [12:29:53]requested_item shift.num is exist - process it [12:29:53]requested_item shift.opened is exist - process it [12:29:53]req_shift_opened [12:29:53]FM_GetShiftState [12:29:53]SAM_PROTO_GetShiftState [12:29:53]wFMCommunicate request_size=4 [12:29:53]MH_SAM_APDU [12:29:53]CAPDU: 80 13 01 00 [12:29:53]Write to MH i2c: E2 08 00 86 2C 80 13 01 00 00 00 00 00 2F [12:29:53]Write i2c OK [12:29:53]MH_I2C_Read... [12:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:54]Read from MH i2c: E2 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 0E 00 [12:29:54]MH_I2C_Read... [12:29:54]Read from MH i2c: E2 0E 00 86 2C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 64 [12:29:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:29:54]wFMCommunicate OK [12:29:54]SAM_PROTO_GetShiftState done [12:29:54]FM_GetShiftState done [12:29:54]req_shift_opened done [12:29:54]requested_item shift.open_date is exist - process it [12:29:54]req_shift_open_date [12:29:54]req_shift_open_date done [12:29:54]produce_requested_data done [12:29:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112210,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:29:54]process_action_free close_receipt [12:29:54]json_value_free [12:29:54]json_value_free done [12:29:54]process_json_proto returns [12:29:54]Send response to host [12:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112210,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:29:54]free response buf [12:29:54]execute_script done [12:29:54]execute_script returns [12:29:54]free content buf [12:29:54]Sock 9.Close socket [12:29:54]Sock 9.Thread stoped [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:23]accept exits with 7 [12:31:23]New connection [12:31:23]New thread 3066813796 created [12:31:23] Sock 7.Parse request [12:31:23]Sock 7.Check first char [12:31:23]Thread 3066957156 joined [12:31:23]Waiting for new connection... [12:31:23]Sock 7.First char is OK [12:31:23]request: POST /json_proto HTTP/1.0 [12:31:23]Method: POST [12:31:23]URL: /json_proto [12:31:23]Method is POST - this is cgi request [12:31:23]url: /json_proto [12:31:23]query_string will be loaded in cgi processing [12:31:23]execute_cgi json_proto POST (null) [12:31:23]execute_cgi path=json_proto method=POST [12:31:23]POST find Content-Length [12:31:23]Host: 172.17.59.68:8080 [12:31:23]Content-Length: 677 [12:31:23]Content-Type: application/json [12:31:23] [12:31:23]POST finish read [12:31:23]Found Content-Length = 677 [12:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320884", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:31:23]execute_script... [12:31: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)320884", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:31:23]POST & json_proto [12:31:23]process_json_proto [12:31:23]json parsed OK: [12:31:23]protocol is kg_v1.0 [12:31:23]action value=close_receipt [12:31:23]process_action close_receipt [12:31:23]cmd_close_receipt [12:31:23]MH_GetDate [12:31:23]Write to MH i2c: F0 00 00 87 2C A2 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 09 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 09 00 87 2C 00 32 C4 76 66 BC EC 60 65 EA [12:31:23]GetLastDocTimeStamp 1719059412 [12:31:23]current date 1719059506 [12:31:23]FM_GetShiftState [12:31:23]SAM_PROTO_GetShiftState [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 13 01 00 [12:31:23]Write to MH i2c: E2 08 00 88 2C 80 13 01 00 00 00 00 00 31 [12:31:23]Write i2c OK [12:31:23]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 88 2C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 66 [12:31:23]RAPDU: 09 00 01 23 2A 76 66 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]opened in 1719020067 [12:31:23]opened+sec_in_day 1719106467 [12:31:23]quantity*price = 40039 [12:31:23]sum+1 = 40040 [12:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 77 22.06.2024 12:31 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112211 ФПД: 117879157070250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112211&fm=117879157070250&tin=02508201610067®Number=0000000000092771&sum=40000 [12:31:24]StoreToDocumentArchive [12:31:24]shift 391 fd 112211 [12:31:24]save to /storage/0391/doc_00112211 [12:31:24]save last doc name /storage/0391/doc_00112211 to /storage/kkm_last_doc_name [12:31:24]save OK [12:31:24]Clear old archive folders... [12:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:24]tlvbuf is 011D1D90 [12:31:24]SAM_PROTO_ClearQueue [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 09 00 00 [12:31:24]Write to MH i2c: E2 08 00 95 2C 80 09 00 00 00 00 00 00 33 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 95 2C 00 90 00 35 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_ClearQueue done [12:31:24]KKMCreateOFDPacket [12:31:24]OFDProtocolAddRootSTLVToBuf [12:31:24]FM_MakeSignedData [12:31:24]FM_MakeSignedData [12:31:24]SAM_PROTO_SignData [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 01 02 [12:31:24]Write to MH i2c: E2 08 00 96 2C 80 0D 01 02 00 00 00 00 3B [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 96 2C 00 90 00 36 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=255 [12:31:24]MH_SAM_APDU [12:31: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 32 C4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B6 01 00 35 04 06 00 6B [12:31:24]Write to MH i2c: E2 02 01 97 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 32 C4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B6 01 00 35 04 06 00 6B 00 00 D9 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 97 2C 00 90 00 37 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=10 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 02 02 05 35 E1 48 99 AA [12:31:24]Write to MH i2c: E2 0D 00 98 2C 80 0D 02 02 05 00 35 E1 48 99 AA 00 00 E9 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 03 02 [12:31:24]Write to MH i2c: E2 08 00 99 2C 80 0D 03 02 00 00 00 00 40 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 0B 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 0B 00 99 2C 00 1B 15 BA FB 05 6B 4A BD 90 00 9D [12:31:24]RAPDU: 1B 15 BA FB 05 6B 4A BD 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_SignData done [12:31:24]FM_MakeSignedData done [12:31:24]CreateOFDProtocolMessage [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 11 00 00 [12:31:24]Write to MH i2c: E2 08 00 9A 2C 80 11 00 00 00 00 00 00 40 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 9A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [12:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:31:24]wFMCommunicate OK [12:31:24]CreateOFDProtocolMessage done [12:31:24]OFDSenderStorePacket 112211 [12:31:24]StoreOFDPacket docnum=112211 [12:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 AF 07 01 B7 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 32 C4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B6 01 00 35 04 06 00 6B 35 E1 48 99 AA 1B 15 BA FB 05 6B 4A BD [12:31:24]CheckFolder [12:31:24]dirname=/storage/ofd_packets [12:31:24]CheckFolder done [12:31:24]ProducePacketName [12:31:24]name=ofd_packets/00112211 [12:31:24]NVStorageSaveData ofd_packets/00112211 [12:31:24]File name is /storage/ofd_packets/00112211 [12:31:24]Write 301 bytes [12:31:24]NVStorageSaveData done [12:31:24]OFDSenderStorePacket done [12:31:24]KKMCreateOFDPacket done [12:31:24]NVStorageSaveData kkm_last_timestamp [12:31:24]File name is /storage/kkm_last_timestamp [12:31:24]Write 4 bytes [12:31:24]NVStorageSaveData done [12:31:24]ExternCall_PrintAddStr [12:31:24]wPrintStart [12:31:24]Write to MH i2c: 01 00 00 9B 2C C7 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 9B 2C 00 00 00 00 00 FF 0F DC [12:31:24]RasterBufferAndPrint [12:31:24]line Счет N : (1)320884 [12:31:24]line ИНН: 02508201610067 [12:31:24]line Контрольно-Кассовый Чек [12:31:24]line ПРОДАЖА [12:31:24]line ТРК (МРК, ГНК) : 11 [12:31:24]line Товар: 2710124130 [12:31:24]line Аи-92-К-5 [12:31:24]line 6.030 * 66.40 [12:31:24]line = 400.39 [12:31:24]line НДС 12% НСП 1% [12:31:24]line > о реализуемом товаре [12:31:24]line ОКРУГЛЕНИЕ: -0.39 [12:31:24]line ИТОГО: 400.00 [12:31:24]line Внесено: 400.00 [12:31:24]line СДАЧА: 0.00 [12:31:24]line НСП 1% : 3.54 [12:31:24]line НДС 12% : 42.52 [12:31:24]line Наличными: 400.00 [12:31:24]line Безнал.: 0.00 [12:31:24]line Место: АЗС № 65 "Партнер Нефть" [12:31:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:31:24]line СНО: Общий режим [12:31:24]line Чек 77 22.06.2024 12:31 [12:31:24]line Смена: 391 ФФД: 1.0 [12:31:24]line ЗНМ: 0300000198 [12:31:24]line РНМ: 0000000000092771 [12:31:24]line Версия ККМ: 001 [12:31:24]line ФМ: 0000000000875083 [12:31:24]line ФД: 112211 [12:31:24]line ФПД: 117879157070250 [12:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112211&fm=117879157070250&tin=02508201610067®Number=0000000000092771&sum=40000 [12:31:25]OFD Sender: Processing packet 112211 [packets to send 38, broken 37] [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00112211 [12:31:25]OFD Sender: To server: pG, [12:31:25]CommunicateWithHost lk.salyk.kg:30040 [12:31:25]ConnectInit lk.salyk.kg [12:31:25]written 0, free lines is 4095 [12:31:25]Connected sock=10 [12:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 AF 07 01 B7 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 32 C4 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B6 01 00 35 04 06 00 6B 35 E1 48 99 AA 1B 15 BA FB 05 6B 4A BD [12:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EA 78 47 00 44 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B6 01 00 F4 03 04 00 3E 5B 76 66 B6 04 01 00 00 74 1B 7D 15 5B 6F 14 55 [12:31:25]CommunicateWithHost err = 0 [12:31:25]CheckOFDResponse [12:31:25]1017 (14) - 77093643461234 [12:31:25]1041 (16) - 0000000000875083 [12:31:25]1040 (4) - 112211 [12:31:25]1012 (4) - 22.06.2024 05:03 [12:31:25]1206 (1) - 0 [12:31:25]OFD Sender: Remove packet 112211 [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00112211 [12:31:25]NVStorageDeleteData [12:31:25]Write to MH i2c: 01 00 00 C6 2C F2 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 C6 2C 00 00 00 00 00 D4 0C D9 [12:31:25]RasterBufferAndPrint [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]written 0, free lines is 3292 [12:31:25]MH_Cut [12:31:25]Write to MH i2c: D1 01 00 CD 2C 01 CB [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: D1 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: D1 01 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: D1 01 00 CD 2C 00 CA [12:31:25]Write to MH i2c: 01 00 00 CE 2C FA [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:26]OFD Sender: No OFD packet to send [12:31:26]*** Cut start [12:31:26]*** Partial cut [12:31:26]*** CUTSNS_PIN = 1 [12:31:26]*** CUTSNS_PIN = 0 [12:31:26]*** Brake cut motor [12:31:26]Read from MH i2c: 01 [12:31:26]MH_I2C_Read... [12:31:26]*** Stop cut motor [12:31:26]*** Cut end [12:31:26]Read from MH i2c: 01 07 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 07 00 CE 2C 00 00 00 00 00 FF 0F 0F [12:31:26]process_action close_receipt done [12:31:26]requested_data is exist [12:31:26]produce_requested_data [12:31:26]requested_item fm.sn is exist - process it [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 11 00 00 [12:31:26]Write to MH i2c: E2 08 00 CF 2C 80 11 00 00 00 00 00 00 75 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 CF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [12:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:31:27]wFMCommunicate OK [12:31:27]requested_item fd.num is exist - process it [12:31:27]SAM_PROTO_GetFieldsCounters [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 00 00 [12:31:27]Write to MH i2c: E2 08 00 D0 2C 80 13 00 00 00 00 00 00 78 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 D0 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetFieldsCounters done [12:31:27]requested_item shift.num is exist - process it [12:31:27]requested_item shift.opened is exist - process it [12:31:27]req_shift_opened [12:31:27]FM_GetShiftState [12:31:27]SAM_PROTO_GetShiftState [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 01 00 [12:31:27]Write to MH i2c: E2 08 00 D1 2C 80 13 01 00 00 00 00 00 7A [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 D1 2C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AF [12:31:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetShiftState done [12:31:27]FM_GetShiftState done [12:31:27]req_shift_opened done [12:31:27]requested_item shift.open_date is exist - process it [12:31:27]req_shift_open_date [12:31:27]req_shift_open_date done [12:31:27]produce_requested_data done [12:31:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112211,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:31:27]process_action_free close_receipt [12:31:27]json_value_free [12:31:27]json_value_free done [12:31:27]process_json_proto returns [12:31:27]Send response to host [12:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112211,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:31:27]free response buf [12:31:27]execute_script done [12:31:27]execute_script returns [12:31:27]free content buf [12:31:27]Sock 7.Close socket [12:31:27]Sock 7.Thread stoped [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:47]accept exits with 9 [12:37:47]New connection [12:37:47]New thread 3066957156 created [12:37:47]Thread 3066813796 joined [12:37:47]Waiting for new connection... [12:37:47] Sock 9.Parse request [12:37:47]Sock 9.Check first char [12:37:47]Sock 9.First char is OK [12:37:47]request: POST /json_proto HTTP/1.0 [12:37:47]Method: POST [12:37:47]URL: /json_proto [12:37:47]Method is POST - this is cgi request [12:37:47]url: /json_proto [12:37:47]query_string will be loaded in cgi processing [12:37:47]execute_cgi json_proto POST (null) [12:37:47]execute_cgi path=json_proto method=POST [12:37:47]POST find Content-Length [12:37:47]Host: 172.17.59.68:8080 [12:37:47]Content-Length: 677 [12:37:47]Content-Type: application/json [12:37:47] [12:37:47]POST finish read [12:37:47]Found Content-Length = 677 [12:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320885", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:47]execute_script... [12:37: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)320885", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:47]POST & json_proto [12:37:47]process_json_proto [12:37:47]json parsed OK: [12:37:47]protocol is kg_v1.0 [12:37:47]action value=close_receipt [12:37:47]process_action close_receipt [12:37:47]cmd_close_receipt [12:37:47]MH_GetDate [12:37:47]Write to MH i2c: F0 00 00 D2 2C ED [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: F0 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: F0 09 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: F0 09 00 D2 2C 00 B2 C5 76 66 BC EC 60 65 B6 [12:37:47]GetLastDocTimeStamp 1719059506 [12:37:47]current date 1719059890 [12:37:47]FM_GetShiftState [12:37:47]SAM_PROTO_GetShiftState [12:37:47]wFMCommunicate request_size=4 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 13 01 00 [12:37:47]Write to MH i2c: E2 08 00 D3 2C 80 13 01 00 00 00 00 00 7C [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 0E 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 0E 00 D3 2C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B1 [12:37:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:37:47]wFMCommunicate OK [12:37:47]SAM_PROTO_GetShiftState done [12:37:47]FM_GetShiftState done [12:37:47]opened in 1719020067 [12:37:47]opened+sec_in_day 1719106467 [12:37:47]quantity*price = 50065 [12:37:47]sum+1 = 50067 [12:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 78 22.06.2024 12:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112212 ФПД: 91014314410971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123810&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112212&fm=91014314410971&tin=02508201610067®Number=0000000000092771&sum=50000 [12:37:48]StoreToDocumentArchive [12:37:48]shift 391 fd 112212 [12:37:48]save to /storage/0391/doc_00112212 [12:37:48]save last doc name /storage/0391/doc_00112212 to /storage/kkm_last_doc_name [12:37:48]save OK [12:37:48]Clear old archive folders... [12:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:48]tlvbuf is 0111A810 [12:37:48]SAM_PROTO_ClearQueue [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 09 00 00 [12:37:48]Write to MH i2c: E2 08 00 E0 2C 80 09 00 00 00 00 00 00 7E [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 E0 2C 00 90 00 80 [12:37:48]RAPDU: 90 00 [12:37:48]wFMCommunicate OK [12:37:48]SAM_PROTO_ClearQueue done [12:37:48]KKMCreateOFDPacket [12:37:48]OFDProtocolAddRootSTLVToBuf [12:37:48]FM_MakeSignedData [12:37:48]FM_MakeSignedData [12:37:48]SAM_PROTO_SignData [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 0D 01 02 [12:37:48]Write to MH i2c: E2 08 00 E1 2C 80 0D 01 02 00 00 00 00 86 [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 E1 2C 00 90 00 81 [12:37:48]RAPDU: 90 00 [12:37:48]wFMCommunicate OK [12:37:48]wFMCommunicate request_size=255 [12:37:48]MH_SAM_APDU [12:37: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B6 01 00 35 04 06 00 52 [12:37:48]Write to MH i2c: E2 02 01 E2 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B6 01 00 35 04 06 00 52 00 00 C0 [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:48]Read from MH i2c: E2 03 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 E2 2C 00 90 00 82 [12:37:48]RAPDU: 90 00 [12:37:48]wFMCommunicate OK [12:37:48]wFMCommunicate request_size=10 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 0D 02 02 05 C6 EB E1 43 DB [12:37:48]Write to MH i2c: E2 0D 00 E3 2C 80 0D 02 02 05 00 C6 EB E1 43 DB 00 00 43 [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [12:37:48]RAPDU: 90 00 [12:37:48]wFMCommunicate OK [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 0D 03 02 [12:37:48]Write to MH i2c: E2 08 00 E4 2C 80 0D 03 02 00 00 00 00 8B [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 0B 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 0B 00 E4 2C 00 00 9C 9E 64 3A 9B FC FF 90 00 FA [12:37:48]RAPDU: 00 9C 9E 64 3A 9B FC FF 90 00 [12:37:48]wFMCommunicate OK [12:37:48]SAM_PROTO_SignData done [12:37:48]FM_MakeSignedData done [12:37:48]CreateOFDProtocolMessage [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 11 00 00 [12:37:48]Write to MH i2c: E2 08 00 E5 2C 80 11 00 00 00 00 00 00 8B [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 17 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 17 00 E5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [12:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:37:48]wFMCommunicate OK [12:37:48]CreateOFDProtocolMessage done [12:37:48]OFDSenderStorePacket 112212 [12:37:48]StoreOFDPacket docnum=112212 [12:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 50 07 01 72 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B6 01 00 35 04 06 00 52 C6 EB E1 43 DB 00 9C 9E 64 3A 9B FC FF [12:37:48]CheckFolder [12:37:48]dirname=/storage/ofd_packets [12:37:48]CheckFolder done [12:37:48]ProducePacketName [12:37:48]name=ofd_packets/00112212 [12:37:48]NVStorageSaveData ofd_packets/00112212 [12:37:48]File name is /storage/ofd_packets/00112212 [12:37:48]Write 301 bytes [12:37:48]NVStorageSaveData done [12:37:48]OFDSenderStorePacket done [12:37:48]KKMCreateOFDPacket done [12:37:48]NVStorageSaveData kkm_last_timestamp [12:37:48]File name is /storage/kkm_last_timestamp [12:37:48]Write 4 bytes [12:37:48]NVStorageSaveData done [12:37:48]ExternCall_PrintAddStr [12:37:48]wPrintStart [12:37:48]Write to MH i2c: 01 00 00 E6 2C 12 [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: 01 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: 01 07 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: 01 07 00 E6 2C 00 00 00 00 00 FF 0F 27 [12:37:48]RasterBufferAndPrint [12:37:48]line Счет N : (1)320885 [12:37:48]line ИНН: 02508201610067 [12:37:48]line Контрольно-Кассовый Чек [12:37:48]line ПРОДАЖА [12:37:48]line ТРК (МРК, ГНК) : 11 [12:37:48]line Товар: 2710124130 [12:37:48]line Аи-92-К-5 [12:37:48]line 7.540 * 66.40 [12:37:48]line = 500.66 [12:37:48]line НДС 12% НСП 1% [12:37:48]line > о реализуемом товаре [12:37:48]line ОКРУГЛЕНИЕ: -0.66 [12:37:48]line ИТОГО: 500.00 [12:37:48]line Внесено: 500.00 [12:37:48]line СДАЧА: 0.00 [12:37:48]line НСП 1% : 4.43 [12:37:48]line НДС 12% : 53.17 [12:37:48]line Наличными: 500.00 [12:37:48]line Безнал.: 0.00 [12:37:48]line Место: АЗС № 65 "Партнер Нефть" [12:37:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:37:48]line СНО: Общий режим [12:37:48]line Чек 78 22.06.2024 12:38 [12:37:48]line Смена: 391 ФФД: 1.0 [12:37:48]line ЗНМ: 0300000198 [12:37:48]line РНМ: 0000000000092771 [12:37:48]line Версия ККМ: 001 [12:37:48]line ФМ: 0000000000875083 [12:37:48]line ФД: 112212 [12:37:48]line ФПД: 91014314410971 [12:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123810&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112212&fm=91014314410971&tin=02508201610067®Number=0000000000092771&sum=50000 [12:37:49]OFD Sender: Processing packet 112212 [packets to send 38, broken 37] [12:37:49]ProducePacketName [12:37:49]name=ofd_packets/00112212 [12:37:49]OFD Sender: To server: pG, [12:37:49]CommunicateWithHost lk.salyk.kg:30040 [12:37:49]ConnectInit lk.salyk.kg [12:37:49]written 0, free lines is 4095 [12:37:49]Connected sock=10 [12:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 50 07 01 72 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B6 01 00 35 04 06 00 52 C6 EB E1 43 DB 00 9C 9E 64 3A 9B FC FF [12:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 EC 47 00 37 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 35 30 38 33 10 04 04 00 54 B6 01 00 F4 03 04 00 BE 5C 76 66 B6 04 01 00 00 35 77 C4 4F 97 D7 31 A8 [12:37:49]CommunicateWithHost err = 0 [12:37:49]CheckOFDResponse [12:37:49]1017 (14) - 77093643461234 [12:37:49]1041 (16) - 0000000000875083 [12:37:49]1040 (4) - 112212 [12:37:49]1012 (4) - 22.06.2024 05:10 [12:37:49]1206 (1) - 0 [12:37:49]OFD Sender: Remove packet 112212 [12:37:49]ProducePacketName [12:37:49]name=ofd_packets/00112212 [12:37:49]NVStorageDeleteData [12:37:49]Write to MH i2c: 01 00 00 11 2D 3E [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: 01 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: 01 07 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: 01 07 00 11 2D 00 00 00 00 00 E1 0C 32 [12:37:49]RasterBufferAndPrint [12:37:49]line [12:37:49]line [12:37:49]line [12:37:49]line [12:37:49]line [12:37:49]written 0, free lines is 3303 [12:37:49]MH_Cut [12:37:49]Write to MH i2c: D1 01 00 18 2D 01 17 [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: D1 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: D1 01 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: D1 01 00 18 2D 00 16 [12:37:49]Write to MH i2c: 01 00 00 19 2D 46 [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:50]OFD Sender: No OFD packet to send [12:37:50]*** Cut start [12:37:50]*** Partial cut [12:37:50]*** CUTSNS_PIN = 1 [12:37:50]*** CUTSNS_PIN = 0 [12:37:50]*** Brake cut motor [12:37:50]Read from MH i2c: 01 [12:37:50]MH_I2C_Read... [12:37:50]*** Stop cut motor [12:37:50]*** Cut end [12:37:50]Read from MH i2c: 01 07 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: 01 07 00 19 2D 00 00 00 00 00 FF 0F 5B [12:37:50]process_action close_receipt done [12:37:50]requested_data is exist [12:37:50]produce_requested_data [12:37:50]requested_item fm.sn is exist - process it [12:37:50]wFMCommunicate request_size=4 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 11 00 00 [12:37:50]Write to MH i2c: E2 08 00 1A 2D 80 11 00 00 00 00 00 00 C1 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:51]Read from MH i2c: E2 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 17 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 17 00 1A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [12:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:37:51]wFMCommunicate OK [12:37:51]requested_item fd.num is exist - process it [12:37:51]SAM_PROTO_GetFieldsCounters [12:37:51]wFMCommunicate request_size=4 [12:37:51]MH_SAM_APDU [12:37:51]CAPDU: 80 13 00 00 [12:37:51]Write to MH i2c: E2 08 00 1B 2D 80 13 00 00 00 00 00 00 C4 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:51]Read from MH i2c: E2 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 62 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 62 00 1B 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:51]wFMCommunicate OK [12:37:51]SAM_PROTO_GetFieldsCounters done [12:37:51]requested_item shift.num is exist - process it [12:37:51]requested_item shift.opened is exist - process it [12:37:51]req_shift_opened [12:37:51]FM_GetShiftState [12:37:51]SAM_PROTO_GetShiftState [12:37:51]wFMCommunicate request_size=4 [12:37:51]MH_SAM_APDU [12:37:51]CAPDU: 80 13 01 00 [12:37:51]Write to MH i2c: E2 08 00 1C 2D 80 13 01 00 00 00 00 00 C6 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:51]Read from MH i2c: E2 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 0E 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 0E 00 1C 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FB [12:37:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:37:51]wFMCommunicate OK [12:37:51]SAM_PROTO_GetShiftState done [12:37:51]FM_GetShiftState done [12:37:51]req_shift_opened done [12:37:51]requested_item shift.open_date is exist - process it [12:37:51]req_shift_open_date [12:37:51]req_shift_open_date done [12:37:51]produce_requested_data done [12:37:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112212,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:37:51]process_action_free close_receipt [12:37:51]json_value_free [12:37:51]json_value_free done [12:37:51]process_json_proto returns [12:37:51]Send response to host [12:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112212,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:37:51]free response buf [12:37:51]execute_script done [12:37:51]execute_script returns [12:37:51]free content buf [12:37:51]Sock 9.Close socket [12:37:51]Sock 9.Thread stoped [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:11]accept exits with 7 [12:38:11]New connection [12:38:11]New thread 3066813796 created [12:38:11]Thread 3066957156 joined [12:38:11]Waiting for new connection... [12:38:11] Sock 7.Parse request [12:38:11]Sock 7.Check first char [12:38:11]Sock 7.First char is OK [12:38:11]request: POST /json_proto HTTP/1.0 [12:38:11]Method: POST [12:38:11]URL: /json_proto [12:38:11]Method is POST - this is cgi request [12:38:11]url: /json_proto [12:38:11]query_string will be loaded in cgi processing [12:38:11]execute_cgi json_proto POST (null) [12:38:11]execute_cgi path=json_proto method=POST [12:38:11]POST find Content-Length [12:38:11]Host: 172.17.59.68:8080 [12:38:11]Content-Length: 677 [12:38:11]Content-Type: application/json [12:38:11] [12:38:11]POST finish read [12:38:11]Found Content-Length = 677 [12:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320886", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:38:11]execute_script... [12:38: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)320886", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:38:11]POST & json_proto [12:38:11]process_json_proto [12:38:11]json parsed OK: [12:38:11]protocol is kg_v1.0 [12:38:11]action value=close_receipt [12:38:11]process_action close_receipt [12:38:11]cmd_close_receipt [12:38:11]MH_GetDate [12:38:11]Write to MH i2c: F0 00 00 1D 2D 39 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: F0 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: F0 09 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: F0 09 00 1D 2D 00 CA C5 76 66 BC EC 60 65 1A [12:38:11]GetLastDocTimeStamp 1719059890 [12:38:11]current date 1719059914 [12:38:11]FM_GetShiftState [12:38:11]SAM_PROTO_GetShiftState [12:38:11]wFMCommunicate request_size=4 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 13 01 00 [12:38:11]Write to MH i2c: E2 08 00 1E 2D 80 13 01 00 00 00 00 00 C8 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 0E 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 0E 00 1E 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FD [12:38:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:38:11]wFMCommunicate OK [12:38:11]SAM_PROTO_GetShiftState done [12:38:11]FM_GetShiftState done [12:38:11]opened in 1719020067 [12:38:11]opened+sec_in_day 1719106467 [12:38:11]quantity*price = 40039 [12:38:11]sum+1 = 40040 [12:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 79 22.06.2024 12:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112213 ФПД: 17780591440159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123834&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112213&fm=17780591440159&tin=02508201610067®Number=0000000000092771&sum=40000 [12:38:12]StoreToDocumentArchive [12:38:12]shift 391 fd 112213 [12:38:12]save to /storage/0391/doc_00112213 [12:38:12]save last doc name /storage/0391/doc_00112213 to /storage/kkm_last_doc_name [12:38:12]save OK [12:38:12]Clear old archive folders... [12:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:12]tlvbuf is B6EC2350 [12:38:12]SAM_PROTO_ClearQueue [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 09 00 00 [12:38:12]Write to MH i2c: E2 08 00 2B 2D 80 09 00 00 00 00 00 00 CA [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 2B 2D 00 90 00 CC [12:38:12]RAPDU: 90 00 [12:38:12]wFMCommunicate OK [12:38:12]SAM_PROTO_ClearQueue done [12:38:12]KKMCreateOFDPacket [12:38:12]OFDProtocolAddRootSTLVToBuf [12:38:12]FM_MakeSignedData [12:38:12]FM_MakeSignedData [12:38:12]SAM_PROTO_SignData [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 0D 01 02 [12:38:12]Write to MH i2c: E2 08 00 2C 2D 80 0D 01 02 00 00 00 00 D2 [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [12:38:12]RAPDU: 90 00 [12:38:12]wFMCommunicate OK [12:38:12]wFMCommunicate request_size=255 [12:38:12]MH_SAM_APDU [12:38: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CA C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B6 01 00 35 04 06 00 10 [12:38:12]Write to MH i2c: E2 02 01 2D 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CA C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B6 01 00 35 04 06 00 10 00 00 B2 [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 03 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 03 00 2D 2D 00 90 00 CE [12:38:13]RAPDU: 90 00 [12:38:13]wFMCommunicate OK [12:38:13]wFMCommunicate request_size=10 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 0D 02 02 05 2B DD D6 31 1F [12:38:13]Write to MH i2c: E2 0D 00 2E 2D 80 0D 02 02 05 00 2B DD D6 31 1F 00 00 0D [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 03 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 03 00 2E 2D 00 90 00 CF [12:38:13]RAPDU: 90 00 [12:38:13]wFMCommunicate OK [12:38:13]wFMCommunicate request_size=4 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 0D 03 02 [12:38:13]Write to MH i2c: E2 08 00 2F 2D 80 0D 03 02 00 00 00 00 D7 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 0B 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 0B 00 2F 2D 00 92 DD 75 9C 5F 73 9E CD 90 00 95 [12:38:13]RAPDU: 92 DD 75 9C 5F 73 9E CD 90 00 [12:38:13]wFMCommunicate OK [12:38:13]SAM_PROTO_SignData done [12:38:13]FM_MakeSignedData done [12:38:13]CreateOFDProtocolMessage [12:38:13]wFMCommunicate request_size=4 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 11 00 00 [12:38:13]Write to MH i2c: E2 08 00 30 2D 80 11 00 00 00 00 00 00 D7 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 17 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 17 00 30 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [12:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:38:13]wFMCommunicate OK [12:38:13]CreateOFDProtocolMessage done [12:38:13]OFDSenderStorePacket 112213 [12:38:13]StoreOFDPacket docnum=112213 [12:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D 06 07 01 2A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CA C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B6 01 00 35 04 06 00 10 2B DD D6 31 1F 92 DD 75 9C 5F 73 9E CD [12:38:13]CheckFolder [12:38:13]dirname=/storage/ofd_packets [12:38:13]CheckFolder done [12:38:13]ProducePacketName [12:38:13]name=ofd_packets/00112213 [12:38:13]NVStorageSaveData ofd_packets/00112213 [12:38:13]File name is /storage/ofd_packets/00112213 [12:38:13]Write 301 bytes [12:38:13]NVStorageSaveData done [12:38:13]OFDSenderStorePacket done [12:38:13]KKMCreateOFDPacket done [12:38:13]NVStorageSaveData kkm_last_timestamp [12:38:13]File name is /storage/kkm_last_timestamp [12:38:13]Write 4 bytes [12:38:13]NVStorageSaveData done [12:38:13]ExternCall_PrintAddStr [12:38:13]wPrintStart [12:38:13]Write to MH i2c: 01 00 00 31 2D 5E [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 31 2D 00 00 00 00 00 FF 0F 73 [12:38:13]RasterBufferAndPrint [12:38:13]line Счет N : (1)320886 [12:38:13]line ИНН: 02508201610067 [12:38:13]line Контрольно-Кассовый Чек [12:38:13]line ПРОДАЖА [12:38:13]line ТРК (МРК, ГНК) : 11 [12:38:13]line Товар: 2710124130 [12:38:13]line Аи-92-К-5 [12:38:13]line 6.030 * 66.40 [12:38:13]line = 400.39 [12:38:13]line НДС 12% НСП 1% [12:38:13]line > о реализуемом товаре [12:38:13]line ОКРУГЛЕНИЕ: -0.39 [12:38:13]line ИТОГО: 400.00 [12:38:13]line Внесено: 400.00 [12:38:13]line СДАЧА: 0.00 [12:38:13]line НСП 1% : 3.54 [12:38:13]line НДС 12% : 42.52 [12:38:13]line Наличными: 400.00 [12:38:13]line Безнал.: 0.00 [12:38:13]line Место: АЗС № 65 "Партнер Нефть" [12:38:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:38:13]line СНО: Общий режим [12:38:13]line Чек 79 22.06.2024 12:38 [12:38:13]line Смена: 391 ФФД: 1.0 [12:38:13]line ЗНМ: 0300000198 [12:38:13]line РНМ: 0000000000092771 [12:38:13]line Версия ККМ: 001 [12:38:13]line ФМ: 0000000000875083 [12:38:13]line ФД: 112213 [12:38:13]line ФПД: 17780591440159 [12:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T123834&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112213&fm=17780591440159&tin=02508201610067®Number=0000000000092771&sum=40000 [12:38:13]OFD Sender: Processing packet 112213 [packets to send 38, broken 37] [12:38:13]ProducePacketName [12:38:13]name=ofd_packets/00112213 [12:38:13]OFD Sender: To server: pG, [12:38:13]CommunicateWithHost lk.salyk.kg:30040 [12:38:13]ConnectInit lk.salyk.kg [12:38:13]written 0, free lines is 4095 [12:38:13]Connected sock=10 [12:38:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D 06 07 01 2A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CA C5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B6 01 00 35 04 06 00 10 2B DD D6 31 1F 92 DD 75 9C 5F 73 9E CD [12:38:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D9 E8 47 00 FC D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B6 01 00 F4 03 04 00 D6 5C 76 66 B6 04 01 00 00 73 73 11 B7 36 D6 FD 30 [12:38:13]CommunicateWithHost err = 0 [12:38:13]CheckOFDResponse [12:38:13]1017 (14) - 77093643461234 [12:38:13]1041 (16) - 0000000000875083 [12:38:13]1040 (4) - 112213 [12:38:13]1012 (4) - 22.06.2024 05:10 [12:38:13]1206 (1) - 0 [12:38:13]OFD Sender: Remove packet 112213 [12:38:13]ProducePacketName [12:38:13]name=ofd_packets/00112213 [12:38:13]NVStorageDeleteData [12:38:14]Write to MH i2c: 01 00 00 5C 2D 89 [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: 01 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: 01 07 00 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: 01 07 00 5C 2D 00 00 00 00 00 E4 0C 80 [12:38:14]RasterBufferAndPrint [12:38:14]line [12:38:14]line [12:38:14]line [12:38:14]line [12:38:14]line [12:38:14]written 0, free lines is 3306 [12:38:14]MH_Cut [12:38:14]Write to MH i2c: D1 01 00 63 2D 01 62 [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: D1 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: D1 01 00 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: D1 01 00 63 2D 00 61 [12:38:14]Write to MH i2c: 01 00 00 64 2D 91 [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]OFD Sender: No OFD packet to send [12:38:14]*** Cut start [12:38:14]*** Partial cut [12:38:14]*** CUTSNS_PIN = 1 [12:38:14]*** CUTSNS_PIN = 0 [12:38:15]*** Brake cut motor [12:38:15]Read from MH i2c: 01 [12:38:15]MH_I2C_Read... [12:38:15]*** Stop cut motor [12:38:15]*** Cut end [12:38:15]Read from MH i2c: 01 07 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: 01 07 00 64 2D 00 00 00 00 00 FF 0F A6 [12:38:15]process_action close_receipt done [12:38:15]requested_data is exist [12:38:15]produce_requested_data [12:38:15]requested_item fm.sn is exist - process it [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 11 00 00 [12:38:15]Write to MH i2c: E2 08 00 65 2D 80 11 00 00 00 00 00 00 0C [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 17 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 17 00 65 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [12:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:38:15]wFMCommunicate OK [12:38:15]requested_item fd.num is exist - process it [12:38:15]SAM_PROTO_GetFieldsCounters [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 13 00 00 [12:38:15]Write to MH i2c: E2 08 00 66 2D 80 13 00 00 00 00 00 00 0F [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 62 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 62 00 66 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:38:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:15]wFMCommunicate OK [12:38:15]SAM_PROTO_GetFieldsCounters done [12:38:15]requested_item shift.num is exist - process it [12:38:15]requested_item shift.opened is exist - process it [12:38:15]req_shift_opened [12:38:15]FM_GetShiftState [12:38:15]SAM_PROTO_GetShiftState [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 13 01 00 [12:38:15]Write to MH i2c: E2 08 00 67 2D 80 13 01 00 00 00 00 00 11 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 0E 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 0E 00 67 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 46 [12:38:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:38:15]wFMCommunicate OK [12:38:15]SAM_PROTO_GetShiftState done [12:38:15]FM_GetShiftState done [12:38:15]req_shift_opened done [12:38:15]requested_item shift.open_date is exist - process it [12:38:15]req_shift_open_date [12:38:15]req_shift_open_date done [12:38:15]produce_requested_data done [12:38:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112213,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:38:15]process_action_free close_receipt [12:38:15]json_value_free [12:38:15]json_value_free done [12:38:15]process_json_proto returns [12:38:15]Send response to host [12:38:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112213,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:38:15]free response buf [12:38:15]execute_script done [12:38:15]execute_script returns [12:38:15]free content buf [12:38:15]Sock 7.Close socket [12:38:15]Sock 7.Thread stoped [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:51:59]accept exits with 9 [12:51:59]New connection [12:51:59]New thread 3066957156 created [12:51:59]Thread 3066813796 joined [12:51:59]Waiting for new connection... [12:51:59] Sock 9.Parse request [12:51:59]Sock 9.Check first char [12:51:59]Sock 9.First char is OK [12:51:59]request: POST /json_proto HTTP/1.0 [12:51:59]Method: POST [12:51:59]URL: /json_proto [12:51:59]Method is POST - this is cgi request [12:51:59]url: /json_proto [12:51:59]query_string will be loaded in cgi processing [12:51:59]execute_cgi json_proto POST (null) [12:51:59]execute_cgi path=json_proto method=POST [12:51:59]POST find Content-Length [12:51:59]Host: 172.17.59.68:8080 [12:51:59]Content-Length: 677 [12:51:59]Content-Type: application/json [12:51:59] [12:51:59]POST finish read [12:51:59]Found Content-Length = 677 [12:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320887", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:59]execute_script... [12:51: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)320887", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:59]POST & json_proto [12:51:59]process_json_proto [12:51:59]json parsed OK: [12:51:59]protocol is kg_v1.0 [12:51:59]action value=close_receipt [12:51:59]process_action close_receipt [12:51:59]cmd_close_receipt [12:51:59]MH_GetDate [12:51:59]Write to MH i2c: F0 00 00 68 2D 84 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: F0 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: F0 09 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: F0 09 00 68 2D 00 07 C9 76 66 BC EC 60 65 A6 [12:51:59]GetLastDocTimeStamp 1719059914 [12:51:59]current date 1719060743 [12:51:59]FM_GetShiftState [12:51:59]SAM_PROTO_GetShiftState [12:51:59]wFMCommunicate request_size=4 [12:51:59]MH_SAM_APDU [12:51:59]CAPDU: 80 13 01 00 [12:51:59]Write to MH i2c: E2 08 00 69 2D 80 13 01 00 00 00 00 00 13 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:59]Read from MH i2c: E2 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: E2 0E 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: E2 0E 00 69 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 48 [12:51:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:51:59]wFMCommunicate OK [12:51:59]SAM_PROTO_GetShiftState done [12:51:59]FM_GetShiftState done [12:51:59]opened in 1719020067 [12:51:59]opened+sec_in_day 1719106467 [12:51:59]quantity*price = 50065 [12:51:59]sum+1 = 50067 [12:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 80 22.06.2024 12:52 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112214 ФПД: 134870302759331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125223&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112214&fm=134870302759331&tin=02508201610067®Number=0000000000092771&sum=50000 [12:52:01]StoreToDocumentArchive [12:52:01]shift 391 fd 112214 [12:52:01]save to /storage/0391/doc_00112214 [12:52:01]save last doc name /storage/0391/doc_00112214 to /storage/kkm_last_doc_name [12:52:01]save OK [12:52:01]Clear old archive folders... [12:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:01]tlvbuf is B6EDB350 [12:52:01]SAM_PROTO_ClearQueue [12:52:01]wFMCommunicate request_size=4 [12:52:01]MH_SAM_APDU [12:52:01]CAPDU: 80 09 00 00 [12:52:01]Write to MH i2c: E2 08 00 76 2D 80 09 00 00 00 00 00 00 15 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:01]Read from MH i2c: E2 03 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [12:52:01]RAPDU: 90 00 [12:52:01]wFMCommunicate OK [12:52:01]SAM_PROTO_ClearQueue done [12:52:01]KKMCreateOFDPacket [12:52:01]OFDProtocolAddRootSTLVToBuf [12:52:01]FM_MakeSignedData [12:52:01]FM_MakeSignedData [12:52:01]SAM_PROTO_SignData [12:52:01]wFMCommunicate request_size=4 [12:52:01]MH_SAM_APDU [12:52:01]CAPDU: 80 0D 01 02 [12:52:01]Write to MH i2c: E2 08 00 77 2D 80 0D 01 02 00 00 00 00 1D [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [12:52:01]RAPDU: 90 00 [12:52:01]wFMCommunicate OK [12:52:01]wFMCommunicate request_size=255 [12:52:01]MH_SAM_APDU [12:52: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B6 01 00 35 04 06 00 7A [12:52:01]Write to MH i2c: E2 02 01 78 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B6 01 00 35 04 06 00 7A 00 00 DC [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [12:52:01]RAPDU: 90 00 [12:52:01]wFMCommunicate OK [12:52:01]wFMCommunicate request_size=10 [12:52:01]MH_SAM_APDU [12:52:01]CAPDU: 80 0D 02 02 05 A9 F0 7C 99 A3 [12:52:01]Write to MH i2c: E2 0D 00 79 2D 80 0D 02 02 05 00 A9 F0 7C 99 A3 00 00 7B [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [12:52:01]RAPDU: 90 00 [12:52:01]wFMCommunicate OK [12:52:01]wFMCommunicate request_size=4 [12:52:01]MH_SAM_APDU [12:52:01]CAPDU: 80 0D 03 02 [12:52:01]Write to MH i2c: E2 08 00 7A 2D 80 0D 03 02 00 00 00 00 22 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 0B 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 0B 00 7A 2D 00 FB 16 CC 02 59 7D 57 EE 90 00 1D [12:52:01]RAPDU: FB 16 CC 02 59 7D 57 EE 90 00 [12:52:01]wFMCommunicate OK [12:52:01]SAM_PROTO_SignData done [12:52:01]FM_MakeSignedData done [12:52:01]CreateOFDProtocolMessage [12:52:01]wFMCommunicate request_size=4 [12:52:01]MH_SAM_APDU [12:52:01]CAPDU: 80 11 00 00 [12:52:01]Write to MH i2c: E2 08 00 7B 2D 80 11 00 00 00 00 00 00 22 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 17 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 17 00 7B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [12:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:01]wFMCommunicate OK [12:52:01]CreateOFDProtocolMessage done [12:52:01]OFDSenderStorePacket 112214 [12:52:01]StoreOFDPacket docnum=112214 [12:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 FF 07 01 9A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B6 01 00 35 04 06 00 7A A9 F0 7C 99 A3 FB 16 CC 02 59 7D 57 EE [12:52:01]CheckFolder [12:52:01]dirname=/storage/ofd_packets [12:52:01]CheckFolder done [12:52:01]ProducePacketName [12:52:01]name=ofd_packets/00112214 [12:52:01]NVStorageSaveData ofd_packets/00112214 [12:52:01]File name is /storage/ofd_packets/00112214 [12:52:01]Write 301 bytes [12:52:01]NVStorageSaveData done [12:52:01]OFDSenderStorePacket done [12:52:01]KKMCreateOFDPacket done [12:52:01]NVStorageSaveData kkm_last_timestamp [12:52:01]File name is /storage/kkm_last_timestamp [12:52:01]Write 4 bytes [12:52:01]NVStorageSaveData done [12:52:01]ExternCall_PrintAddStr [12:52:01]wPrintStart [12:52:01]Write to MH i2c: 01 00 00 7C 2D A9 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: 01 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: 01 07 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: 01 07 00 7C 2D 00 00 00 00 00 FF 0F BE [12:52:01]RasterBufferAndPrint [12:52:01]line Счет N : (1)320887 [12:52:01]line ИНН: 02508201610067 [12:52:01]line Контрольно-Кассовый Чек [12:52:01]line ПРОДАЖА [12:52:01]line ТРК (МРК, ГНК) : 11 [12:52:01]line Товар: 2710124130 [12:52:01]line Аи-92-К-5 [12:52:01]line 7.540 * 66.40 [12:52:01]line = 500.66 [12:52:01]line НДС 12% НСП 1% [12:52:01]line > о реализуемом товаре [12:52:01]line ОКРУГЛЕНИЕ: -0.66 [12:52:01]line ИТОГО: 500.00 [12:52:01]line Внесено: 500.00 [12:52:01]line СДАЧА: 0.00 [12:52:01]line НСП 1% : 4.43 [12:52:01]line НДС 12% : 53.17 [12:52:01]line Наличными: 500.00 [12:52:01]line Безнал.: 0.00 [12:52:01]line Место: АЗС № 65 "Партнер Нефть" [12:52:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:52:01]line СНО: Общий режим [12:52:01]line Чек 80 22.06.2024 12:52 [12:52:01]line Смена: 391 ФФД: 1.0 [12:52:01]line ЗНМ: 0300000198 [12:52:01]line РНМ: 0000000000092771 [12:52:01]line Версия ККМ: 001 [12:52:01]line ФМ: 0000000000875083 [12:52:01]line ФД: 112214 [12:52:01]line ФПД: 134870302759331 [12:52:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125223&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112214&fm=134870302759331&tin=02508201610067®Number=0000000000092771&sum=50000 [12:52:01]OFD Sender: Processing packet 112214 [packets to send 38, broken 37] [12:52:01]ProducePacketName [12:52:01]name=ofd_packets/00112214 [12:52:01]OFD Sender: To server: pG, [12:52:01]CommunicateWithHost lk.salyk.kg:30040 [12:52:01]ConnectInit lk.salyk.kg [12:52:01]written 0, free lines is 4095 [12:52:02]Connected sock=7 [12:52:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 FF 07 01 9A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B6 01 00 35 04 06 00 7A A9 F0 7C 99 A3 FB 16 CC 02 59 7D 57 EE [12:52:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 69 47 00 2C 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 35 30 38 33 10 04 04 00 56 B6 01 00 F4 03 04 00 13 60 76 66 B6 04 01 00 00 89 59 F9 AC 9F B4 2E 91 [12:52:02]CommunicateWithHost err = 0 [12:52:02]CheckOFDResponse [12:52:02]1017 (14) - 77093643461234 [12:52:02]1041 (16) - 0000000000875083 [12:52:02]1040 (4) - 112214 [12:52:02]1012 (4) - 22.06.2024 05:24 [12:52:02]1206 (1) - 0 [12:52:02]OFD Sender: Remove packet 112214 [12:52:02]ProducePacketName [12:52:02]name=ofd_packets/00112214 [12:52:02]NVStorageDeleteData [12:52:02]Write to MH i2c: 01 00 00 A7 2D D4 [12:52:02]Write i2c OK [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: 01 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: 01 07 00 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: 01 07 00 A7 2D 00 00 00 00 00 D4 0C BB [12:52:02]RasterBufferAndPrint [12:52:02]line [12:52:02]line [12:52:02]line [12:52:02]line [12:52:02]line [12:52:02]written 0, free lines is 3292 [12:52:02]MH_Cut [12:52:02]Write to MH i2c: D1 01 00 AE 2D 01 AD [12:52:02]Write i2c OK [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: D1 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: D1 01 00 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: D1 01 00 AE 2D 00 AC [12:52:02]Write to MH i2c: 01 00 00 AF 2D DC [12:52:02]Write i2c OK [12:52:02]MH_I2C_Read... [12:52:02]OFD Sender: No OFD packet to send [12:52:03]*** Cut start [12:52:03]*** Partial cut [12:52:03]*** CUTSNS_PIN = 1 [12:52:03]*** CUTSNS_PIN = 0 [12:52:03]*** Brake cut motor [12:52:03]Read from MH i2c: 01 [12:52:03]MH_I2C_Read... [12:52:03]*** Stop cut motor [12:52:03]*** Cut end [12:52:03]Read from MH i2c: 01 07 00 [12:52:03]MH_I2C_Read... [12:52:03]Read from MH i2c: 01 07 00 AF 2D 00 00 00 00 00 FF 0F F1 [12:52:03]process_action close_receipt done [12:52:03]requested_data is exist [12:52:03]produce_requested_data [12:52:03]requested_item fm.sn is exist - process it [12:52:03]wFMCommunicate request_size=4 [12:52:03]MH_SAM_APDU [12:52:03]CAPDU: 80 11 00 00 [12:52:03]Write to MH i2c: E2 08 00 B0 2D 80 11 00 00 00 00 00 00 57 [12:52:03]Write i2c OK [12:52:03]MH_I2C_Read... [12:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:03]Read from MH i2c: E2 [12:52:03]MH_I2C_Read... [12:52:03]Read from MH i2c: E2 17 00 [12:52:03]MH_I2C_Read... [12:52:03]Read from MH i2c: E2 17 00 B0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [12:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:03]wFMCommunicate OK [12:52:03]requested_item fd.num is exist - process it [12:52:03]SAM_PROTO_GetFieldsCounters [12:52:03]wFMCommunicate request_size=4 [12:52:03]MH_SAM_APDU [12:52:03]CAPDU: 80 13 00 00 [12:52:03]Write to MH i2c: E2 08 00 B1 2D 80 13 00 00 00 00 00 00 5A [12:52:03]Write i2c OK [12:52:03]MH_I2C_Read... [12:52:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:03]Read from MH i2c: E2 [12:52:03]MH_I2C_Read... [12:52:03]Read from MH i2c: E2 62 00 [12:52:03]MH_I2C_Read... [12:52:03]Read from MH i2c: E2 62 00 B1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:52:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:03]wFMCommunicate OK [12:52:03]SAM_PROTO_GetFieldsCounters done [12:52:03]requested_item shift.num is exist - process it [12:52:03]requested_item shift.opened is exist - process it [12:52:03]req_shift_opened [12:52:03]FM_GetShiftState [12:52:03]SAM_PROTO_GetShiftState [12:52:03]wFMCommunicate request_size=4 [12:52:03]MH_SAM_APDU [12:52:03]CAPDU: 80 13 01 00 [12:52:03]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [12:52:03]Write i2c OK [12:52:03]MH_I2C_Read... [12:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:04]Read from MH i2c: E2 [12:52:04]MH_I2C_Read... [12:52:04]Read from MH i2c: E2 0E 00 [12:52:04]MH_I2C_Read... [12:52:04]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 91 [12:52:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:52:04]wFMCommunicate OK [12:52:04]SAM_PROTO_GetShiftState done [12:52:04]FM_GetShiftState done [12:52:04]req_shift_opened done [12:52:04]requested_item shift.open_date is exist - process it [12:52:04]req_shift_open_date [12:52:04]req_shift_open_date done [12:52:04]produce_requested_data done [12:52:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112214,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:52:04]process_action_free close_receipt [12:52:04]json_value_free [12:52:04]json_value_free done [12:52:04]process_json_proto returns [12:52:04]Send response to host [12:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112214,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:52:04]free response buf [12:52:04]execute_script done [12:52:04]execute_script returns [12:52:04]free content buf [12:52:04]Sock 9.Close socket [12:52:04]Sock 9.Thread stoped [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:05]accept exits with 10 [12:54:05]New connection [12:54:05]New thread 3066813796 created [12:54:05]Thread 3066957156 joined [12:54:05]Waiting for new connection... [12:54:05] Sock 10.Parse request [12:54:05]Sock 10.Check first char [12:54:05]Sock 10.First char is OK [12:54:05]request: POST /json_proto HTTP/1.0 [12:54:05]Method: POST [12:54:05]URL: /json_proto [12:54:05]Method is POST - this is cgi request [12:54:05]url: /json_proto [12:54:05]query_string will be loaded in cgi processing [12:54:05]execute_cgi json_proto POST (null) [12:54:05]execute_cgi path=json_proto method=POST [12:54:05]POST find Content-Length [12:54:05]Host: 172.17.59.68:8080 [12:54:05]Content-Length: 805 [12:54:05]Content-Type: application/json [12:54:05] [12:54:05]POST finish read [12:54:05]Found Content-Length = 805 [12:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320888", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:05]execute_script... [12:54: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)320888", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:05]POST & json_proto [12:54:05]process_json_proto [12:54:05]json parsed OK: [12:54:05]protocol is kg_v1.0 [12:54:05]action value=close_receipt [12:54:05]process_action close_receipt [12:54:05]cmd_close_receipt [12:54:05]MH_GetDate [12:54:05]Write to MH i2c: F0 00 00 B3 2D CF [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: F0 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: F0 09 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: F0 09 00 B3 2D 00 84 C9 76 66 BC EC 60 65 6E [12:54:05]GetLastDocTimeStamp 1719060743 [12:54:05]current date 1719060868 [12:54:05]FM_GetShiftState [12:54:05]SAM_PROTO_GetShiftState [12:54:05]wFMCommunicate request_size=4 [12:54:05]MH_SAM_APDU [12:54:05]CAPDU: 80 13 01 00 [12:54:05]Write to MH i2c: E2 08 00 B4 2D 80 13 01 00 00 00 00 00 5E [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:05]Read from MH i2c: E2 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 0E 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 0E 00 B4 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 93 [12:54:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:54:05]wFMCommunicate OK [12:54:05]SAM_PROTO_GetShiftState done [12:54:05]FM_GetShiftState done [12:54:05]opened in 1719020067 [12:54:05]opened+sec_in_day 1719106467 [12:54:05]quantity*price = 60025 [12:54:05]sum+1 = 60027 [12:54:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.26 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.26 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 81 22.06.2024 12:54 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112215 ФПД: 81769349027991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125428&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112215&fm=81769349027991&tin=02508201610067®Number=0000000000092771&sum=60026 [12:54:06]StoreToDocumentArchive [12:54:06]shift 391 fd 112215 [12:54:06]save to /storage/0391/doc_00112215 [12:54:06]save last doc name /storage/0391/doc_00112215 to /storage/kkm_last_doc_name [12:54:06]save OK [12:54:06]Clear old archive folders... [12:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:06]tlvbuf is 01185600 [12:54:06]SAM_PROTO_ClearQueue [12:54:06]wFMCommunicate request_size=4 [12:54:06]MH_SAM_APDU [12:54:06]CAPDU: 80 09 00 00 [12:54:06]Write to MH i2c: E2 08 00 C1 2D 80 09 00 00 00 00 00 00 60 [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:06]Read from MH i2c: E2 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [12:54:06]RAPDU: 90 00 [12:54:06]wFMCommunicate OK [12:54:06]SAM_PROTO_ClearQueue done [12:54:06]KKMCreateOFDPacket [12:54:06]OFDProtocolAddRootSTLVToBuf [12:54:06]FM_MakeSignedData [12:54:06]FM_MakeSignedData [12:54:06]SAM_PROTO_SignData [12:54:06]wFMCommunicate request_size=4 [12:54:06]MH_SAM_APDU [12:54:06]CAPDU: 80 0D 01 02 [12:54:06]Write to MH i2c: E2 08 00 C2 2D 80 0D 01 02 00 00 00 00 68 [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:06]Read from MH i2c: E2 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [12:54:06]RAPDU: 90 00 [12:54:06]wFMCommunicate OK [12:54:06]wFMCommunicate request_size=255 [12:54:06]MH_SAM_APDU [12:54: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 84 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B6 01 00 35 04 06 00 4A [12:54:06]Write to MH i2c: E2 02 01 C3 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 84 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B6 01 00 35 04 06 00 4A 00 00 87 [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:06]Read from MH i2c: E2 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 C3 2D 00 90 00 64 [12:54:06]RAPDU: 90 00 [12:54:06]wFMCommunicate OK [12:54:06]wFMCommunicate request_size=10 [12:54:06]MH_SAM_APDU [12:54:06]CAPDU: 80 0D 02 02 05 5E 69 00 98 97 [12:54:06]Write to MH i2c: E2 0D 00 C4 2D 80 0D 02 02 05 00 5E 69 00 98 97 00 00 6B [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:06]Read from MH i2c: E2 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 03 00 C4 2D 00 90 00 65 [12:54:06]RAPDU: 90 00 [12:54:06]wFMCommunicate OK [12:54:06]wFMCommunicate request_size=4 [12:54:06]MH_SAM_APDU [12:54:06]CAPDU: 80 0D 03 02 [12:54:06]Write to MH i2c: E2 08 00 C5 2D 80 0D 03 02 00 00 00 00 6D [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:06]Read from MH i2c: E2 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 0B 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 0B 00 C5 2D 00 C9 56 8D CD 16 EC 67 7A 90 00 CA [12:54:06]RAPDU: C9 56 8D CD 16 EC 67 7A 90 00 [12:54:06]wFMCommunicate OK [12:54:06]SAM_PROTO_SignData done [12:54:06]FM_MakeSignedData done [12:54:06]CreateOFDProtocolMessage [12:54:06]wFMCommunicate request_size=4 [12:54:06]MH_SAM_APDU [12:54:06]CAPDU: 80 11 00 00 [12:54:06]Write to MH i2c: E2 08 00 C6 2D 80 11 00 00 00 00 00 00 6D [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:06]Read from MH i2c: E2 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 17 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: E2 17 00 C6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [12:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:06]wFMCommunicate OK [12:54:06]CreateOFDProtocolMessage done [12:54:06]OFDSenderStorePacket 112215 [12:54:06]StoreOFDPacket docnum=112215 [12:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 F5 07 01 82 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 84 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B6 01 00 35 04 06 00 4A 5E 69 00 98 97 C9 56 8D CD 16 EC 67 7A [12:54:06]CheckFolder [12:54:06]dirname=/storage/ofd_packets [12:54:06]CheckFolder done [12:54:06]ProducePacketName [12:54:06]name=ofd_packets/00112215 [12:54:06]NVStorageSaveData ofd_packets/00112215 [12:54:06]File name is /storage/ofd_packets/00112215 [12:54:06]Write 301 bytes [12:54:06]NVStorageSaveData done [12:54:06]OFDSenderStorePacket done [12:54:06]KKMCreateOFDPacket done [12:54:06]NVStorageSaveData kkm_last_timestamp [12:54:06]File name is /storage/kkm_last_timestamp [12:54:06]Write 4 bytes [12:54:06]NVStorageSaveData done [12:54:06]ExternCall_PrintAddStr [12:54:06]wPrintStart [12:54:06]Write to MH i2c: 01 00 00 C7 2D F4 [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: 01 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: 01 07 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: 01 07 00 C7 2D 00 00 00 00 00 FF 0F 09 [12:54:06]RasterBufferAndPrint [12:54:06]line Счет N : (1)320888 [12:54:06]line ИНН: 02508201610067 [12:54:06]line Контрольно-Кассовый Чек [12:54:06]line ПРОДАЖА [12:54:06]line ТРК (МРК, ГНК) : 11 [12:54:06]line Товар: 2710124130 [12:54:06]line Аи-92-К-5 [12:54:06]line 9.040 * 66.40 [12:54:06]line = 600.26 [12:54:06]line НДС 12% НСП 1% [12:54:06]line > о реализуемом товаре [12:54:06]line ИТОГО: 600.26 [12:54:06]line НСП 1% : 5.31 [12:54:06]line НДС 12% : 63.74 [12:54:06]line Наличными: 0.00 [12:54:06]line Безнал.: 600.26 [12:54:06]line Место: АЗС № 65 "Партнер Нефть" [12:54:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:54:06]line СНО: Общий режим [12:54:06]line Чек 81 22.06.2024 12:54 [12:54:06]line Смена: 391 ФФД: 1.0 [12:54:06]line ЗНМ: 0300000198 [12:54:06]line РНМ: 0000000000092771 [12:54:06]line Версия ККМ: 001 [12:54:06]line Платежная система: О! деньги [12:54:06]line ФМ: 0000000000875083 [12:54:06]line ФД: 112215 [12:54:06]line ФПД: 81769349027991 [12:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125428&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112215&fm=81769349027991&tin=02508201610067®Number=0000000000092771&sum=60026 [12:54:07]written 0, free lines is 4095 [12:54:07]OFD Sender: Processing packet 112215 [packets to send 38, broken 37] [12:54:07]ProducePacketName [12:54:07]name=ofd_packets/00112215 [12:54:07]OFD Sender: To server: pG, [12:54:07]CommunicateWithHost lk.salyk.kg:30040 [12:54:07]ConnectInit lk.salyk.kg [12:54:07]Connected sock=9 [12:54:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 F5 07 01 82 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 84 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B6 01 00 35 04 06 00 4A 5E 69 00 98 97 C9 56 8D CD 16 EC 67 7A [12:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2F 72 47 00 66 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B6 01 00 F4 03 04 00 90 60 76 66 B6 04 01 00 00 5C DE 7A 54 EC 9B 5C 77 [12:54:07]CommunicateWithHost err = 0 [12:54:07]CheckOFDResponse [12:54:07]1017 (14) - 77093643461234 [12:54:07]1041 (16) - 0000000000875083 [12:54:07]1040 (4) - 112215 [12:54:07]1012 (4) - 22.06.2024 05:26 [12:54:07]1206 (1) - 0 [12:54:07]OFD Sender: Remove packet 112215 [12:54:07]ProducePacketName [12:54:07]name=ofd_packets/00112215 [12:54:07]NVStorageDeleteData [12:54:07]Write to MH i2c: 01 00 00 F1 2D 1E [12:54:07]Write i2c OK [12:54:07]MH_I2C_Read... [12:54:07]Read from MH i2c: 01 [12:54:07]MH_I2C_Read... [12:54:07]Read from MH i2c: 01 07 00 [12:54:07]MH_I2C_Read... [12:54:07]Read from MH i2c: 01 07 00 F1 2D 00 00 00 00 00 E4 0C 15 [12:54:07]RasterBufferAndPrint [12:54:07]line [12:54:07]line [12:54:07]line [12:54:07]line [12:54:07]line [12:54:07]written 0, free lines is 3307 [12:54:07]MH_Cut [12:54:07]Write to MH i2c: D1 01 00 F8 2D 01 F7 [12:54:07]Write i2c OK [12:54:07]MH_I2C_Read... [12:54:07]Read from MH i2c: D1 [12:54:07]MH_I2C_Read... [12:54:07]Read from MH i2c: D1 01 00 [12:54:07]MH_I2C_Read... [12:54:07]Read from MH i2c: D1 01 00 F8 2D 00 F6 [12:54:07]Write to MH i2c: 01 00 00 F9 2D 26 [12:54:07]Write i2c OK [12:54:07]MH_I2C_Read... [12:54:07]OFD Sender: No OFD packet to send [12:54:08]*** Cut start [12:54:08]*** Partial cut [12:54:08]*** CUTSNS_PIN = 1 [12:54:08]*** CUTSNS_PIN = 0 [12:54:08]*** Brake cut motor [12:54:08]Read from MH i2c: 01 [12:54:08]MH_I2C_Read... [12:54:08]*** Stop cut motor [12:54:08]*** Cut end [12:54:08]Read from MH i2c: 01 07 00 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: 01 07 00 F9 2D 00 00 00 00 00 FF 0F 3B [12:54:08]process_action close_receipt done [12:54:08]requested_data is exist [12:54:08]produce_requested_data [12:54:08]requested_item fm.sn is exist - process it [12:54:08]wFMCommunicate request_size=4 [12:54:08]MH_SAM_APDU [12:54:08]CAPDU: 80 11 00 00 [12:54:08]Write to MH i2c: E2 08 00 FA 2D 80 11 00 00 00 00 00 00 A1 [12:54:08]Write i2c OK [12:54:08]MH_I2C_Read... [12:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:08]Read from MH i2c: E2 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: E2 17 00 [12:54:08]MH_I2C_Read... [12:54:08]Read from MH i2c: E2 17 00 FA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [12:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:08]wFMCommunicate OK [12:54:08]requested_item fd.num is exist - process it [12:54:08]SAM_PROTO_GetFieldsCounters [12:54:08]wFMCommunicate request_size=4 [12:54:08]MH_SAM_APDU [12:54:08]CAPDU: 80 13 00 00 [12:54:08]Write to MH i2c: E2 08 00 FB 2D 80 13 00 00 00 00 00 00 A4 [12:54:08]Write i2c OK [12:54:08]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 62 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 62 00 FB 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_GetFieldsCounters done [12:54:09]requested_item shift.num is exist - process it [12:54:09]requested_item shift.opened is exist - process it [12:54:09]req_shift_opened [12:54:09]FM_GetShiftState [12:54:09]SAM_PROTO_GetShiftState [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 13 01 00 [12:54:09]Write to MH i2c: E2 08 00 FC 2D 80 13 01 00 00 00 00 00 A6 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 FC 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DB [12:54:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_GetShiftState done [12:54:09]FM_GetShiftState done [12:54:09]req_shift_opened done [12:54:09]requested_item shift.open_date is exist - process it [12:54:09]req_shift_open_date [12:54:09]req_shift_open_date done [12:54:09]produce_requested_data done [12:54:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112215,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:54:09]process_action_free close_receipt [12:54:09]json_value_free [12:54:09]json_value_free done [12:54:09]process_json_proto returns [12:54:09]Send response to host [12:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112215,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:54:09]free response buf [12:54:09]execute_script done [12:54:09]execute_script returns [12:54:09]free content buf [12:54:09]Sock 10.Close socket [12:54:09]Sock 10.Thread stoped [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:55]accept exits with 7 [12:54:55]New connection [12:54:55]New thread 3066957156 created [12:54:55]Thread 3066813796 joined [12:54:55]Waiting for new connection... [12:54:55] Sock 7.Parse request [12:54:55]Sock 7.Check first char [12:54:55]Sock 7.First char is OK [12:54:55]request: POST /json_proto HTTP/1.0 [12:54:55]Method: POST [12:54:55]URL: /json_proto [12:54:55]Method is POST - this is cgi request [12:54:55]url: /json_proto [12:54:55]query_string will be loaded in cgi processing [12:54:55]execute_cgi json_proto POST (null) [12:54:55]execute_cgi path=json_proto method=POST [12:54:55]POST find Content-Length [12:54:55]Host: 172.17.59.68:8080 [12:54:55]Content-Length: 677 [12:54:55]Content-Type: application/json [12:54:55] [12:54:55]POST finish read [12:54:55]Found Content-Length = 677 [12:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320889", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:55]execute_script... [12:54: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)320889", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:55]POST & json_proto [12:54:55]process_json_proto [12:54:55]json parsed OK: [12:54:55]protocol is kg_v1.0 [12:54:55]action value=close_receipt [12:54:55]process_action close_receipt [12:54:55]cmd_close_receipt [12:54:55]MH_GetDate [12:54:55]Write to MH i2c: F0 00 00 FD 2D 19 [12:54:55]Write i2c OK [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: F0 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: F0 09 00 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: F0 09 00 FD 2D 00 B7 C9 76 66 BC EC 60 65 EB [12:54:55]GetLastDocTimeStamp 1719060868 [12:54:55]current date 1719060919 [12:54:55]FM_GetShiftState [12:54:55]SAM_PROTO_GetShiftState [12:54:55]wFMCommunicate request_size=4 [12:54:55]MH_SAM_APDU [12:54:55]CAPDU: 80 13 01 00 [12:54:55]Write to MH i2c: E2 08 00 FE 2D 80 13 01 00 00 00 00 00 A8 [12:54:55]Write i2c OK [12:54:55]MH_I2C_Read... [12:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:55]Read from MH i2c: E2 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 0E 00 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 0E 00 FE 2D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DD [12:54:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:54:55]wFMCommunicate OK [12:54:55]SAM_PROTO_GetShiftState done [12:54:55]FM_GetShiftState done [12:54:55]opened in 1719020067 [12:54:55]opened+sec_in_day 1719106467 [12:54:55]quantity*price = 50065 [12:54:55]sum+1 = 50067 [12:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 82 22.06.2024 12:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112216 ФПД: 231355939622972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125519&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112216&fm=231355939622972&tin=02508201610067®Number=0000000000092771&sum=50000 [12:54:56]StoreToDocumentArchive [12:54:56]shift 391 fd 112216 [12:54:56]save to /storage/0391/doc_00112216 [12:54:56]save last doc name /storage/0391/doc_00112216 to /storage/kkm_last_doc_name [12:54:56]save OK [12:54:56]Clear old archive folders... [12:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:56]tlvbuf is 011D1110 [12:54:56]SAM_PROTO_ClearQueue [12:54:56]wFMCommunicate request_size=4 [12:54:56]MH_SAM_APDU [12:54:56]CAPDU: 80 09 00 00 [12:54:56]Write to MH i2c: E2 08 00 0B 2E 80 09 00 00 00 00 00 00 AB [12:54:56]Write i2c OK [12:54:56]MH_I2C_Read... [12:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:56]Read from MH i2c: E2 [12:54:56]MH_I2C_Read... [12:54:56]Read from MH i2c: E2 03 00 [12:54:56]MH_I2C_Read... [12:54:56]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [12:54:56]RAPDU: 90 00 [12:54:56]wFMCommunicate OK [12:54:56]SAM_PROTO_ClearQueue done [12:54:56]KKMCreateOFDPacket [12:54:56]OFDProtocolAddRootSTLVToBuf [12:54:56]FM_MakeSignedData [12:54:56]FM_MakeSignedData [12:54:56]SAM_PROTO_SignData [12:54:56]wFMCommunicate request_size=4 [12:54:56]MH_SAM_APDU [12:54:56]CAPDU: 80 0D 01 02 [12:54:56]Write to MH i2c: E2 08 00 0C 2E 80 0D 01 02 00 00 00 00 B3 [12:54:56]Write i2c OK [12:54:56]MH_I2C_Read... [12:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:56]Read from MH i2c: E2 [12:54:56]MH_I2C_Read... [12:54:56]Read from MH i2c: E2 03 00 [12:54:56]MH_I2C_Read... [12:54:56]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [12:54:56]RAPDU: 90 00 [12:54:56]wFMCommunicate OK [12:54:56]wFMCommunicate request_size=255 [12:54:56]MH_SAM_APDU [12:54:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B6 01 00 35 04 06 00 D2 [12:54:56]Write to MH i2c: E2 02 01 0D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B6 01 00 35 04 06 00 D2 00 00 7E [12:54:56]Write i2c OK [12:54:56]MH_I2C_Read... [12:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:57]Read from MH i2c: E2 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 03 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 03 00 0D 2E 00 90 00 AF [12:54:57]RAPDU: 90 00 [12:54:57]wFMCommunicate OK [12:54:57]wFMCommunicate request_size=10 [12:54:57]MH_SAM_APDU [12:54:57]CAPDU: 80 0D 02 02 05 6A C0 99 10 3C [12:54:57]Write to MH i2c: E2 0D 00 0E 2E 80 0D 02 02 05 00 6A C0 99 10 3C 00 00 CF [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:57]Read from MH i2c: E2 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 03 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 03 00 0E 2E 00 90 00 B0 [12:54:57]RAPDU: 90 00 [12:54:57]wFMCommunicate OK [12:54:57]wFMCommunicate request_size=4 [12:54:57]MH_SAM_APDU [12:54:57]CAPDU: 80 0D 03 02 [12:54:57]Write to MH i2c: E2 08 00 0F 2E 80 0D 03 02 00 00 00 00 B8 [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:57]Read from MH i2c: E2 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 0B 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 0B 00 0F 2E 00 5E AD 78 D4 1F F6 64 92 90 00 1B [12:54:57]RAPDU: 5E AD 78 D4 1F F6 64 92 90 00 [12:54:57]wFMCommunicate OK [12:54:57]SAM_PROTO_SignData done [12:54:57]FM_MakeSignedData done [12:54:57]CreateOFDProtocolMessage [12:54:57]wFMCommunicate request_size=4 [12:54:57]MH_SAM_APDU [12:54:57]CAPDU: 80 11 00 00 [12:54:57]Write to MH i2c: E2 08 00 10 2E 80 11 00 00 00 00 00 00 B8 [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:57]Read from MH i2c: E2 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 17 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: E2 17 00 10 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [12:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:57]wFMCommunicate OK [12:54:57]CreateOFDProtocolMessage done [12:54:57]OFDSenderStorePacket 112216 [12:54:57]StoreOFDPacket docnum=112216 [12:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 AD 07 01 AD 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B6 01 00 35 04 06 00 D2 6A C0 99 10 3C 5E AD 78 D4 1F F6 64 92 [12:54:57]CheckFolder [12:54:57]dirname=/storage/ofd_packets [12:54:57]CheckFolder done [12:54:57]ProducePacketName [12:54:57]name=ofd_packets/00112216 [12:54:57]NVStorageSaveData ofd_packets/00112216 [12:54:57]File name is /storage/ofd_packets/00112216 [12:54:57]Write 301 bytes [12:54:57]NVStorageSaveData done [12:54:57]OFDSenderStorePacket done [12:54:57]KKMCreateOFDPacket done [12:54:57]NVStorageSaveData kkm_last_timestamp [12:54:57]File name is /storage/kkm_last_timestamp [12:54:57]Write 4 bytes [12:54:57]NVStorageSaveData done [12:54:57]ExternCall_PrintAddStr [12:54:57]wPrintStart [12:54:57]Write to MH i2c: 01 00 00 11 2E 3F [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: 01 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: 01 07 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: 01 07 00 11 2E 00 00 00 00 00 FF 0F 54 [12:54:57]RasterBufferAndPrint [12:54:57]line Счет N : (1)320889 [12:54:57]line ИНН: 02508201610067 [12:54:57]line Контрольно-Кассовый Чек [12:54:57]line ПРОДАЖА [12:54:57]line ТРК (МРК, ГНК) : 11 [12:54:57]line Товар: 2710124130 [12:54:57]line Аи-92-К-5 [12:54:57]line 7.540 * 66.40 [12:54:57]line = 500.66 [12:54:57]line НДС 12% НСП 1% [12:54:57]line > о реализуемом товаре [12:54:57]line ОКРУГЛЕНИЕ: -0.66 [12:54:57]line ИТОГО: 500.00 [12:54:57]line Внесено: 500.00 [12:54:57]line СДАЧА: 0.00 [12:54:57]line НСП 1% : 4.43 [12:54:57]line НДС 12% : 53.17 [12:54:57]line Наличными: 500.00 [12:54:57]line Безнал.: 0.00 [12:54:57]line Место: АЗС № 65 "Партнер Нефть" [12:54:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:54:57]line СНО: Общий режим [12:54:57]line Чек 82 22.06.2024 12:55 [12:54:57]line Смена: 391 ФФД: 1.0 [12:54:57]line ЗНМ: 0300000198 [12:54:57]line РНМ: 0000000000092771 [12:54:57]line Версия ККМ: 001 [12:54:57]line ФМ: 0000000000875083 [12:54:57]line ФД: 112216 [12:54:57]line ФПД: 231355939622972 [12:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125519&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112216&fm=231355939622972&tin=02508201610067®Number=0000000000092771&sum=50000 [12:54:57]written 0, free lines is 4095 [12:54:57]OFD Sender: Processing packet 112216 [packets to send 38, broken 37] [12:54:57]ProducePacketName [12:54:57]name=ofd_packets/00112216 [12:54:57]OFD Sender: To server: pG, [12:54:57]CommunicateWithHost lk.salyk.kg:30040 [12:54:57]ConnectInit lk.salyk.kg [12:54:57]Connected sock=10 [12:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 AD 07 01 AD 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 C9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B6 01 00 35 04 06 00 D2 6A C0 99 10 3C 5E AD 78 D4 1F F6 64 92 [12:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E3 E2 47 00 88 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B6 01 00 F4 03 04 00 C2 60 76 66 B6 04 01 00 00 CB B9 E0 74 10 19 D6 07 [12:54:57]CommunicateWithHost err = 0 [12:54:57]CheckOFDResponse [12:54:57]1017 (14) - 77093643461234 [12:54:57]1041 (16) - 0000000000875083 [12:54:57]1040 (4) - 112216 [12:54:57]1012 (4) - 22.06.2024 05:27 [12:54:57]1206 (1) - 0 [12:54:57]OFD Sender: Remove packet 112216 [12:54:57]ProducePacketName [12:54:57]name=ofd_packets/00112216 [12:54:57]NVStorageDeleteData [12:54:57]Write to MH i2c: 01 00 00 3C 2E 6A [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: 01 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: 01 07 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: 01 07 00 3C 2E 00 00 00 00 00 E0 0C 5D [12:54:57]RasterBufferAndPrint [12:54:57]line [12:54:57]line [12:54:57]line [12:54:57]line [12:54:57]line [12:54:57]written 0, free lines is 3302 [12:54:57]MH_Cut [12:54:57]Write to MH i2c: D1 01 00 43 2E 01 43 [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: D1 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: D1 01 00 [12:54:57]MH_I2C_Read... [12:54:57]Read from MH i2c: D1 01 00 43 2E 00 42 [12:54:57]Write to MH i2c: 01 00 00 44 2E 72 [12:54:57]Write i2c OK [12:54:57]MH_I2C_Read... [12:54:58]OFD Sender: No OFD packet to send [12:54:58]*** Cut start [12:54:58]*** Partial cut [12:54:58]*** CUTSNS_PIN = 1 [12:54:58]*** CUTSNS_PIN = 0 [12:54:58]*** Brake cut motor [12:54:59]Read from MH i2c: 01 [12:54:59]MH_I2C_Read... [12:54:59]*** Stop cut motor [12:54:59]*** Cut end [12:54:59]Read from MH i2c: 01 07 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: 01 07 00 44 2E 00 00 00 00 00 FF 0F 87 [12:54:59]process_action close_receipt done [12:54:59]requested_data is exist [12:54:59]produce_requested_data [12:54:59]requested_item fm.sn is exist - process it [12:54:59]wFMCommunicate request_size=4 [12:54:59]MH_SAM_APDU [12:54:59]CAPDU: 80 11 00 00 [12:54:59]Write to MH i2c: E2 08 00 45 2E 80 11 00 00 00 00 00 00 ED [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:59]Read from MH i2c: E2 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 17 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 17 00 45 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [12:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:59]wFMCommunicate OK [12:54:59]requested_item fd.num is exist - process it [12:54:59]SAM_PROTO_GetFieldsCounters [12:54:59]wFMCommunicate request_size=4 [12:54:59]MH_SAM_APDU [12:54:59]CAPDU: 80 13 00 00 [12:54:59]Write to MH i2c: E2 08 00 46 2E 80 13 00 00 00 00 00 00 F0 [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:59]Read from MH i2c: E2 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 62 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 62 00 46 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:59]wFMCommunicate OK [12:54:59]SAM_PROTO_GetFieldsCounters done [12:54:59]requested_item shift.num is exist - process it [12:54:59]requested_item shift.opened is exist - process it [12:54:59]req_shift_opened [12:54:59]FM_GetShiftState [12:54:59]SAM_PROTO_GetShiftState [12:54:59]wFMCommunicate request_size=4 [12:54:59]MH_SAM_APDU [12:54:59]CAPDU: 80 13 01 00 [12:54:59]Write to MH i2c: E2 08 00 47 2E 80 13 01 00 00 00 00 00 F2 [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:59]Read from MH i2c: E2 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 0E 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 0E 00 47 2E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 27 [12:54:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:54:59]wFMCommunicate OK [12:54:59]SAM_PROTO_GetShiftState done [12:54:59]FM_GetShiftState done [12:54:59]req_shift_opened done [12:54:59]requested_item shift.open_date is exist - process it [12:54:59]req_shift_open_date [12:54:59]req_shift_open_date done [12:54:59]produce_requested_data done [12:54:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112216,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:54:59]process_action_free close_receipt [12:54:59]json_value_free [12:54:59]json_value_free done [12:54:59]process_json_proto returns [12:54:59]Send response to host [12:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112216,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:54:59]free response buf [12:54:59]execute_script done [12:54:59]execute_script returns [12:54:59]free content buf [12:54:59]Sock 7.Close socket [12:54:59]Sock 7.Thread stoped [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:57:59]accept exits with 9 [12:57:59]New connection [12:57:59]New thread 3066813796 created [12:57:59]Thread 3066957156 joined [12:57:59]Waiting for new connection... [12:57:59] Sock 9.Parse request [12:57:59]Sock 9.Check first char [12:57:59]Sock 9.First char is OK [12:57:59]request: POST /json_proto HTTP/1.0 [12:57:59]Method: POST [12:57:59]URL: /json_proto [12:57:59]Method is POST - this is cgi request [12:57:59]url: /json_proto [12:57:59]query_string will be loaded in cgi processing [12:57:59]execute_cgi json_proto POST (null) [12:57:59]execute_cgi path=json_proto method=POST [12:57:59]POST find Content-Length [12:57:59]Host: 172.17.59.68:8080 [12:57:59]Content-Length: 1199 [12:57:59]Content-Type: application/json [12:57:59] [12:57:59]POST finish read [12:57:59]Found Content-Length = 1199 [12:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320890\u000A22.06.2024 11:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3814082;3814083\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:59]execute_script... [12:57:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320890\u000A22.06.2024 11:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3814082;3814083\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:59]POST & json_proto [12:57:59]process_json_proto [12:57:59]json parsed OK: [12:57:59]protocol is kg_v1.0 [12:57:59]action value=print_text [12:57:59]process_action print_text [12:57:59]cmd_print_text [12:57:59]ExternCall_PrintAddStr [12:57:59]wPrintStart [12:57:59]Write to MH i2c: 01 00 00 48 2E 76 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 07 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 07 00 48 2E 00 00 00 00 00 FF 0F 8B [12:57:59]RasterBufferAndPrint [12:57:59]line *****ТОВАРНЫЙ ЧЕК***** [12:57:59]line АЗС 65 [12:57:59]line Партнер нефть [12:57:59]line 02508201610067 [12:57:59]line Кассир : Амантуров Р. [12:57:59]line Счет N : (1)320890 [12:57:59]line 22.06.2024 11:24 [12:57:59]line ПРОДАЖА [12:57:59]line ТРК (МРК, ГНК): 11 [12:57:59]line Вид ГСМ : 2710124130 [12:57:59]line Аи-92-К-5 [12:57:59]line 20.000 x 66.40 [12:57:59]line ИТОГ: 1328.00 [12:57:59]line Тип оплаты: Талоны: Партнер нефть [12:57:59]line 3814082;3814083 [12:57:59]line ______________________ [12:57:59]line (подпись) [12:57:59]written 0, free lines is 4095 [12:57:59]Write to MH i2c: 01 00 00 5C 2E 8A [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 07 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 07 00 5C 2E 00 00 00 00 00 19 0E B8 [12:57:59]RasterBufferAndPrint [12:57:59]line [12:57:59]line [12:57:59]line [12:57:59]line [12:57:59]line [12:57:59]written 0, free lines is 3611 [12:57:59]MH_Cut [12:57:59]Write to MH i2c: D1 01 00 63 2E 01 63 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: D1 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: D1 01 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: D1 01 00 63 2E 00 62 [12:57:59]Write to MH i2c: 01 00 00 64 2E 92 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:58:00]*** Cut start [12:58:00]*** Partial cut [12:58:00]*** CUTSNS_PIN = 1 [12:58:00]*** CUTSNS_PIN = 0 [12:58:00]*** Brake cut motor [12:58:00]Read from MH i2c: 01 [12:58:00]MH_I2C_Read... [12:58:00]*** Stop cut motor [12:58:00]*** Cut end [12:58:00]Read from MH i2c: 01 07 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: 01 07 00 64 2E 00 00 00 00 00 FF 0F A7 [12:58:00]process_action print_text done [12:58:00]requested_data is exist [12:58:00]produce_requested_data [12:58:00]requested_item fm.sn is exist - process it [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 11 00 00 [12:58:00]Write to MH i2c: E2 08 00 65 2E 80 11 00 00 00 00 00 00 0D [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 17 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 17 00 65 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [12:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:00]wFMCommunicate OK [12:58:00]requested_item fd.num is exist - process it [12:58:00]SAM_PROTO_GetFieldsCounters [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 13 00 00 [12:58:00]Write to MH i2c: E2 08 00 66 2E 80 13 00 00 00 00 00 00 10 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 62 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 62 00 66 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_GetFieldsCounters done [12:58:01]requested_item shift.num is exist - process it [12:58:01]requested_item shift.opened is exist - process it [12:58:01]req_shift_opened [12:58:01]FM_GetShiftState [12:58:01]SAM_PROTO_GetShiftState [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 13 01 00 [12:58:01]Write to MH i2c: E2 08 00 67 2E 80 13 01 00 00 00 00 00 12 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 0E 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 0E 00 67 2E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 47 [12:58:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_GetShiftState done [12:58:01]FM_GetShiftState done [12:58:01]req_shift_opened done [12:58:01]requested_item shift.open_date is exist - process it [12:58:01]req_shift_open_date [12:58:01]req_shift_open_date done [12:58:01]produce_requested_data done [12:58:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112216,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:58:01]process_action_free print_text [12:58:01]json_value_free [12:58:01]json_value_free done [12:58:01]process_json_proto returns [12:58:01]Send response to host [12:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112216,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:58:01]free response buf [12:58:01]execute_script done [12:58:01]execute_script returns [12:58:01]free content buf [12:58:01]Sock 9.Close socket [12:58:01]Sock 9.Thread stoped [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:35]accept exits with 7 [12:58:35]New connection [12:58:35]New thread 3066957156 created [12:58:35]Thread 3066813796 joined [12:58:35]Waiting for new connection... [12:58:35] Sock 7.Parse request [12:58:35]Sock 7.Check first char [12:58:35]Sock 7.First char is OK [12:58:35]request: POST /json_proto HTTP/1.0 [12:58:35]Method: POST [12:58:35]URL: /json_proto [12:58:35]Method is POST - this is cgi request [12:58:35]url: /json_proto [12:58:35]query_string will be loaded in cgi processing [12:58:35]execute_cgi json_proto POST (null) [12:58:35]execute_cgi path=json_proto method=POST [12:58:35]POST find Content-Length [12:58:35]Host: 172.17.59.68:8080 [12:58:35]Content-Length: 1190 [12:58:35]Content-Type: application/json [12:58:35] [12:58:35]POST finish read [12:58:35]Found Content-Length = 1190 [12:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320891\u000A22.06.2024 11:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3814081\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:35]execute_script... [12:58:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320891\u000A22.06.2024 11:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3814081\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:35]POST & json_proto [12:58:35]process_json_proto [12:58:35]json parsed OK: [12:58:35]protocol is kg_v1.0 [12:58:35]action value=print_text [12:58:35]process_action print_text [12:58:35]cmd_print_text [12:58:35]ExternCall_PrintAddStr [12:58:35]wPrintStart [12:58:35]Write to MH i2c: 01 00 00 68 2E 96 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 07 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 07 00 68 2E 00 00 00 00 00 FF 0F AB [12:58:35]RasterBufferAndPrint [12:58:35]line *****ТОВАРНЫЙ ЧЕК***** [12:58:35]line АЗС 65 [12:58:35]line Партнер нефть [12:58:35]line 02508201610067 [12:58:35]line Кассир : Амантуров Р. [12:58:35]line Счет N : (1)320891 [12:58:35]line 22.06.2024 11:25 [12:58:35]line ПРОДАЖА [12:58:35]line ТРК (МРК, ГНК): 11 [12:58:35]line Вид ГСМ : 2710124130 [12:58:35]line Аи-92-К-5 [12:58:35]line 10.000 x 66.40 [12:58:35]line ИТОГ: 664.00 [12:58:35]line Тип оплаты: Талоны: Партнер нефть [12:58:35]line 3814081 [12:58:35]line ______________________ [12:58:35]line (подпись) [12:58:35]written 0, free lines is 4095 [12:58:35]Write to MH i2c: 01 00 00 7C 2E AA [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 07 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: 01 07 00 7C 2E 00 00 00 00 00 11 0E D0 [12:58:35]RasterBufferAndPrint [12:58:35]line [12:58:35]line [12:58:35]line [12:58:35]line [12:58:35]line [12:58:35]written 0, free lines is 3603 [12:58:35]MH_Cut [12:58:35]Write to MH i2c: D1 01 00 83 2E 01 83 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: D1 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: D1 01 00 [12:58:35]MH_I2C_Read... [12:58:35]Read from MH i2c: D1 01 00 83 2E 00 82 [12:58:35]Write to MH i2c: 01 00 00 84 2E B2 [12:58:35]Write i2c OK [12:58:35]MH_I2C_Read... [12:58:35]*** Cut start [12:58:35]*** Partial cut [12:58:35]*** CUTSNS_PIN = 1 [12:58:35]*** CUTSNS_PIN = 0 [12:58:36]*** Brake cut motor [12:58:36]Read from MH i2c: 01 [12:58:36]MH_I2C_Read... [12:58:36]*** Stop cut motor [12:58:36]*** Cut end [12:58:36]Read from MH i2c: 01 07 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: 01 07 00 84 2E 00 00 00 00 00 FF 0F C7 [12:58:36]process_action print_text done [12:58:36]requested_data is exist [12:58:36]produce_requested_data [12:58:36]requested_item fm.sn is exist - process it [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 11 00 00 [12:58:36]Write to MH i2c: E2 08 00 85 2E 80 11 00 00 00 00 00 00 2D [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 17 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 17 00 85 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [12:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:58:36]wFMCommunicate OK [12:58:36]requested_item fd.num is exist - process it [12:58:36]SAM_PROTO_GetFieldsCounters [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 00 00 [12:58:36]Write to MH i2c: E2 08 00 86 2E 80 13 00 00 00 00 00 00 30 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 62 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 62 00 86 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [12:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetFieldsCounters done [12:58:36]requested_item shift.num is exist - process it [12:58:36]requested_item shift.opened is exist - process it [12:58:36]req_shift_opened [12:58:36]FM_GetShiftState [12:58:36]SAM_PROTO_GetShiftState [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 01 00 [12:58:36]Write to MH i2c: E2 08 00 87 2E 80 13 01 00 00 00 00 00 32 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 87 2E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 67 [12:58:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetShiftState done [12:58:36]FM_GetShiftState done [12:58:36]req_shift_opened done [12:58:36]requested_item shift.open_date is exist - process it [12:58:36]req_shift_open_date [12:58:36]req_shift_open_date done [12:58:36]produce_requested_data done [12:58:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112216,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [12:58:36]process_action_free print_text [12:58:36]json_value_free [12:58:36]json_value_free done [12:58:36]process_json_proto returns [12:58:36]Send response to host [12:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112216,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [12:58:36]free response buf [12:58:36]execute_script done [12:58:36]execute_script returns [12:58:36]free content buf [12:58:36]Sock 7.Close socket [12:58:36]Sock 7.Thread stoped [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:50]accept exits with 9 [13:01:50]New connection [13:01:50]New thread 3066813796 created [13:01:50]Thread 3066957156 joined [13:01:50]Waiting for new connection... [13:01:50] Sock 9.Parse request [13:01:50]Sock 9.Check first char [13:01:50]Sock 9.First char is OK [13:01:50]request: POST /json_proto HTTP/1.0 [13:01:50]Method: POST [13:01:50]URL: /json_proto [13:01:50]Method is POST - this is cgi request [13:01:50]url: /json_proto [13:01:50]query_string will be loaded in cgi processing [13:01:50]execute_cgi json_proto POST (null) [13:01:50]execute_cgi path=json_proto method=POST [13:01:50]POST find Content-Length [13:01:50]Host: 172.17.59.68:8080 [13:01:50]Content-Length: 677 [13:01:50]Content-Type: application/json [13:01:50] [13:01:50]POST finish read [13:01:50]Found Content-Length = 677 [13:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320892", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:01:50]execute_script... [13: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)320892", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:01:50]POST & json_proto [13:01:50]process_json_proto [13:01:50]json parsed OK: [13:01:50]protocol is kg_v1.0 [13:01:50]action value=close_receipt [13:01:50]process_action close_receipt [13:01:50]cmd_close_receipt [13:01:50]MH_GetDate [13:01:50]Write to MH i2c: F0 00 00 88 2E A5 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 09 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 09 00 88 2E 00 56 CB 76 66 BC EC 60 65 18 [13:01:50]GetLastDocTimeStamp 1719060919 [13:01:50]current date 1719061334 [13:01:50]FM_GetShiftState [13:01:50]SAM_PROTO_GetShiftState [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 13 01 00 [13:01:50]Write to MH i2c: E2 08 00 89 2E 80 13 01 00 00 00 00 00 34 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 89 2E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 69 [13:01:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_GetShiftState done [13:01:50]FM_GetShiftState done [13:01:50]opened in 1719020067 [13:01:50]opened+sec_in_day 1719106467 [13:01:50]quantity*price = 30012 [13:01:50]sum+1 = 30014 [13:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 83 22.06.2024 13:02 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112217 ФПД: 224125912595312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130214&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112217&fm=224125912595312&tin=02508201610067®Number=0000000000092771&sum=30000 [13:01:51]StoreToDocumentArchive [13:01:51]shift 391 fd 112217 [13:01:51]save to /storage/0391/doc_00112217 [13:01:51]save last doc name /storage/0391/doc_00112217 to /storage/kkm_last_doc_name [13:01:51]save OK [13:01:51]Clear old archive folders... [13:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:51]tlvbuf is 01201650 [13:01:51]SAM_PROTO_ClearQueue [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 09 00 00 [13:01:51]Write to MH i2c: E2 08 00 96 2E 80 09 00 00 00 00 00 00 36 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 96 2E 00 90 00 38 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]SAM_PROTO_ClearQueue done [13:01:51]KKMCreateOFDPacket [13:01:51]OFDProtocolAddRootSTLVToBuf [13:01:51]FM_MakeSignedData [13:01:51]FM_MakeSignedData [13:01:51]SAM_PROTO_SignData [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 01 02 [13:01:51]Write to MH i2c: E2 08 00 97 2E 80 0D 01 02 00 00 00 00 3E [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 03 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 03 00 97 2E 00 90 00 39 [13:01:52]RAPDU: 90 00 [13:01:52]wFMCommunicate OK [13:01:52]wFMCommunicate request_size=255 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 56 CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B6 01 00 35 04 06 00 CB [13:01:52]Write to MH i2c: E2 02 01 98 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 56 CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B6 01 00 35 04 06 00 CB 00 00 43 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 03 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 03 00 98 2E 00 90 00 3A [13:01:52]RAPDU: 90 00 [13:01:52]wFMCommunicate OK [13:01:52]wFMCommunicate request_size=10 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 0D 02 02 05 D7 61 67 BB 70 [13:01:52]Write to MH i2c: E2 0D 00 99 2E 80 0D 02 02 05 00 D7 61 67 BB 70 00 00 15 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 03 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 03 00 99 2E 00 90 00 3B [13:01:52]RAPDU: 90 00 [13:01:52]wFMCommunicate OK [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 0D 03 02 [13:01:52]Write to MH i2c: E2 08 00 9A 2E 80 0D 03 02 00 00 00 00 43 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 0B 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 0B 00 9A 2E 00 10 6C A7 4B F1 94 F2 B3 90 00 DC [13:01:52]RAPDU: 10 6C A7 4B F1 94 F2 B3 90 00 [13:01:52]wFMCommunicate OK [13:01:52]SAM_PROTO_SignData done [13:01:52]FM_MakeSignedData done [13:01:52]CreateOFDProtocolMessage [13:01:52]wFMCommunicate request_size=4 [13:01:52]MH_SAM_APDU [13:01:52]CAPDU: 80 11 00 00 [13:01:52]Write to MH i2c: E2 08 00 9B 2E 80 11 00 00 00 00 00 00 43 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:52]Read from MH i2c: E2 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: E2 17 00 9B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [13:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:01:52]wFMCommunicate OK [13:01:52]CreateOFDProtocolMessage done [13:01:52]OFDSenderStorePacket 112217 [13:01:52]StoreOFDPacket docnum=112217 [13:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B8 3E 07 01 A5 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 56 CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B6 01 00 35 04 06 00 CB D7 61 67 BB 70 10 6C A7 4B F1 94 F2 B3 [13:01:52]CheckFolder [13:01:52]dirname=/storage/ofd_packets [13:01:52]CheckFolder done [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00112217 [13:01:52]NVStorageSaveData ofd_packets/00112217 [13:01:52]File name is /storage/ofd_packets/00112217 [13:01:52]Write 301 bytes [13:01:52]NVStorageSaveData done [13:01:52]OFDSenderStorePacket done [13:01:52]KKMCreateOFDPacket done [13:01:52]NVStorageSaveData kkm_last_timestamp [13:01:52]File name is /storage/kkm_last_timestamp [13:01:52]Write 4 bytes [13:01:52]NVStorageSaveData done [13:01:52]ExternCall_PrintAddStr [13:01:52]wPrintStart [13:01:52]Write to MH i2c: 01 00 00 9C 2E CA [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 9C 2E 00 00 00 00 00 FF 0F DF [13:01:52]RasterBufferAndPrint [13:01:52]line Счет N : (1)320892 [13:01:52]line ИНН: 02508201610067 [13:01:52]line Контрольно-Кассовый Чек [13:01:52]line ПРОДАЖА [13:01:52]line ТРК (МРК, ГНК) : 11 [13:01:52]line Товар: 2710124130 [13:01:52]line Аи-92-К-5 [13:01:52]line 4.520 * 66.40 [13:01:52]line = 300.13 [13:01:52]line НДС 12% НСП 1% [13:01:52]line > о реализуемом товаре [13:01:52]line ОКРУГЛЕНИЕ: -0.13 [13:01:52]line ИТОГО: 300.00 [13:01:52]line Внесено: 300.00 [13:01:52]line СДАЧА: 0.00 [13:01:52]line НСП 1% : 2.66 [13:01:52]line НДС 12% : 31.87 [13:01:52]line Наличными: 300.00 [13:01:52]line Безнал.: 0.00 [13:01:52]line Место: АЗС № 65 "Партнер Нефть" [13:01:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:01:52]line СНО: Общий режим [13:01:52]line Чек 83 22.06.2024 13:02 [13:01:52]line Смена: 391 ФФД: 1.0 [13:01:52]line ЗНМ: 0300000198 [13:01:52]line РНМ: 0000000000092771 [13:01:52]line Версия ККМ: 001 [13:01:52]line ФМ: 0000000000875083 [13:01:52]line ФД: 112217 [13:01:52]line ФПД: 224125912595312 [13:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130214&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112217&fm=224125912595312&tin=02508201610067®Number=0000000000092771&sum=30000 [13:01:52]written 0, free lines is 4095 [13:01:52]OFD Sender: Processing packet 112217 [packets to send 38, broken 37] [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00112217 [13:01:52]OFD Sender: To server: pG, [13:01:52]CommunicateWithHost lk.salyk.kg:30040 [13:01:52]ConnectInit lk.salyk.kg [13:01:52]Connected sock=11 [13:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B8 3E 07 01 A5 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 56 CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B6 01 00 35 04 06 00 CB D7 61 67 BB 70 10 6C A7 4B F1 94 F2 B3 [13:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1D 49 47 00 10 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 35 30 38 33 10 04 04 00 59 B6 01 00 F4 03 04 00 61 62 76 66 B6 04 01 00 00 EF C2 33 B4 6A 83 4E E3 [13:01:52]CommunicateWithHost err = 0 [13:01:52]CheckOFDResponse [13:01:52]1017 (14) - 77093643461234 [13:01:52]1041 (16) - 0000000000875083 [13:01:52]1040 (4) - 112217 [13:01:52]1012 (4) - 22.06.2024 05:34 [13:01:52]1206 (1) - 0 [13:01:52]OFD Sender: Remove packet 112217 [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00112217 [13:01:52]NVStorageDeleteData [13:01:52]Write to MH i2c: 01 00 00 C7 2E F5 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 C7 2E 00 00 00 00 00 E4 0C EC [13:01:52]RasterBufferAndPrint [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]written 0, free lines is 3306 [13:01:52]MH_Cut [13:01:52]Write to MH i2c: D1 01 00 CE 2E 01 CE [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: D1 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: D1 01 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: D1 01 00 CE 2E 00 CD [13:01:52]Write to MH i2c: 01 00 00 CF 2E FD [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:53]OFD Sender: No OFD packet to send [13:01:53]*** Cut start [13:01:53]*** Partial cut [13:01:53]*** CUTSNS_PIN = 1 [13:01:53]*** CUTSNS_PIN = 0 [13:01:53]*** Brake cut motor [13:01:54]Read from MH i2c: 01 [13:01:54]MH_I2C_Read... [13:01:54]*** Stop cut motor [13:01:54]*** Cut end [13:01:54]Read from MH i2c: 01 07 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: 01 07 00 CF 2E 00 00 00 00 00 FF 0F 12 [13:01:54]process_action close_receipt done [13:01:54]requested_data is exist [13:01:54]produce_requested_data [13:01:54]requested_item fm.sn is exist - process it [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 11 00 00 [13:01:54]Write to MH i2c: E2 08 00 D0 2E 80 11 00 00 00 00 00 00 78 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 17 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 17 00 D0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [13:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:01:54]wFMCommunicate OK [13:01:54]requested_item fd.num is exist - process it [13:01:54]SAM_PROTO_GetFieldsCounters [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 13 00 00 [13:01:54]Write to MH i2c: E2 08 00 D1 2E 80 13 00 00 00 00 00 00 7B [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 62 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 62 00 D1 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [13:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_GetFieldsCounters done [13:01:54]requested_item shift.num is exist - process it [13:01:54]requested_item shift.opened is exist - process it [13:01:54]req_shift_opened [13:01:54]FM_GetShiftState [13:01:54]SAM_PROTO_GetShiftState [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 13 01 00 [13:01:54]Write to MH i2c: E2 08 00 D2 2E 80 13 01 00 00 00 00 00 7D [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 0E 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 0E 00 D2 2E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B2 [13:01:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_GetShiftState done [13:01:54]FM_GetShiftState done [13:01:54]req_shift_opened done [13:01:54]requested_item shift.open_date is exist - process it [13:01:54]req_shift_open_date [13:01:54]req_shift_open_date done [13:01:54]produce_requested_data done [13:01:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112217,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:01:54]process_action_free close_receipt [13:01:54]json_value_free [13:01:54]json_value_free done [13:01:54]process_json_proto returns [13:01:54]Send response to host [13:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112217,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:01:54]free response buf [13:01:54]execute_script done [13:01:54]execute_script returns [13:01:54]free content buf [13:01:54]Sock 9.Close socket [13:01:54]Sock 9.Thread stoped [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:14]accept exits with 7 [13:02:14]New connection [13:02:14]New thread 3066957156 created [13:02:14]Thread 3066813796 joined [13:02:14]Waiting for new connection... [13:02:14] Sock 7.Parse request [13:02:14]Sock 7.Check first char [13:02:14]Sock 7.First char is OK [13:02:14]request: POST /json_proto HTTP/1.0 [13:02:14]Method: POST [13:02:14]URL: /json_proto [13:02:14]Method is POST - this is cgi request [13:02:14]url: /json_proto [13:02:14]query_string will be loaded in cgi processing [13:02:14]execute_cgi json_proto POST (null) [13:02:14]execute_cgi path=json_proto method=POST [13:02:14]POST find Content-Length [13:02:14]Host: 172.17.59.68:8080 [13:02:14]Content-Length: 677 [13:02:14]Content-Type: application/json [13:02:14] [13:02:14]POST finish read [13:02:14]Found Content-Length = 677 [13:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320893", "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.40, "quantity" : 5.130, "sum" : 340.63, "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" ] } } [13:02:14]execute_script... [13:02: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)320893", "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.40, "quantity" : 5.130, "sum" : 340.63, "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" ] } } [13:02:14]POST & json_proto [13:02:14]process_json_proto [13:02:14]json parsed OK: [13:02:14]protocol is kg_v1.0 [13:02:14]action value=close_receipt [13:02:14]process_action close_receipt [13:02:14]cmd_close_receipt [13:02:14]MH_GetDate [13:02:14]Write to MH i2c: F0 00 00 D3 2E F0 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: F0 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: F0 09 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: F0 09 00 D3 2E 00 6E CB 76 66 BC EC 60 65 7B [13:02:14]GetLastDocTimeStamp 1719061334 [13:02:14]current date 1719061358 [13:02:14]FM_GetShiftState [13:02:14]SAM_PROTO_GetShiftState [13:02:14]wFMCommunicate request_size=4 [13:02:14]MH_SAM_APDU [13:02:14]CAPDU: 80 13 01 00 [13:02:14]Write to MH i2c: E2 08 00 D4 2E 80 13 01 00 00 00 00 00 7F [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:14]Read from MH i2c: E2 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: E2 0E 00 D4 2E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B4 [13:02:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:02:14]wFMCommunicate OK [13:02:14]SAM_PROTO_GetShiftState done [13:02:14]FM_GetShiftState done [13:02:14]opened in 1719020067 [13:02:14]opened+sec_in_day 1719106467 [13:02:14]quantity*price = 34063 [13:02:14]sum+1 = 34064 [13:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 84 22.06.2024 13:02 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112218 ФПД: 86700332337871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130238&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112218&fm=86700332337871&tin=02508201610067®Number=0000000000092771&sum=34000 [13:02:15]StoreToDocumentArchive [13:02:15]shift 391 fd 112218 [13:02:15]save to /storage/0391/doc_00112218 [13:02:15]save last doc name /storage/0391/doc_00112218 to /storage/kkm_last_doc_name [13:02:15]save OK [13:02:15]Clear old archive folders... [13:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:15]tlvbuf is B6DA95B0 [13:02:15]SAM_PROTO_ClearQueue [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 09 00 00 [13:02:15]Write to MH i2c: E2 08 00 E1 2E 80 09 00 00 00 00 00 00 81 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 E1 2E 00 90 00 83 [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]SAM_PROTO_ClearQueue done [13:02:15]KKMCreateOFDPacket [13:02:15]OFDProtocolAddRootSTLVToBuf [13:02:15]FM_MakeSignedData [13:02:15]FM_MakeSignedData [13:02:15]SAM_PROTO_SignData [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 0D 01 02 [13:02:15]Write to MH i2c: E2 08 00 E2 2E 80 0D 01 02 00 00 00 00 89 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]wFMCommunicate request_size=255 [13:02:15]MH_SAM_APDU [13:02: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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 54 00 00 00 F4 03 04 00 6E CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B6 01 00 35 04 06 00 4E [13:02:15]Write to MH i2c: E2 02 01 E3 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 54 00 00 00 F4 03 04 00 6E CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B6 01 00 35 04 06 00 4E 00 00 A3 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 E3 2E 00 90 00 85 [13:02:16]RAPDU: 90 00 [13:02:16]wFMCommunicate OK [13:02:16]wFMCommunicate request_size=10 [13:02:16]MH_SAM_APDU [13:02:16]CAPDU: 80 0D 02 02 05 DA 7E 82 CA CF [13:02:16]Write to MH i2c: E2 0D 00 E4 2E 80 0D 02 02 05 00 DA 7E 82 CA CF 00 00 09 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [13:02:16]RAPDU: 90 00 [13:02:16]wFMCommunicate OK [13:02:16]wFMCommunicate request_size=4 [13:02:16]MH_SAM_APDU [13:02:16]CAPDU: 80 0D 03 02 [13:02:16]Write to MH i2c: E2 08 00 E5 2E 80 0D 03 02 00 00 00 00 8E [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 0B 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 0B 00 E5 2E 00 57 9C 9A 8B A4 B4 96 48 90 00 DD [13:02:16]RAPDU: 57 9C 9A 8B A4 B4 96 48 90 00 [13:02:16]wFMCommunicate OK [13:02:16]SAM_PROTO_SignData done [13:02:16]FM_MakeSignedData done [13:02:16]CreateOFDProtocolMessage [13:02:16]wFMCommunicate request_size=4 [13:02:16]MH_SAM_APDU [13:02:16]CAPDU: 80 11 00 00 [13:02:16]Write to MH i2c: E2 08 00 E6 2E 80 11 00 00 00 00 00 00 8E [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:16]Read from MH i2c: E2 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 17 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: E2 17 00 E6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [13:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:02:16]wFMCommunicate OK [13:02:16]CreateOFDProtocolMessage done [13:02:16]OFDSenderStorePacket 112218 [13:02:16]StoreOFDPacket docnum=112218 [13:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 37 07 01 47 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 54 00 00 00 F4 03 04 00 6E CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B6 01 00 35 04 06 00 4E DA 7E 82 CA CF 57 9C 9A 8B A4 B4 96 48 [13:02:16]CheckFolder [13:02:16]dirname=/storage/ofd_packets [13:02:16]CheckFolder done [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00112218 [13:02:16]NVStorageSaveData ofd_packets/00112218 [13:02:16]File name is /storage/ofd_packets/00112218 [13:02:16]Write 301 bytes [13:02:16]NVStorageSaveData done [13:02:16]OFDSenderStorePacket done [13:02:16]KKMCreateOFDPacket done [13:02:16]NVStorageSaveData kkm_last_timestamp [13:02:16]File name is /storage/kkm_last_timestamp [13:02:16]Write 4 bytes [13:02:16]NVStorageSaveData done [13:02:16]ExternCall_PrintAddStr [13:02:16]wPrintStart [13:02:16]Write to MH i2c: 01 00 00 E7 2E 15 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 E7 2E 00 00 00 00 00 FF 0F 2A [13:02:16]RasterBufferAndPrint [13:02:16]line Счет N : (1)320893 [13:02:16]line ИНН: 02508201610067 [13:02:16]line Контрольно-Кассовый Чек [13:02:16]line ПРОДАЖА [13:02:16]line ТРК (МРК, ГНК) : 11 [13:02:16]line Товар: 2710124130 [13:02:16]line Аи-92-К-5 [13:02:16]line 5.130 * 66.40 [13:02:16]line = 340.63 [13:02:16]line НДС 12% НСП 1% [13:02:16]line > о реализуемом товаре [13:02:16]line ОКРУГЛЕНИЕ: -0.63 [13:02:16]line ИТОГО: 340.00 [13:02:16]line Внесено: 340.00 [13:02:16]line СДАЧА: 0.00 [13:02:16]line НСП 1% : 3.01 [13:02:16]line НДС 12% : 36.17 [13:02:16]line Наличными: 340.00 [13:02:16]line Безнал.: 0.00 [13:02:16]line Место: АЗС № 65 "Партнер Нефть" [13:02:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:02:16]line СНО: Общий режим [13:02:16]line Чек 84 22.06.2024 13:02 [13:02:16]line Смена: 391 ФФД: 1.0 [13:02:16]line ЗНМ: 0300000198 [13:02:16]line РНМ: 0000000000092771 [13:02:16]line Версия ККМ: 001 [13:02:16]line ФМ: 0000000000875083 [13:02:16]line ФД: 112218 [13:02:16]line ФПД: 86700332337871 [13:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130238&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112218&fm=86700332337871&tin=02508201610067®Number=0000000000092771&sum=34000 [13:02:16]OFD Sender: Processing packet 112218 [packets to send 38, broken 37] [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00112218 [13:02:16]OFD Sender: To server: pG, [13:02:16]CommunicateWithHost lk.salyk.kg:30040 [13:02:16]ConnectInit lk.salyk.kg [13:02:16]written 0, free lines is 4095 [13:02:16]Connected sock=10 [13:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 37 07 01 47 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 54 00 00 00 F4 03 04 00 6E CB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B6 01 00 35 04 06 00 4E DA 7E 82 CA CF 57 9C 9A 8B A4 B4 96 48 [13:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 19 47 00 78 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B6 01 00 F4 03 04 00 79 62 76 66 B6 04 01 00 00 E8 63 54 72 96 2A CE 11 [13:02:16]CommunicateWithHost err = 0 [13:02:16]CheckOFDResponse [13:02:16]1017 (14) - 77093643461234 [13:02:16]1041 (16) - 0000000000875083 [13:02:16]1040 (4) - 112218 [13:02:16]1012 (4) - 22.06.2024 05:34 [13:02:16]1206 (1) - 0 [13:02:16]OFD Sender: Remove packet 112218 [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00112218 [13:02:16]NVStorageDeleteData [13:02:16]Write to MH i2c: 01 00 00 12 2F 41 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 12 2F 00 00 00 00 00 D8 0C 2C [13:02:16]RasterBufferAndPrint [13:02:16]line [13:02:16]line [13:02:16]line [13:02:16]line [13:02:16]line [13:02:16]written 0, free lines is 3295 [13:02:16]MH_Cut [13:02:16]Write to MH i2c: D1 01 00 19 2F 01 1A [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: D1 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: D1 01 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: D1 01 00 19 2F 00 19 [13:02:16]Write to MH i2c: 01 00 00 1A 2F 49 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:17]OFD Sender: No OFD packet to send [13:02:17]*** Cut start [13:02:17]*** Partial cut [13:02:17]*** CUTSNS_PIN = 1 [13:02:17]*** CUTSNS_PIN = 0 [13:02:17]*** Brake cut motor [13:02:18]Read from MH i2c: 01 [13:02:18]MH_I2C_Read... [13:02:18]*** Stop cut motor [13:02:18]*** Cut end [13:02:18]Read from MH i2c: 01 07 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: 01 07 00 1A 2F 00 00 00 00 00 FF 0F 5E [13:02:18]process_action close_receipt done [13:02:18]requested_data is exist [13:02:18]produce_requested_data [13:02:18]requested_item fm.sn is exist - process it [13:02:18]wFMCommunicate request_size=4 [13:02:18]MH_SAM_APDU [13:02:18]CAPDU: 80 11 00 00 [13:02:18]Write to MH i2c: E2 08 00 1B 2F 80 11 00 00 00 00 00 00 C4 [13:02:18]Write i2c OK [13:02:18]MH_I2C_Read... [13:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:18]Read from MH i2c: E2 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 17 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 17 00 1B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [13:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:02:18]wFMCommunicate OK [13:02:18]requested_item fd.num is exist - process it [13:02:18]SAM_PROTO_GetFieldsCounters [13:02:18]wFMCommunicate request_size=4 [13:02:18]MH_SAM_APDU [13:02:18]CAPDU: 80 13 00 00 [13:02:18]Write to MH i2c: E2 08 00 1C 2F 80 13 00 00 00 00 00 00 C7 [13:02:18]Write i2c OK [13:02:18]MH_I2C_Read... [13:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:18]Read from MH i2c: E2 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 62 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 62 00 1C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:18]wFMCommunicate OK [13:02:18]SAM_PROTO_GetFieldsCounters done [13:02:18]requested_item shift.num is exist - process it [13:02:18]requested_item shift.opened is exist - process it [13:02:18]req_shift_opened [13:02:18]FM_GetShiftState [13:02:18]SAM_PROTO_GetShiftState [13:02:18]wFMCommunicate request_size=4 [13:02:18]MH_SAM_APDU [13:02:18]CAPDU: 80 13 01 00 [13:02:18]Write to MH i2c: E2 08 00 1D 2F 80 13 01 00 00 00 00 00 C9 [13:02:18]Write i2c OK [13:02:18]MH_I2C_Read... [13:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:18]Read from MH i2c: E2 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 0E 00 [13:02:18]MH_I2C_Read... [13:02:18]Read from MH i2c: E2 0E 00 1D 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FE [13:02:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:02:18]wFMCommunicate OK [13:02:18]SAM_PROTO_GetShiftState done [13:02:18]FM_GetShiftState done [13:02:18]req_shift_opened done [13:02:18]requested_item shift.open_date is exist - process it [13:02:18]req_shift_open_date [13:02:18]req_shift_open_date done [13:02:18]produce_requested_data done [13:02:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112218,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:02:18]process_action_free close_receipt [13:02:18]json_value_free [13:02:18]json_value_free done [13:02:18]process_json_proto returns [13:02:18]Send response to host [13:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112218,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:02:18]free response buf [13:02:18]execute_script done [13:02:18]execute_script returns [13:02:18]free content buf [13:02:18]Sock 7.Close socket [13:02:18]Sock 7.Thread stoped [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [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:00]accept exits with 9 [13:08:00]New connection [13:08:00]New thread 3066813796 created [13:08:00]Thread 3066957156 joined [13:08:00]Waiting for new connection... [13:08:00] Sock 9.Parse request [13:08:00]Sock 9.Check first char [13:08:00]Sock 9.First char is OK [13:08:00]request: POST /json_proto HTTP/1.0 [13:08:00]Method: POST [13:08:00]URL: /json_proto [13:08:00]Method is POST - this is cgi request [13:08:00]url: /json_proto [13:08:00]query_string will be loaded in cgi processing [13:08:00]execute_cgi json_proto POST (null) [13:08:00]execute_cgi path=json_proto method=POST [13:08:00]POST find Content-Length [13:08:00]Host: 172.17.59.68:8080 [13:08:00]Content-Length: 674 [13:08:00]Content-Type: application/json [13:08:00] [13:08:00]POST finish read [13:08:00]Found Content-Length = 674 [13:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:00]execute_script... [13:08: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)320894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:00]POST & json_proto [13:08:00]process_json_proto [13:08:00]json parsed OK: [13:08:00]protocol is kg_v1.0 [13:08:00]action value=close_receipt [13:08:00]process_action close_receipt [13:08:00]cmd_close_receipt [13:08:00]MH_GetDate [13:08:00]Write to MH i2c: F0 00 00 1E 2F 3C [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: F0 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: F0 09 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: F0 09 00 1E 2F 00 C8 CC 76 66 BC EC 60 65 22 [13:08:00]GetLastDocTimeStamp 1719061358 [13:08:00]current date 1719061704 [13:08:00]FM_GetShiftState [13:08:00]SAM_PROTO_GetShiftState [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 13 01 00 [13:08:00]Write to MH i2c: E2 08 00 1F 2F 80 13 01 00 00 00 00 00 CB [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0E 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0E 00 1F 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 00 [13:08:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_GetShiftState done [13:08:00]FM_GetShiftState done [13:08:00]opened in 1719020067 [13:08:00]opened+sec_in_day 1719106467 [13:08:00]quantity*price = 30034 [13:08:00]sum+1 = 30036 [13:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 85 22.06.2024 13:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112219 ФПД: 173553933733873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130824&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112219&fm=173553933733873&tin=02508201610067®Number=0000000000092771&sum=30000 [13:08:01]StoreToDocumentArchive [13:08:01]shift 391 fd 112219 [13:08:01]save to /storage/0391/doc_00112219 [13:08:01]save last doc name /storage/0391/doc_00112219 to /storage/kkm_last_doc_name [13:08:01]save OK [13:08:01]Clear old archive folders... [13:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:01]tlvbuf is B6F56A00 [13:08:01]SAM_PROTO_ClearQueue [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 09 00 00 [13:08:01]Write to MH i2c: E2 08 00 2C 2F 80 09 00 00 00 00 00 00 CD [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 2C 2F 00 90 00 CF [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]SAM_PROTO_ClearQueue done [13:08:01]KKMCreateOFDPacket [13:08:01]OFDProtocolAddRootSTLVToBuf [13:08:01]FM_MakeSignedData [13:08:01]FM_MakeSignedData [13:08:01]SAM_PROTO_SignData [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 01 02 [13:08:01]Write to MH i2c: E2 08 00 2D 2F 80 0D 01 02 00 00 00 00 D5 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 2D 2F 00 90 00 D0 [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=255 [13:08:01]MH_SAM_APDU [13:08: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 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 CC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B6 01 00 35 04 06 00 9D D8 AC 91 [13:08:01]Write to MH i2c: E2 02 01 2E 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 CC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B6 01 00 35 04 06 00 9D D8 AC 91 00 00 A0 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 2E 2F 00 90 00 D1 [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=7 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 02 CF F1 [13:08:01]Write to MH i2c: E2 0A 00 2F 2F 80 0D 02 02 02 00 CF F1 00 00 9C [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 03 02 [13:08:01]Write to MH i2c: E2 08 00 30 2F 80 0D 03 02 00 00 00 00 DA [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 0B 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 0B 00 30 2F 00 23 23 90 C1 72 C5 B5 38 90 00 96 [13:08:01]RAPDU: 23 23 90 C1 72 C5 B5 38 90 00 [13:08:01]wFMCommunicate OK [13:08:01]SAM_PROTO_SignData done [13:08:01]FM_MakeSignedData done [13:08:01]CreateOFDProtocolMessage [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 11 00 00 [13:08:01]Write to MH i2c: E2 08 00 31 2F 80 11 00 00 00 00 00 00 DA [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 17 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 17 00 31 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [13:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:08:01]wFMCommunicate OK [13:08:01]CreateOFDProtocolMessage done [13:08:01]OFDSenderStorePacket 112219 [13:08:01]StoreOFDPacket docnum=112219 [13:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FD CA 04 01 D4 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 CC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B6 01 00 35 04 06 00 9D D8 AC 91 CF F1 23 23 90 C1 72 C5 B5 38 [13:08:01]CheckFolder [13:08:01]dirname=/storage/ofd_packets [13:08:01]CheckFolder done [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00112219 [13:08:01]NVStorageSaveData ofd_packets/00112219 [13:08:01]File name is /storage/ofd_packets/00112219 [13:08:01]Write 298 bytes [13:08:01]NVStorageSaveData done [13:08:01]OFDSenderStorePacket done [13:08:01]KKMCreateOFDPacket done [13:08:01]NVStorageSaveData kkm_last_timestamp [13:08:01]File name is /storage/kkm_last_timestamp [13:08:01]Write 4 bytes [13:08:01]NVStorageSaveData done [13:08:01]ExternCall_PrintAddStr [13:08:01]wPrintStart [13:08:01]Write to MH i2c: 01 00 00 32 2F 61 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 07 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 07 00 32 2F 00 00 00 00 00 FF 0F 76 [13:08:01]RasterBufferAndPrint [13:08:01]line Счет N : (1)320894 [13:08:01]line ИНН: 02508201610067 [13:08:01]line Контрольно-Кассовый Чек [13:08:01]line ПРОДАЖА [13:08:01]line ТРК (МРК, ГНК) : 22 [13:08:01]line Товар: 2710194210 [13:08:01]line ДТ-К-5 [13:08:01]line 4.120 * 72.90 [13:08:01]line = 300.35 [13:08:01]line НДС 12% НСП 1% [13:08:01]line > о реализуемом товаре [13:08:01]line ОКРУГЛЕНИЕ: -0.35 [13:08:01]line ИТОГО: 300.00 [13:08:01]line Внесено: 300.00 [13:08:01]line СДАЧА: 0.00 [13:08:01]line НСП 1% : 2.66 [13:08:01]line НДС 12% : 31.90 [13:08:01]line Наличными: 300.00 [13:08:01]line Безнал.: 0.00 [13:08:01]line Место: АЗС № 65 "Партнер Нефть" [13:08:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:08:01]line СНО: Общий режим [13:08:01]line Чек 85 22.06.2024 13:08 [13:08:01]line Смена: 391 ФФД: 1.0 [13:08:01]line ЗНМ: 0300000198 [13:08:01]line РНМ: 0000000000092771 [13:08:01]line Версия ККМ: 001 [13:08:01]line ФМ: 0000000000875083 [13:08:01]line ФД: 112219 [13:08:01]line ФПД: 173553933733873 [13:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130824&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112219&fm=173553933733873&tin=02508201610067®Number=0000000000092771&sum=30000 [13:08:02]OFD Sender: Processing packet 112219 [packets to send 38, broken 37] [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00112219 [13:08:02]OFD Sender: To server: pG, [13:08:02]CommunicateWithHost lk.salyk.kg:30040 [13:08:02]ConnectInit lk.salyk.kg [13:08:02]written 0, free lines is 4095 [13:08:02]Connected sock=10 [13:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FD CA 04 01 D4 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 C8 CC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B6 01 00 35 04 06 00 9D D8 AC 91 CF F1 23 23 90 C1 72 C5 B5 38 [13:08:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 19 47 00 2D 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B6 01 00 F4 03 04 00 D3 63 76 66 B6 04 01 00 00 22 18 90 0E EB 88 15 42 [13:08:02]CommunicateWithHost err = 0 [13:08:02]CheckOFDResponse [13:08:02]1017 (14) - 77093643461234 [13:08:02]1041 (16) - 0000000000875083 [13:08:02]1040 (4) - 112219 [13:08:02]1012 (4) - 22.06.2024 05:40 [13:08:02]1206 (1) - 0 [13:08:02]OFD Sender: Remove packet 112219 [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00112219 [13:08:02]NVStorageDeleteData [13:08:02]Write to MH i2c: 01 00 00 5D 2F 8C [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 5D 2F 00 00 00 00 00 E4 0C 83 [13:08:02]RasterBufferAndPrint [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]written 0, free lines is 3306 [13:08:02]MH_Cut [13:08:02]Write to MH i2c: D1 01 00 64 2F 01 65 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 64 2F 00 64 [13:08:02]Write to MH i2c: 01 00 00 65 2F 94 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:03]OFD Sender: No OFD packet to send [13:08:03]*** Cut start [13:08:03]*** Partial cut [13:08:03]*** CUTSNS_PIN = 1 [13:08:03]*** CUTSNS_PIN = 0 [13:08:03]*** Brake cut motor [13:08:04]Read from MH i2c: 01 [13:08:04]MH_I2C_Read... [13:08:04]*** Stop cut motor [13:08:04]*** Cut end [13:08:04]Read from MH i2c: 01 07 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: 01 07 00 65 2F 00 00 00 00 00 FF 0F A9 [13:08:04]process_action close_receipt done [13:08:04]requested_data is exist [13:08:04]produce_requested_data [13:08:04]requested_item fm.sn is exist - process it [13:08:04]wFMCommunicate request_size=4 [13:08:04]MH_SAM_APDU [13:08:04]CAPDU: 80 11 00 00 [13:08:04]Write to MH i2c: E2 08 00 66 2F 80 11 00 00 00 00 00 00 0F [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:04]Read from MH i2c: E2 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 17 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 17 00 66 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [13:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:08:04]wFMCommunicate OK [13:08:04]requested_item fd.num is exist - process it [13:08:04]SAM_PROTO_GetFieldsCounters [13:08:04]wFMCommunicate request_size=4 [13:08:04]MH_SAM_APDU [13:08:04]CAPDU: 80 13 00 00 [13:08:04]Write to MH i2c: E2 08 00 67 2F 80 13 00 00 00 00 00 00 12 [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:04]Read from MH i2c: E2 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 62 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 62 00 67 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [13:08:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:04]wFMCommunicate OK [13:08:04]SAM_PROTO_GetFieldsCounters done [13:08:04]requested_item shift.num is exist - process it [13:08:04]requested_item shift.opened is exist - process it [13:08:04]req_shift_opened [13:08:04]FM_GetShiftState [13:08:04]SAM_PROTO_GetShiftState [13:08:04]wFMCommunicate request_size=4 [13:08:04]MH_SAM_APDU [13:08:04]CAPDU: 80 13 01 00 [13:08:04]Write to MH i2c: E2 08 00 68 2F 80 13 01 00 00 00 00 00 14 [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:04]Read from MH i2c: E2 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 0E 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 0E 00 68 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 49 [13:08:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:08:04]wFMCommunicate OK [13:08:04]SAM_PROTO_GetShiftState done [13:08:04]FM_GetShiftState done [13:08:04]req_shift_opened done [13:08:04]requested_item shift.open_date is exist - process it [13:08:04]req_shift_open_date [13:08:04]req_shift_open_date done [13:08:04]produce_requested_data done [13:08:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112219,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:08:04]process_action_free close_receipt [13:08:04]json_value_free [13:08:04]json_value_free done [13:08:04]process_json_proto returns [13:08:04]Send response to host [13:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112219,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:08:04]free response buf [13:08:04]execute_script done [13:08:04]execute_script returns [13:08:04]free content buf [13:08:04]Sock 9.Close socket [13:08:04]Sock 9.Thread stoped [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:42]accept exits with 7 [13:09:42]New connection [13:09:42]New thread 3066957156 created [13:09:42]Thread 3066813796 joined [13:09:42]Waiting for new connection... [13:09:42] Sock 7.Parse request [13:09:42]Sock 7.Check first char [13:09:42]Sock 7.First char is OK [13:09:42]request: POST /json_proto HTTP/1.0 [13:09:42]Method: POST [13:09:42]URL: /json_proto [13:09:42]Method is POST - this is cgi request [13:09:42]url: /json_proto [13:09:42]query_string will be loaded in cgi processing [13:09:42]execute_cgi json_proto POST (null) [13:09:42]execute_cgi path=json_proto method=POST [13:09:42]POST find Content-Length [13:09:42]Host: 172.17.59.68:8080 [13:09:42]Content-Length: 682 [13:09:42]Content-Type: application/json [13:09:42] [13:09:42]POST finish read [13:09:42]Found Content-Length = 682 [13:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320895", "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.40, "quantity" : 43.680, "sum" : 2900.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:42]execute_script... [13:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320895", "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.40, "quantity" : 43.680, "sum" : 2900.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:42]POST & json_proto [13:09:42]process_json_proto [13:09:42]json parsed OK: [13:09:42]protocol is kg_v1.0 [13:09:42]action value=close_receipt [13:09:42]process_action close_receipt [13:09:42]cmd_close_receipt [13:09:42]MH_GetDate [13:09:42]Write to MH i2c: F0 00 00 69 2F 87 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: F0 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: F0 09 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: F0 09 00 69 2F 00 2E CD 76 66 BC EC 60 65 D4 [13:09:42]GetLastDocTimeStamp 1719061704 [13:09:42]current date 1719061806 [13:09:42]FM_GetShiftState [13:09:42]SAM_PROTO_GetShiftState [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 01 00 [13:09:42]Write to MH i2c: E2 08 00 6A 2F 80 13 01 00 00 00 00 00 16 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 6A 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4B [13:09:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetShiftState done [13:09:42]FM_GetShiftState done [13:09:42]opened in 1719020067 [13:09:42]opened+sec_in_day 1719106467 [13:09:42]quantity*price = 290035 [13:09:42]sum+1 = 290036 [13:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 2900.00 Внесено: 2900.00 СДАЧА: 0.00 НСП 1% : 25.67 НДС 12% : 308.00 Наличными: 2900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 86 22.06.2024 13:10 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112220 ФПД: 125661859296614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131006&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112220&fm=125661859296614&tin=02508201610067®Number=0000000000092771&sum=290000 [13:09:43]StoreToDocumentArchive [13:09:43]shift 391 fd 112220 [13:09:43]save to /storage/0391/doc_00112220 [13:09:43]save last doc name /storage/0391/doc_00112220 to /storage/kkm_last_doc_name [13:09:43]save OK [13:09:43]Clear old archive folders... [13:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:43]tlvbuf is 01153200 [13:09:43]SAM_PROTO_ClearQueue [13:09:43]wFMCommunicate request_size=4 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 09 00 00 [13:09:43]Write to MH i2c: E2 08 00 77 2F 80 09 00 00 00 00 00 00 18 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 77 2F 00 90 00 1A [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]SAM_PROTO_ClearQueue done [13:09:43]KKMCreateOFDPacket [13:09:43]OFDProtocolAddRootSTLVToBuf [13:09:43]FM_MakeSignedData [13:09:43]FM_MakeSignedData [13:09:43]SAM_PROTO_SignData [13:09:43]wFMCommunicate request_size=4 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 01 02 [13:09:43]Write to MH i2c: E2 08 00 78 2F 80 0D 01 02 00 00 00 00 20 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 78 2F 00 90 00 1B [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]wFMCommunicate request_size=255 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 AA 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 2E CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B6 01 00 35 04 06 00 72 [13:09:43]Write to MH i2c: E2 02 01 79 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 A0 AA 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 2E CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B6 01 00 35 04 06 00 72 00 00 73 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 79 2F 00 90 00 1C [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]wFMCommunicate request_size=10 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 02 02 05 49 EE 7C 35 66 [13:09:43]Write to MH i2c: E2 0D 00 7A 2F 80 0D 02 02 05 00 49 EE 7C 35 66 00 00 7B [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]wFMCommunicate request_size=4 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 03 02 [13:09:43]Write to MH i2c: E2 08 00 7B 2F 80 0D 03 02 00 00 00 00 25 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 0B 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 0B 00 7B 2F 00 77 47 73 59 A6 EA 8A 82 90 00 4C [13:09:43]RAPDU: 77 47 73 59 A6 EA 8A 82 90 00 [13:09:43]wFMCommunicate OK [13:09:43]SAM_PROTO_SignData done [13:09:43]FM_MakeSignedData done [13:09:43]CreateOFDProtocolMessage [13:09:43]wFMCommunicate request_size=4 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 11 00 00 [13:09:43]Write to MH i2c: E2 08 00 7C 2F 80 11 00 00 00 00 00 00 25 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 17 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 17 00 7C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [13:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:09:43]wFMCommunicate OK [13:09:43]CreateOFDProtocolMessage done [13:09:43]OFDSenderStorePacket 112220 [13:09:43]StoreOFDPacket docnum=112220 [13:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 1E 07 01 61 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 A0 AA 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 2E CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B6 01 00 35 04 06 00 72 49 EE 7C 35 66 77 47 73 59 A6 EA 8A 82 [13:09:43]CheckFolder [13:09:43]dirname=/storage/ofd_packets [13:09:43]CheckFolder done [13:09:43]ProducePacketName [13:09:43]name=ofd_packets/00112220 [13:09:43]NVStorageSaveData ofd_packets/00112220 [13:09:43]File name is /storage/ofd_packets/00112220 [13:09:43]Write 301 bytes [13:09:43]NVStorageSaveData done [13:09:43]OFDSenderStorePacket done [13:09:43]KKMCreateOFDPacket done [13:09:43]NVStorageSaveData kkm_last_timestamp [13:09:43]File name is /storage/kkm_last_timestamp [13:09:43]Write 4 bytes [13:09:43]NVStorageSaveData done [13:09:43]ExternCall_PrintAddStr [13:09:43]wPrintStart [13:09:43]Write to MH i2c: 01 00 00 7D 2F AC [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: 01 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: 01 07 00 [13:09:43]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 07 00 7D 2F 00 00 00 00 00 FF 0F C1 [13:09:44]RasterBufferAndPrint [13:09:44]line Счет N : (1)320895 [13:09:44]line ИНН: 02508201610067 [13:09:44]line Контрольно-Кассовый Чек [13:09:44]line ПРОДАЖА [13:09:44]line ТРК (МРК, ГНК) : 11 [13:09:44]line Товар: 2710124130 [13:09:44]line Аи-92-К-5 [13:09:44]line 43.680 * 66.40 [13:09:44]line = 2900.35 [13:09:44]line НДС 12% НСП 1% [13:09:44]line > о реализуемом товаре [13:09:44]line ОКРУГЛЕНИЕ: -0.35 [13:09:44]line ИТОГО: 2900.00 [13:09:44]line Внесено: 2900.00 [13:09:44]line СДАЧА: 0.00 [13:09:44]line НСП 1% : 25.67 [13:09:44]line НДС 12% : 308.00 [13:09:44]line Наличными: 2900.00 [13:09:44]line Безнал.: 0.00 [13:09:44]line Место: АЗС № 65 "Партнер Нефть" [13:09:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:09:44]line СНО: Общий режим [13:09:44]line Чек 86 22.06.2024 13:10 [13:09:44]line Смена: 391 ФФД: 1.0 [13:09:44]line ЗНМ: 0300000198 [13:09:44]line РНМ: 0000000000092771 [13:09:44]line Версия ККМ: 001 [13:09:44]line ФМ: 0000000000875083 [13:09:44]line ФД: 112220 [13:09:44]line ФПД: 125661859296614 [13:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131006&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112220&fm=125661859296614&tin=02508201610067®Number=0000000000092771&sum=290000 [13:09:44]OFD Sender: Processing packet 112220 [packets to send 38, broken 37] [13:09:44]ProducePacketName [13:09:44]name=ofd_packets/00112220 [13:09:44]OFD Sender: To server: pG, [13:09:44]CommunicateWithHost lk.salyk.kg:30040 [13:09:44]ConnectInit lk.salyk.kg [13:09:44]written 0, free lines is 4095 [13:09:44]Connected sock=10 [13:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 1E 07 01 61 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 A0 AA 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 2E CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B6 01 00 35 04 06 00 72 49 EE 7C 35 66 77 47 73 59 A6 EA 8A 82 [13:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DD 19 47 00 BA AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B6 01 00 F4 03 04 00 39 64 76 66 B6 04 01 00 00 85 4A CF 74 E4 9C 19 03 [13:09:44]CommunicateWithHost err = 0 [13:09:44]CheckOFDResponse [13:09:44]1017 (14) - 77093643461234 [13:09:44]1041 (16) - 0000000000875083 [13:09:44]1040 (4) - 112220 [13:09:44]1012 (4) - 22.06.2024 05:42 [13:09:44]1206 (1) - 0 [13:09:44]OFD Sender: Remove packet 112220 [13:09:44]ProducePacketName [13:09:44]name=ofd_packets/00112220 [13:09:44]NVStorageDeleteData [13:09:44]Write to MH i2c: 01 00 00 A8 2F D7 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 07 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 07 00 A8 2F 00 00 00 00 00 F3 0C DD [13:09:44]RasterBufferAndPrint [13:09:44]line [13:09:44]line [13:09:44]line [13:09:44]line [13:09:44]line [13:09:44]written 0, free lines is 3321 [13:09:44]MH_Cut [13:09:44]Write to MH i2c: D1 01 00 AF 2F 01 B0 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: D1 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: D1 01 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: D1 01 00 AF 2F 00 AF [13:09:44]Write to MH i2c: 01 00 00 B0 2F DF [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:45]OFD Sender: No OFD packet to send [13:09:45]*** Cut start [13:09:45]*** Partial cut [13:09:45]*** CUTSNS_PIN = 1 [13:09:45]*** CUTSNS_PIN = 0 [13:09:45]*** Brake cut motor [13:09:46]Read from MH i2c: 01 [13:09:46]MH_I2C_Read... [13:09:46]*** Stop cut motor [13:09:46]*** Cut end [13:09:46]Read from MH i2c: 01 07 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: 01 07 00 B0 2F 00 00 00 00 00 FF 0F F4 [13:09:46]process_action close_receipt done [13:09:46]requested_data is exist [13:09:46]produce_requested_data [13:09:46]requested_item fm.sn is exist - process it [13:09:46]wFMCommunicate request_size=4 [13:09:46]MH_SAM_APDU [13:09:46]CAPDU: 80 11 00 00 [13:09:46]Write to MH i2c: E2 08 00 B1 2F 80 11 00 00 00 00 00 00 5A [13:09:46]Write i2c OK [13:09:46]MH_I2C_Read... [13:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:46]Read from MH i2c: E2 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 17 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 17 00 B1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [13:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:09:46]wFMCommunicate OK [13:09:46]requested_item fd.num is exist - process it [13:09:46]SAM_PROTO_GetFieldsCounters [13:09:46]wFMCommunicate request_size=4 [13:09:46]MH_SAM_APDU [13:09:46]CAPDU: 80 13 00 00 [13:09:46]Write to MH i2c: E2 08 00 B2 2F 80 13 00 00 00 00 00 00 5D [13:09:46]Write i2c OK [13:09:46]MH_I2C_Read... [13:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:46]Read from MH i2c: E2 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 62 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 62 00 B2 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [13:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:46]wFMCommunicate OK [13:09:46]SAM_PROTO_GetFieldsCounters done [13:09:46]requested_item shift.num is exist - process it [13:09:46]requested_item shift.opened is exist - process it [13:09:46]req_shift_opened [13:09:46]FM_GetShiftState [13:09:46]SAM_PROTO_GetShiftState [13:09:46]wFMCommunicate request_size=4 [13:09:46]MH_SAM_APDU [13:09:46]CAPDU: 80 13 01 00 [13:09:46]Write to MH i2c: E2 08 00 B3 2F 80 13 01 00 00 00 00 00 5F [13:09:46]Write i2c OK [13:09:46]MH_I2C_Read... [13:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:46]Read from MH i2c: E2 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 0E 00 [13:09:46]MH_I2C_Read... [13:09:46]Read from MH i2c: E2 0E 00 B3 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 94 [13:09:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:09:46]wFMCommunicate OK [13:09:46]SAM_PROTO_GetShiftState done [13:09:46]FM_GetShiftState done [13:09:46]req_shift_opened done [13:09:46]requested_item shift.open_date is exist - process it [13:09:46]req_shift_open_date [13:09:46]req_shift_open_date done [13:09:46]produce_requested_data done [13:09:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112220,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:09:46]process_action_free close_receipt [13:09:46]json_value_free [13:09:46]json_value_free done [13:09:46]process_json_proto returns [13:09:46]Send response to host [13:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112220,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:09:46]free response buf [13:09:46]execute_script done [13:09:46]execute_script returns [13:09:46]free content buf [13:09:46]Sock 7.Close socket [13:09:46]Sock 7.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:04]accept exits with 9 [13:11:04]New connection [13:11:04]New thread 3066813796 created [13:11:04]Thread 3066957156 joined [13:11:04]Waiting for new connection... [13:11:04] Sock 9.Parse request [13:11:04]Sock 9.Check first char [13:11:04]Sock 9.First char is OK [13:11:04]request: POST /json_proto HTTP/1.0 [13:11:04]Method: POST [13:11:04]URL: /json_proto [13:11:04]Method is POST - this is cgi request [13:11:04]url: /json_proto [13:11:04]query_string will be loaded in cgi processing [13:11:04]execute_cgi json_proto POST (null) [13:11:04]execute_cgi path=json_proto method=POST [13:11:04]POST find Content-Length [13:11:04]Host: 172.17.59.68:8080 [13:11:04]Content-Length: 805 [13:11:04]Content-Type: application/json [13:11:04] [13:11:04]POST finish read [13:11:04]Found Content-Length = 805 [13:11:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320896", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:04]execute_script... [13:11: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)320896", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:04]POST & json_proto [13:11:04]process_json_proto [13:11:04]json parsed OK: [13:11:04]protocol is kg_v1.0 [13:11:04]action value=close_receipt [13:11:04]process_action close_receipt [13:11:04]cmd_close_receipt [13:11:04]MH_GetDate [13:11:04]Write to MH i2c: F0 00 00 B4 2F D2 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: F0 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: F0 09 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: F0 09 00 B4 2F 00 80 CD 76 66 BC EC 60 65 71 [13:11:04]GetLastDocTimeStamp 1719061806 [13:11:04]current date 1719061888 [13:11:04]FM_GetShiftState [13:11:04]SAM_PROTO_GetShiftState [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 01 00 [13:11:04]Write to MH i2c: E2 08 00 B5 2F 80 13 01 00 00 00 00 00 61 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 B5 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 96 [13:11:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_GetShiftState done [13:11:04]FM_GetShiftState done [13:11:04]opened in 1719020067 [13:11:04]opened+sec_in_day 1719106467 [13:11:04]quantity*price = 50065 [13:11:04]sum+1 = 50067 [13:11:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 87 22.06.2024 13:11 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112221 ФПД: 218337541980747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131128&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112221&fm=218337541980747&tin=02508201610067®Number=0000000000092771&sum=50066 [13:11:06]StoreToDocumentArchive [13:11:06]shift 391 fd 112221 [13:11:06]save to /storage/0391/doc_00112221 [13:11:06]save last doc name /storage/0391/doc_00112221 to /storage/kkm_last_doc_name [13:11:06]save OK [13:11:06]Clear old archive folders... [13:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:06]tlvbuf is B6F56A70 [13:11:06]SAM_PROTO_ClearQueue [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 09 00 00 [13:11:06]Write to MH i2c: E2 08 00 C2 2F 80 09 00 00 00 00 00 00 63 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 C2 2F 00 90 00 65 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_ClearQueue done [13:11:06]KKMCreateOFDPacket [13:11:06]OFDProtocolAddRootSTLVToBuf [13:11:06]FM_MakeSignedData [13:11:06]FM_MakeSignedData [13:11:06]SAM_PROTO_SignData [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 01 02 [13:11:06]Write to MH i2c: E2 08 00 C3 2F 80 0D 01 02 00 00 00 00 6B [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]wFMCommunicate request_size=255 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 80 CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B6 01 00 35 04 06 00 C6 [13:11:06]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 80 CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B6 01 00 35 04 06 00 C6 00 00 85 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]wFMCommunicate request_size=10 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 02 02 05 93 AB A1 82 4B [13:11:06]Write to MH i2c: E2 0D 00 C5 2F 80 0D 02 02 05 00 93 AB A1 82 4B 00 00 24 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 03 02 [13:11:06]Write to MH i2c: E2 08 00 C6 2F 80 0D 03 02 00 00 00 00 70 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0B 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0B 00 C6 2F 00 29 DD D3 83 25 43 58 1F 90 00 AC [13:11:06]RAPDU: 29 DD D3 83 25 43 58 1F 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_SignData done [13:11:06]FM_MakeSignedData done [13:11:06]CreateOFDProtocolMessage [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 11 00 00 [13:11:06]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 17 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [13:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:06]wFMCommunicate OK [13:11:06]CreateOFDProtocolMessage done [13:11:06]OFDSenderStorePacket 112221 [13:11:06]StoreOFDPacket docnum=112221 [13:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 F0 07 01 09 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 80 CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B6 01 00 35 04 06 00 C6 93 AB A1 82 4B 29 DD D3 83 25 43 58 1F [13:11:06]CheckFolder [13:11:06]dirname=/storage/ofd_packets [13:11:06]CheckFolder done [13:11:06]ProducePacketName [13:11:06]name=ofd_packets/00112221 [13:11:06]NVStorageSaveData ofd_packets/00112221 [13:11:06]File name is /storage/ofd_packets/00112221 [13:11:06]Write 301 bytes [13:11:06]NVStorageSaveData done [13:11:06]OFDSenderStorePacket done [13:11:06]KKMCreateOFDPacket done [13:11:06]NVStorageSaveData kkm_last_timestamp [13:11:06]File name is /storage/kkm_last_timestamp [13:11:06]Write 4 bytes [13:11:06]NVStorageSaveData done [13:11:06]ExternCall_PrintAddStr [13:11:06]wPrintStart [13:11:06]Write to MH i2c: 01 00 00 C8 2F F7 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 07 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: 01 07 00 C8 2F 00 00 00 00 00 FF 0F 0C [13:11:06]RasterBufferAndPrint [13:11:06]line Счет N : (1)320896 [13:11:06]line ИНН: 02508201610067 [13:11:06]line Контрольно-Кассовый Чек [13:11:06]line ПРОДАЖА [13:11:06]line ТРК (МРК, ГНК) : 11 [13:11:06]line Товар: 2710124130 [13:11:06]line Аи-92-К-5 [13:11:06]line 7.540 * 66.40 [13:11:06]line = 500.66 [13:11:06]line НДС 12% НСП 1% [13:11:06]line > о реализуемом товаре [13:11:06]line ИТОГО: 500.66 [13:11:06]line НСП 1% : 4.43 [13:11:06]line НДС 12% : 53.17 [13:11:06]line Наличными: 0.00 [13:11:06]line Безнал.: 500.66 [13:11:06]line Место: АЗС № 65 "Партнер Нефть" [13:11:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:11:06]line СНО: Общий режим [13:11:06]line Чек 87 22.06.2024 13:11 [13:11:06]line Смена: 391 ФФД: 1.0 [13:11:06]line ЗНМ: 0300000198 [13:11:06]line РНМ: 0000000000092771 [13:11:06]line Версия ККМ: 001 [13:11:06]line Платежная система: О! деньги [13:11:06]line ФМ: 0000000000875083 [13:11:06]line ФД: 112221 [13:11:06]line ФПД: 218337541980747 [13:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131128&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112221&fm=218337541980747&tin=02508201610067®Number=0000000000092771&sum=50066 [13:11:06]written 0, free lines is 4095 [13:11:06]OFD Sender: Processing packet 112221 [packets to send 38, broken 37] [13:11:06]ProducePacketName [13:11:06]name=ofd_packets/00112221 [13:11:06]OFD Sender: To server: pG, [13:11:06]CommunicateWithHost lk.salyk.kg:30040 [13:11:06]ConnectInit lk.salyk.kg [13:11:06]Connected sock=10 [13:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 F0 07 01 09 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 80 CD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B6 01 00 35 04 06 00 C6 93 AB A1 82 4B 29 DD D3 83 25 43 58 1F [13:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 35 47 00 26 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B6 01 00 F4 03 04 00 8C 64 76 66 B6 04 01 00 00 3D EB 48 EB F1 AE 2A 33 [13:11:07]CommunicateWithHost err = 0 [13:11:07]CheckOFDResponse [13:11:07]1017 (14) - 77093643461234 [13:11:07]1041 (16) - 0000000000875083 [13:11:07]1040 (4) - 112221 [13:11:07]1012 (4) - 22.06.2024 05:43 [13:11:07]1206 (1) - 0 [13:11:07]OFD Sender: Remove packet 112221 [13:11:07]ProducePacketName [13:11:07]name=ofd_packets/00112221 [13:11:07]NVStorageDeleteData [13:11:07]Write to MH i2c: 01 00 00 F2 2F 21 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 F1 0C 25 [13:11:07]RasterBufferAndPrint [13:11:07]line [13:11:07]line [13:11:07]line [13:11:07]line [13:11:07]line [13:11:07]written 0, free lines is 3319 [13:11:07]MH_Cut [13:11:07]Write to MH i2c: D1 01 00 F9 2F 01 FA [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: D1 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: D1 01 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: D1 01 00 F9 2F 00 F9 [13:11:07]Write to MH i2c: 01 00 00 FA 2F 29 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]OFD Sender: No OFD packet to send [13:11:08]*** Cut start [13:11:08]*** Partial cut [13:11:08]*** CUTSNS_PIN = 1 [13:11:08]*** CUTSNS_PIN = 0 [13:11:08]*** Brake cut motor [13:11:08]Read from MH i2c: 01 [13:11:08]MH_I2C_Read... [13:11:08]*** Stop cut motor [13:11:08]*** Cut end [13:11:08]Read from MH i2c: 01 07 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 FA 2F 00 00 00 00 00 FF 0F 3E [13:11:08]process_action close_receipt done [13:11:08]requested_data is exist [13:11:08]produce_requested_data [13:11:08]requested_item fm.sn is exist - process it [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 11 00 00 [13:11:08]Write to MH i2c: E2 08 00 FB 2F 80 11 00 00 00 00 00 00 A4 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 17 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 17 00 FB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [13:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:11:08]wFMCommunicate OK [13:11:08]requested_item fd.num is exist - process it [13:11:08]SAM_PROTO_GetFieldsCounters [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 13 00 00 [13:11:08]Write to MH i2c: E2 08 00 FC 2F 80 13 00 00 00 00 00 00 A7 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 62 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 62 00 FC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [13:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:08]wFMCommunicate OK [13:11:08]SAM_PROTO_GetFieldsCounters done [13:11:08]requested_item shift.num is exist - process it [13:11:08]requested_item shift.opened is exist - process it [13:11:08]req_shift_opened [13:11:08]FM_GetShiftState [13:11:08]SAM_PROTO_GetShiftState [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 13 01 00 [13:11:08]Write to MH i2c: E2 08 00 FD 2F 80 13 01 00 00 00 00 00 A9 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 0E 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 0E 00 FD 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DE [13:11:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:11:08]wFMCommunicate OK [13:11:08]SAM_PROTO_GetShiftState done [13:11:08]FM_GetShiftState done [13:11:08]req_shift_opened done [13:11:08]requested_item shift.open_date is exist - process it [13:11:08]req_shift_open_date [13:11:08]req_shift_open_date done [13:11:08]produce_requested_data done [13:11:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112221,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:11:08]process_action_free close_receipt [13:11:08]json_value_free [13:11:08]json_value_free done [13:11:08]process_json_proto returns [13:11:08]Send response to host [13:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112221,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:11:08]free response buf [13:11:08]execute_script done [13:11:08]execute_script returns [13:11:08]free content buf [13:11:08]Sock 9.Close socket [13:11:08]Sock 9.Thread stoped [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:16]accept exits with 7 [13:13:16]New connection [13:13:16]New thread 3066957156 created [13:13:16]Thread 3066813796 joined [13:13:16]Waiting for new connection... [13:13:16] Sock 7.Parse request [13:13:16]Sock 7.Check first char [13:13:16]Sock 7.First char is OK [13:13:16]request: POST /json_proto HTTP/1.0 [13:13:16]Method: POST [13:13:16]URL: /json_proto [13:13:16]Method is POST - this is cgi request [13:13:16]url: /json_proto [13:13:16]query_string will be loaded in cgi processing [13:13:16]execute_cgi json_proto POST (null) [13:13:16]execute_cgi path=json_proto method=POST [13:13:16]POST find Content-Length [13:13:16]Host: 172.17.59.68:8080 [13:13:16]Content-Length: 805 [13:13:16]Content-Type: application/json [13:13:16] [13:13:16]POST finish read [13:13:16]Found Content-Length = 805 [13:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320897", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:16]execute_script... [13:13: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)320897", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:16]POST & json_proto [13:13:16]process_json_proto [13:13:16]json parsed OK: [13:13:16]protocol is kg_v1.0 [13:13:16]action value=close_receipt [13:13:16]process_action close_receipt [13:13:16]cmd_close_receipt [13:13:16]MH_GetDate [13:13:16]Write to MH i2c: F0 00 00 FE 2F 1C [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: F0 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: F0 09 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: F0 09 00 FE 2F 00 04 CE 76 66 BC EC 60 65 40 [13:13:16]GetLastDocTimeStamp 1719061888 [13:13:16]current date 1719062020 [13:13:16]FM_GetShiftState [13:13:16]SAM_PROTO_GetShiftState [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 13 01 00 [13:13:16]Write to MH i2c: E2 08 00 FF 2F 80 13 01 00 00 00 00 00 AB [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 0E 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 0E 00 FF 2F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E0 [13:13:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:13:16]wFMCommunicate OK [13:13:16]SAM_PROTO_GetShiftState done [13:13:16]FM_GetShiftState done [13:13:16]opened in 1719020067 [13:13:16]opened+sec_in_day 1719106467 [13:13:16]quantity*price = 50065 [13:13:16]sum+1 = 50067 [13:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 88 22.06.2024 13:13 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112222 ФПД: 90635075890503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112222&fm=90635075890503&tin=02508201610067®Number=0000000000092771&sum=50066 [13:13:17]StoreToDocumentArchive [13:13:17]shift 391 fd 112222 [13:13:17]save to /storage/0391/doc_00112222 [13:13:17]save last doc name /storage/0391/doc_00112222 to /storage/kkm_last_doc_name [13:13:17]save OK [13:13:17]Clear old archive folders... [13:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:17]tlvbuf is B6EA99E0 [13:13:17]SAM_PROTO_ClearQueue [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 09 00 00 [13:13:17]Write to MH i2c: E2 08 00 0C 30 80 09 00 00 00 00 00 00 AE [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 03 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 03 00 0C 30 00 90 00 B0 [13:13:17]RAPDU: 90 00 [13:13:17]wFMCommunicate OK [13:13:17]SAM_PROTO_ClearQueue done [13:13:17]KKMCreateOFDPacket [13:13:17]OFDProtocolAddRootSTLVToBuf [13:13:17]FM_MakeSignedData [13:13:17]FM_MakeSignedData [13:13:17]SAM_PROTO_SignData [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 0D 01 02 [13:13:17]Write to MH i2c: E2 08 00 0D 30 80 0D 01 02 00 00 00 00 B6 [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 03 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [13:13:17]RAPDU: 90 00 [13:13:17]wFMCommunicate OK [13:13:17]wFMCommunicate request_size=255 [13:13:17]MH_SAM_APDU [13:13: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B6 01 00 35 04 06 00 52 [13:13:17]Write to MH i2c: E2 02 01 0E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B6 01 00 35 04 06 00 52 00 00 E3 [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:18]Read from MH i2c: E2 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 03 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [13:13:18]RAPDU: 90 00 [13:13:18]wFMCommunicate OK [13:13:18]wFMCommunicate request_size=10 [13:13:18]MH_SAM_APDU [13:13:18]CAPDU: 80 0D 02 02 05 6E 9F 80 AD 47 [13:13:18]Write to MH i2c: E2 0D 00 0F 30 80 0D 02 02 05 00 6E 9F 80 AD 47 00 00 44 [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:18]Read from MH i2c: E2 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 03 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [13:13:18]RAPDU: 90 00 [13:13:18]wFMCommunicate OK [13:13:18]wFMCommunicate request_size=4 [13:13:18]MH_SAM_APDU [13:13:18]CAPDU: 80 0D 03 02 [13:13:18]Write to MH i2c: E2 08 00 10 30 80 0D 03 02 00 00 00 00 BB [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:18]Read from MH i2c: E2 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 0B 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 0B 00 10 30 00 D1 3B A9 4A EE 2A 38 F1 90 00 FC [13:13:18]RAPDU: D1 3B A9 4A EE 2A 38 F1 90 00 [13:13:18]wFMCommunicate OK [13:13:18]SAM_PROTO_SignData done [13:13:18]FM_MakeSignedData done [13:13:18]CreateOFDProtocolMessage [13:13:18]wFMCommunicate request_size=4 [13:13:18]MH_SAM_APDU [13:13:18]CAPDU: 80 11 00 00 [13:13:18]Write to MH i2c: E2 08 00 11 30 80 11 00 00 00 00 00 00 BB [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:18]Read from MH i2c: E2 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 17 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 17 00 11 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [13:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:18]wFMCommunicate OK [13:13:18]CreateOFDProtocolMessage done [13:13:18]OFDSenderStorePacket 112222 [13:13:18]StoreOFDPacket docnum=112222 [13:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 5C 07 01 61 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B6 01 00 35 04 06 00 52 6E 9F 80 AD 47 D1 3B A9 4A EE 2A 38 F1 [13:13:18]CheckFolder [13:13:18]dirname=/storage/ofd_packets [13:13:18]CheckFolder done [13:13:18]ProducePacketName [13:13:18]name=ofd_packets/00112222 [13:13:18]NVStorageSaveData ofd_packets/00112222 [13:13:18]File name is /storage/ofd_packets/00112222 [13:13:18]Write 301 bytes [13:13:18]NVStorageSaveData done [13:13:18]OFDSenderStorePacket done [13:13:18]KKMCreateOFDPacket done [13:13:18]NVStorageSaveData kkm_last_timestamp [13:13:18]File name is /storage/kkm_last_timestamp [13:13:18]Write 4 bytes [13:13:18]NVStorageSaveData done [13:13:18]ExternCall_PrintAddStr [13:13:18]wPrintStart [13:13:18]Write to MH i2c: 01 00 00 12 30 42 [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: 01 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: 01 07 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: 01 07 00 12 30 00 00 00 00 00 FF 0F 57 [13:13:18]RasterBufferAndPrint [13:13:18]line Счет N : (1)320897 [13:13:18]line ИНН: 02508201610067 [13:13:18]line Контрольно-Кассовый Чек [13:13:18]line ПРОДАЖА [13:13:18]line ТРК (МРК, ГНК) : 11 [13:13:18]line Товар: 2710124130 [13:13:18]line Аи-92-К-5 [13:13:18]line 7.540 * 66.40 [13:13:18]line = 500.66 [13:13:18]line НДС 12% НСП 1% [13:13:18]line > о реализуемом товаре [13:13:18]line ИТОГО: 500.66 [13:13:18]line НСП 1% : 4.43 [13:13:18]line НДС 12% : 53.17 [13:13:18]line Наличными: 0.00 [13:13:18]line Безнал.: 500.66 [13:13:18]line Место: АЗС № 65 "Партнер Нефть" [13:13:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:13:18]line СНО: Общий режим [13:13:18]line Чек 88 22.06.2024 13:13 [13:13:18]line Смена: 391 ФФД: 1.0 [13:13:18]line ЗНМ: 0300000198 [13:13:18]line РНМ: 0000000000092771 [13:13:18]line Версия ККМ: 001 [13:13:18]line Платежная система: О! деньги [13:13:18]line ФМ: 0000000000875083 [13:13:18]line ФД: 112222 [13:13:18]line ФПД: 90635075890503 [13:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112222&fm=90635075890503&tin=02508201610067®Number=0000000000092771&sum=50066 [13:13:18]OFD Sender: Processing packet 112222 [packets to send 38, broken 37] [13:13:18]ProducePacketName [13:13:18]name=ofd_packets/00112222 [13:13:18]OFD Sender: To server: pG, [13:13:18]CommunicateWithHost lk.salyk.kg:30040 [13:13:18]ConnectInit lk.salyk.kg [13:13:18]written 0, free lines is 4095 [13:13:18]Connected sock=10 [13:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 5C 07 01 61 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 04 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B6 01 00 35 04 06 00 52 6E 9F 80 AD 47 D1 3B A9 4A EE 2A 38 F1 [13:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 87 31 47 00 F9 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B6 01 00 F4 03 04 00 10 65 76 66 B6 04 01 00 00 45 B4 9E 8A 9A AD 74 B0 [13:13:19]CommunicateWithHost err = 0 [13:13:19]CheckOFDResponse [13:13:19]1017 (14) - 77093643461234 [13:13:19]1041 (16) - 0000000000875083 [13:13:19]1040 (4) - 112222 [13:13:19]1012 (4) - 22.06.2024 05:45 [13:13:19]1206 (1) - 0 [13:13:19]OFD Sender: Remove packet 112222 [13:13:19]ProducePacketName [13:13:19]name=ofd_packets/00112222 [13:13:19]NVStorageDeleteData [13:13:19]Write to MH i2c: 01 00 00 3C 30 6C [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 3C 30 00 00 00 00 00 F5 0C 74 [13:13:19]RasterBufferAndPrint [13:13:19]line [13:13:19]line [13:13:19]line [13:13:19]line [13:13:19]line [13:13:19]written 0, free lines is 3324 [13:13:19]MH_Cut [13:13:19]Write to MH i2c: D1 01 00 43 30 01 45 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: D1 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: D1 01 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: D1 01 00 43 30 00 44 [13:13:19]Write to MH i2c: 01 00 00 44 30 74 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]OFD Sender: No OFD packet to send [13:13:19]*** Cut start [13:13:19]*** Partial cut [13:13:19]*** CUTSNS_PIN = 1 [13:13:20]*** CUTSNS_PIN = 0 [13:13:20]*** Brake cut motor [13:13:20]Read from MH i2c: 01 [13:13:20]MH_I2C_Read... [13:13:20]*** Stop cut motor [13:13:20]*** Cut end [13:13:20]Read from MH i2c: 01 07 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: 01 07 00 44 30 00 00 00 00 00 FF 0F 89 [13:13:20]process_action close_receipt done [13:13:20]requested_data is exist [13:13:20]produce_requested_data [13:13:20]requested_item fm.sn is exist - process it [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 11 00 00 [13:13:20]Write to MH i2c: E2 08 00 45 30 80 11 00 00 00 00 00 00 EF [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 17 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 17 00 45 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [13:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:20]wFMCommunicate OK [13:13:20]requested_item fd.num is exist - process it [13:13:20]SAM_PROTO_GetFieldsCounters [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 13 00 00 [13:13:20]Write to MH i2c: E2 08 00 46 30 80 13 00 00 00 00 00 00 F2 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 62 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 62 00 46 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [13:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetFieldsCounters done [13:13:20]requested_item shift.num is exist - process it [13:13:20]requested_item shift.opened is exist - process it [13:13:20]req_shift_opened [13:13:20]FM_GetShiftState [13:13:20]SAM_PROTO_GetShiftState [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 13 01 00 [13:13:20]Write to MH i2c: E2 08 00 47 30 80 13 01 00 00 00 00 00 F4 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 47 30 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 29 [13:13:20]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetShiftState done [13:13:20]FM_GetShiftState done [13:13:20]req_shift_opened done [13:13:20]requested_item shift.open_date is exist - process it [13:13:20]req_shift_open_date [13:13:20]req_shift_open_date done [13:13:20]produce_requested_data done [13:13:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112222,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:13:20]process_action_free close_receipt [13:13:20]json_value_free [13:13:20]json_value_free done [13:13:20]process_json_proto returns [13:13:20]Send response to host [13:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112222,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:13:20]free response buf [13:13:20]execute_script done [13:13:20]execute_script returns [13:13:20]free content buf [13:13:20]Sock 7.Close socket [13:13:20]Sock 7.Thread stoped [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:56]accept exits with 9 [13:13:56]New connection [13:13:56]New thread 3066813796 created [13:13:56]Thread 3066957156 joined [13:13:56]Waiting for new connection... [13:13:56] Sock 9.Parse request [13:13:56]Sock 9.Check first char [13:13:56]Sock 9.First char is OK [13:13:56]request: POST /json_proto HTTP/1.0 [13:13:56]Method: POST [13:13:56]URL: /json_proto [13:13:56]Method is POST - this is cgi request [13:13:56]url: /json_proto [13:13:56]query_string will be loaded in cgi processing [13:13:56]execute_cgi json_proto POST (null) [13:13:56]execute_cgi path=json_proto method=POST [13:13:56]POST find Content-Length [13:13:56]Host: 172.17.59.68:8080 [13:13:56]Content-Length: 677 [13:13:56]Content-Type: application/json [13:13:56] [13:13:56]POST finish read [13:13:56]Found Content-Length = 677 [13:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320898", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:13:56]execute_script... [13:13: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)320898", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:13:56]POST & json_proto [13:13:56]process_json_proto [13:13:56]json parsed OK: [13:13:56]protocol is kg_v1.0 [13:13:56]action value=close_receipt [13:13:56]process_action close_receipt [13:13:56]cmd_close_receipt [13:13:56]MH_GetDate [13:13:56]Write to MH i2c: F0 00 00 48 30 67 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 09 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 09 00 48 30 00 2C CE 76 66 BC EC 60 65 B3 [13:13:56]GetLastDocTimeStamp 1719062020 [13:13:56]current date 1719062060 [13:13:56]FM_GetShiftState [13:13:56]SAM_PROTO_GetShiftState [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 13 01 00 [13:13:56]Write to MH i2c: E2 08 00 49 30 80 13 01 00 00 00 00 00 F6 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 0E 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 0E 00 49 30 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2B [13:13:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:13:56]wFMCommunicate OK [13:13:56]SAM_PROTO_GetShiftState done [13:13:56]FM_GetShiftState done [13:13:56]opened in 1719020067 [13:13:56]opened+sec_in_day 1719106467 [13:13:56]quantity*price = 30012 [13:13:56]sum+1 = 30014 [13:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 89 22.06.2024 13:14 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112223 ФПД: 96629405285944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131420&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112223&fm=96629405285944&tin=02508201610067®Number=0000000000092771&sum=30000 [13:13:57]StoreToDocumentArchive [13:13:57]shift 391 fd 112223 [13:13:57]save to /storage/0391/doc_00112223 [13:13:57]save last doc name /storage/0391/doc_00112223 to /storage/kkm_last_doc_name [13:13:57]save OK [13:13:57]Clear old archive folders... [13:13:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:57]tlvbuf is 00051400 [13:13:57]SAM_PROTO_ClearQueue [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 09 00 00 [13:13:57]Write to MH i2c: E2 08 00 56 30 80 09 00 00 00 00 00 00 F8 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 56 30 00 90 00 FA [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]SAM_PROTO_ClearQueue done [13:13:57]KKMCreateOFDPacket [13:13:57]OFDProtocolAddRootSTLVToBuf [13:13:57]FM_MakeSignedData [13:13:57]FM_MakeSignedData [13:13:57]SAM_PROTO_SignData [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 01 02 [13:13:57]Write to MH i2c: E2 08 00 57 30 80 0D 01 02 00 00 00 00 00 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=255 [13:13:57]MH_SAM_APDU [13:13: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B6 01 00 35 04 06 00 57 [13:13:57]Write to MH i2c: E2 02 01 58 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B6 01 00 35 04 06 00 57 00 00 76 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 58 30 00 90 00 FC [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=10 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 02 02 05 E2 49 60 7E 38 [13:13:57]Write to MH i2c: E2 0D 00 59 30 80 0D 02 02 05 00 E2 49 60 7E 38 00 00 4E [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 59 30 00 90 00 FD [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 03 02 [13:13:57]Write to MH i2c: E2 08 00 5A 30 80 0D 03 02 00 00 00 00 05 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 0B 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 0B 00 5A 30 00 36 A2 BC 90 9D C5 1D 96 90 00 3F [13:13:58]RAPDU: 36 A2 BC 90 9D C5 1D 96 90 00 [13:13:58]wFMCommunicate OK [13:13:58]SAM_PROTO_SignData done [13:13:58]FM_MakeSignedData done [13:13:58]CreateOFDProtocolMessage [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 11 00 00 [13:13:58]Write to MH i2c: E2 08 00 5B 30 80 11 00 00 00 00 00 00 05 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 17 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 17 00 5B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [13:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:58]wFMCommunicate OK [13:13:58]CreateOFDProtocolMessage done [13:13:58]OFDSenderStorePacket 112223 [13:13:58]StoreOFDPacket docnum=112223 [13:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 EA 07 01 57 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B6 01 00 35 04 06 00 57 E2 49 60 7E 38 36 A2 BC 90 9D C5 1D 96 [13:13:58]CheckFolder [13:13:58]dirname=/storage/ofd_packets [13:13:58]CheckFolder done [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00112223 [13:13:58]NVStorageSaveData ofd_packets/00112223 [13:13:58]File name is /storage/ofd_packets/00112223 [13:13:58]Write 301 bytes [13:13:58]NVStorageSaveData done [13:13:58]OFDSenderStorePacket done [13:13:58]KKMCreateOFDPacket done [13:13:58]NVStorageSaveData kkm_last_timestamp [13:13:58]File name is /storage/kkm_last_timestamp [13:13:58]Write 4 bytes [13:13:58]NVStorageSaveData done [13:13:58]ExternCall_PrintAddStr [13:13:58]wPrintStart [13:13:58]Write to MH i2c: 01 00 00 5C 30 8C [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 5C 30 00 00 00 00 00 FF 0F A1 [13:13:58]RasterBufferAndPrint [13:13:58]line Счет N : (1)320898 [13:13:58]line ИНН: 02508201610067 [13:13:58]line Контрольно-Кассовый Чек [13:13:58]line ПРОДАЖА [13:13:58]line ТРК (МРК, ГНК) : 11 [13:13:58]line Товар: 2710124130 [13:13:58]line Аи-92-К-5 [13:13:58]line 4.520 * 66.40 [13:13:58]line = 300.13 [13:13:58]line НДС 12% НСП 1% [13:13:58]line > о реализуемом товаре [13:13:58]line ОКРУГЛЕНИЕ: -0.13 [13:13:58]line ИТОГО: 300.00 [13:13:58]line Внесено: 300.00 [13:13:58]line СДАЧА: 0.00 [13:13:58]line НСП 1% : 2.66 [13:13:58]line НДС 12% : 31.87 [13:13:58]line Наличными: 300.00 [13:13:58]line Безнал.: 0.00 [13:13:58]line Место: АЗС № 65 "Партнер Нефть" [13:13:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:13:58]line СНО: Общий режим [13:13:58]line Чек 89 22.06.2024 13:14 [13:13:58]line Смена: 391 ФФД: 1.0 [13:13:58]line ЗНМ: 0300000198 [13:13:58]line РНМ: 0000000000092771 [13:13:58]line Версия ККМ: 001 [13:13:58]line ФМ: 0000000000875083 [13:13:58]line ФД: 112223 [13:13:58]line ФПД: 96629405285944 [13:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131420&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112223&fm=96629405285944&tin=02508201610067®Number=0000000000092771&sum=30000 [13:13:58]OFD Sender: Processing packet 112223 [packets to send 38, broken 37] [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00112223 [13:13:58]OFD Sender: To server: pG, [13:13:58]CommunicateWithHost lk.salyk.kg:30040 [13:13:58]ConnectInit lk.salyk.kg [13:13:58]written 0, free lines is 4095 [13:13:58]Connected sock=10 [13:13:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 EA 07 01 57 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B6 01 00 35 04 06 00 57 E2 49 60 7E 38 36 A2 BC 90 9D C5 1D 96 [13:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F7 4D 47 00 12 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B6 01 00 F4 03 04 00 37 65 76 66 B6 04 01 00 00 F4 38 C2 39 FB 9A 27 11 [13:13:58]CommunicateWithHost err = 0 [13:13:58]CheckOFDResponse [13:13:58]1017 (14) - 77093643461234 [13:13:58]1041 (16) - 0000000000875083 [13:13:58]1040 (4) - 112223 [13:13:58]1012 (4) - 22.06.2024 05:46 [13:13:58]1206 (1) - 0 [13:13:58]OFD Sender: Remove packet 112223 [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00112223 [13:13:58]NVStorageDeleteData [13:13:58]Write to MH i2c: 01 00 00 87 30 B7 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 87 30 00 00 00 00 00 F2 0C BC [13:13:58]RasterBufferAndPrint [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]written 0, free lines is 3320 [13:13:58]MH_Cut [13:13:58]Write to MH i2c: D1 01 00 8E 30 01 90 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 01 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 01 00 8E 30 00 8F [13:13:58]Write to MH i2c: 01 00 00 8F 30 BF [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:59]OFD Sender: No OFD packet to send [13:13:59]*** Cut start [13:13:59]*** Partial cut [13:13:59]*** CUTSNS_PIN = 1 [13:13:59]*** CUTSNS_PIN = 0 [13:13:59]*** Brake cut motor [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]*** Stop cut motor [13:14:00]*** Cut end [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 8F 30 00 00 00 00 00 FF 0F D4 [13:14:00]process_action close_receipt done [13:14:00]requested_data is exist [13:14:00]produce_requested_data [13:14:00]requested_item fm.sn is exist - process it [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 11 00 00 [13:14:00]Write to MH i2c: E2 08 00 90 30 80 11 00 00 00 00 00 00 3A [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 90 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [13:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:14:00]wFMCommunicate OK [13:14:00]requested_item fd.num is exist - process it [13:14:00]SAM_PROTO_GetFieldsCounters [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 00 00 [13:14:00]Write to MH i2c: E2 08 00 91 30 80 13 00 00 00 00 00 00 3D [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 91 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetFieldsCounters done [13:14:00]requested_item shift.num is exist - process it [13:14:00]requested_item shift.opened is exist - process it [13:14:00]req_shift_opened [13:14:00]FM_GetShiftState [13:14:00]SAM_PROTO_GetShiftState [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 01 00 [13:14:00]Write to MH i2c: E2 08 00 92 30 80 13 01 00 00 00 00 00 3F [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 92 30 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 74 [13:14:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetShiftState done [13:14:00]FM_GetShiftState done [13:14:00]req_shift_opened done [13:14:00]requested_item shift.open_date is exist - process it [13:14:00]req_shift_open_date [13:14:00]req_shift_open_date done [13:14:00]produce_requested_data done [13:14:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112223,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:14:00]process_action_free close_receipt [13:14:00]json_value_free [13:14:00]json_value_free done [13:14:00]process_json_proto returns [13:14:00]Send response to host [13:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112223,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:14:00]free response buf [13:14:00]execute_script done [13:14:00]execute_script returns [13:14:00]free content buf [13:14:00]Sock 9.Close socket [13:14:00]Sock 9.Thread stoped [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:00]accept exits with 7 [13:15:00]New connection [13:15:00]New thread 3066957156 created [13:15:00]Thread 3066813796 joined [13:15:00]Waiting for new connection... [13:15:00] Sock 7.Parse request [13:15:00]Sock 7.Check first char [13:15:00]Sock 7.First char is OK [13:15:00]request: POST /json_proto HTTP/1.0 [13:15:00]Method: POST [13:15:00]URL: /json_proto [13:15:00]Method is POST - this is cgi request [13:15:00]url: /json_proto [13:15:00]query_string will be loaded in cgi processing [13:15:00]execute_cgi json_proto POST (null) [13:15:00]execute_cgi path=json_proto method=POST [13:15:00]POST find Content-Length [13:15:00]Host: 172.17.59.68:8080 [13:15:00]Content-Length: 682 [13:15:00]Content-Type: application/json [13:15:00] [13:15:00]POST finish read [13:15:00]Found Content-Length = 682 [13:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320899", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:00]execute_script... [13:15: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)320899", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:00]POST & json_proto [13:15:00]process_json_proto [13:15:00]json parsed OK: [13:15:00]protocol is kg_v1.0 [13:15:00]action value=close_receipt [13:15:00]process_action close_receipt [13:15:00]cmd_close_receipt [13:15:00]MH_GetDate [13:15:00]Write to MH i2c: F0 00 00 93 30 B2 [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: F0 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: F0 09 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: F0 09 00 93 30 00 6C CE 76 66 BC EC 60 65 3E [13:15:00]GetLastDocTimeStamp 1719062060 [13:15:00]current date 1719062124 [13:15:00]FM_GetShiftState [13:15:00]SAM_PROTO_GetShiftState [13:15:00]wFMCommunicate request_size=4 [13:15:00]MH_SAM_APDU [13:15:00]CAPDU: 80 13 01 00 [13:15:00]Write to MH i2c: E2 08 00 94 30 80 13 01 00 00 00 00 00 41 [13:15:00]Write i2c OK [13:15:00]MH_I2C_Read... [13:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:00]Read from MH i2c: E2 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 0E 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 0E 00 94 30 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 76 [13:15:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:15:00]wFMCommunicate OK [13:15:00]SAM_PROTO_GetShiftState done [13:15:00]FM_GetShiftState done [13:15:00]opened in 1719020067 [13:15:00]opened+sec_in_day 1719106467 [13:15:00]quantity*price = 100064 [13:15:00]sum+1 = 100066 [13:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 90 22.06.2024 13:15 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112224 ФПД: 154482600852835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131524&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112224&fm=154482600852835&tin=02508201610067®Number=0000000000092771&sum=100000 [13:15:01]StoreToDocumentArchive [13:15:01]shift 391 fd 112224 [13:15:01]save to /storage/0391/doc_00112224 [13:15:01]save last doc name /storage/0391/doc_00112224 to /storage/kkm_last_doc_name [13:15:01]save OK [13:15:01]Clear old archive folders... [13:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:01]tlvbuf is 012112F0 [13:15:01]SAM_PROTO_ClearQueue [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 09 00 00 [13:15:01]Write to MH i2c: E2 08 00 A1 30 80 09 00 00 00 00 00 00 43 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 A1 30 00 90 00 45 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]SAM_PROTO_ClearQueue done [13:15:01]KKMCreateOFDPacket [13:15:01]OFDProtocolAddRootSTLVToBuf [13:15:01]FM_MakeSignedData [13:15:01]FM_MakeSignedData [13:15:01]SAM_PROTO_SignData [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 01 02 [13:15:01]Write to MH i2c: E2 08 00 A2 30 80 0D 01 02 00 00 00 00 4B [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 A2 30 00 90 00 46 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=255 [13:15:01]MH_SAM_APDU [13:15: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B6 01 00 35 04 06 00 8C [13:15:01]Write to MH i2c: E2 02 01 A3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B6 01 00 35 04 06 00 8C 00 00 EA [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 A3 30 00 90 00 47 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=10 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 02 02 05 80 48 8C 3D 63 [13:15:01]Write to MH i2c: E2 0D 00 A4 30 80 0D 02 02 05 00 80 48 8C 3D 63 00 00 4C [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 03 00 A4 30 00 90 00 48 [13:15:01]RAPDU: 90 00 [13:15:01]wFMCommunicate OK [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 0D 03 02 [13:15:01]Write to MH i2c: E2 08 00 A5 30 80 0D 03 02 00 00 00 00 50 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 0B 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 0B 00 A5 30 00 9B 8E 46 E8 F8 4B 2B 8F 90 00 A5 [13:15:01]RAPDU: 9B 8E 46 E8 F8 4B 2B 8F 90 00 [13:15:01]wFMCommunicate OK [13:15:01]SAM_PROTO_SignData done [13:15:01]FM_MakeSignedData done [13:15:01]CreateOFDProtocolMessage [13:15:01]wFMCommunicate request_size=4 [13:15:01]MH_SAM_APDU [13:15:01]CAPDU: 80 11 00 00 [13:15:01]Write to MH i2c: E2 08 00 A6 30 80 11 00 00 00 00 00 00 50 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:01]Read from MH i2c: E2 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 17 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: E2 17 00 A6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [13:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:15:01]wFMCommunicate OK [13:15:01]CreateOFDProtocolMessage done [13:15:01]OFDSenderStorePacket 112224 [13:15:01]StoreOFDPacket docnum=112224 [13:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 74 07 01 E5 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B6 01 00 35 04 06 00 8C 80 48 8C 3D 63 9B 8E 46 E8 F8 4B 2B 8F [13:15:01]CheckFolder [13:15:01]dirname=/storage/ofd_packets [13:15:01]CheckFolder done [13:15:01]ProducePacketName [13:15:01]name=ofd_packets/00112224 [13:15:01]NVStorageSaveData ofd_packets/00112224 [13:15:01]File name is /storage/ofd_packets/00112224 [13:15:01]Write 301 bytes [13:15:01]NVStorageSaveData done [13:15:01]OFDSenderStorePacket done [13:15:01]KKMCreateOFDPacket done [13:15:01]NVStorageSaveData kkm_last_timestamp [13:15:01]File name is /storage/kkm_last_timestamp [13:15:01]Write 4 bytes [13:15:01]NVStorageSaveData done [13:15:01]ExternCall_PrintAddStr [13:15:01]wPrintStart [13:15:01]Write to MH i2c: 01 00 00 A7 30 D7 [13:15:01]Write i2c OK [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 07 00 [13:15:01]MH_I2C_Read... [13:15:01]Read from MH i2c: 01 07 00 A7 30 00 00 00 00 00 FF 0F EC [13:15:01]RasterBufferAndPrint [13:15:01]line Счет N : (1)320899 [13:15:01]line ИНН: 02508201610067 [13:15:01]line Контрольно-Кассовый Чек [13:15:01]line ПРОДАЖА [13:15:01]line ТРК (МРК, ГНК) : 11 [13:15:01]line Товар: 2710124130 [13:15:01]line Аи-92-К-5 [13:15:01]line 15.070 * 66.40 [13:15:01]line = 1000.65 [13:15:01]line НДС 12% НСП 1% [13:15:01]line > о реализуемом товаре [13:15:01]line ОКРУГЛЕНИЕ: -0.65 [13:15:01]line ИТОГО: 1000.00 [13:15:01]line Внесено: 1000.00 [13:15:01]line СДАЧА: 0.00 [13:15:01]line НСП 1% : 8.85 [13:15:01]line НДС 12% : 106.26 [13:15:01]line Наличными: 1000.00 [13:15:01]line Безнал.: 0.00 [13:15:01]line Место: АЗС № 65 "Партнер Нефть" [13:15:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:15:01]line СНО: Общий режим [13:15:01]line Чек 90 22.06.2024 13:15 [13:15:01]line Смена: 391 ФФД: 1.0 [13:15:01]line ЗНМ: 0300000198 [13:15:01]line РНМ: 0000000000092771 [13:15:01]line Версия ККМ: 001 [13:15:01]line ФМ: 0000000000875083 [13:15:01]line ФД: 112224 [13:15:01]line ФПД: 154482600852835 [13:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131524&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112224&fm=154482600852835&tin=02508201610067®Number=0000000000092771&sum=100000 [13:15:02]OFD Sender: Processing packet 112224 [packets to send 38, broken 37] [13:15:02]ProducePacketName [13:15:02]name=ofd_packets/00112224 [13:15:02]OFD Sender: To server: pG, [13:15:02]CommunicateWithHost lk.salyk.kg:30040 [13:15:02]ConnectInit lk.salyk.kg [13:15:02]written 0, free lines is 4095 [13:15:02]Connected sock=10 [13:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 74 07 01 E5 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6C CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B6 01 00 35 04 06 00 8C 80 48 8C 3D 63 9B 8E 46 E8 F8 4B 2B 8F [13:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 99 04 47 00 0B D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B6 01 00 F4 03 04 00 77 65 76 66 B6 04 01 00 00 F7 A2 83 E6 32 67 E1 79 [13:15:02]CommunicateWithHost err = 0 [13:15:02]CheckOFDResponse [13:15:02]1017 (14) - 77093643461234 [13:15:02]1041 (16) - 0000000000875083 [13:15:02]1040 (4) - 112224 [13:15:02]1012 (4) - 22.06.2024 05:47 [13:15:02]1206 (1) - 0 [13:15:02]OFD Sender: Remove packet 112224 [13:15:02]ProducePacketName [13:15:02]name=ofd_packets/00112224 [13:15:02]NVStorageDeleteData [13:15:02]Write to MH i2c: 01 00 00 D2 30 02 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: 01 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: 01 07 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: 01 07 00 D2 30 00 00 00 00 00 EB 0C 00 [13:15:02]RasterBufferAndPrint [13:15:02]line [13:15:02]line [13:15:02]line [13:15:02]line [13:15:02]line [13:15:02]written 0, free lines is 3313 [13:15:02]MH_Cut [13:15:02]Write to MH i2c: D1 01 00 D9 30 01 DB [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: D1 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: D1 01 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: D1 01 00 D9 30 00 DA [13:15:02]Write to MH i2c: 01 00 00 DA 30 0A [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:03]OFD Sender: No OFD packet to send [13:15:03]*** Cut start [13:15:03]*** Partial cut [13:15:03]*** CUTSNS_PIN = 1 [13:15:03]*** CUTSNS_PIN = 0 [13:15:03]*** Brake cut motor [13:15:04]Read from MH i2c: 01 [13:15:04]MH_I2C_Read... [13:15:04]*** Stop cut motor [13:15:04]*** Cut end [13:15:04]Read from MH i2c: 01 07 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 07 00 DA 30 00 00 00 00 00 FF 0F 1F [13:15:04]process_action close_receipt done [13:15:04]requested_data is exist [13:15:04]produce_requested_data [13:15:04]requested_item fm.sn is exist - process it [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 11 00 00 [13:15:04]Write to MH i2c: E2 08 00 DB 30 80 11 00 00 00 00 00 00 85 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 17 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 17 00 DB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [13:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:15:04]wFMCommunicate OK [13:15:04]requested_item fd.num is exist - process it [13:15:04]SAM_PROTO_GetFieldsCounters [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 13 00 00 [13:15:04]Write to MH i2c: E2 08 00 DC 30 80 13 00 00 00 00 00 00 88 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 62 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 62 00 DC 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:04]wFMCommunicate OK [13:15:04]SAM_PROTO_GetFieldsCounters done [13:15:04]requested_item shift.num is exist - process it [13:15:04]requested_item shift.opened is exist - process it [13:15:04]req_shift_opened [13:15:04]FM_GetShiftState [13:15:04]SAM_PROTO_GetShiftState [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 13 01 00 [13:15:04]Write to MH i2c: E2 08 00 DD 30 80 13 01 00 00 00 00 00 8A [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0E 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0E 00 DD 30 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BF [13:15:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:15:04]wFMCommunicate OK [13:15:04]SAM_PROTO_GetShiftState done [13:15:04]FM_GetShiftState done [13:15:04]req_shift_opened done [13:15:04]requested_item shift.open_date is exist - process it [13:15:04]req_shift_open_date [13:15:04]req_shift_open_date done [13:15:04]produce_requested_data done [13:15:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112224,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:15:04]process_action_free close_receipt [13:15:04]json_value_free [13:15:04]json_value_free done [13:15:04]process_json_proto returns [13:15:04]Send response to host [13:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112224,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:15:04]free response buf [13:15:04]execute_script done [13:15:04]execute_script returns [13:15:04]free content buf [13:15:04]Sock 7.Close socket [13:15:04]Sock 7.Thread stoped [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:47]accept exits with 9 [13:16:47]New connection [13:16:47]New thread 3066813796 created [13:16:47]Thread 3066957156 joined [13:16:47]Waiting for new connection... [13:16:47] Sock 9.Parse request [13:16:47]Sock 9.Check first char [13:16:47]Sock 9.First char is OK [13:16:47]request: POST /json_proto HTTP/1.0 [13:16:47]Method: POST [13:16:47]URL: /json_proto [13:16:47]Method is POST - this is cgi request [13:16:47]url: /json_proto [13:16:47]query_string will be loaded in cgi processing [13:16:47]execute_cgi json_proto POST (null) [13:16:47]execute_cgi path=json_proto method=POST [13:16:47]POST find Content-Length [13:16:47]Host: 172.17.59.68:8080 [13:16:47]Content-Length: 682 [13:16:47]Content-Type: application/json [13:16:47] [13:16:47]POST finish read [13:16:47]Found Content-Length = 682 [13:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320900", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:47]execute_script... [13:16: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)320900", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:47]POST & json_proto [13:16:47]process_json_proto [13:16:47]json parsed OK: [13:16:47]protocol is kg_v1.0 [13:16:47]action value=close_receipt [13:16:47]process_action close_receipt [13:16:47]cmd_close_receipt [13:16:47]MH_GetDate [13:16:47]Write to MH i2c: F0 00 00 DE 30 FD [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 09 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 09 00 DE 30 00 D7 CE 76 66 BC EC 60 65 F4 [13:16:47]GetLastDocTimeStamp 1719062124 [13:16:47]current date 1719062231 [13:16:47]FM_GetShiftState [13:16:47]SAM_PROTO_GetShiftState [13:16:47]wFMCommunicate request_size=4 [13:16:47]MH_SAM_APDU [13:16:47]CAPDU: 80 13 01 00 [13:16:47]Write to MH i2c: E2 08 00 DF 30 80 13 01 00 00 00 00 00 8C [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:47]Read from MH i2c: E2 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 DF 30 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C1 [13:16:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:16:47]wFMCommunicate OK [13:16:47]SAM_PROTO_GetShiftState done [13:16:47]FM_GetShiftState done [13:16:47]opened in 1719020067 [13:16:47]opened+sec_in_day 1719106467 [13:16:47]quantity*price = 100064 [13:16:47]sum+1 = 100066 [13:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 91 22.06.2024 13:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112225 ФПД: 146852008481348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131711&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112225&fm=146852008481348&tin=02508201610067®Number=0000000000092771&sum=100000 [13:16:49]StoreToDocumentArchive [13:16:49]shift 391 fd 112225 [13:16:49]save to /storage/0391/doc_00112225 [13:16:49]save last doc name /storage/0391/doc_00112225 to /storage/kkm_last_doc_name [13:16:49]save OK [13:16:49]Clear old archive folders... [13:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:49]tlvbuf is B6DA9940 [13:16:49]SAM_PROTO_ClearQueue [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 09 00 00 [13:16:49]Write to MH i2c: E2 08 00 EC 30 80 09 00 00 00 00 00 00 8E [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 EC 30 00 90 00 90 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_ClearQueue done [13:16:49]KKMCreateOFDPacket [13:16:49]OFDProtocolAddRootSTLVToBuf [13:16:49]FM_MakeSignedData [13:16:49]FM_MakeSignedData [13:16:49]SAM_PROTO_SignData [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 01 02 [13:16:49]Write to MH i2c: E2 08 00 ED 30 80 0D 01 02 00 00 00 00 96 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 ED 30 00 90 00 91 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=255 [13:16:49]MH_SAM_APDU [13:16: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D7 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B6 01 00 35 04 06 00 85 [13:16:49]Write to MH i2c: E2 02 01 EE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D7 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B6 01 00 35 04 06 00 85 00 00 9B [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 EE 30 00 90 00 92 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=10 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 02 02 05 8F A5 CC D2 44 [13:16:49]Write to MH i2c: E2 0D 00 EF 30 80 0D 02 02 05 00 8F A5 CC D2 44 00 00 B9 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 EF 30 00 90 00 93 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 03 02 [13:16:49]Write to MH i2c: E2 08 00 F0 30 80 0D 03 02 00 00 00 00 9B [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 F0 30 00 8C AE 08 D4 7F C8 72 FC 90 00 67 [13:16:49]RAPDU: 8C AE 08 D4 7F C8 72 FC 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_SignData done [13:16:49]FM_MakeSignedData done [13:16:49]CreateOFDProtocolMessage [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 11 00 00 [13:16:49]Write to MH i2c: E2 08 00 F1 30 80 11 00 00 00 00 00 00 9B [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 F1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 ED [13:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:16:49]wFMCommunicate OK [13:16:49]CreateOFDProtocolMessage done [13:16:49]OFDSenderStorePacket 112225 [13:16:49]StoreOFDPacket docnum=112225 [13:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 45 07 01 9C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D7 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B6 01 00 35 04 06 00 85 8F A5 CC D2 44 8C AE 08 D4 7F C8 72 FC [13:16:49]CheckFolder [13:16:49]dirname=/storage/ofd_packets [13:16:49]CheckFolder done [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00112225 [13:16:49]NVStorageSaveData ofd_packets/00112225 [13:16:49]File name is /storage/ofd_packets/00112225 [13:16:49]Write 301 bytes [13:16:49]NVStorageSaveData done [13:16:49]OFDSenderStorePacket done [13:16:49]KKMCreateOFDPacket done [13:16:49]NVStorageSaveData kkm_last_timestamp [13:16:49]File name is /storage/kkm_last_timestamp [13:16:49]Write 4 bytes [13:16:49]NVStorageSaveData done [13:16:49]ExternCall_PrintAddStr [13:16:49]wPrintStart [13:16:49]Write to MH i2c: 01 00 00 F2 30 22 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 F2 30 00 00 00 00 00 FF 0F 37 [13:16:49]RasterBufferAndPrint [13:16:49]line Счет N : (1)320900 [13:16:49]line ИНН: 02508201610067 [13:16:49]line Контрольно-Кассовый Чек [13:16:49]line ПРОДАЖА [13:16:49]line ТРК (МРК, ГНК) : 11 [13:16:49]line Товар: 2710124130 [13:16:49]line Аи-92-К-5 [13:16:49]line 15.070 * 66.40 [13:16:49]line = 1000.65 [13:16:49]line НДС 12% НСП 1% [13:16:49]line > о реализуемом товаре [13:16:49]line ОКРУГЛЕНИЕ: -0.65 [13:16:49]line ИТОГО: 1000.00 [13:16:49]line Внесено: 1000.00 [13:16:49]line СДАЧА: 0.00 [13:16:49]line НСП 1% : 8.85 [13:16:49]line НДС 12% : 106.26 [13:16:49]line Наличными: 1000.00 [13:16:49]line Безнал.: 0.00 [13:16:49]line Место: АЗС № 65 "Партнер Нефть" [13:16:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:16:49]line СНО: Общий режим [13:16:49]line Чек 91 22.06.2024 13:17 [13:16:49]line Смена: 391 ФФД: 1.0 [13:16:49]line ЗНМ: 0300000198 [13:16:49]line РНМ: 0000000000092771 [13:16:49]line Версия ККМ: 001 [13:16:49]line ФМ: 0000000000875083 [13:16:49]line ФД: 112225 [13:16:49]line ФПД: 146852008481348 [13:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T131711&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112225&fm=146852008481348&tin=02508201610067®Number=0000000000092771&sum=100000 [13:16:49]OFD Sender: Processing packet 112225 [packets to send 38, broken 37] [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00112225 [13:16:49]OFD Sender: To server: pG, [13:16:49]CommunicateWithHost lk.salyk.kg:30040 [13:16:49]ConnectInit lk.salyk.kg [13:16:49]written 0, free lines is 4095 [13:16:50]Connected sock=10 [13:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 45 07 01 9C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 D7 CE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B6 01 00 35 04 06 00 85 8F A5 CC D2 44 8C AE 08 D4 7F C8 72 FC [13:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 04 47 00 A6 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B6 01 00 F4 03 04 00 E3 65 76 66 B6 04 01 00 00 62 8F CF CF F1 8B 8F 8F [13:16:50]CommunicateWithHost err = 0 [13:16:50]CheckOFDResponse [13:16:50]1017 (14) - 77093643461234 [13:16:50]1041 (16) - 0000000000875083 [13:16:50]1040 (4) - 112225 [13:16:50]1012 (4) - 22.06.2024 05:49 [13:16:50]1206 (1) - 0 [13:16:50]OFD Sender: Remove packet 112225 [13:16:50]ProducePacketName [13:16:50]name=ofd_packets/00112225 [13:16:50]NVStorageDeleteData [13:16:50]Write to MH i2c: 01 00 00 1D 31 4E [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 07 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 07 00 1D 31 00 00 00 00 00 E4 0C 45 [13:16:50]RasterBufferAndPrint [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]written 0, free lines is 3306 [13:16:50]MH_Cut [13:16:50]Write to MH i2c: D1 01 00 24 31 01 27 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 01 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 01 00 24 31 00 26 [13:16:50]Write to MH i2c: 01 00 00 25 31 56 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]OFD Sender: No OFD packet to send [13:16:51]*** Cut start [13:16:51]*** Partial cut [13:16:51]*** CUTSNS_PIN = 1 [13:16:51]*** CUTSNS_PIN = 0 [13:16:51]*** Brake cut motor [13:16:51]Read from MH i2c: 01 [13:16:51]MH_I2C_Read... [13:16:51]*** Stop cut motor [13:16:51]*** Cut end [13:16:51]Read from MH i2c: 01 07 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 07 00 25 31 00 00 00 00 00 FF 0F 6B [13:16:51]process_action close_receipt done [13:16:51]requested_data is exist [13:16:51]produce_requested_data [13:16:51]requested_item fm.sn is exist - process it [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 11 00 00 [13:16:51]Write to MH i2c: E2 08 00 26 31 80 11 00 00 00 00 00 00 D1 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 17 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 17 00 26 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [13:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:16:51]wFMCommunicate OK [13:16:51]requested_item fd.num is exist - process it [13:16:51]SAM_PROTO_GetFieldsCounters [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 13 00 00 [13:16:51]Write to MH i2c: E2 08 00 27 31 80 13 00 00 00 00 00 00 D4 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 62 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 62 00 27 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [13:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_GetFieldsCounters done [13:16:51]requested_item shift.num is exist - process it [13:16:51]requested_item shift.opened is exist - process it [13:16:51]req_shift_opened [13:16:51]FM_GetShiftState [13:16:51]SAM_PROTO_GetShiftState [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 13 01 00 [13:16:51]Write to MH i2c: E2 08 00 28 31 80 13 01 00 00 00 00 00 D6 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 28 31 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0B [13:16:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetShiftState done [13:16:52]FM_GetShiftState done [13:16:52]req_shift_opened done [13:16:52]requested_item shift.open_date is exist - process it [13:16:52]req_shift_open_date [13:16:52]req_shift_open_date done [13:16:52]produce_requested_data done [13:16:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112225,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:16:52]process_action_free close_receipt [13:16:52]json_value_free [13:16:52]json_value_free done [13:16:52]process_json_proto returns [13:16:52]Send response to host [13:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112225,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:16:52]free response buf [13:16:52]execute_script done [13:16:52]execute_script returns [13:16:52]free content buf [13:16:52]Sock 9.Close socket [13:16:52]Sock 9.Thread stoped [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:04]accept exits with 7 [13:22:04]New connection [13:22:04]New thread 3066957156 created [13:22:04]Thread 3066813796 joined [13:22:04]Waiting for new connection... [13:22:04] Sock 7.Parse request [13:22:04]Sock 7.Check first char [13:22:04]Sock 7.First char is OK [13:22:04]request: POST /json_proto HTTP/1.0 [13:22:04]Method: POST [13:22:04]URL: /json_proto [13:22:04]Method is POST - this is cgi request [13:22:04]url: /json_proto [13:22:04]query_string will be loaded in cgi processing [13:22:04]execute_cgi json_proto POST (null) [13:22:04]execute_cgi path=json_proto method=POST [13:22:04]POST find Content-Length [13:22:04]Host: 172.17.59.68:8080 [13:22:04]Content-Length: 677 [13:22:04]Content-Type: application/json [13:22:04] [13:22:04]POST finish read [13:22:04]Found Content-Length = 677 [13:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320902", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [13:22:04]execute_script... [13:22: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)320902", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [13:22:04]POST & json_proto [13:22:04]process_json_proto [13:22:04]json parsed OK: [13:22:04]protocol is kg_v1.0 [13:22:04]action value=close_receipt [13:22:04]process_action close_receipt [13:22:04]cmd_close_receipt [13:22:04]MH_GetDate [13:22:04]Write to MH i2c: F0 00 00 29 31 49 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: F0 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: F0 09 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: F0 09 00 29 31 00 14 D0 76 66 BC EC 60 65 7F [13:22:04]GetLastDocTimeStamp 1719062231 [13:22:04]current date 1719062548 [13:22:04]FM_GetShiftState [13:22:04]SAM_PROTO_GetShiftState [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 13 01 00 [13:22:04]Write to MH i2c: E2 08 00 2A 31 80 13 01 00 00 00 00 00 D8 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 0E 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 0E 00 2A 31 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0D [13:22:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:22:04]wFMCommunicate OK [13:22:04]SAM_PROTO_GetShiftState done [13:22:04]FM_GetShiftState done [13:22:04]opened in 1719020067 [13:22:04]opened+sec_in_day 1719106467 [13:22:04]quantity*price = 35059 [13:22:04]sum+1 = 35060 [13:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 92 22.06.2024 13:22 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112226 ФПД: 214526653231338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112226&fm=214526653231338&tin=02508201610067®Number=0000000000092771&sum=35000 [13:22:05]StoreToDocumentArchive [13:22:05]shift 391 fd 112226 [13:22:05]save to /storage/0391/doc_00112226 [13:22:05]save last doc name /storage/0391/doc_00112226 to /storage/kkm_last_doc_name [13:22:05]save OK [13:22:05]Clear old archive folders... [13:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:05]tlvbuf is B6F56820 [13:22:05]SAM_PROTO_ClearQueue [13:22:05]wFMCommunicate request_size=4 [13:22:05]MH_SAM_APDU [13:22:05]CAPDU: 80 09 00 00 [13:22:05]Write to MH i2c: E2 08 00 37 31 80 09 00 00 00 00 00 00 DA [13:22:05]Write i2c OK [13:22:05]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:06]Read from MH i2c: E2 03 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 37 31 00 90 00 DC [13:22:06]RAPDU: 90 00 [13:22:06]wFMCommunicate OK [13:22:06]SAM_PROTO_ClearQueue done [13:22:06]KKMCreateOFDPacket [13:22:06]OFDProtocolAddRootSTLVToBuf [13:22:06]FM_MakeSignedData [13:22:06]FM_MakeSignedData [13:22:06]SAM_PROTO_SignData [13:22:06]wFMCommunicate request_size=4 [13:22:06]MH_SAM_APDU [13:22:06]CAPDU: 80 0D 01 02 [13:22:06]Write to MH i2c: E2 08 00 38 31 80 0D 01 02 00 00 00 00 E2 [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 38 31 00 90 00 DD [13:22:06]RAPDU: 90 00 [13:22:06]wFMCommunicate OK [13:22:06]wFMCommunicate request_size=255 [13:22:06]MH_SAM_APDU [13:22: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 5C 00 00 00 F4 03 04 00 14 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B6 01 00 35 04 06 00 C3 [13:22:06]Write to MH i2c: E2 02 01 39 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 5C 00 00 00 F4 03 04 00 14 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B6 01 00 35 04 06 00 C3 00 00 F4 [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]OFD Sender: No OFD packet to send [13:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 39 31 00 90 00 DE [13:22:06]RAPDU: 90 00 [13:22:06]wFMCommunicate OK [13:22:06]wFMCommunicate request_size=10 [13:22:06]MH_SAM_APDU [13:22:06]CAPDU: 80 0D 02 02 05 1C 60 F5 F0 EA [13:22:06]Write to MH i2c: E2 0D 00 3A 31 80 0D 02 02 05 00 1C 60 F5 F0 EA 00 00 3A [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 03 00 3A 31 00 90 00 DF [13:22:06]RAPDU: 90 00 [13:22:06]wFMCommunicate OK [13:22:06]wFMCommunicate request_size=4 [13:22:06]MH_SAM_APDU [13:22:06]CAPDU: 80 0D 03 02 [13:22:06]Write to MH i2c: E2 08 00 3B 31 80 0D 03 02 00 00 00 00 E7 [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 0B 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 0B 00 3B 31 00 2E 83 4F 50 B7 00 E3 A4 90 00 76 [13:22:06]RAPDU: 2E 83 4F 50 B7 00 E3 A4 90 00 [13:22:06]wFMCommunicate OK [13:22:06]SAM_PROTO_SignData done [13:22:06]FM_MakeSignedData done [13:22:06]CreateOFDProtocolMessage [13:22:06]wFMCommunicate request_size=4 [13:22:06]MH_SAM_APDU [13:22:06]CAPDU: 80 11 00 00 [13:22:06]Write to MH i2c: E2 08 00 3C 31 80 11 00 00 00 00 00 00 E7 [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 17 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 17 00 3C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [13:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:06]wFMCommunicate OK [13:22:06]CreateOFDProtocolMessage done [13:22:06]OFDSenderStorePacket 112226 [13:22:06]StoreOFDPacket docnum=112226 [13:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F 34 07 01 7B 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 5C 00 00 00 F4 03 04 00 14 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B6 01 00 35 04 06 00 C3 1C 60 F5 F0 EA 2E 83 4F 50 B7 00 E3 A4 [13:22:06]CheckFolder [13:22:06]dirname=/storage/ofd_packets [13:22:06]CheckFolder done [13:22:06]ProducePacketName [13:22:06]name=ofd_packets/00112226 [13:22:06]NVStorageSaveData ofd_packets/00112226 [13:22:06]File name is /storage/ofd_packets/00112226 [13:22:06]Write 301 bytes [13:22:06]NVStorageSaveData done [13:22:06]OFDSenderStorePacket done [13:22:06]KKMCreateOFDPacket done [13:22:06]NVStorageSaveData kkm_last_timestamp [13:22:06]File name is /storage/kkm_last_timestamp [13:22:06]Write 4 bytes [13:22:06]NVStorageSaveData done [13:22:06]ExternCall_PrintAddStr [13:22:06]wPrintStart [13:22:06]Write to MH i2c: 01 00 00 3D 31 6E [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: 01 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: 01 07 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: 01 07 00 3D 31 00 00 00 00 00 FF 0F 83 [13:22:06]RasterBufferAndPrint [13:22:06]line Счет N : (1)320902 [13:22:06]line ИНН: 02508201610067 [13:22:06]line Контрольно-Кассовый Чек [13:22:06]line ПРОДАЖА [13:22:06]line ТРК (МРК, ГНК) : 11 [13:22:06]line Товар: 2710124130 [13:22:06]line Аи-92-К-5 [13:22:06]line 5.280 * 66.40 [13:22:06]line = 350.59 [13:22:06]line НДС 12% НСП 1% [13:22:06]line > о реализуемом товаре [13:22:06]line ОКРУГЛЕНИЕ: -0.59 [13:22:06]line ИТОГО: 350.00 [13:22:06]line Внесено: 350.00 [13:22:06]line СДАЧА: 0.00 [13:22:06]line НСП 1% : 3.10 [13:22:06]line НДС 12% : 37.23 [13:22:06]line Наличными: 350.00 [13:22:06]line Безнал.: 0.00 [13:22:06]line Место: АЗС № 65 "Партнер Нефть" [13:22:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:22:06]line СНО: Общий режим [13:22:06]line Чек 92 22.06.2024 13:22 [13:22:06]line Смена: 391 ФФД: 1.0 [13:22:06]line ЗНМ: 0300000198 [13:22:06]line РНМ: 0000000000092771 [13:22:06]line Версия ККМ: 001 [13:22:06]line ФМ: 0000000000875083 [13:22:06]line ФД: 112226 [13:22:06]line ФПД: 214526653231338 [13:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112226&fm=214526653231338&tin=02508201610067®Number=0000000000092771&sum=35000 [13:22:06]OFD Sender: Processing packet 112226 [packets to send 38, broken 37] [13:22:06]ProducePacketName [13:22:06]name=ofd_packets/00112226 [13:22:06]OFD Sender: To server: pG, [13:22:06]CommunicateWithHost lk.salyk.kg:30040 [13:22:06]ConnectInit lk.salyk.kg [13:22:06]written 0, free lines is 4095 [13:22:06]Connected sock=10 [13:22:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F 34 07 01 7B 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 5C 00 00 00 F4 03 04 00 14 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B6 01 00 35 04 06 00 C3 1C 60 F5 F0 EA 2E 83 4F 50 B7 00 E3 A4 [13:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E 31 47 00 5A 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 35 30 38 33 10 04 04 00 62 B6 01 00 F4 03 04 00 20 67 76 66 B6 04 01 00 00 38 A3 9F E0 CA F2 D5 21 [13:22:07]CommunicateWithHost err = 0 [13:22:07]CheckOFDResponse [13:22:07]1017 (14) - 77093643461234 [13:22:07]1041 (16) - 0000000000875083 [13:22:07]1040 (4) - 112226 [13:22:07]1012 (4) - 22.06.2024 05:54 [13:22:07]1206 (1) - 0 [13:22:07]OFD Sender: Remove packet 112226 [13:22:07]ProducePacketName [13:22:07]name=ofd_packets/00112226 [13:22:07]NVStorageDeleteData [13:22:07]Write to MH i2c: 01 00 00 68 31 99 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: 01 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: 01 07 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: 01 07 00 68 31 00 00 00 00 00 F4 0C A0 [13:22:07]RasterBufferAndPrint [13:22:07]line [13:22:07]line [13:22:07]line [13:22:07]line [13:22:07]line [13:22:07]written 0, free lines is 3323 [13:22:07]MH_Cut [13:22:07]Write to MH i2c: D1 01 00 6F 31 01 72 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: D1 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: D1 01 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: D1 01 00 6F 31 00 71 [13:22:07]Write to MH i2c: 01 00 00 70 31 A1 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]OFD Sender: No OFD packet to send [13:22:08]*** Cut start [13:22:08]*** Partial cut [13:22:08]*** CUTSNS_PIN = 1 [13:22:08]*** CUTSNS_PIN = 0 [13:22:08]*** Brake cut motor [13:22:08]Read from MH i2c: 01 [13:22:08]MH_I2C_Read... [13:22:08]*** Stop cut motor [13:22:08]*** Cut end [13:22:08]Read from MH i2c: 01 07 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 07 00 70 31 00 00 00 00 00 FF 0F B6 [13:22:08]process_action close_receipt done [13:22:08]requested_data is exist [13:22:08]produce_requested_data [13:22:08]requested_item fm.sn is exist - process it [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 11 00 00 [13:22:08]Write to MH i2c: E2 08 00 71 31 80 11 00 00 00 00 00 00 1C [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 17 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 17 00 71 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [13:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:08]wFMCommunicate OK [13:22:08]requested_item fd.num is exist - process it [13:22:08]SAM_PROTO_GetFieldsCounters [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 13 00 00 [13:22:08]Write to MH i2c: E2 08 00 72 31 80 13 00 00 00 00 00 00 1F [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 62 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 62 00 72 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [13:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:08]wFMCommunicate OK [13:22:08]SAM_PROTO_GetFieldsCounters done [13:22:08]requested_item shift.num is exist - process it [13:22:08]requested_item shift.opened is exist - process it [13:22:08]req_shift_opened [13:22:08]FM_GetShiftState [13:22:08]SAM_PROTO_GetShiftState [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 13 01 00 [13:22:08]Write to MH i2c: E2 08 00 73 31 80 13 01 00 00 00 00 00 21 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 73 31 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 56 [13:22:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:22:08]wFMCommunicate OK [13:22:08]SAM_PROTO_GetShiftState done [13:22:08]FM_GetShiftState done [13:22:08]req_shift_opened done [13:22:08]requested_item shift.open_date is exist - process it [13:22:08]req_shift_open_date [13:22:08]req_shift_open_date done [13:22:08]produce_requested_data done [13:22:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112226,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:22:08]process_action_free close_receipt [13:22:08]json_value_free [13:22:08]json_value_free done [13:22:08]process_json_proto returns [13:22:08]Send response to host [13:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112226,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:22:08]free response buf [13:22:08]execute_script done [13:22:08]execute_script returns [13:22:08]free content buf [13:22:08]Sock 7.Close socket [13:22:08]Sock 7.Thread stoped [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:32]accept exits with 9 [13:22:32]New connection [13:22:32]New thread 3066813796 created [13:22:32]Thread 3066957156 joined [13:22:32]Waiting for new connection... [13:22:32] Sock 9.Parse request [13:22:32]Sock 9.Check first char [13:22:32]Sock 9.First char is OK [13:22:32]request: POST /json_proto HTTP/1.0 [13:22:32]Method: POST [13:22:32]URL: /json_proto [13:22:32]Method is POST - this is cgi request [13:22:32]url: /json_proto [13:22:32]query_string will be loaded in cgi processing [13:22:32]execute_cgi json_proto POST (null) [13:22:32]execute_cgi path=json_proto method=POST [13:22:32]POST find Content-Length [13:22:32]Host: 172.17.59.68:8080 [13:22:32]Content-Length: 677 [13:22:32]Content-Type: application/json [13:22:32] [13:22:32]POST finish read [13:22:32]Found Content-Length = 677 [13:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320903", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:32]execute_script... [13:22: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)320903", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:32]POST & json_proto [13:22:32]process_json_proto [13:22:32]json parsed OK: [13:22:32]protocol is kg_v1.0 [13:22:32]action value=close_receipt [13:22:32]process_action close_receipt [13:22:32]cmd_close_receipt [13:22:32]MH_GetDate [13:22:32]Write to MH i2c: F0 00 00 74 31 94 [13:22:32]Write i2c OK [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: F0 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: F0 09 00 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: F0 09 00 74 31 00 30 D0 76 66 BC EC 60 65 E6 [13:22:32]GetLastDocTimeStamp 1719062548 [13:22:32]current date 1719062576 [13:22:32]FM_GetShiftState [13:22:32]SAM_PROTO_GetShiftState [13:22:32]wFMCommunicate request_size=4 [13:22:32]MH_SAM_APDU [13:22:32]CAPDU: 80 13 01 00 [13:22:32]Write to MH i2c: E2 08 00 75 31 80 13 01 00 00 00 00 00 23 [13:22:32]Write i2c OK [13:22:32]MH_I2C_Read... [13:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:32]Read from MH i2c: E2 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: E2 0E 00 [13:22:32]MH_I2C_Read... [13:22:32]Read from MH i2c: E2 0E 00 75 31 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 58 [13:22:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:22:32]wFMCommunicate OK [13:22:32]SAM_PROTO_GetShiftState done [13:22:32]FM_GetShiftState done [13:22:32]opened in 1719020067 [13:22:32]opened+sec_in_day 1719106467 [13:22:32]quantity*price = 50065 [13:22:32]sum+1 = 50067 [13:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 93 22.06.2024 13:22 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112227 ФПД: 114245005198776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132256&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112227&fm=114245005198776&tin=02508201610067®Number=0000000000092771&sum=50000 [13:22:33]StoreToDocumentArchive [13:22:33]shift 391 fd 112227 [13:22:33]save to /storage/0391/doc_00112227 [13:22:33]save last doc name /storage/0391/doc_00112227 to /storage/kkm_last_doc_name [13:22:33]save OK [13:22:33]Clear old archive folders... [13:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:33]tlvbuf is 0114BC80 [13:22:33]SAM_PROTO_ClearQueue [13:22:33]wFMCommunicate request_size=4 [13:22:33]MH_SAM_APDU [13:22:33]CAPDU: 80 09 00 00 [13:22:33]Write to MH i2c: E2 08 00 82 31 80 09 00 00 00 00 00 00 25 [13:22:33]Write i2c OK [13:22:33]MH_I2C_Read... [13:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:33]Read from MH i2c: E2 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 82 31 00 90 00 27 [13:22:33]RAPDU: 90 00 [13:22:33]wFMCommunicate OK [13:22:33]SAM_PROTO_ClearQueue done [13:22:33]KKMCreateOFDPacket [13:22:33]OFDProtocolAddRootSTLVToBuf [13:22:33]FM_MakeSignedData [13:22:33]FM_MakeSignedData [13:22:33]SAM_PROTO_SignData [13:22:33]wFMCommunicate request_size=4 [13:22:33]MH_SAM_APDU [13:22:33]CAPDU: 80 0D 01 02 [13:22:33]Write to MH i2c: E2 08 00 83 31 80 0D 01 02 00 00 00 00 2D [13:22:33]Write i2c OK [13:22:33]MH_I2C_Read... [13:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:33]Read from MH i2c: E2 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 [13:22:33]MH_I2C_Read... [13:22:33]Read from MH i2c: E2 03 00 83 31 00 90 00 28 [13:22:33]RAPDU: 90 00 [13:22:33]wFMCommunicate OK [13:22:33]wFMCommunicate request_size=255 [13:22:33]MH_SAM_APDU [13:22: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 30 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B6 01 00 35 04 06 00 67 [13:22:33]Write to MH i2c: E2 02 01 84 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 30 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B6 01 00 35 04 06 00 67 00 00 23 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 84 31 00 90 00 29 [13:22:34]RAPDU: 90 00 [13:22:34]wFMCommunicate OK [13:22:34]wFMCommunicate request_size=10 [13:22:34]MH_SAM_APDU [13:22:34]CAPDU: 80 0D 02 02 05 E7 BC F3 C5 B8 [13:22:34]Write to MH i2c: E2 0D 00 85 31 80 0D 02 02 05 00 E7 BC F3 C5 B8 00 00 4D [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 03 00 85 31 00 90 00 2A [13:22:34]RAPDU: 90 00 [13:22:34]wFMCommunicate OK [13:22:34]wFMCommunicate request_size=4 [13:22:34]MH_SAM_APDU [13:22:34]CAPDU: 80 0D 03 02 [13:22:34]Write to MH i2c: E2 08 00 86 31 80 0D 03 02 00 00 00 00 32 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 0B 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 0B 00 86 31 00 DE E8 62 4E 0D 7D 53 66 90 00 EC [13:22:34]RAPDU: DE E8 62 4E 0D 7D 53 66 90 00 [13:22:34]wFMCommunicate OK [13:22:34]SAM_PROTO_SignData done [13:22:34]FM_MakeSignedData done [13:22:34]CreateOFDProtocolMessage [13:22:34]wFMCommunicate request_size=4 [13:22:34]MH_SAM_APDU [13:22:34]CAPDU: 80 11 00 00 [13:22:34]Write to MH i2c: E2 08 00 87 31 80 11 00 00 00 00 00 00 32 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:34]Read from MH i2c: E2 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 17 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: E2 17 00 87 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [13:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:34]wFMCommunicate OK [13:22:34]CreateOFDProtocolMessage done [13:22:34]OFDSenderStorePacket 112227 [13:22:34]StoreOFDPacket docnum=112227 [13:22:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 77 07 01 D9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 30 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B6 01 00 35 04 06 00 67 E7 BC F3 C5 B8 DE E8 62 4E 0D 7D 53 66 [13:22:34]CheckFolder [13:22:34]dirname=/storage/ofd_packets [13:22:34]CheckFolder done [13:22:34]ProducePacketName [13:22:34]name=ofd_packets/00112227 [13:22:34]NVStorageSaveData ofd_packets/00112227 [13:22:34]File name is /storage/ofd_packets/00112227 [13:22:34]Write 301 bytes [13:22:34]NVStorageSaveData done [13:22:34]OFDSenderStorePacket done [13:22:34]KKMCreateOFDPacket done [13:22:34]NVStorageSaveData kkm_last_timestamp [13:22:34]File name is /storage/kkm_last_timestamp [13:22:34]Write 4 bytes [13:22:34]NVStorageSaveData done [13:22:34]ExternCall_PrintAddStr [13:22:34]wPrintStart [13:22:34]Write to MH i2c: 01 00 00 88 31 B9 [13:22:34]Write i2c OK [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 07 00 [13:22:34]MH_I2C_Read... [13:22:34]Read from MH i2c: 01 07 00 88 31 00 00 00 00 00 FF 0F CE [13:22:34]RasterBufferAndPrint [13:22:34]line Счет N : (1)320903 [13:22:34]line ИНН: 02508201610067 [13:22:34]line Контрольно-Кассовый Чек [13:22:34]line ПРОДАЖА [13:22:34]line ТРК (МРК, ГНК) : 11 [13:22:34]line Товар: 2710124130 [13:22:34]line Аи-92-К-5 [13:22:34]line 7.540 * 66.40 [13:22:34]line = 500.66 [13:22:34]line НДС 12% НСП 1% [13:22:34]line > о реализуемом товаре [13:22:34]line ОКРУГЛЕНИЕ: -0.66 [13:22:34]line ИТОГО: 500.00 [13:22:34]line Внесено: 500.00 [13:22:34]line СДАЧА: 0.00 [13:22:34]line НСП 1% : 4.43 [13:22:34]line НДС 12% : 53.17 [13:22:34]line Наличными: 500.00 [13:22:34]line Безнал.: 0.00 [13:22:34]line Место: АЗС № 65 "Партнер Нефть" [13:22:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:22:34]line СНО: Общий режим [13:22:34]line Чек 93 22.06.2024 13:22 [13:22:34]line Смена: 391 ФФД: 1.0 [13:22:34]line ЗНМ: 0300000198 [13:22:34]line РНМ: 0000000000092771 [13:22:34]line Версия ККМ: 001 [13:22:34]line ФМ: 0000000000875083 [13:22:34]line ФД: 112227 [13:22:34]line ФПД: 114245005198776 [13:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132256&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112227&fm=114245005198776&tin=02508201610067®Number=0000000000092771&sum=50000 [13:22:34]OFD Sender: Processing packet 112227 [packets to send 38, broken 37] [13:22:34]ProducePacketName [13:22:34]name=ofd_packets/00112227 [13:22:34]OFD Sender: To server: pG, [13:22:34]CommunicateWithHost lk.salyk.kg:30040 [13:22:34]ConnectInit lk.salyk.kg [13:22:34]written 0, free lines is 4095 [13:22:34]Connected sock=10 [13:22:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 77 07 01 D9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 30 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B6 01 00 35 04 06 00 67 E7 BC F3 C5 B8 DE E8 62 4E 0D 7D 53 66 [13:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 28 98 47 00 00 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B6 01 00 F4 03 04 00 3C 67 76 66 B6 04 01 00 00 86 55 DC 16 69 EA F4 7E [13:22:35]CommunicateWithHost err = 0 [13:22:35]CheckOFDResponse [13:22:35]1017 (14) - 77093643461234 [13:22:35]1041 (16) - 0000000000875083 [13:22:35]1040 (4) - 112227 [13:22:35]1012 (4) - 22.06.2024 05:55 [13:22:35]1206 (1) - 0 [13:22:35]OFD Sender: Remove packet 112227 [13:22:35]ProducePacketName [13:22:35]name=ofd_packets/00112227 [13:22:35]NVStorageDeleteData [13:22:35]Write to MH i2c: 01 00 00 B3 31 E4 [13:22:35]Write i2c OK [13:22:35]MH_I2C_Read... [13:22:35]Read from MH i2c: 01 [13:22:35]MH_I2C_Read... [13:22:35]Read from MH i2c: 01 07 00 [13:22:35]MH_I2C_Read... [13:22:35]Read from MH i2c: 01 07 00 B3 31 00 00 00 00 00 DA 0C D1 [13:22:35]RasterBufferAndPrint [13:22:35]line [13:22:35]line [13:22:35]line [13:22:35]line [13:22:35]line [13:22:35]written 0, free lines is 3297 [13:22:35]MH_Cut [13:22:35]Write to MH i2c: D1 01 00 BA 31 01 BD [13:22:35]Write i2c OK [13:22:35]MH_I2C_Read... [13:22:35]Read from MH i2c: D1 [13:22:35]MH_I2C_Read... [13:22:35]Read from MH i2c: D1 01 00 [13:22:35]MH_I2C_Read... [13:22:35]Read from MH i2c: D1 01 00 BA 31 00 BC [13:22:35]Write to MH i2c: 01 00 00 BB 31 EC [13:22:35]Write i2c OK [13:22:35]MH_I2C_Read... [13:22:35]OFD Sender: No OFD packet to send [13:22:35]*** Cut start [13:22:35]*** Partial cut [13:22:35]*** CUTSNS_PIN = 1 [13:22:36]*** CUTSNS_PIN = 0 [13:22:36]*** Brake cut motor [13:22:36]Read from MH i2c: 01 [13:22:36]MH_I2C_Read... [13:22:36]*** Stop cut motor [13:22:36]*** Cut end [13:22:36]Read from MH i2c: 01 07 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: 01 07 00 BB 31 00 00 00 00 00 FF 0F 01 [13:22:36]process_action close_receipt done [13:22:36]requested_data is exist [13:22:36]produce_requested_data [13:22:36]requested_item fm.sn is exist - process it [13:22:36]wFMCommunicate request_size=4 [13:22:36]MH_SAM_APDU [13:22:36]CAPDU: 80 11 00 00 [13:22:36]Write to MH i2c: E2 08 00 BC 31 80 11 00 00 00 00 00 00 67 [13:22:36]Write i2c OK [13:22:36]MH_I2C_Read... [13:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:36]Read from MH i2c: E2 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 17 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 17 00 BC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [13:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:22:36]wFMCommunicate OK [13:22:36]requested_item fd.num is exist - process it [13:22:36]SAM_PROTO_GetFieldsCounters [13:22:36]wFMCommunicate request_size=4 [13:22:36]MH_SAM_APDU [13:22:36]CAPDU: 80 13 00 00 [13:22:36]Write to MH i2c: E2 08 00 BD 31 80 13 00 00 00 00 00 00 6A [13:22:36]Write i2c OK [13:22:36]MH_I2C_Read... [13:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:36]Read from MH i2c: E2 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 62 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 62 00 BD 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [13:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:36]wFMCommunicate OK [13:22:36]SAM_PROTO_GetFieldsCounters done [13:22:36]requested_item shift.num is exist - process it [13:22:36]requested_item shift.opened is exist - process it [13:22:36]req_shift_opened [13:22:36]FM_GetShiftState [13:22:36]SAM_PROTO_GetShiftState [13:22:36]wFMCommunicate request_size=4 [13:22:36]MH_SAM_APDU [13:22:36]CAPDU: 80 13 01 00 [13:22:36]Write to MH i2c: E2 08 00 BE 31 80 13 01 00 00 00 00 00 6C [13:22:36]Write i2c OK [13:22:36]MH_I2C_Read... [13:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:36]Read from MH i2c: E2 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 0E 00 [13:22:36]MH_I2C_Read... [13:22:36]Read from MH i2c: E2 0E 00 BE 31 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A1 [13:22:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:22:36]wFMCommunicate OK [13:22:36]SAM_PROTO_GetShiftState done [13:22:36]FM_GetShiftState done [13:22:36]req_shift_opened done [13:22:36]requested_item shift.open_date is exist - process it [13:22:36]req_shift_open_date [13:22:36]req_shift_open_date done [13:22:36]produce_requested_data done [13:22:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112227,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:22:36]process_action_free close_receipt [13:22:36]json_value_free [13:22:36]json_value_free done [13:22:36]process_json_proto returns [13:22:36]Send response to host [13:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112227,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:22:36]free response buf [13:22:36]execute_script done [13:22:36]execute_script returns [13:22:36]free content buf [13:22:36]Sock 9.Close socket [13:22:36]Sock 9.Thread stoped [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:24:57]accept exits with 7 [13:24:57]New connection [13:24:57]New thread 3066957156 created [13:24:57]Thread 3066813796 joined [13:24:57]Waiting for new connection... [13:24:57] Sock 7.Parse request [13:24:57]Sock 7.Check first char [13:24:57]Sock 7.First char is OK [13:24:57]request: POST /json_proto HTTP/1.0 [13:24:57]Method: POST [13:24:57]URL: /json_proto [13:24:57]Method is POST - this is cgi request [13:24:57]url: /json_proto [13:24:57]query_string will be loaded in cgi processing [13:24:57]execute_cgi json_proto POST (null) [13:24:57]execute_cgi path=json_proto method=POST [13:24:57]POST find Content-Length [13:24:57]Host: 172.17.59.68:8080 [13:24:57]Content-Length: 677 [13:24:57]Content-Type: application/json [13:24:57] [13:24:57]POST finish read [13:24:57]Found Content-Length = 677 [13:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320904", "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.40, "quantity" : 7.460, "sum" : 495.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 495.00, "payments": [ { "type": 0, "sum" : 495.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:57]execute_script... [13:24: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)320904", "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.40, "quantity" : 7.460, "sum" : 495.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 495.00, "payments": [ { "type": 0, "sum" : 495.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:57]POST & json_proto [13:24:57]process_json_proto [13:24:57]json parsed OK: [13:24:57]protocol is kg_v1.0 [13:24:57]action value=close_receipt [13:24:57]process_action close_receipt [13:24:57]cmd_close_receipt [13:24:57]MH_GetDate [13:24:57]Write to MH i2c: F0 00 00 BF 31 DF [13:24:57]Write i2c OK [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: F0 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: F0 09 00 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: F0 09 00 BF 31 00 C1 D0 76 66 BC EC 60 65 C2 [13:24:57]GetLastDocTimeStamp 1719062576 [13:24:57]current date 1719062721 [13:24:57]FM_GetShiftState [13:24:57]SAM_PROTO_GetShiftState [13:24:57]wFMCommunicate request_size=4 [13:24:57]MH_SAM_APDU [13:24:57]CAPDU: 80 13 01 00 [13:24:57]Write to MH i2c: E2 08 00 C0 31 80 13 01 00 00 00 00 00 6E [13:24:57]Write i2c OK [13:24:57]MH_I2C_Read... [13:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:57]Read from MH i2c: E2 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: E2 0E 00 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: E2 0E 00 C0 31 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A3 [13:24:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:24:57]wFMCommunicate OK [13:24:57]SAM_PROTO_GetShiftState done [13:24:57]FM_GetShiftState done [13:24:57]opened in 1719020067 [13:24:57]opened+sec_in_day 1719106467 [13:24:57]quantity*price = 49534 [13:24:57]sum+1 = 49535 [13:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 495.00 Внесено: 670.00 СДАЧА: 175.00 НСП 1% : 4.38 НДС 12% : 52.60 Наличными: 495.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 94 22.06.2024 13:25 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112228 ФПД: 262901250264247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132521&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112228&fm=262901250264247&tin=02508201610067®Number=0000000000092771&sum=49500 [13:24:58]StoreToDocumentArchive [13:24:58]shift 391 fd 112228 [13:24:58]save to /storage/0391/doc_00112228 [13:24:58]save last doc name /storage/0391/doc_00112228 to /storage/kkm_last_doc_name [13:24:58]save OK [13:24:58]Clear old archive folders... [13:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:58]tlvbuf is B6EC26D0 [13:24:58]SAM_PROTO_ClearQueue [13:24:58]wFMCommunicate request_size=4 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 09 00 00 [13:24:58]Write to MH i2c: E2 08 00 CD 31 80 09 00 00 00 00 00 00 70 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 CD 31 00 90 00 72 [13:24:58]RAPDU: 90 00 [13:24:58]wFMCommunicate OK [13:24:58]SAM_PROTO_ClearQueue done [13:24:58]KKMCreateOFDPacket [13:24:58]OFDProtocolAddRootSTLVToBuf [13:24:58]FM_MakeSignedData [13:24:58]FM_MakeSignedData [13:24:58]SAM_PROTO_SignData [13:24:58]wFMCommunicate request_size=4 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 0D 01 02 [13:24:58]Write to MH i2c: E2 08 00 CE 31 80 0D 01 02 00 00 00 00 78 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 CE 31 00 90 00 73 [13:24:58]RAPDU: 90 00 [13:24:58]wFMCommunicate OK [13:24:58]wFMCommunicate request_size=255 [13:24:58]MH_SAM_APDU [13:24: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 24 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 14 00 00 00 00 07 04 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C1 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B6 01 00 35 04 06 00 EF [13:24:58]Write to MH i2c: E2 02 01 CF 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 24 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 14 00 00 00 00 07 04 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C1 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B6 01 00 35 04 06 00 EF 00 00 F9 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:59]Read from MH i2c: E2 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 03 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [13:24:59]RAPDU: 90 00 [13:24:59]wFMCommunicate OK [13:24:59]wFMCommunicate request_size=10 [13:24:59]MH_SAM_APDU [13:24:59]CAPDU: 80 0D 02 02 05 1B 77 A2 0C B7 [13:24:59]Write to MH i2c: E2 0D 00 D0 31 80 0D 02 02 05 00 1B 77 A2 0C B7 00 00 7C [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:59]Read from MH i2c: E2 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 03 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [13:24:59]RAPDU: 90 00 [13:24:59]wFMCommunicate OK [13:24:59]wFMCommunicate request_size=4 [13:24:59]MH_SAM_APDU [13:24:59]CAPDU: 80 0D 03 02 [13:24:59]Write to MH i2c: E2 08 00 D1 31 80 0D 03 02 00 00 00 00 7D [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:59]Read from MH i2c: E2 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 0B 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 0B 00 D1 31 00 40 F6 EE 5C 01 72 57 E0 90 00 A8 [13:24:59]RAPDU: 40 F6 EE 5C 01 72 57 E0 90 00 [13:24:59]wFMCommunicate OK [13:24:59]SAM_PROTO_SignData done [13:24:59]FM_MakeSignedData done [13:24:59]CreateOFDProtocolMessage [13:24:59]wFMCommunicate request_size=4 [13:24:59]MH_SAM_APDU [13:24:59]CAPDU: 80 11 00 00 [13:24:59]Write to MH i2c: E2 08 00 D2 31 80 11 00 00 00 00 00 00 7D [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:59]Read from MH i2c: E2 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 17 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: E2 17 00 D2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [13:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:24:59]wFMCommunicate OK [13:24:59]CreateOFDProtocolMessage done [13:24:59]OFDSenderStorePacket 112228 [13:24:59]StoreOFDPacket docnum=112228 [13:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 52 07 01 AB 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 24 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 14 00 00 00 00 07 04 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C1 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B6 01 00 35 04 06 00 EF 1B 77 A2 0C B7 40 F6 EE 5C 01 72 57 E0 [13:24:59]CheckFolder [13:24:59]dirname=/storage/ofd_packets [13:24:59]CheckFolder done [13:24:59]ProducePacketName [13:24:59]name=ofd_packets/00112228 [13:24:59]NVStorageSaveData ofd_packets/00112228 [13:24:59]File name is /storage/ofd_packets/00112228 [13:24:59]Write 301 bytes [13:24:59]NVStorageSaveData done [13:24:59]OFDSenderStorePacket done [13:24:59]KKMCreateOFDPacket done [13:24:59]NVStorageSaveData kkm_last_timestamp [13:24:59]File name is /storage/kkm_last_timestamp [13:24:59]Write 4 bytes [13:24:59]NVStorageSaveData done [13:24:59]ExternCall_PrintAddStr [13:24:59]wPrintStart [13:24:59]Write to MH i2c: 01 00 00 D3 31 04 [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: 01 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: 01 07 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: 01 07 00 D3 31 00 00 00 00 00 FF 0F 19 [13:24:59]RasterBufferAndPrint [13:24:59]line Счет N : (1)320904 [13:24:59]line ИНН: 02508201610067 [13:24:59]line Контрольно-Кассовый Чек [13:24:59]line ПРОДАЖА [13:24:59]line ТРК (МРК, ГНК) : 11 [13:24:59]line Товар: 2710124130 [13:24:59]line Аи-92-К-5 [13:24:59]line 7.460 * 66.40 [13:24:59]line = 495.34 [13:24:59]line НДС 12% НСП 1% [13:24:59]line > о реализуемом товаре [13:24:59]line ОКРУГЛЕНИЕ: -0.34 [13:24:59]line ИТОГО: 495.00 [13:24:59]line Внесено: 670.00 [13:24:59]line СДАЧА: 175.00 [13:24:59]line НСП 1% : 4.38 [13:24:59]line НДС 12% : 52.60 [13:24:59]line Наличными: 495.00 [13:24:59]line Безнал.: 0.00 [13:24:59]line Место: АЗС № 65 "Партнер Нефть" [13:24:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:24:59]line СНО: Общий режим [13:24:59]line Чек 94 22.06.2024 13:25 [13:24:59]line Смена: 391 ФФД: 1.0 [13:24:59]line ЗНМ: 0300000198 [13:24:59]line РНМ: 0000000000092771 [13:24:59]line Версия ККМ: 001 [13:24:59]line ФМ: 0000000000875083 [13:24:59]line ФД: 112228 [13:24:59]line ФПД: 262901250264247 [13:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132521&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112228&fm=262901250264247&tin=02508201610067®Number=0000000000092771&sum=49500 [13:24:59]OFD Sender: Processing packet 112228 [packets to send 38, broken 37] [13:24:59]ProducePacketName [13:24:59]name=ofd_packets/00112228 [13:24:59]OFD Sender: To server: pG, [13:24:59]CommunicateWithHost lk.salyk.kg:30040 [13:24:59]ConnectInit lk.salyk.kg [13:24:59]written 0, free lines is 4095 [13:24:59]Connected sock=10 [13:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 52 07 01 AB 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 24 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E C1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 14 00 00 00 00 07 04 06 00 5C C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C1 D0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B6 01 00 35 04 06 00 EF 1B 77 A2 0C B7 40 F6 EE 5C 01 72 57 E0 [13:24:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 30 5D 47 00 45 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B6 01 00 F4 03 04 00 CD 67 76 66 B6 04 01 00 00 9C E9 B5 77 60 34 A6 21 [13:24:59]CommunicateWithHost err = 0 [13:24:59]CheckOFDResponse [13:24:59]1017 (14) - 77093643461234 [13:24:59]1041 (16) - 0000000000875083 [13:24:59]1040 (4) - 112228 [13:24:59]1012 (4) - 22.06.2024 05:57 [13:24:59]1206 (1) - 0 [13:24:59]OFD Sender: Remove packet 112228 [13:24:59]ProducePacketName [13:24:59]name=ofd_packets/00112228 [13:24:59]NVStorageDeleteData [13:25:00]Write to MH i2c: 01 00 00 FE 31 2F [13:25:00]Write i2c OK [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: 01 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: 01 07 00 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 E0 0C 22 [13:25:00]RasterBufferAndPrint [13:25:00]line [13:25:00]line [13:25:00]line [13:25:00]line [13:25:00]line [13:25:00]written 0, free lines is 3302 [13:25:00]MH_Cut [13:25:00]Write to MH i2c: D1 01 00 05 32 01 09 [13:25:00]Write i2c OK [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: D1 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: D1 01 00 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: D1 01 00 05 32 00 08 [13:25:00]Write to MH i2c: 01 00 00 06 32 38 [13:25:00]Write i2c OK [13:25:00]MH_I2C_Read... [13:25:00]OFD Sender: No OFD packet to send [13:25:00]*** Cut start [13:25:00]*** Partial cut [13:25:00]*** CUTSNS_PIN = 1 [13:25:00]*** CUTSNS_PIN = 0 [13:25:01]*** Brake cut motor [13:25:01]Read from MH i2c: 01 [13:25:01]MH_I2C_Read... [13:25:01]*** Stop cut motor [13:25:01]*** Cut end [13:25:01]Read from MH i2c: 01 07 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 FF 0F 4D [13:25:01]process_action close_receipt done [13:25:01]requested_data is exist [13:25:01]produce_requested_data [13:25:01]requested_item fm.sn is exist - process it [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 11 00 00 [13:25:01]Write to MH i2c: E2 08 00 07 32 80 11 00 00 00 00 00 00 B3 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 17 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 17 00 07 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [13:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:25:01]wFMCommunicate OK [13:25:01]requested_item fd.num is exist - process it [13:25:01]SAM_PROTO_GetFieldsCounters [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 13 00 00 [13:25:01]Write to MH i2c: E2 08 00 08 32 80 13 00 00 00 00 00 00 B6 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 62 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 62 00 08 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [13:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:01]wFMCommunicate OK [13:25:01]SAM_PROTO_GetFieldsCounters done [13:25:01]requested_item shift.num is exist - process it [13:25:01]requested_item shift.opened is exist - process it [13:25:01]req_shift_opened [13:25:01]FM_GetShiftState [13:25:01]SAM_PROTO_GetShiftState [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 13 01 00 [13:25:01]Write to MH i2c: E2 08 00 09 32 80 13 01 00 00 00 00 00 B8 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 0E 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 0E 00 09 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 ED [13:25:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:25:01]wFMCommunicate OK [13:25:01]SAM_PROTO_GetShiftState done [13:25:01]FM_GetShiftState done [13:25:01]req_shift_opened done [13:25:01]requested_item shift.open_date is exist - process it [13:25:01]req_shift_open_date [13:25:01]req_shift_open_date done [13:25:01]produce_requested_data done [13:25:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112228,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:25:01]process_action_free close_receipt [13:25:01]json_value_free [13:25:01]json_value_free done [13:25:01]process_json_proto returns [13:25:01]Send response to host [13:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112228,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:25:01]free response buf [13:25:01]execute_script done [13:25:01]execute_script returns [13:25:01]free content buf [13:25:01]Sock 7.Close socket [13:25:01]Sock 7.Thread stoped [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:32]accept exits with 9 [13:27:32]New connection [13:27:32]New thread 3066813796 created [13:27:32]Thread 3066957156 joined [13:27:32]Waiting for new connection... [13:27:32] Sock 9.Parse request [13:27:32]Sock 9.Check first char [13:27:32]Sock 9.First char is OK [13:27:32]request: POST /json_proto HTTP/1.0 [13:27:32]Method: POST [13:27:32]URL: /json_proto [13:27:32]Method is POST - this is cgi request [13:27:32]url: /json_proto [13:27:32]query_string will be loaded in cgi processing [13:27:32]execute_cgi json_proto POST (null) [13:27:32]execute_cgi path=json_proto method=POST [13:27:32]POST find Content-Length [13:27:32]Host: 172.17.59.68:8080 [13:27:32]Content-Length: 684 [13:27:32]Content-Type: application/json [13:27:32] [13:27:32]POST finish read [13:27:32]Found Content-Length = 684 [13:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 219.480, "sum" : 16000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 16000.00, "total" : 16000.00, "payments": [ { "type": 0, "sum" : 16000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:32]execute_script... [13: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)320901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 219.480, "sum" : 16000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 16000.00, "total" : 16000.00, "payments": [ { "type": 0, "sum" : 16000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:32]POST & json_proto [13:27:32]process_json_proto [13:27:32]json parsed OK: [13:27:32]protocol is kg_v1.0 [13:27:32]action value=close_receipt [13:27:32]process_action close_receipt [13:27:32]cmd_close_receipt [13:27:32]MH_GetDate [13:27:32]Write to MH i2c: F0 00 00 0A 32 2B [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: F0 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: F0 09 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: F0 09 00 0A 32 00 5C D1 76 66 BC EC 60 65 AA [13:27:32]GetLastDocTimeStamp 1719062721 [13:27:32]current date 1719062876 [13:27:32]FM_GetShiftState [13:27:32]SAM_PROTO_GetShiftState [13:27:32]wFMCommunicate request_size=4 [13:27:32]MH_SAM_APDU [13:27:32]CAPDU: 80 13 01 00 [13:27:32]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EF [13:27:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:27:32]wFMCommunicate OK [13:27:32]SAM_PROTO_GetShiftState done [13:27:32]FM_GetShiftState done [13:27:32]opened in 1719020067 [13:27:32]opened+sec_in_day 1719106467 [13:27:32]quantity*price = 1600009 [13:27:32]sum+1 = 1600010 [13:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 16000.00 Внесено: 16000.00 СДАЧА: 0.00 НСП 1% : 141.59 НДС 12% : 1699.12 Наличными: 16000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 95 22.06.2024 13:27 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112229 ФПД: 123507281908559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112229&fm=123507281908559&tin=02508201610067®Number=0000000000092771&sum=1600000 [13:27:33]StoreToDocumentArchive [13:27:33]shift 391 fd 112229 [13:27:33]save to /storage/0391/doc_00112229 [13:27:33]save last doc name /storage/0391/doc_00112229 to /storage/kkm_last_doc_name [13:27:33]save OK [13:27:33]Clear old archive folders... [13:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:27:33]tlvbuf is 011C72C0 [13:27:33]SAM_PROTO_ClearQueue [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 09 00 00 [13:27:33]Write to MH i2c: E2 08 00 18 32 80 09 00 00 00 00 00 00 BC [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 18 32 00 90 00 BE [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_ClearQueue done [13:27:33]KKMCreateOFDPacket [13:27:33]OFDProtocolAddRootSTLVToBuf [13:27:33]FM_MakeSignedData [13:27:33]FM_MakeSignedData [13:27:33]SAM_PROTO_SignData [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 01 02 [13:27:33]Write to MH i2c: E2 08 00 19 32 80 0D 01 02 00 00 00 00 C4 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 19 32 00 90 00 BF [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=255 [13:27:33]MH_SAM_APDU [13:27: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 58 59 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 6A 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6A 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 97 02 00 00 00 07 04 06 00 00 6A 18 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 5C D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B6 01 00 35 04 06 00 70 54 47 AA [13:27:33]Write to MH i2c: E2 02 01 1A 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 59 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 6A 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6A 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 97 02 00 00 00 07 04 06 00 00 6A 18 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 5C D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B6 01 00 35 04 06 00 70 54 47 AA 00 00 92 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=7 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 02 02 02 53 4F [13:27:33]Write to MH i2c: E2 0A 00 1B 32 80 0D 02 02 02 00 53 4F 00 00 6D [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 03 02 [13:27:33]Write to MH i2c: E2 08 00 1C 32 80 0D 03 02 00 00 00 00 C9 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0B 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0B 00 1C 32 00 F7 0C 34 CC 36 43 25 0B 90 00 76 [13:27:33]RAPDU: F7 0C 34 CC 36 43 25 0B 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_SignData done [13:27:33]FM_MakeSignedData done [13:27:33]CreateOFDProtocolMessage [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 11 00 00 [13:27:33]Write to MH i2c: E2 08 00 1D 32 80 11 00 00 00 00 00 00 C9 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 1D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [13:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:27:33]wFMCommunicate OK [13:27:33]CreateOFDProtocolMessage done [13:27:33]OFDSenderStorePacket 112229 [13:27:33]StoreOFDPacket docnum=112229 [13:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E2 D0 04 01 CF 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 59 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 6A 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6A 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 97 02 00 00 00 07 04 06 00 00 6A 18 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 5C D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B6 01 00 35 04 06 00 70 54 47 AA 53 4F F7 0C 34 CC 36 43 25 0B [13:27:33]CheckFolder [13:27:33]dirname=/storage/ofd_packets [13:27:33]CheckFolder done [13:27:33]ProducePacketName [13:27:33]name=ofd_packets/00112229 [13:27:33]NVStorageSaveData ofd_packets/00112229 [13:27:33]File name is /storage/ofd_packets/00112229 [13:27:33]Write 298 bytes [13:27:33]NVStorageSaveData done [13:27:33]OFDSenderStorePacket done [13:27:33]KKMCreateOFDPacket done [13:27:33]NVStorageSaveData kkm_last_timestamp [13:27:33]File name is /storage/kkm_last_timestamp [13:27:33]Write 4 bytes [13:27:33]NVStorageSaveData done [13:27:33]ExternCall_PrintAddStr [13:27:33]wPrintStart [13:27:33]Write to MH i2c: 01 00 00 1E 32 50 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 FF 0F 65 [13:27:33]RasterBufferAndPrint [13:27:33]line Счет N : (1)320901 [13:27:33]line ИНН: 02508201610067 [13:27:33]line Контрольно-Кассовый Чек [13:27:33]line ПРОДАЖА [13:27:33]line ТРК (МРК, ГНК) : 22 [13:27:33]line Товар: 2710194210 [13:27:33]line ДТ-К-5 [13:27:33]line 219.480 * 72.90 [13:27:33]line = 16000.09 [13:27:33]line НДС 12% НСП 1% [13:27:33]line > о реализуемом товаре [13:27:33]line ОКРУГЛЕНИЕ: -0.09 [13:27:33]line ИТОГО: 16000.00 [13:27:33]line Внесено: 16000.00 [13:27:33]line СДАЧА: 0.00 [13:27:33]line НСП 1% : 141.59 [13:27:33]line НДС 12% : 1699.12 [13:27:33]line Наличными: 16000.00 [13:27:33]line Безнал.: 0.00 [13:27:33]line Место: АЗС № 65 "Партнер Нефть" [13:27:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:27:33]line СНО: Общий режим [13:27:33]line Чек 95 22.06.2024 13:27 [13:27:33]line Смена: 391 ФФД: 1.0 [13:27:33]line ЗНМ: 0300000198 [13:27:33]line РНМ: 0000000000092771 [13:27:33]line Версия ККМ: 001 [13:27:33]line ФМ: 0000000000875083 [13:27:33]line ФД: 112229 [13:27:33]line ФПД: 123507281908559 [13:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112229&fm=123507281908559&tin=02508201610067®Number=0000000000092771&sum=1600000 [13:27:34]OFD Sender: Processing packet 112229 [packets to send 38, broken 37] [13:27:34]ProducePacketName [13:27:34]name=ofd_packets/00112229 [13:27:34]OFD Sender: To server: pG, [13:27:34]CommunicateWithHost lk.salyk.kg:30040 [13:27:34]ConnectInit lk.salyk.kg [13:27:34]written 0, free lines is 4095 [13:27:34]Connected sock=10 [13: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 35 30 38 33 0C 01 00 00 E2 D0 04 01 CF 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 59 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 6A 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6A 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 97 02 00 00 00 07 04 06 00 00 6A 18 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 5C D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B6 01 00 35 04 06 00 70 54 47 AA 53 4F F7 0C 34 CC 36 43 25 0B [13:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 86 C9 47 00 12 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B6 01 00 F4 03 04 00 67 68 76 66 B6 04 01 00 00 22 2A A0 92 67 ED 51 F0 [13:27:34]CommunicateWithHost err = 0 [13:27:34]CheckOFDResponse [13:27:34]1017 (14) - 77093643461234 [13:27:34]1041 (16) - 0000000000875083 [13:27:34]1040 (4) - 112229 [13:27:34]1012 (4) - 22.06.2024 06:00 [13:27:34]1206 (1) - 0 [13:27:34]OFD Sender: Remove packet 112229 [13:27:34]ProducePacketName [13:27:34]name=ofd_packets/00112229 [13:27:34]NVStorageDeleteData [13:27:34]Write to MH i2c: 01 00 00 49 32 7B [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 49 32 00 00 00 00 00 EE 0C 7C [13:27:34]RasterBufferAndPrint [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]written 0, free lines is 3316 [13:27:34]MH_Cut [13:27:34]Write to MH i2c: D1 01 00 50 32 01 54 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 01 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 01 00 50 32 00 53 [13:27:34]Write to MH i2c: 01 00 00 51 32 83 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]OFD Sender: No OFD packet to send [13:27:35]*** Cut start [13:27:35]*** Partial cut [13:27:35]*** CUTSNS_PIN = 1 [13:27:35]*** CUTSNS_PIN = 0 [13:27:35]*** Brake cut motor [13:27:35]Read from MH i2c: 01 [13:27:35]MH_I2C_Read... [13:27:35]*** Stop cut motor [13:27:35]*** Cut end [13:27:35]Read from MH i2c: 01 07 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 07 00 51 32 00 00 00 00 00 FF 0F 98 [13:27:35]process_action close_receipt done [13:27:35]requested_data is exist [13:27:35]produce_requested_data [13:27:35]requested_item fm.sn is exist - process it [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 11 00 00 [13:27:35]Write to MH i2c: E2 08 00 52 32 80 11 00 00 00 00 00 00 FE [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 17 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 17 00 52 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [13:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:27:36]wFMCommunicate OK [13:27:36]requested_item fd.num is exist - process it [13:27:36]SAM_PROTO_GetFieldsCounters [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 13 00 00 [13:27:36]Write to MH i2c: E2 08 00 53 32 80 13 00 00 00 00 00 00 01 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 62 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 62 00 53 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [13:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:36]wFMCommunicate OK [13:27:36]SAM_PROTO_GetFieldsCounters done [13:27:36]requested_item shift.num is exist - process it [13:27:36]requested_item shift.opened is exist - process it [13:27:36]req_shift_opened [13:27:36]FM_GetShiftState [13:27:36]SAM_PROTO_GetShiftState [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 13 01 00 [13:27:36]Write to MH i2c: E2 08 00 54 32 80 13 01 00 00 00 00 00 03 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 0E 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 0E 00 54 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 38 [13:27:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:27:36]wFMCommunicate OK [13:27:36]SAM_PROTO_GetShiftState done [13:27:36]FM_GetShiftState done [13:27:36]req_shift_opened done [13:27:36]requested_item shift.open_date is exist - process it [13:27:36]req_shift_open_date [13:27:36]req_shift_open_date done [13:27:36]produce_requested_data done [13:27:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112229,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:27:36]process_action_free close_receipt [13:27:36]json_value_free [13:27:36]json_value_free done [13:27:36]process_json_proto returns [13:27:36]Send response to host [13:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112229,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:27:36]free response buf [13:27:36]execute_script done [13:27:36]execute_script returns [13:27:36]free content buf [13:27:36]Sock 9.Close socket [13:27:36]Sock 9.Thread stoped [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:09]accept exits with 7 [13:28:09]New connection [13:28:09]New thread 3066957156 created [13:28:09]Thread 3066813796 joined [13:28:09]Waiting for new connection... [13:28:09] Sock 7.Parse request [13:28:09]Sock 7.Check first char [13:28:09]Sock 7.First char is OK [13:28:09]request: POST /json_proto HTTP/1.0 [13:28:09]Method: POST [13:28:09]URL: /json_proto [13:28:09]Method is POST - this is cgi request [13:28:09]url: /json_proto [13:28:09]query_string will be loaded in cgi processing [13:28:09]execute_cgi json_proto POST (null) [13:28:09]execute_cgi path=json_proto method=POST [13:28:09]POST find Content-Length [13:28:09]Host: 172.17.59.68:8080 [13:28:09]Content-Length: 682 [13:28:09]Content-Type: application/json [13:28:09] [13:28:09]POST finish read [13:28:09]Found Content-Length = 682 [13:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320905", "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.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:09]execute_script... [13:28: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)320905", "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.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:09]POST & json_proto [13:28:09]process_json_proto [13:28:09]json parsed OK: [13:28:09]protocol is kg_v1.0 [13:28:09]action value=close_receipt [13:28:09]process_action close_receipt [13:28:09]cmd_close_receipt [13:28:09]MH_GetDate [13:28:09]Write to MH i2c: F0 00 00 55 32 76 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: F0 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: F0 09 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: F0 09 00 55 32 00 81 D1 76 66 BC EC 60 65 1A [13:28:09]GetLastDocTimeStamp 1719062876 [13:28:09]current date 1719062913 [13:28:09]FM_GetShiftState [13:28:09]SAM_PROTO_GetShiftState [13:28:09]wFMCommunicate request_size=4 [13:28:09]MH_SAM_APDU [13:28:09]CAPDU: 80 13 01 00 [13:28:09]Write to MH i2c: E2 08 00 56 32 80 13 01 00 00 00 00 00 05 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 0E 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 0E 00 56 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3A [13:28:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:28:09]wFMCommunicate OK [13:28:09]SAM_PROTO_GetShiftState done [13:28:09]FM_GetShiftState done [13:28:09]opened in 1719020067 [13:28:09]opened+sec_in_day 1719106467 [13:28:09]quantity*price = 133065 [13:28:09]sum+1 = 133067 [13:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 96 22.06.2024 13:28 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112230 ФПД: 242159810722896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112230&fm=242159810722896&tin=02508201610067®Number=0000000000092771&sum=133000 [13:28:10]StoreToDocumentArchive [13:28:10]shift 391 fd 112230 [13:28:10]save to /storage/0391/doc_00112230 [13:28:10]save last doc name /storage/0391/doc_00112230 to /storage/kkm_last_doc_name [13:28:10]save OK [13:28:10]Clear old archive folders... [13:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:10]tlvbuf is B6F59990 [13:28:10]SAM_PROTO_ClearQueue [13:28:10]wFMCommunicate request_size=4 [13:28:10]MH_SAM_APDU [13:28:10]CAPDU: 80 09 00 00 [13:28:10]Write to MH i2c: E2 08 00 63 32 80 09 00 00 00 00 00 00 07 [13:28:10]Write i2c OK [13:28:10]MH_I2C_Read... [13:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:10]Read from MH i2c: E2 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 03 00 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 03 00 63 32 00 90 00 09 [13:28:10]RAPDU: 90 00 [13:28:10]wFMCommunicate OK [13:28:10]SAM_PROTO_ClearQueue done [13:28:10]KKMCreateOFDPacket [13:28:10]OFDProtocolAddRootSTLVToBuf [13:28:10]FM_MakeSignedData [13:28:10]FM_MakeSignedData [13:28:10]SAM_PROTO_SignData [13:28:10]wFMCommunicate request_size=4 [13:28:10]MH_SAM_APDU [13:28:10]CAPDU: 80 0D 01 02 [13:28:10]Write to MH i2c: E2 08 00 64 32 80 0D 01 02 00 00 00 00 0F [13:28:10]Write i2c OK [13:28:10]MH_I2C_Read... [13:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:10]Read from MH i2c: E2 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 03 00 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 03 00 64 32 00 90 00 0A [13:28:10]RAPDU: 90 00 [13:28:10]wFMCommunicate OK [13:28:10]wFMCommunicate request_size=255 [13:28:10]MH_SAM_APDU [13:28: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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 81 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B6 01 00 35 04 06 00 DC [13:28:10]Write to MH i2c: E2 02 01 65 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 81 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B6 01 00 35 04 06 00 DC 00 00 C4 [13:28:10]Write i2c OK [13:28:10]MH_I2C_Read... [13:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:11]Read from MH i2c: E2 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 03 00 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [13:28:11]RAPDU: 90 00 [13:28:11]wFMCommunicate OK [13:28:11]wFMCommunicate request_size=10 [13:28:11]MH_SAM_APDU [13:28:11]CAPDU: 80 0D 02 02 05 3E 39 7F 3C 50 [13:28:11]Write to MH i2c: E2 0D 00 66 32 80 0D 02 02 05 00 3E 39 7F 3C 50 00 00 9E [13:28:11]Write i2c OK [13:28:11]MH_I2C_Read... [13:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:11]Read from MH i2c: E2 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 03 00 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [13:28:11]RAPDU: 90 00 [13:28:11]wFMCommunicate OK [13:28:11]wFMCommunicate request_size=4 [13:28:11]MH_SAM_APDU [13:28:11]CAPDU: 80 0D 03 02 [13:28:11]Write to MH i2c: E2 08 00 67 32 80 0D 03 02 00 00 00 00 14 [13:28:11]Write i2c OK [13:28:11]MH_I2C_Read... [13:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:11]Read from MH i2c: E2 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 0B 00 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 0B 00 67 32 00 1D D7 C1 5D 42 BA 0B 0C 90 00 3A [13:28:11]RAPDU: 1D D7 C1 5D 42 BA 0B 0C 90 00 [13:28:11]wFMCommunicate OK [13:28:11]SAM_PROTO_SignData done [13:28:11]FM_MakeSignedData done [13:28:11]CreateOFDProtocolMessage [13:28:11]wFMCommunicate request_size=4 [13:28:11]MH_SAM_APDU [13:28:11]CAPDU: 80 11 00 00 [13:28:11]Write to MH i2c: E2 08 00 68 32 80 11 00 00 00 00 00 00 14 [13:28:11]Write i2c OK [13:28:11]MH_I2C_Read... [13:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:11]Read from MH i2c: E2 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 17 00 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 17 00 68 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [13:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:28:11]wFMCommunicate OK [13:28:11]CreateOFDProtocolMessage done [13:28:11]OFDSenderStorePacket 112230 [13:28:11]StoreOFDPacket docnum=112230 [13:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 60 07 01 8D 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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 81 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B6 01 00 35 04 06 00 DC 3E 39 7F 3C 50 1D D7 C1 5D 42 BA 0B 0C [13:28:11]CheckFolder [13:28:11]dirname=/storage/ofd_packets [13:28:11]CheckFolder done [13:28:11]ProducePacketName [13:28:11]name=ofd_packets/00112230 [13:28:11]NVStorageSaveData ofd_packets/00112230 [13:28:11]File name is /storage/ofd_packets/00112230 [13:28:11]Write 301 bytes [13:28:11]NVStorageSaveData done [13:28:11]OFDSenderStorePacket done [13:28:11]KKMCreateOFDPacket done [13:28:11]NVStorageSaveData kkm_last_timestamp [13:28:11]File name is /storage/kkm_last_timestamp [13:28:11]Write 4 bytes [13:28:11]NVStorageSaveData done [13:28:11]ExternCall_PrintAddStr [13:28:11]wPrintStart [13:28:11]Write to MH i2c: 01 00 00 69 32 9B [13:28:11]Write i2c OK [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: 01 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: 01 07 00 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 FF 0F B0 [13:28:11]RasterBufferAndPrint [13:28:11]line Счет N : (1)320905 [13:28:11]line ИНН: 02508201610067 [13:28:11]line Контрольно-Кассовый Чек [13:28:11]line ПРОДАЖА [13:28:11]line ТРК (МРК, ГНК) : 11 [13:28:11]line Товар: 2710124130 [13:28:11]line Аи-92-К-5 [13:28:11]line 20.040 * 66.40 [13:28:11]line = 1330.66 [13:28:11]line НДС 12% НСП 1% [13:28:11]line > о реализуемом товаре [13:28:11]line ОКРУГЛЕНИЕ: -0.66 [13:28:11]line ИТОГО: 1330.00 [13:28:11]line Внесено: 1330.00 [13:28:11]line СДАЧА: 0.00 [13:28:11]line НСП 1% : 11.78 [13:28:11]line НДС 12% : 141.31 [13:28:11]line Наличными: 1330.00 [13:28:11]line Безнал.: 0.00 [13:28:11]line Место: АЗС № 65 "Партнер Нефть" [13:28:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:28:11]line СНО: Общий режим [13:28:11]line Чек 96 22.06.2024 13:28 [13:28:11]line Смена: 391 ФФД: 1.0 [13:28:11]line ЗНМ: 0300000198 [13:28:11]line РНМ: 0000000000092771 [13:28:11]line Версия ККМ: 001 [13:28:11]line ФМ: 0000000000875083 [13:28:11]line ФД: 112230 [13:28:11]line ФПД: 242159810722896 [13:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112230&fm=242159810722896&tin=02508201610067®Number=0000000000092771&sum=133000 [13:28:11]OFD Sender: Processing packet 112230 [packets to send 38, broken 37] [13:28:11]ProducePacketName [13:28:11]name=ofd_packets/00112230 [13:28:11]OFD Sender: To server: pG, [13:28:11]CommunicateWithHost lk.salyk.kg:30040 [13:28:11]ConnectInit lk.salyk.kg [13:28:11]written 0, free lines is 4095 [13:28:11]Connected sock=10 [13:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 60 07 01 8D 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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 81 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B6 01 00 35 04 06 00 DC 3E 39 7F 3C 50 1D D7 C1 5D 42 BA 0B 0C [13:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D 8C 47 00 07 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B6 01 00 F4 03 04 00 8D 68 76 66 B6 04 01 00 00 4E D8 8D 5C FE 46 7A F5 [13:28:11]CommunicateWithHost err = 0 [13:28:11]CheckOFDResponse [13:28:11]1017 (14) - 77093643461234 [13:28:11]1041 (16) - 0000000000875083 [13:28:11]1040 (4) - 112230 [13:28:11]1012 (4) - 22.06.2024 06:00 [13:28:11]1206 (1) - 0 [13:28:11]OFD Sender: Remove packet 112230 [13:28:11]ProducePacketName [13:28:11]name=ofd_packets/00112230 [13:28:11]NVStorageDeleteData [13:28:12]Write to MH i2c: 01 00 00 94 32 C6 [13:28:12]Write i2c OK [13:28:12]MH_I2C_Read... [13:28:12]Read from MH i2c: 01 [13:28:12]MH_I2C_Read... [13:28:12]Read from MH i2c: 01 07 00 [13:28:12]MH_I2C_Read... [13:28:12]Read from MH i2c: 01 07 00 94 32 00 00 00 00 00 EA 0C C3 [13:28:12]RasterBufferAndPrint [13:28:12]line [13:28:12]line [13:28:12]line [13:28:12]line [13:28:12]line [13:28:12]written 0, free lines is 3312 [13:28:12]MH_Cut [13:28:12]Write to MH i2c: D1 01 00 9B 32 01 9F [13:28:12]Write i2c OK [13:28:12]MH_I2C_Read... [13:28:12]Read from MH i2c: D1 [13:28:12]MH_I2C_Read... [13:28:12]Read from MH i2c: D1 01 00 [13:28:12]MH_I2C_Read... [13:28:12]Read from MH i2c: D1 01 00 9B 32 00 9E [13:28:12]Write to MH i2c: 01 00 00 9C 32 CE [13:28:12]Write i2c OK [13:28:12]MH_I2C_Read... [13:28:12]OFD Sender: No OFD packet to send [13:28:12]*** Cut start [13:28:12]*** Partial cut [13:28:12]*** CUTSNS_PIN = 1 [13:28:12]*** CUTSNS_PIN = 0 [13:28:13]*** Brake cut motor [13:28:13]Read from MH i2c: 01 [13:28:13]MH_I2C_Read... [13:28:13]*** Stop cut motor [13:28:13]*** Cut end [13:28:13]Read from MH i2c: 01 07 00 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: 01 07 00 9C 32 00 00 00 00 00 FF 0F E3 [13:28:13]process_action close_receipt done [13:28:13]requested_data is exist [13:28:13]produce_requested_data [13:28:13]requested_item fm.sn is exist - process it [13:28:13]wFMCommunicate request_size=4 [13:28:13]MH_SAM_APDU [13:28:13]CAPDU: 80 11 00 00 [13:28:13]Write to MH i2c: E2 08 00 9D 32 80 11 00 00 00 00 00 00 49 [13:28:13]Write i2c OK [13:28:13]MH_I2C_Read... [13:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:13]Read from MH i2c: E2 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: E2 17 00 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: E2 17 00 9D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [13:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:28:13]wFMCommunicate OK [13:28:13]requested_item fd.num is exist - process it [13:28:13]SAM_PROTO_GetFieldsCounters [13:28:13]wFMCommunicate request_size=4 [13:28:13]MH_SAM_APDU [13:28:13]CAPDU: 80 13 00 00 [13:28:13]Write to MH i2c: E2 08 00 9E 32 80 13 00 00 00 00 00 00 4C [13:28:13]Write i2c OK [13:28:13]MH_I2C_Read... [13:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:13]Read from MH i2c: E2 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: E2 62 00 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: E2 62 00 9E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [13:28:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:13]wFMCommunicate OK [13:28:13]SAM_PROTO_GetFieldsCounters done [13:28:13]requested_item shift.num is exist - process it [13:28:13]requested_item shift.opened is exist - process it [13:28:13]req_shift_opened [13:28:13]FM_GetShiftState [13:28:13]SAM_PROTO_GetShiftState [13:28:13]wFMCommunicate request_size=4 [13:28:13]MH_SAM_APDU [13:28:13]CAPDU: 80 13 01 00 [13:28:13]Write to MH i2c: E2 08 00 9F 32 80 13 01 00 00 00 00 00 4E [13:28:13]Write i2c OK [13:28:13]MH_I2C_Read... [13:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:13]Read from MH i2c: E2 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: E2 0E 00 [13:28:13]MH_I2C_Read... [13:28:13]Read from MH i2c: E2 0E 00 9F 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 83 [13:28:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:28:13]wFMCommunicate OK [13:28:13]SAM_PROTO_GetShiftState done [13:28:13]FM_GetShiftState done [13:28:13]req_shift_opened done [13:28:13]requested_item shift.open_date is exist - process it [13:28:13]req_shift_open_date [13:28:13]req_shift_open_date done [13:28:13]produce_requested_data done [13:28:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112230,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:28:13]process_action_free close_receipt [13:28:13]json_value_free [13:28:13]json_value_free done [13:28:13]process_json_proto returns [13:28:13]Send response to host [13:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112230,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:28:13]free response buf [13:28:13]execute_script done [13:28:13]execute_script returns [13:28:13]free content buf [13:28:13]Sock 7.Close socket [13:28:13]Sock 7.Thread stoped [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:28:59]accept exits with 9 [13:28:59]New connection [13:28:59]New thread 3066813796 created [13:28:59]Thread 3066957156 joined [13:28:59]Waiting for new connection... [13:28:59] Sock 9.Parse request [13:28:59]Sock 9.Check first char [13:28:59]Sock 9.First char is OK [13:28:59]request: POST /json_proto HTTP/1.0 [13:28:59]Method: POST [13:28:59]URL: /json_proto [13:28:59]Method is POST - this is cgi request [13:28:59]url: /json_proto [13:28:59]query_string will be loaded in cgi processing [13:28:59]execute_cgi json_proto POST (null) [13:28:59]execute_cgi path=json_proto method=POST [13:28:59]POST find Content-Length [13:28:59]Host: 172.17.59.68:8080 [13:28:59]Content-Length: 808 [13:28:59]Content-Type: application/json [13:28:59] [13:28:59]POST finish read [13:28:59]Found Content-Length = 808 [13:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320906", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:59]execute_script... [13:28: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)320906", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:59]POST & json_proto [13:28:59]process_json_proto [13:28:59]json parsed OK: [13:28:59]protocol is kg_v1.0 [13:28:59]action value=close_receipt [13:28:59]process_action close_receipt [13:28:59]cmd_close_receipt [13:28:59]MH_GetDate [13:28:59]Write to MH i2c: F0 00 00 A0 32 C1 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 A0 32 00 B3 D1 76 66 BC EC 60 65 97 [13:28:59]GetLastDocTimeStamp 1719062913 [13:28:59]current date 1719062963 [13:28:59]FM_GetShiftState [13:28:59]SAM_PROTO_GetShiftState [13:28:59]wFMCommunicate request_size=4 [13:28:59]MH_SAM_APDU [13:28:59]CAPDU: 80 13 01 00 [13:28:59]Write to MH i2c: E2 08 00 A1 32 80 13 01 00 00 00 00 00 50 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:59]Read from MH i2c: E2 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 A1 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 85 [13:28:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:28:59]wFMCommunicate OK [13:28:59]SAM_PROTO_GetShiftState done [13:28:59]FM_GetShiftState done [13:28:59]opened in 1719020067 [13:28:59]opened+sec_in_day 1719106467 [13:28:59]quantity*price = 100064 [13:28:59]sum+1 = 100066 [13:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 97 22.06.2024 13:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112231 ФПД: 266284180764517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132923&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112231&fm=266284180764517&tin=02508201610067®Number=0000000000092771&sum=100065 [13:29:00]StoreToDocumentArchive [13:29:00]shift 391 fd 112231 [13:29:00]save to /storage/0391/doc_00112231 [13:29:00]save last doc name /storage/0391/doc_00112231 to /storage/kkm_last_doc_name [13:29:00]save OK [13:29:00]Clear old archive folders... [13:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:00]tlvbuf is B6EC2800 [13:29:00]SAM_PROTO_ClearQueue [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 09 00 00 [13:29:00]Write to MH i2c: E2 08 00 AE 32 80 09 00 00 00 00 00 00 52 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 AE 32 00 90 00 54 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]SAM_PROTO_ClearQueue done [13:29:00]KKMCreateOFDPacket [13:29:00]OFDProtocolAddRootSTLVToBuf [13:29:00]FM_MakeSignedData [13:29:00]FM_MakeSignedData [13:29:00]SAM_PROTO_SignData [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 01 02 [13:29:00]Write to MH i2c: E2 08 00 AF 32 80 0D 01 02 00 00 00 00 5A [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 AF 32 00 90 00 55 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=255 [13:29:00]MH_SAM_APDU [13:29: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B6 01 00 35 04 06 00 F2 [13:29:00]Write to MH i2c: E2 02 01 B0 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B6 01 00 35 04 06 00 F2 00 00 39 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 B0 32 00 90 00 56 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=10 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 02 02 05 2F 1E 00 F7 65 [13:29:00]Write to MH i2c: E2 0D 00 B1 32 80 0D 02 02 05 00 2F 1E 00 F7 65 00 00 10 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 B1 32 00 90 00 57 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 03 02 [13:29:00]Write to MH i2c: E2 08 00 B2 32 80 0D 03 02 00 00 00 00 5F [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 0B 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 0B 00 B2 32 00 0B F3 20 5C F6 18 88 5C 90 00 CC [13:29:00]RAPDU: 0B F3 20 5C F6 18 88 5C 90 00 [13:29:00]wFMCommunicate OK [13:29:00]SAM_PROTO_SignData done [13:29:00]FM_MakeSignedData done [13:29:00]CreateOFDProtocolMessage [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 11 00 00 [13:29:00]Write to MH i2c: E2 08 00 B3 32 80 11 00 00 00 00 00 00 5F [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 17 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 17 00 B3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [13:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:00]wFMCommunicate OK [13:29:00]CreateOFDProtocolMessage done [13:29:00]OFDSenderStorePacket 112231 [13:29:00]StoreOFDPacket docnum=112231 [13:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 1C 07 01 3D 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B6 01 00 35 04 06 00 F2 2F 1E 00 F7 65 0B F3 20 5C F6 18 88 5C [13:29:00]CheckFolder [13:29:00]dirname=/storage/ofd_packets [13:29:00]CheckFolder done [13:29:00]ProducePacketName [13:29:00]name=ofd_packets/00112231 [13:29:00]NVStorageSaveData ofd_packets/00112231 [13:29:00]File name is /storage/ofd_packets/00112231 [13:29:00]Write 301 bytes [13:29:00]NVStorageSaveData done [13:29:00]OFDSenderStorePacket done [13:29:00]KKMCreateOFDPacket done [13:29:00]NVStorageSaveData kkm_last_timestamp [13:29:00]File name is /storage/kkm_last_timestamp [13:29:00]Write 4 bytes [13:29:00]NVStorageSaveData done [13:29:00]ExternCall_PrintAddStr [13:29:00]wPrintStart [13:29:00]Write to MH i2c: 01 00 00 B4 32 E6 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 07 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 07 00 B4 32 00 00 00 00 00 FF 0F FB [13:29:00]RasterBufferAndPrint [13:29:00]line Счет N : (1)320906 [13:29:00]line ИНН: 02508201610067 [13:29:00]line Контрольно-Кассовый Чек [13:29:00]line ПРОДАЖА [13:29:00]line ТРК (МРК, ГНК) : 11 [13:29:00]line Товар: 2710124130 [13:29:00]line Аи-92-К-5 [13:29:00]line 15.070 * 66.40 [13:29:00]line = 1000.65 [13:29:00]line НДС 12% НСП 1% [13:29:00]line > о реализуемом товаре [13:29:00]line ИТОГО: 1000.65 [13:29:00]line НСП 1% : 8.85 [13:29:00]line НДС 12% : 106.26 [13:29:00]line Наличными: 0.00 [13:29:00]line Безнал.: 1000.65 [13:29:00]line Место: АЗС № 65 "Партнер Нефть" [13:29:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:29:00]line СНО: Общий режим [13:29:00]line Чек 97 22.06.2024 13:29 [13:29:00]line Смена: 391 ФФД: 1.0 [13:29:00]line ЗНМ: 0300000198 [13:29:00]line РНМ: 0000000000092771 [13:29:00]line Версия ККМ: 001 [13:29:00]line Платежная система: О! деньги [13:29:00]line ФМ: 0000000000875083 [13:29:00]line ФД: 112231 [13:29:00]line ФПД: 266284180764517 [13:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T132923&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112231&fm=266284180764517&tin=02508201610067®Number=0000000000092771&sum=100065 [13:29:01]written 0, free lines is 4095 [13:29:01]OFD Sender: Processing packet 112231 [packets to send 38, broken 37] [13:29:01]ProducePacketName [13:29:01]name=ofd_packets/00112231 [13:29:01]OFD Sender: To server: pG, [13:29:01]CommunicateWithHost lk.salyk.kg:30040 [13:29:01]ConnectInit lk.salyk.kg [13:29:01]Connected sock=10 [13:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 1C 07 01 3D 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B3 D1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B6 01 00 35 04 06 00 F2 2F 1E 00 F7 65 0B F3 20 5C F6 18 88 5C [13:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 43 47 00 0F A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B6 01 00 F4 03 04 00 BE 68 76 66 B6 04 01 00 00 AD 0F 92 07 0D C0 29 80 [13:29:01]CommunicateWithHost err = 0 [13:29:01]CheckOFDResponse [13:29:01]1017 (14) - 77093643461234 [13:29:01]1041 (16) - 0000000000875083 [13:29:01]1040 (4) - 112231 [13:29:01]1012 (4) - 22.06.2024 06:01 [13:29:01]1206 (1) - 0 [13:29:01]OFD Sender: Remove packet 112231 [13:29:01]ProducePacketName [13:29:01]name=ofd_packets/00112231 [13:29:01]NVStorageDeleteData [13:29:01]Write to MH i2c: 01 00 00 DE 32 10 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 DE 32 00 00 00 00 00 EB 0C 0E [13:29:01]RasterBufferAndPrint [13:29:01]line [13:29:01]line [13:29:01]line [13:29:01]line [13:29:01]line [13:29:01]written 0, free lines is 3314 [13:29:01]MH_Cut [13:29:01]Write to MH i2c: D1 01 00 E5 32 01 E9 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: D1 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: D1 01 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: D1 01 00 E5 32 00 E8 [13:29:01]Write to MH i2c: 01 00 00 E6 32 18 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]OFD Sender: No OFD packet to send [13:29:02]*** Cut start [13:29:02]*** Partial cut [13:29:02]*** CUTSNS_PIN = 1 [13:29:02]*** CUTSNS_PIN = 0 [13:29:02]*** Brake cut motor [13:29:02]Read from MH i2c: 01 [13:29:02]MH_I2C_Read... [13:29:02]*** Stop cut motor [13:29:02]*** Cut end [13:29:02]Read from MH i2c: 01 07 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 E6 32 00 00 00 00 00 FF 0F 2D [13:29:02]process_action close_receipt done [13:29:02]requested_data is exist [13:29:02]produce_requested_data [13:29:02]requested_item fm.sn is exist - process it [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 11 00 00 [13:29:02]Write to MH i2c: E2 08 00 E7 32 80 11 00 00 00 00 00 00 93 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 17 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 17 00 E7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [13:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:02]wFMCommunicate OK [13:29:02]requested_item fd.num is exist - process it [13:29:02]SAM_PROTO_GetFieldsCounters [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 13 00 00 [13:29:02]Write to MH i2c: E2 08 00 E8 32 80 13 00 00 00 00 00 00 96 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 62 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 62 00 E8 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [13:29:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_GetFieldsCounters done [13:29:03]requested_item shift.num is exist - process it [13:29:03]requested_item shift.opened is exist - process it [13:29:03]req_shift_opened [13:29:03]FM_GetShiftState [13:29:03]SAM_PROTO_GetShiftState [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 13 01 00 [13:29:03]Write to MH i2c: E2 08 00 E9 32 80 13 01 00 00 00 00 00 98 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0E 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0E 00 E9 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CD [13:29:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_GetShiftState done [13:29:03]FM_GetShiftState done [13:29:03]req_shift_opened done [13:29:03]requested_item shift.open_date is exist - process it [13:29:03]req_shift_open_date [13:29:03]req_shift_open_date done [13:29:03]produce_requested_data done [13:29:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112231,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:29:03]process_action_free close_receipt [13:29:03]json_value_free [13:29:03]json_value_free done [13:29:03]process_json_proto returns [13:29:03]Send response to host [13:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112231,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:29:03]free response buf [13:29:03]execute_script done [13:29:03]execute_script returns [13:29:03]free content buf [13:29:03]Sock 9.Close socket [13:29:03]Sock 9.Thread stoped [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]accept exits with 7 [13:30:16]New connection [13:30:16]New thread 3066957156 created [13:30:16]Thread 3066813796 joined [13:30:16]Waiting for new connection... [13:30:16] Sock 7.Parse request [13:30:16]Sock 7.Check first char [13:30:16]Sock 7.First char is OK [13:30:16]request: POST /json_proto HTTP/1.0 [13:30:16]Method: POST [13:30:16]URL: /json_proto [13:30:16]Method is POST - this is cgi request [13:30:16]url: /json_proto [13:30:16]query_string will be loaded in cgi processing [13:30:16]execute_cgi json_proto POST (null) [13:30:16]execute_cgi path=json_proto method=POST [13:30:16]POST find Content-Length [13:30:16]Host: 172.17.59.68:8080 [13:30:16]Content-Length: 679 [13:30:16]Content-Type: application/json [13:30:16] [13:30:16]POST finish read [13:30:16]Found Content-Length = 679 [13:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:16]execute_script... [13:30: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)320907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:16]POST & json_proto [13:30:16]process_json_proto [13:30:16]json parsed OK: [13:30:16]protocol is kg_v1.0 [13:30:16]action value=close_receipt [13:30:16]process_action close_receipt [13:30:16]cmd_close_receipt [13:30:16]MH_GetDate [13:30:16]Write to MH i2c: F0 00 00 EA 32 0B [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: F0 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: F0 09 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: F0 09 00 EA 32 00 00 D2 76 66 BC EC 60 65 2F [13:30:16]GetLastDocTimeStamp 1719062963 [13:30:16]current date 1719063040 [13:30:16]FM_GetShiftState [13:30:16]SAM_PROTO_GetShiftState [13:30:16]wFMCommunicate request_size=4 [13:30:16]MH_SAM_APDU [13:30:16]CAPDU: 80 13 01 00 [13:30:16]Write to MH i2c: E2 08 00 EB 32 80 13 01 00 00 00 00 00 9A [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:16]Read from MH i2c: E2 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 0E 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 0E 00 EB 32 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CF [13:30:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:30:16]wFMCommunicate OK [13:30:16]SAM_PROTO_GetShiftState done [13:30:16]FM_GetShiftState done [13:30:16]opened in 1719020067 [13:30:16]opened+sec_in_day 1719106467 [13:30:16]quantity*price = 200037 [13:30:16]sum+1 = 200039 [13:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 98 22.06.2024 13:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112232 ФПД: 219926146961508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112232&fm=219926146961508&tin=02508201610067®Number=0000000000092771&sum=200000 [13:30:17]StoreToDocumentArchive [13:30:17]shift 391 fd 112232 [13:30:17]save to /storage/0391/doc_00112232 [13:30:17]save last doc name /storage/0391/doc_00112232 to /storage/kkm_last_doc_name [13:30:17]save OK [13:30:17]Clear old archive folders... [13:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:17]tlvbuf is 0112BB60 [13:30:17]SAM_PROTO_ClearQueue [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 09 00 00 [13:30:17]Write to MH i2c: E2 08 00 F8 32 80 09 00 00 00 00 00 00 9C [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 F8 32 00 90 00 9E [13:30:17]RAPDU: 90 00 [13:30:17]wFMCommunicate OK [13:30:17]SAM_PROTO_ClearQueue done [13:30:17]KKMCreateOFDPacket [13:30:17]OFDProtocolAddRootSTLVToBuf [13:30:17]FM_MakeSignedData [13:30:17]FM_MakeSignedData [13:30:17]SAM_PROTO_SignData [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 0D 01 02 [13:30:17]Write to MH i2c: E2 08 00 F9 32 80 0D 01 02 00 00 00 00 A4 [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 F9 32 00 90 00 9F [13:30:17]RAPDU: 90 00 [13:30:17]wFMCommunicate OK [13:30:17]wFMCommunicate request_size=255 [13:30:17]MH_SAM_APDU [13:30: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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B6 01 00 35 04 06 00 C8 05 8B DD [13:30:17]Write to MH i2c: E2 02 01 FA 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B6 01 00 35 04 06 00 C8 05 8B DD 00 00 71 [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 FA 32 00 90 00 A0 [13:30:17]RAPDU: 90 00 [13:30:17]wFMCommunicate OK [13:30:17]wFMCommunicate request_size=7 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 0D 02 02 02 D0 64 [13:30:17]Write to MH i2c: E2 0A 00 FB 32 80 0D 02 02 02 00 D0 64 00 00 DF [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 03 00 FB 32 00 90 00 A1 [13:30:17]RAPDU: 90 00 [13:30:17]wFMCommunicate OK [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 0D 03 02 [13:30:17]Write to MH i2c: E2 08 00 FC 32 80 0D 03 02 00 00 00 00 A9 [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:17]Read from MH i2c: E2 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 0B 00 [13:30:17]MH_I2C_Read... [13:30:17]Read from MH i2c: E2 0B 00 FC 32 00 53 9F 8A 59 02 0A 46 2D 90 00 FE [13:30:17]RAPDU: 53 9F 8A 59 02 0A 46 2D 90 00 [13:30:17]wFMCommunicate OK [13:30:17]SAM_PROTO_SignData done [13:30:17]FM_MakeSignedData done [13:30:17]CreateOFDProtocolMessage [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 11 00 00 [13:30:17]Write to MH i2c: E2 08 00 FD 32 80 11 00 00 00 00 00 00 A9 [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 17 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 17 00 FD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [13:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:18]wFMCommunicate OK [13:30:18]CreateOFDProtocolMessage done [13:30:18]OFDSenderStorePacket 112232 [13:30:18]StoreOFDPacket docnum=112232 [13:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 25 C3 04 01 E2 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B6 01 00 35 04 06 00 C8 05 8B DD D0 64 53 9F 8A 59 02 0A 46 2D [13:30:18]CheckFolder [13:30:18]dirname=/storage/ofd_packets [13:30:18]CheckFolder done [13:30:18]ProducePacketName [13:30:18]name=ofd_packets/00112232 [13:30:18]NVStorageSaveData ofd_packets/00112232 [13:30:18]File name is /storage/ofd_packets/00112232 [13:30:18]Write 298 bytes [13:30:18]NVStorageSaveData done [13:30:18]OFDSenderStorePacket done [13:30:18]KKMCreateOFDPacket done [13:30:18]NVStorageSaveData kkm_last_timestamp [13:30:18]File name is /storage/kkm_last_timestamp [13:30:18]Write 4 bytes [13:30:18]NVStorageSaveData done [13:30:18]ExternCall_PrintAddStr [13:30:18]wPrintStart [13:30:18]Write to MH i2c: 01 00 00 FE 32 30 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 07 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 07 00 FE 32 00 00 00 00 00 FF 0F 45 [13:30:18]RasterBufferAndPrint [13:30:18]line Счет N : (1)320907 [13:30:18]line ИНН: 02508201610067 [13:30:18]line Контрольно-Кассовый Чек [13:30:18]line ПРОДАЖА [13:30:18]line ТРК (МРК, ГНК) : 22 [13:30:18]line Товар: 2710194210 [13:30:18]line ДТ-К-5 [13:30:18]line 27.440 * 72.90 [13:30:18]line = 2000.38 [13:30:18]line НДС 12% НСП 1% [13:30:18]line > о реализуемом товаре [13:30:18]line ОКРУГЛЕНИЕ: -0.38 [13:30:18]line ИТОГО: 2000.00 [13:30:18]line Внесено: 2000.00 [13:30:18]line СДАЧА: 0.00 [13:30:18]line НСП 1% : 17.70 [13:30:18]line НДС 12% : 212.43 [13:30:18]line Наличными: 2000.00 [13:30:18]line Безнал.: 0.00 [13:30:18]line Место: АЗС № 65 "Партнер Нефть" [13:30:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:30:18]line СНО: Общий режим [13:30:18]line Чек 98 22.06.2024 13:30 [13:30:18]line Смена: 391 ФФД: 1.0 [13:30:18]line ЗНМ: 0300000198 [13:30:18]line РНМ: 0000000000092771 [13:30:18]line Версия ККМ: 001 [13:30:18]line ФМ: 0000000000875083 [13:30:18]line ФД: 112232 [13:30:18]line ФПД: 219926146961508 [13:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112232&fm=219926146961508&tin=02508201610067®Number=0000000000092771&sum=200000 [13:30:18]OFD Sender: Processing packet 112232 [packets to send 38, broken 37] [13:30:18]ProducePacketName [13:30:18]name=ofd_packets/00112232 [13:30:18]OFD Sender: To server: pG, [13:30:18]CommunicateWithHost lk.salyk.kg:30040 [13:30:18]ConnectInit lk.salyk.kg [13:30:18]written 0, free lines is 4095 [13:30:18]Connected sock=9 [13:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 25 C3 04 01 E2 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B6 01 00 35 04 06 00 C8 05 8B DD D0 64 53 9F 8A 59 02 0A 46 2D [13:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D3 6A 47 00 81 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 35 30 38 33 10 04 04 00 68 B6 01 00 F4 03 04 00 0B 69 76 66 B6 04 01 00 00 FE 92 F9 DA 64 85 8D D8 [13:30:18]CommunicateWithHost err = 0 [13:30:18]CheckOFDResponse [13:30:18]1017 (14) - 77093643461234 [13:30:18]1041 (16) - 0000000000875083 [13:30:18]1040 (4) - 112232 [13:30:18]1012 (4) - 22.06.2024 06:02 [13:30:18]1206 (1) - 0 [13:30:18]OFD Sender: Remove packet 112232 [13:30:18]ProducePacketName [13:30:18]name=ofd_packets/00112232 [13:30:18]NVStorageDeleteData [13:30:18]Write to MH i2c: 01 00 00 29 33 5C [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 07 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 07 00 29 33 00 00 00 00 00 F5 0C 64 [13:30:18]RasterBufferAndPrint [13:30:18]line [13:30:18]line [13:30:18]line [13:30:18]line [13:30:18]line [13:30:18]written 0, free lines is 3323 [13:30:18]MH_Cut [13:30:18]Write to MH i2c: D1 01 00 30 33 01 35 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: D1 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: D1 01 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: D1 01 00 30 33 00 34 [13:30:18]Write to MH i2c: 01 00 00 31 33 64 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:19]OFD Sender: No OFD packet to send [13:30:19]*** Cut start [13:30:19]*** Partial cut [13:30:19]*** CUTSNS_PIN = 1 [13:30:19]*** CUTSNS_PIN = 0 [13:30:19]*** Brake cut motor [13:30:20]Read from MH i2c: 01 [13:30:20]MH_I2C_Read... [13:30:20]*** Stop cut motor [13:30:20]*** Cut end [13:30:20]Read from MH i2c: 01 07 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: 01 07 00 31 33 00 00 00 00 00 FF 0F 79 [13:30:20]process_action close_receipt done [13:30:20]requested_data is exist [13:30:20]produce_requested_data [13:30:20]requested_item fm.sn is exist - process it [13:30:20]wFMCommunicate request_size=4 [13:30:20]MH_SAM_APDU [13:30:20]CAPDU: 80 11 00 00 [13:30:20]Write to MH i2c: E2 08 00 32 33 80 11 00 00 00 00 00 00 DF [13:30:20]Write i2c OK [13:30:20]MH_I2C_Read... [13:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:20]Read from MH i2c: E2 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 17 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 17 00 32 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [13:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:20]wFMCommunicate OK [13:30:20]requested_item fd.num is exist - process it [13:30:20]SAM_PROTO_GetFieldsCounters [13:30:20]wFMCommunicate request_size=4 [13:30:20]MH_SAM_APDU [13:30:20]CAPDU: 80 13 00 00 [13:30:20]Write to MH i2c: E2 08 00 33 33 80 13 00 00 00 00 00 00 E2 [13:30:20]Write i2c OK [13:30:20]MH_I2C_Read... [13:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:20]Read from MH i2c: E2 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 62 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 62 00 33 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [13:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:20]wFMCommunicate OK [13:30:20]SAM_PROTO_GetFieldsCounters done [13:30:20]requested_item shift.num is exist - process it [13:30:20]requested_item shift.opened is exist - process it [13:30:20]req_shift_opened [13:30:20]FM_GetShiftState [13:30:20]SAM_PROTO_GetShiftState [13:30:20]wFMCommunicate request_size=4 [13:30:20]MH_SAM_APDU [13:30:20]CAPDU: 80 13 01 00 [13:30:20]Write to MH i2c: E2 08 00 34 33 80 13 01 00 00 00 00 00 E4 [13:30:20]Write i2c OK [13:30:20]MH_I2C_Read... [13:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:20]Read from MH i2c: E2 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 0E 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 0E 00 34 33 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 19 [13:30:20]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:30:20]wFMCommunicate OK [13:30:20]SAM_PROTO_GetShiftState done [13:30:20]FM_GetShiftState done [13:30:20]req_shift_opened done [13:30:20]requested_item shift.open_date is exist - process it [13:30:20]req_shift_open_date [13:30:20]req_shift_open_date done [13:30:20]produce_requested_data done [13:30:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112232,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:30:20]process_action_free close_receipt [13:30:20]json_value_free [13:30:20]json_value_free done [13:30:20]process_json_proto returns [13:30:20]Send response to host [13:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112232,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:30:20]free response buf [13:30:20]execute_script done [13:30:20]execute_script returns [13:30:20]free content buf [13:30:20]Sock 7.Close socket [13:30:20]Sock 7.Thread stoped [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:41]accept exits with 10 [13:30:41]New connection [13:30:41]New thread 3066813796 created [13:30:41]Thread 3066957156 joined [13:30:41]Waiting for new connection... [13:30:41] Sock 10.Parse request [13:30:41]Sock 10.Check first char [13:30:41]Sock 10.First char is OK [13:30:41]request: POST /json_proto HTTP/1.0 [13:30:41]Method: POST [13:30:41]URL: /json_proto [13:30:41]Method is POST - this is cgi request [13:30:41]url: /json_proto [13:30:41]query_string will be loaded in cgi processing [13:30:41]execute_cgi json_proto POST (null) [13:30:41]execute_cgi path=json_proto method=POST [13:30:41]POST find Content-Length [13:30:41]Host: 172.17.59.68:8080 [13:30:41]Content-Length: 682 [13:30:41]Content-Type: application/json [13:30:41] [13:30:41]POST finish read [13:30:41]Found Content-Length = 682 [13:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320908", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:41]execute_script... [13:30: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)320908", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:41]POST & json_proto [13:30:41]process_json_proto [13:30:41]json parsed OK: [13:30:41]protocol is kg_v1.0 [13:30:41]action value=close_receipt [13:30:41]process_action close_receipt [13:30:41]cmd_close_receipt [13:30:41]MH_GetDate [13:30:41]Write to MH i2c: F0 00 00 35 33 57 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: F0 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: F0 09 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: F0 09 00 35 33 00 1A D2 76 66 BC EC 60 65 95 [13:30:41]GetLastDocTimeStamp 1719063040 [13:30:41]current date 1719063066 [13:30:41]FM_GetShiftState [13:30:41]SAM_PROTO_GetShiftState [13:30:41]wFMCommunicate request_size=4 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 13 01 00 [13:30:41]Write to MH i2c: E2 08 00 36 33 80 13 01 00 00 00 00 00 E6 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 36 33 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1B [13:30:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_GetShiftState done [13:30:42]FM_GetShiftState done [13:30:42]opened in 1719020067 [13:30:42]opened+sec_in_day 1719106467 [13:30:42]quantity*price = 100064 [13:30:42]sum+1 = 100066 [13:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 99 22.06.2024 13:31 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112233 ФПД: 93321555028167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133106&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112233&fm=93321555028167&tin=02508201610067®Number=0000000000092771&sum=100000 [13:30:43]StoreToDocumentArchive [13:30:43]shift 391 fd 112233 [13:30:43]save to /storage/0391/doc_00112233 [13:30:43]save last doc name /storage/0391/doc_00112233 to /storage/kkm_last_doc_name [13:30:43]save OK [13:30:43]Clear old archive folders... [13:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:43]tlvbuf is 011AFEE0 [13:30:43]SAM_PROTO_ClearQueue [13:30:43]wFMCommunicate request_size=4 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 09 00 00 [13:30:43]Write to MH i2c: E2 08 00 43 33 80 09 00 00 00 00 00 00 E8 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 43 33 00 90 00 EA [13:30:43]RAPDU: 90 00 [13:30:43]wFMCommunicate OK [13:30:43]SAM_PROTO_ClearQueue done [13:30:43]KKMCreateOFDPacket [13:30:43]OFDProtocolAddRootSTLVToBuf [13:30:43]FM_MakeSignedData [13:30:43]FM_MakeSignedData [13:30:43]SAM_PROTO_SignData [13:30:43]wFMCommunicate request_size=4 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 0D 01 02 [13:30:43]Write to MH i2c: E2 08 00 44 33 80 0D 01 02 00 00 00 00 F0 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 44 33 00 90 00 EB [13:30:43]RAPDU: 90 00 [13:30:43]wFMCommunicate OK [13:30:43]wFMCommunicate request_size=255 [13:30:43]MH_SAM_APDU [13:30: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B6 01 00 35 04 06 00 54 [13:30:43]Write to MH i2c: E2 02 01 45 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B6 01 00 35 04 06 00 54 00 00 1B [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 45 33 00 90 00 EC [13:30:43]RAPDU: 90 00 [13:30:43]wFMCommunicate OK [13:30:43]wFMCommunicate request_size=10 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 0D 02 02 05 E0 1E 23 28 C7 [13:30:43]Write to MH i2c: E2 0D 00 46 33 80 0D 02 02 05 00 E0 1E 23 28 C7 00 00 0D [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 46 33 00 90 00 ED [13:30:43]RAPDU: 90 00 [13:30:43]wFMCommunicate OK [13:30:43]wFMCommunicate request_size=4 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 0D 03 02 [13:30:43]Write to MH i2c: E2 08 00 47 33 80 0D 03 02 00 00 00 00 F5 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 0B 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 0B 00 47 33 00 BD FE 12 98 FE E7 CB 5E 90 00 69 [13:30:43]RAPDU: BD FE 12 98 FE E7 CB 5E 90 00 [13:30:43]wFMCommunicate OK [13:30:43]SAM_PROTO_SignData done [13:30:43]FM_MakeSignedData done [13:30:43]CreateOFDProtocolMessage [13:30:43]wFMCommunicate request_size=4 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 11 00 00 [13:30:43]Write to MH i2c: E2 08 00 48 33 80 11 00 00 00 00 00 00 F5 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 17 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 17 00 48 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [13:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:43]wFMCommunicate OK [13:30:43]CreateOFDProtocolMessage done [13:30:43]OFDSenderStorePacket 112233 [13:30:43]StoreOFDPacket docnum=112233 [13:30:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B 18 07 01 BA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B6 01 00 35 04 06 00 54 E0 1E 23 28 C7 BD FE 12 98 FE E7 CB 5E [13:30:43]CheckFolder [13:30:43]dirname=/storage/ofd_packets [13:30:43]CheckFolder done [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00112233 [13:30:43]NVStorageSaveData ofd_packets/00112233 [13:30:43]File name is /storage/ofd_packets/00112233 [13:30:43]Write 301 bytes [13:30:43]NVStorageSaveData done [13:30:43]OFDSenderStorePacket done [13:30:43]KKMCreateOFDPacket done [13:30:43]NVStorageSaveData kkm_last_timestamp [13:30:43]File name is /storage/kkm_last_timestamp [13:30:43]Write 4 bytes [13:30:43]NVStorageSaveData done [13:30:43]ExternCall_PrintAddStr [13:30:43]wPrintStart [13:30:43]Write to MH i2c: 01 00 00 49 33 7C [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: 01 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: 01 07 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: 01 07 00 49 33 00 00 00 00 00 FF 0F 91 [13:30:43]RasterBufferAndPrint [13:30:43]line Счет N : (1)320908 [13:30:43]line ИНН: 02508201610067 [13:30:43]line Контрольно-Кассовый Чек [13:30:43]line ПРОДАЖА [13:30:43]line ТРК (МРК, ГНК) : 11 [13:30:43]line Товар: 2710124130 [13:30:43]line Аи-92-К-5 [13:30:43]line 15.070 * 66.40 [13:30:43]line = 1000.65 [13:30:43]line НДС 12% НСП 1% [13:30:43]line > о реализуемом товаре [13:30:43]line ОКРУГЛЕНИЕ: -0.65 [13:30:43]line ИТОГО: 1000.00 [13:30:43]line Внесено: 1000.00 [13:30:43]line СДАЧА: 0.00 [13:30:43]line НСП 1% : 8.85 [13:30:43]line НДС 12% : 106.26 [13:30:43]line Наличными: 1000.00 [13:30:43]line Безнал.: 0.00 [13:30:43]line Место: АЗС № 65 "Партнер Нефть" [13:30:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:30:43]line СНО: Общий режим [13:30:43]line Чек 99 22.06.2024 13:31 [13:30:43]line Смена: 391 ФФД: 1.0 [13:30:43]line ЗНМ: 0300000198 [13:30:43]line РНМ: 0000000000092771 [13:30:43]line Версия ККМ: 001 [13:30:43]line ФМ: 0000000000875083 [13:30:43]line ФД: 112233 [13:30:43]line ФПД: 93321555028167 [13:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133106&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112233&fm=93321555028167&tin=02508201610067®Number=0000000000092771&sum=100000 [13:30:43]OFD Sender: Processing packet 112233 [packets to send 38, broken 37] [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00112233 [13:30:43]OFD Sender: To server: pG, [13:30:43]CommunicateWithHost lk.salyk.kg:30040 [13:30:43]ConnectInit lk.salyk.kg [13:30:43]written 0, free lines is 4095 [13:30:44]Connected sock=9 [13:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B 18 07 01 BA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 1A D2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B6 01 00 35 04 06 00 54 E0 1E 23 28 C7 BD FE 12 98 FE E7 CB 5E [13:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BA C5 47 00 80 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B6 01 00 F4 03 04 00 25 69 76 66 B6 04 01 00 00 0E C8 0B 12 1C 64 F2 12 [13:30:44]CommunicateWithHost err = 0 [13:30:44]CheckOFDResponse [13:30:44]1017 (14) - 77093643461234 [13:30:44]1041 (16) - 0000000000875083 [13:30:44]1040 (4) - 112233 [13:30:44]1012 (4) - 22.06.2024 06:03 [13:30:44]1206 (1) - 0 [13:30:44]OFD Sender: Remove packet 112233 [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00112233 [13:30:44]NVStorageDeleteData [13:30:44]Write to MH i2c: 01 00 00 74 33 A7 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 74 33 00 00 00 00 00 E0 0C 9A [13:30:44]RasterBufferAndPrint [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]written 0, free lines is 3302 [13:30:44]MH_Cut [13:30:44]Write to MH i2c: D1 01 00 7B 33 01 80 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 01 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 01 00 7B 33 00 7F [13:30:44]Write to MH i2c: 01 00 00 7C 33 AF [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]OFD Sender: No OFD packet to send [13:30:45]*** Cut start [13:30:45]*** Partial cut [13:30:45]*** CUTSNS_PIN = 1 [13:30:45]*** CUTSNS_PIN = 0 [13:30:45]*** Brake cut motor [13:30:45]Read from MH i2c: 01 [13:30:45]MH_I2C_Read... [13:30:45]*** Stop cut motor [13:30:45]*** Cut end [13:30:45]Read from MH i2c: 01 07 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: 01 07 00 7C 33 00 00 00 00 00 FF 0F C4 [13:30:45]process_action close_receipt done [13:30:45]requested_data is exist [13:30:45]produce_requested_data [13:30:45]requested_item fm.sn is exist - process it [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 11 00 00 [13:30:45]Write to MH i2c: E2 08 00 7D 33 80 11 00 00 00 00 00 00 2A [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 17 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 17 00 7D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [13:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:30:45]wFMCommunicate OK [13:30:45]requested_item fd.num is exist - process it [13:30:45]SAM_PROTO_GetFieldsCounters [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 00 00 [13:30:45]Write to MH i2c: E2 08 00 7E 33 80 13 00 00 00 00 00 00 2D [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 62 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 62 00 7E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:45]wFMCommunicate OK [13:30:45]SAM_PROTO_GetFieldsCounters done [13:30:45]requested_item shift.num is exist - process it [13:30:45]requested_item shift.opened is exist - process it [13:30:45]req_shift_opened [13:30:45]FM_GetShiftState [13:30:45]SAM_PROTO_GetShiftState [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 01 00 [13:30:45]Write to MH i2c: E2 08 00 7F 33 80 13 01 00 00 00 00 00 2F [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 7F 33 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 64 [13:30:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_GetShiftState done [13:30:46]FM_GetShiftState done [13:30:46]req_shift_opened done [13:30:46]requested_item shift.open_date is exist - process it [13:30:46]req_shift_open_date [13:30:46]req_shift_open_date done [13:30:46]produce_requested_data done [13:30:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112233,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:30:46]process_action_free close_receipt [13:30:46]json_value_free [13:30:46]json_value_free done [13:30:46]process_json_proto returns [13:30:46]Send response to host [13:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112233,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:30:46]free response buf [13:30:46]execute_script done [13:30:46]execute_script returns [13:30:46]free content buf [13:30:46]Sock 10.Close socket [13:30:46]Sock 10.Thread stoped [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:53]accept exits with 7 [13:37:53]New connection [13:37:53]New thread 3066957156 created [13:37:53]Thread 3066813796 joined [13:37:53]Waiting for new connection... [13:37:53] Sock 7.Parse request [13:37:53]Sock 7.Check first char [13:37:53]Sock 7.First char is OK [13:37:53]request: POST /json_proto HTTP/1.0 [13:37:53]Method: POST [13:37:53]URL: /json_proto [13:37:53]Method is POST - this is cgi request [13:37:53]url: /json_proto [13:37:53]query_string will be loaded in cgi processing [13:37:53]execute_cgi json_proto POST (null) [13:37:53]execute_cgi path=json_proto method=POST [13:37:53]POST find Content-Length [13:37:53]Host: 172.17.59.68:8080 [13:37:53]Content-Length: 677 [13:37:53]Content-Type: application/json [13:37:53] [13:37:53]POST finish read [13:37:53]Found Content-Length = 677 [13:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320909", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:37:53]execute_script... [13:37: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)320909", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:37:53]POST & json_proto [13:37:53]process_json_proto [13:37:53]json parsed OK: [13:37:53]protocol is kg_v1.0 [13:37:53]action value=close_receipt [13:37:53]process_action close_receipt [13:37:53]cmd_close_receipt [13:37:53]MH_GetDate [13:37:53]Write to MH i2c: F0 00 00 80 33 A2 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: F0 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: F0 09 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: F0 09 00 80 33 00 CA D3 76 66 BC EC 60 65 91 [13:37:53]GetLastDocTimeStamp 1719063066 [13:37:53]current date 1719063498 [13:37:53]FM_GetShiftState [13:37:53]SAM_PROTO_GetShiftState [13:37:53]wFMCommunicate request_size=4 [13:37:53]MH_SAM_APDU [13:37:53]CAPDU: 80 13 01 00 [13:37:53]Write to MH i2c: E2 08 00 81 33 80 13 01 00 00 00 00 00 31 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:53]Read from MH i2c: E2 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 0E 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: E2 0E 00 81 33 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 66 [13:37:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:37:53]wFMCommunicate OK [13:37:53]SAM_PROTO_GetShiftState done [13:37:53]FM_GetShiftState done [13:37:53]opened in 1719020067 [13:37:53]opened+sec_in_day 1719106467 [13:37:53]quantity*price = 20052 [13:37:53]sum+1 = 20054 [13:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 100 22.06.2024 13:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112234 ФПД: 252768443847888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133818&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112234&fm=252768443847888&tin=02508201610067®Number=0000000000092771&sum=20000 [13:37:54]StoreToDocumentArchive [13:37:54]shift 391 fd 112234 [13:37:54]save to /storage/0391/doc_00112234 [13:37:54]save last doc name /storage/0391/doc_00112234 to /storage/kkm_last_doc_name [13:37:54]save OK [13:37:54]Clear old archive folders... [13:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:54]tlvbuf is 011F1C50 [13:37:54]SAM_PROTO_ClearQueue [13:37:54]wFMCommunicate request_size=4 [13:37:54]MH_SAM_APDU [13:37:54]CAPDU: 80 09 00 00 [13:37:54]Write to MH i2c: E2 08 00 8E 33 80 09 00 00 00 00 00 00 33 [13:37:54]Write i2c OK [13:37:54]MH_I2C_Read... [13:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:54]Read from MH i2c: E2 [13:37:54]MH_I2C_Read... [13:37:54]Read from MH i2c: E2 03 00 [13:37:54]MH_I2C_Read... [13:37:54]Read from MH i2c: E2 03 00 8E 33 00 90 00 35 [13:37:54]RAPDU: 90 00 [13:37:54]wFMCommunicate OK [13:37:54]SAM_PROTO_ClearQueue done [13:37:54]KKMCreateOFDPacket [13:37:54]OFDProtocolAddRootSTLVToBuf [13:37:54]FM_MakeSignedData [13:37:54]FM_MakeSignedData [13:37:54]SAM_PROTO_SignData [13:37:54]wFMCommunicate request_size=4 [13:37:54]MH_SAM_APDU [13:37:54]CAPDU: 80 0D 01 02 [13:37:54]Write to MH i2c: E2 08 00 8F 33 80 0D 01 02 00 00 00 00 3B [13:37:54]Write i2c OK [13:37:54]MH_I2C_Read... [13:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:54]Read from MH i2c: E2 [13:37:54]MH_I2C_Read... [13:37:54]Read from MH i2c: E2 03 00 [13:37:54]MH_I2C_Read... [13:37:54]Read from MH i2c: E2 03 00 8F 33 00 90 00 36 [13:37:54]RAPDU: 90 00 [13:37:54]wFMCommunicate OK [13:37:54]wFMCommunicate request_size=255 [13:37:54]MH_SAM_APDU [13:37: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CA D3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B6 01 00 35 04 06 00 E5 [13:37:54]Write to MH i2c: E2 02 01 90 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CA D3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B6 01 00 35 04 06 00 E5 00 00 19 [13:37:54]Write i2c OK [13:37:54]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 03 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 03 00 90 33 00 90 00 37 [13:37:55]RAPDU: 90 00 [13:37:55]wFMCommunicate OK [13:37:55]wFMCommunicate request_size=10 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 0D 02 02 05 E4 3D 4E 54 D0 [13:37:55]Write to MH i2c: E2 0D 00 91 33 80 0D 02 02 05 00 E4 3D 4E 54 D0 00 00 DB [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]OFD Sender: No OFD packet to send [13:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 03 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 03 00 91 33 00 90 00 38 [13:37:55]RAPDU: 90 00 [13:37:55]wFMCommunicate OK [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 0D 03 02 [13:37:55]Write to MH i2c: E2 08 00 92 33 80 0D 03 02 00 00 00 00 40 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 0B 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 0B 00 92 33 00 1E 42 17 2E B0 CB 32 C1 90 00 54 [13:37:55]RAPDU: 1E 42 17 2E B0 CB 32 C1 90 00 [13:37:55]wFMCommunicate OK [13:37:55]SAM_PROTO_SignData done [13:37:55]FM_MakeSignedData done [13:37:55]CreateOFDProtocolMessage [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 11 00 00 [13:37:55]Write to MH i2c: E2 08 00 93 33 80 11 00 00 00 00 00 00 40 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 17 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 17 00 93 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [13:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:37:55]wFMCommunicate OK [13:37:55]CreateOFDProtocolMessage done [13:37:55]OFDSenderStorePacket 112234 [13:37:55]StoreOFDPacket docnum=112234 [13:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F D9 07 01 CD 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CA D3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B6 01 00 35 04 06 00 E5 E4 3D 4E 54 D0 1E 42 17 2E B0 CB 32 C1 [13:37:55]CheckFolder [13:37:55]dirname=/storage/ofd_packets [13:37:55]CheckFolder done [13:37:55]ProducePacketName [13:37:55]name=ofd_packets/00112234 [13:37:55]NVStorageSaveData ofd_packets/00112234 [13:37:55]File name is /storage/ofd_packets/00112234 [13:37:55]Write 301 bytes [13:37:55]NVStorageSaveData done [13:37:55]OFDSenderStorePacket done [13:37:55]KKMCreateOFDPacket done [13:37:55]NVStorageSaveData kkm_last_timestamp [13:37:55]File name is /storage/kkm_last_timestamp [13:37:55]Write 4 bytes [13:37:55]NVStorageSaveData done [13:37:55]ExternCall_PrintAddStr [13:37:55]wPrintStart [13:37:55]Write to MH i2c: 01 00 00 94 33 C7 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 07 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 07 00 94 33 00 00 00 00 00 FF 0F DC [13:37:55]RasterBufferAndPrint [13:37:55]line Счет N : (1)320909 [13:37:55]line ИНН: 02508201610067 [13:37:55]line Контрольно-Кассовый Чек [13:37:55]line ПРОДАЖА [13:37:55]line ТРК (МРК, ГНК) : 11 [13:37:55]line Товар: 2710124130 [13:37:55]line Аи-92-К-5 [13:37:55]line 3.020 * 66.40 [13:37:55]line = 200.53 [13:37:55]line НДС 12% НСП 1% [13:37:55]line > о реализуемом товаре [13:37:55]line ОКРУГЛЕНИЕ: -0.53 [13:37:55]line ИТОГО: 200.00 [13:37:55]line Внесено: 200.00 [13:37:55]line СДАЧА: 0.00 [13:37:55]line НСП 1% : 1.77 [13:37:55]line НДС 12% : 21.29 [13:37:55]line Наличными: 200.00 [13:37:55]line Безнал.: 0.00 [13:37:55]line Место: АЗС № 65 "Партнер Нефть" [13:37:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:37:55]line СНО: Общий режим [13:37:55]line Чек 100 22.06.2024 13:38 [13:37:55]line Смена: 391 ФФД: 1.0 [13:37:55]line ЗНМ: 0300000198 [13:37:55]line РНМ: 0000000000092771 [13:37:55]line Версия ККМ: 001 [13:37:55]line ФМ: 0000000000875083 [13:37:55]line ФД: 112234 [13:37:55]line ФПД: 252768443847888 [13:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T133818&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112234&fm=252768443847888&tin=02508201610067®Number=0000000000092771&sum=20000 [13:37:55]written 0, free lines is 4095 [13:37:55]OFD Sender: Processing packet 112234 [packets to send 38, broken 37] [13:37:55]ProducePacketName [13:37:55]name=ofd_packets/00112234 [13:37:55]OFD Sender: To server: pG, [13:37:55]CommunicateWithHost lk.salyk.kg:30040 [13:37:55]ConnectInit lk.salyk.kg [13:37:55]Connected sock=10 [13:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F D9 07 01 CD 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CA D3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B6 01 00 35 04 06 00 E5 E4 3D 4E 54 D0 1E 42 17 2E B0 CB 32 C1 [13:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 EE 47 00 45 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B6 01 00 F4 03 04 00 D4 6A 76 66 B6 04 01 00 00 AE 6F 38 49 DA C3 70 46 [13:37:55]CommunicateWithHost err = 0 [13:37:55]CheckOFDResponse [13:37:55]1017 (14) - 77093643461234 [13:37:55]1041 (16) - 0000000000875083 [13:37:55]1040 (4) - 112234 [13:37:55]1012 (4) - 22.06.2024 06:10 [13:37:55]1206 (1) - 0 [13:37:55]OFD Sender: Remove packet 112234 [13:37:55]ProducePacketName [13:37:55]name=ofd_packets/00112234 [13:37:55]NVStorageDeleteData [13:37:55]Write to MH i2c: 01 00 00 BF 33 F2 [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 07 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: 01 07 00 BF 33 00 00 00 00 00 DC 0C E1 [13:37:55]RasterBufferAndPrint [13:37:55]line [13:37:55]line [13:37:55]line [13:37:55]line [13:37:55]line [13:37:55]written 0, free lines is 3298 [13:37:55]MH_Cut [13:37:55]Write to MH i2c: D1 01 00 C6 33 01 CB [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: D1 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: D1 01 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: D1 01 00 C6 33 00 CA [13:37:55]Write to MH i2c: 01 00 00 C7 33 FA [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:56]OFD Sender: No OFD packet to send [13:37:56]*** Cut start [13:37:56]*** Partial cut [13:37:56]*** CUTSNS_PIN = 1 [13:37:56]*** CUTSNS_PIN = 0 [13:37:56]*** Brake cut motor [13:37:57]Read from MH i2c: 01 [13:37:57]MH_I2C_Read... [13:37:57]*** Stop cut motor [13:37:57]*** Cut end [13:37:57]Read from MH i2c: 01 07 00 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: 01 07 00 C7 33 00 00 00 00 00 FF 0F 0F [13:37:57]process_action close_receipt done [13:37:57]requested_data is exist [13:37:57]produce_requested_data [13:37:57]requested_item fm.sn is exist - process it [13:37:57]wFMCommunicate request_size=4 [13:37:57]MH_SAM_APDU [13:37:57]CAPDU: 80 11 00 00 [13:37:57]Write to MH i2c: E2 08 00 C8 33 80 11 00 00 00 00 00 00 75 [13:37:57]Write i2c OK [13:37:57]MH_I2C_Read... [13:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:57]Read from MH i2c: E2 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 17 00 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 17 00 C8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [13:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:37:57]wFMCommunicate OK [13:37:57]requested_item fd.num is exist - process it [13:37:57]SAM_PROTO_GetFieldsCounters [13:37:57]wFMCommunicate request_size=4 [13:37:57]MH_SAM_APDU [13:37:57]CAPDU: 80 13 00 00 [13:37:57]Write to MH i2c: E2 08 00 C9 33 80 13 00 00 00 00 00 00 78 [13:37:57]Write i2c OK [13:37:57]MH_I2C_Read... [13:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:57]Read from MH i2c: E2 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 62 00 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 62 00 C9 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [13:37:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:57]wFMCommunicate OK [13:37:57]SAM_PROTO_GetFieldsCounters done [13:37:57]requested_item shift.num is exist - process it [13:37:57]requested_item shift.opened is exist - process it [13:37:57]req_shift_opened [13:37:57]FM_GetShiftState [13:37:57]SAM_PROTO_GetShiftState [13:37:57]wFMCommunicate request_size=4 [13:37:57]MH_SAM_APDU [13:37:57]CAPDU: 80 13 01 00 [13:37:57]Write to MH i2c: E2 08 00 CA 33 80 13 01 00 00 00 00 00 7A [13:37:57]Write i2c OK [13:37:57]MH_I2C_Read... [13:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:57]Read from MH i2c: E2 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 0E 00 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 0E 00 CA 33 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AF [13:37:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:37:57]wFMCommunicate OK [13:37:57]SAM_PROTO_GetShiftState done [13:37:57]FM_GetShiftState done [13:37:57]req_shift_opened done [13:37:57]requested_item shift.open_date is exist - process it [13:37:57]req_shift_open_date [13:37:57]req_shift_open_date done [13:37:57]produce_requested_data done [13:37:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112234,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:37:57]process_action_free close_receipt [13:37:57]json_value_free [13:37:57]json_value_free done [13:37:57]process_json_proto returns [13:37:57]Send response to host [13:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112234,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:37:57]free response buf [13:37:57]execute_script done [13:37:57]execute_script returns [13:37:57]free content buf [13:37:57]Sock 7.Close socket [13:37:57]Sock 7.Thread stoped [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:46]accept exits with 9 [13:43:46]New connection [13:43:46]New thread 3066813796 created [13:43:46]Thread 3066957156 joined [13:43:46]Waiting for new connection... [13:43:46] Sock 9.Parse request [13:43:46]Sock 9.Check first char [13:43:46]Sock 9.First char is OK [13:43:46]request: POST /json_proto HTTP/1.0 [13:43:46]Method: POST [13:43:46]URL: /json_proto [13:43:46]Method is POST - this is cgi request [13:43:46]url: /json_proto [13:43:46]query_string will be loaded in cgi processing [13:43:46]execute_cgi json_proto POST (null) [13:43:46]execute_cgi path=json_proto method=POST [13:43:46]POST find Content-Length [13:43:46]Host: 172.17.59.68:8080 [13:43:46]Content-Length: 677 [13:43:46]Content-Type: application/json [13:43:46] [13:43:46]POST finish read [13:43:46]Found Content-Length = 677 [13:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320910", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:46]execute_script... [13:43: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)320910", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:46]POST & json_proto [13:43:46]process_json_proto [13:43:46]json parsed OK: [13:43:46]protocol is kg_v1.0 [13:43:46]action value=close_receipt [13:43:46]process_action close_receipt [13:43:46]cmd_close_receipt [13:43:46]MH_GetDate [13:43:46]Write to MH i2c: F0 00 00 CB 33 ED [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: F0 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: F0 09 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: F0 09 00 CB 33 00 2B D5 76 66 BC EC 60 65 3F [13:43:46]GetLastDocTimeStamp 1719063498 [13:43:46]current date 1719063851 [13:43:46]FM_GetShiftState [13:43:46]SAM_PROTO_GetShiftState [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 13 01 00 [13:43:46]Write to MH i2c: E2 08 00 CC 33 80 13 01 00 00 00 00 00 7C [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 0E 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 0E 00 CC 33 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B1 [13:43:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:43:46]wFMCommunicate OK [13:43:46]SAM_PROTO_GetShiftState done [13:43:46]FM_GetShiftState done [13:43:46]opened in 1719020067 [13:43:46]opened+sec_in_day 1719106467 [13:43:46]quantity*price = 60025 [13:43:46]sum+1 = 60027 [13:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 101 22.06.2024 13:44 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112235 ФПД: 138392252623806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134411&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112235&fm=138392252623806&tin=02508201610067®Number=0000000000092771&sum=60000 [13:43:47]StoreToDocumentArchive [13:43:47]shift 391 fd 112235 [13:43:47]save to /storage/0391/doc_00112235 [13:43:47]save last doc name /storage/0391/doc_00112235 to /storage/kkm_last_doc_name [13:43:47]save OK [13:43:47]Clear old archive folders... [13:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:47]tlvbuf is 0114BD70 [13:43:47]SAM_PROTO_ClearQueue [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 09 00 00 [13:43:47]Write to MH i2c: E2 08 00 D9 33 80 09 00 00 00 00 00 00 7E [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 D9 33 00 90 00 80 [13:43:47]RAPDU: 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_ClearQueue done [13:43:47]KKMCreateOFDPacket [13:43:47]OFDProtocolAddRootSTLVToBuf [13:43:47]FM_MakeSignedData [13:43:47]FM_MakeSignedData [13:43:47]SAM_PROTO_SignData [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 0D 01 02 [13:43:47]Write to MH i2c: E2 08 00 DA 33 80 0D 01 02 00 00 00 00 86 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 DA 33 00 90 00 81 [13:43:47]RAPDU: 90 00 [13:43:47]wFMCommunicate OK [13:43:47]wFMCommunicate request_size=255 [13:43:47]MH_SAM_APDU [13:43: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B6 01 00 35 04 06 00 7D [13:43:47]Write to MH i2c: E2 02 01 DB 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B6 01 00 35 04 06 00 7D 00 00 7F [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:48]Read from MH i2c: E2 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 03 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 03 00 DB 33 00 90 00 82 [13:43:48]RAPDU: 90 00 [13:43:48]wFMCommunicate OK [13:43:48]wFMCommunicate request_size=10 [13:43:48]MH_SAM_APDU [13:43:48]CAPDU: 80 0D 02 02 05 DD F5 0E AB BE [13:43:48]Write to MH i2c: E2 0D 00 DC 33 80 0D 02 02 05 00 DD F5 0E AB BE 00 00 DC [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:48]Read from MH i2c: E2 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 03 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 03 00 DC 33 00 90 00 83 [13:43:48]RAPDU: 90 00 [13:43:48]wFMCommunicate OK [13:43:48]wFMCommunicate request_size=4 [13:43:48]MH_SAM_APDU [13:43:48]CAPDU: 80 0D 03 02 [13:43:48]Write to MH i2c: E2 08 00 DD 33 80 0D 03 02 00 00 00 00 8B [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:48]Read from MH i2c: E2 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 0B 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 0B 00 DD 33 00 6C C1 2F F2 04 FA 79 32 90 00 83 [13:43:48]RAPDU: 6C C1 2F F2 04 FA 79 32 90 00 [13:43:48]wFMCommunicate OK [13:43:48]SAM_PROTO_SignData done [13:43:48]FM_MakeSignedData done [13:43:48]CreateOFDProtocolMessage [13:43:48]wFMCommunicate request_size=4 [13:43:48]MH_SAM_APDU [13:43:48]CAPDU: 80 11 00 00 [13:43:48]Write to MH i2c: E2 08 00 DE 33 80 11 00 00 00 00 00 00 8B [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:48]Read from MH i2c: E2 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 17 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: E2 17 00 DE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [13:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:43:48]wFMCommunicate OK [13:43:48]CreateOFDProtocolMessage done [13:43:48]OFDSenderStorePacket 112235 [13:43:48]StoreOFDPacket docnum=112235 [13:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 7F 07 01 21 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B6 01 00 35 04 06 00 7D DD F5 0E AB BE 6C C1 2F F2 04 FA 79 32 [13:43:48]CheckFolder [13:43:48]dirname=/storage/ofd_packets [13:43:48]CheckFolder done [13:43:48]ProducePacketName [13:43:48]name=ofd_packets/00112235 [13:43:48]NVStorageSaveData ofd_packets/00112235 [13:43:48]File name is /storage/ofd_packets/00112235 [13:43:48]Write 301 bytes [13:43:48]NVStorageSaveData done [13:43:48]OFDSenderStorePacket done [13:43:48]KKMCreateOFDPacket done [13:43:48]NVStorageSaveData kkm_last_timestamp [13:43:48]File name is /storage/kkm_last_timestamp [13:43:48]Write 4 bytes [13:43:48]NVStorageSaveData done [13:43:48]ExternCall_PrintAddStr [13:43:48]wPrintStart [13:43:48]Write to MH i2c: 01 00 00 DF 33 12 [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 DF 33 00 00 00 00 00 FF 0F 27 [13:43:48]RasterBufferAndPrint [13:43:48]line Счет N : (1)320910 [13:43:48]line ИНН: 02508201610067 [13:43:48]line Контрольно-Кассовый Чек [13:43:48]line ПРОДАЖА [13:43:48]line ТРК (МРК, ГНК) : 11 [13:43:48]line Товар: 2710124130 [13:43:48]line Аи-92-К-5 [13:43:48]line 9.040 * 66.40 [13:43:48]line = 600.26 [13:43:48]line НДС 12% НСП 1% [13:43:48]line > о реализуемом товаре [13:43:48]line ОКРУГЛЕНИЕ: -0.26 [13:43:48]line ИТОГО: 600.00 [13:43:48]line Внесено: 600.00 [13:43:48]line СДАЧА: 0.00 [13:43:48]line НСП 1% : 5.31 [13:43:48]line НДС 12% : 63.74 [13:43:48]line Наличными: 600.00 [13:43:48]line Безнал.: 0.00 [13:43:48]line Место: АЗС № 65 "Партнер Нефть" [13:43:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:43:48]line СНО: Общий режим [13:43:48]line Чек 101 22.06.2024 13:44 [13:43:48]line Смена: 391 ФФД: 1.0 [13:43:48]line ЗНМ: 0300000198 [13:43:48]line РНМ: 0000000000092771 [13:43:48]line Версия ККМ: 001 [13:43:48]line ФМ: 0000000000875083 [13:43:48]line ФД: 112235 [13:43:48]line ФПД: 138392252623806 [13:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134411&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112235&fm=138392252623806&tin=02508201610067®Number=0000000000092771&sum=60000 [13:43:48]OFD Sender: Processing packet 112235 [packets to send 38, broken 37] [13:43:48]ProducePacketName [13:43:48]name=ofd_packets/00112235 [13:43:48]OFD Sender: To server: pG, [13:43:48]CommunicateWithHost lk.salyk.kg:30040 [13:43:48]ConnectInit lk.salyk.kg [13:43:48]written 0, free lines is 4095 [13:43:48]Connected sock=10 [13:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 7F 07 01 21 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B6 01 00 35 04 06 00 7D DD F5 0E AB BE 6C C1 2F F2 04 FA 79 32 [13:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 02 9C 47 00 3F 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B6 01 00 F4 03 04 00 36 6C 76 66 B6 04 01 00 00 6D C8 9E 56 97 3D 44 AA [13:43:48]CommunicateWithHost err = 0 [13:43:48]CheckOFDResponse [13:43:48]1017 (14) - 77093643461234 [13:43:48]1041 (16) - 0000000000875083 [13:43:48]1040 (4) - 112235 [13:43:48]1012 (4) - 22.06.2024 06:16 [13:43:48]1206 (1) - 0 [13:43:48]OFD Sender: Remove packet 112235 [13:43:48]ProducePacketName [13:43:48]name=ofd_packets/00112235 [13:43:48]NVStorageDeleteData [13:43:49]Write to MH i2c: 01 00 00 0A 34 3E [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 07 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 07 00 0A 34 00 00 00 00 00 D7 0C 28 [13:43:49]RasterBufferAndPrint [13:43:49]line [13:43:49]line [13:43:49]line [13:43:49]line [13:43:49]line [13:43:49]written 0, free lines is 3294 [13:43:49]MH_Cut [13:43:49]Write to MH i2c: D1 01 00 11 34 01 17 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: D1 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: D1 01 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: D1 01 00 11 34 00 16 [13:43:49]Write to MH i2c: 01 00 00 12 34 46 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]OFD Sender: No OFD packet to send [13:43:49]*** Cut start [13:43:49]*** Partial cut [13:43:49]*** CUTSNS_PIN = 1 [13:43:49]*** CUTSNS_PIN = 0 [13:43:50]*** Brake cut motor [13:43:50]Read from MH i2c: 01 [13:43:50]MH_I2C_Read... [13:43:50]*** Stop cut motor [13:43:50]*** Cut end [13:43:50]Read from MH i2c: 01 07 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: 01 07 00 12 34 00 00 00 00 00 FF 0F 5B [13:43:50]process_action close_receipt done [13:43:50]requested_data is exist [13:43:50]produce_requested_data [13:43:50]requested_item fm.sn is exist - process it [13:43:50]wFMCommunicate request_size=4 [13:43:50]MH_SAM_APDU [13:43:50]CAPDU: 80 11 00 00 [13:43:50]Write to MH i2c: E2 08 00 13 34 80 11 00 00 00 00 00 00 C1 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:50]Read from MH i2c: E2 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 17 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 17 00 13 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [13:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:43:50]wFMCommunicate OK [13:43:50]requested_item fd.num is exist - process it [13:43:50]SAM_PROTO_GetFieldsCounters [13:43:50]wFMCommunicate request_size=4 [13:43:50]MH_SAM_APDU [13:43:50]CAPDU: 80 13 00 00 [13:43:50]Write to MH i2c: E2 08 00 14 34 80 13 00 00 00 00 00 00 C4 [13:43:50]Write i2c OK [13:43:50]MH_I2C_Read... [13:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:50]Read from MH i2c: E2 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 62 00 [13:43:50]MH_I2C_Read... [13:43:50]Read from MH i2c: E2 62 00 14 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [13:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:50]wFMCommunicate OK [13:43:50]SAM_PROTO_GetFieldsCounters done [13:43:50]requested_item shift.num is exist - process it [13:43:50]requested_item shift.opened is exist - process it [13:43:50]req_shift_opened [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 15 34 80 13 01 00 00 00 00 00 C6 [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 15 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FB [13:43:50]RAPDU: 09 00 01 23 2A 76 66 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]req_shift_opened done [13:43:50]requested_item shift.open_date is exist - process it [13:43:50]req_shift_open_date [13:43:50]req_shift_open_date done [13:43:50]produce_requested_data done [13:43:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112235,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:43:50]process_action_free close_receipt [13:43:50]json_value_free [13:43:50]json_value_free done [13:43:50]process_json_proto returns [13:43:50]Send response to host [13:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112235,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:43:50]free response buf [13:43:50]execute_script done [13:43:50]execute_script returns [13:43:50]free content buf [13:43:50]Sock 9.Close socket [13:43:50]Sock 9.Thread stoped [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:48]accept exits with 7 [13:44:48]New connection [13:44:48]New thread 3066957156 created [13:44:48]Thread 3066813796 joined [13:44:48]Waiting for new connection... [13:44:48] Sock 7.Parse request [13:44:48]Sock 7.Check first char [13:44:48]Sock 7.First char is OK [13:44:48]request: POST /json_proto HTTP/1.0 [13:44:48]Method: POST [13:44:48]URL: /json_proto [13:44:48]Method is POST - this is cgi request [13:44:48]url: /json_proto [13:44:48]query_string will be loaded in cgi processing [13:44:48]execute_cgi json_proto POST (null) [13:44:48]execute_cgi path=json_proto method=POST [13:44:48]POST find Content-Length [13:44:48]Host: 172.17.59.68:8080 [13:44:48]Content-Length: 677 [13:44:48]Content-Type: application/json [13:44:48] [13:44:48]POST finish read [13:44:48]Found Content-Length = 677 [13:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320911", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:48]execute_script... [13:44: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)320911", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:48]POST & json_proto [13:44:48]process_json_proto [13:44:48]json parsed OK: [13:44:48]protocol is kg_v1.0 [13:44:48]action value=close_receipt [13:44:48]process_action close_receipt [13:44:48]cmd_close_receipt [13:44:48]MH_GetDate [13:44:48]Write to MH i2c: F0 00 00 16 34 39 [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 09 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 09 00 16 34 00 69 D5 76 66 BC EC 60 65 C9 [13:44:48]GetLastDocTimeStamp 1719063851 [13:44:48]current date 1719063913 [13:44:48]FM_GetShiftState [13:44:48]SAM_PROTO_GetShiftState [13:44:48]wFMCommunicate request_size=4 [13:44:48]MH_SAM_APDU [13:44:48]CAPDU: 80 13 01 00 [13:44:48]Write to MH i2c: E2 08 00 17 34 80 13 01 00 00 00 00 00 C8 [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:48]Read from MH i2c: E2 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 17 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FD [13:44:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:44:48]wFMCommunicate OK [13:44:48]SAM_PROTO_GetShiftState done [13:44:48]FM_GetShiftState done [13:44:48]opened in 1719020067 [13:44:48]opened+sec_in_day 1719106467 [13:44:48]quantity*price = 60025 [13:44:48]sum+1 = 60027 [13:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 102 22.06.2024 13:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112236 ФПД: 16672450461405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134513&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112236&fm=16672450461405&tin=02508201610067®Number=0000000000092771&sum=60000 [13:44:49]StoreToDocumentArchive [13:44:49]shift 391 fd 112236 [13:44:49]save to /storage/0391/doc_00112236 [13:44:49]save last doc name /storage/0391/doc_00112236 to /storage/kkm_last_doc_name [13:44:49]save OK [13:44:49]Clear old archive folders... [13:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:49]tlvbuf is B6EDBA10 [13:44:49]SAM_PROTO_ClearQueue [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 09 00 00 [13:44:49]Write to MH i2c: E2 08 00 24 34 80 09 00 00 00 00 00 00 CA [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 24 34 00 90 00 CC [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]SAM_PROTO_ClearQueue done [13:44:49]KKMCreateOFDPacket [13:44:49]OFDProtocolAddRootSTLVToBuf [13:44:49]FM_MakeSignedData [13:44:49]FM_MakeSignedData [13:44:49]SAM_PROTO_SignData [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 0D 01 02 [13:44:49]Write to MH i2c: E2 08 00 25 34 80 0D 01 02 00 00 00 00 D2 [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 25 34 00 90 00 CD [13:44:50]RAPDU: 90 00 [13:44:50]wFMCommunicate OK [13:44:50]wFMCommunicate request_size=255 [13:44:50]MH_SAM_APDU [13:44: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B6 01 00 35 04 06 00 0F [13:44:50]Write to MH i2c: E2 02 01 26 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B6 01 00 35 04 06 00 0F 00 00 9D [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 26 34 00 90 00 CE [13:44:50]RAPDU: 90 00 [13:44:50]wFMCommunicate OK [13:44:50]wFMCommunicate request_size=10 [13:44:50]MH_SAM_APDU [13:44:50]CAPDU: 80 0D 02 02 05 29 DB 7C BE DD [13:44:50]Write to MH i2c: E2 0D 00 27 34 80 0D 02 02 05 00 29 DB 7C BE DD 00 00 FA [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 27 34 00 90 00 CF [13:44:50]RAPDU: 90 00 [13:44:50]wFMCommunicate OK [13:44:50]wFMCommunicate request_size=4 [13:44:50]MH_SAM_APDU [13:44:50]CAPDU: 80 0D 03 02 [13:44:50]Write to MH i2c: E2 08 00 28 34 80 0D 03 02 00 00 00 00 D7 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 0B 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 0B 00 28 34 00 E2 D9 FE 71 F0 2B E1 99 90 00 97 [13:44:50]RAPDU: E2 D9 FE 71 F0 2B E1 99 90 00 [13:44:50]wFMCommunicate OK [13:44:50]SAM_PROTO_SignData done [13:44:50]FM_MakeSignedData done [13:44:50]CreateOFDProtocolMessage [13:44:50]wFMCommunicate request_size=4 [13:44:50]MH_SAM_APDU [13:44:50]CAPDU: 80 11 00 00 [13:44:50]Write to MH i2c: E2 08 00 29 34 80 11 00 00 00 00 00 00 D7 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 17 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 17 00 29 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [13:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:50]wFMCommunicate OK [13:44:50]CreateOFDProtocolMessage done [13:44:50]OFDSenderStorePacket 112236 [13:44:50]StoreOFDPacket docnum=112236 [13:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 A8 07 01 3A 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B6 01 00 35 04 06 00 0F 29 DB 7C BE DD E2 D9 FE 71 F0 2B E1 99 [13:44:50]CheckFolder [13:44:50]dirname=/storage/ofd_packets [13:44:50]CheckFolder done [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00112236 [13:44:50]NVStorageSaveData ofd_packets/00112236 [13:44:50]File name is /storage/ofd_packets/00112236 [13:44:50]Write 301 bytes [13:44:50]NVStorageSaveData done [13:44:50]OFDSenderStorePacket done [13:44:50]KKMCreateOFDPacket done [13:44:50]NVStorageSaveData kkm_last_timestamp [13:44:50]File name is /storage/kkm_last_timestamp [13:44:50]Write 4 bytes [13:44:50]NVStorageSaveData done [13:44:50]ExternCall_PrintAddStr [13:44:50]wPrintStart [13:44:50]Write to MH i2c: 01 00 00 2A 34 5E [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 2A 34 00 00 00 00 00 FF 0F 73 [13:44:50]RasterBufferAndPrint [13:44:50]line Счет N : (1)320911 [13:44:50]line ИНН: 02508201610067 [13:44:50]line Контрольно-Кассовый Чек [13:44:50]line ПРОДАЖА [13:44:50]line ТРК (МРК, ГНК) : 11 [13:44:50]line Товар: 2710124130 [13:44:50]line Аи-92-К-5 [13:44:50]line 9.040 * 66.40 [13:44:50]line = 600.26 [13:44:50]line НДС 12% НСП 1% [13:44:50]line > о реализуемом товаре [13:44:50]line ОКРУГЛЕНИЕ: -0.26 [13:44:50]line ИТОГО: 600.00 [13:44:50]line Внесено: 600.00 [13:44:50]line СДАЧА: 0.00 [13:44:50]line НСП 1% : 5.31 [13:44:50]line НДС 12% : 63.74 [13:44:50]line Наличными: 600.00 [13:44:50]line Безнал.: 0.00 [13:44:50]line Место: АЗС № 65 "Партнер Нефть" [13:44:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:44:50]line СНО: Общий режим [13:44:50]line Чек 102 22.06.2024 13:45 [13:44:50]line Смена: 391 ФФД: 1.0 [13:44:50]line ЗНМ: 0300000198 [13:44:50]line РНМ: 0000000000092771 [13:44:50]line Версия ККМ: 001 [13:44:50]line ФМ: 0000000000875083 [13:44:50]line ФД: 112236 [13:44:50]line ФПД: 16672450461405 [13:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134513&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112236&fm=16672450461405&tin=02508201610067®Number=0000000000092771&sum=60000 [13:44:50]OFD Sender: Processing packet 112236 [packets to send 38, broken 37] [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00112236 [13:44:50]OFD Sender: To server: pG, [13:44:50]CommunicateWithHost lk.salyk.kg:30040 [13:44:50]ConnectInit lk.salyk.kg [13:44:50]written 0, free lines is 4095 [13:44:50]Connected sock=10 [13:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 A8 07 01 3A 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 69 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B6 01 00 35 04 06 00 0F 29 DB 7C BE DD E2 D9 FE 71 F0 2B E1 99 [13:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CE FA 47 00 E5 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B6 01 00 F4 03 04 00 74 6C 76 66 B6 04 01 00 00 60 99 9F 9D 91 46 84 17 [13:44:51]CommunicateWithHost err = 0 [13:44:51]CheckOFDResponse [13:44:51]1017 (14) - 77093643461234 [13:44:51]1041 (16) - 0000000000875083 [13:44:51]1040 (4) - 112236 [13:44:51]1012 (4) - 22.06.2024 06:17 [13:44:51]1206 (1) - 0 [13:44:51]OFD Sender: Remove packet 112236 [13:44:51]ProducePacketName [13:44:51]name=ofd_packets/00112236 [13:44:51]NVStorageDeleteData [13:44:51]Write to MH i2c: 01 00 00 55 34 89 [13:44:51]Write i2c OK [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: 01 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: 01 07 00 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: 01 07 00 55 34 00 00 00 00 00 CD 0C 69 [13:44:51]RasterBufferAndPrint [13:44:51]line [13:44:51]line [13:44:51]line [13:44:51]line [13:44:51]line [13:44:51]written 0, free lines is 3283 [13:44:51]MH_Cut [13:44:51]Write to MH i2c: D1 01 00 5C 34 01 62 [13:44:51]Write i2c OK [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: D1 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: D1 01 00 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: D1 01 00 5C 34 00 61 [13:44:51]Write to MH i2c: 01 00 00 5D 34 91 [13:44:51]Write i2c OK [13:44:51]MH_I2C_Read... [13:44:51]OFD Sender: No OFD packet to send [13:44:52]*** Cut start [13:44:52]*** Partial cut [13:44:52]*** CUTSNS_PIN = 1 [13:44:52]*** CUTSNS_PIN = 0 [13:44:52]*** Brake cut motor [13:44:52]Read from MH i2c: 01 [13:44:52]MH_I2C_Read... [13:44:52]*** Stop cut motor [13:44:52]*** Cut end [13:44:52]Read from MH i2c: 01 07 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 FF 0F A6 [13:44:52]process_action close_receipt done [13:44:52]requested_data is exist [13:44:52]produce_requested_data [13:44:52]requested_item fm.sn is exist - process it [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 11 00 00 [13:44:52]Write to MH i2c: E2 08 00 5E 34 80 11 00 00 00 00 00 00 0C [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 17 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 17 00 5E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [13:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:52]wFMCommunicate OK [13:44:52]requested_item fd.num is exist - process it [13:44:52]SAM_PROTO_GetFieldsCounters [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 13 00 00 [13:44:52]Write to MH i2c: E2 08 00 5F 34 80 13 00 00 00 00 00 00 0F [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 62 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 62 00 5F 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:44:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:52]wFMCommunicate OK [13:44:52]SAM_PROTO_GetFieldsCounters done [13:44:52]requested_item shift.num is exist - process it [13:44:52]requested_item shift.opened is exist - process it [13:44:52]req_shift_opened [13:44:52]FM_GetShiftState [13:44:52]SAM_PROTO_GetShiftState [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 13 01 00 [13:44:52]Write to MH i2c: E2 08 00 60 34 80 13 01 00 00 00 00 00 11 [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 0E 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 0E 00 60 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 46 [13:44:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:44:52]wFMCommunicate OK [13:44:52]SAM_PROTO_GetShiftState done [13:44:52]FM_GetShiftState done [13:44:52]req_shift_opened done [13:44:52]requested_item shift.open_date is exist - process it [13:44:52]req_shift_open_date [13:44:52]req_shift_open_date done [13:44:52]produce_requested_data done [13:44:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112236,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:44:52]process_action_free close_receipt [13:44:52]json_value_free [13:44:52]json_value_free done [13:44:52]process_json_proto returns [13:44:52]Send response to host [13:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112236,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:44:52]free response buf [13:44:52]execute_script done [13:44:52]execute_script returns [13:44:52]free content buf [13:44:52]Sock 7.Close socket [13:44:52]Sock 7.Thread stoped [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:48]accept exits with 9 [13:46:48]New connection [13:46:48]New thread 3066813796 created [13:46:48]Thread 3066957156 joined [13:46:48]Waiting for new connection... [13:46:48] Sock 9.Parse request [13:46:48]Sock 9.Check first char [13:46:48]Sock 9.First char is OK [13:46:48]request: POST /json_proto HTTP/1.0 [13:46:48]Method: POST [13:46:48]URL: /json_proto [13:46:48]Method is POST - this is cgi request [13:46:48]url: /json_proto [13:46:48]query_string will be loaded in cgi processing [13:46:48]execute_cgi json_proto POST (null) [13:46:48]execute_cgi path=json_proto method=POST [13:46:48]POST find Content-Length [13:46:48]Host: 172.17.59.68:8080 [13:46:48]Content-Length: 808 [13:46:48]Content-Type: application/json [13:46:48] [13:46:48]POST finish read [13:46:48]Found Content-Length = 808 [13:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320912", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:48]execute_script... [13: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)320912", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:48]POST & json_proto [13:46:48]process_json_proto [13:46:48]json parsed OK: [13:46:48]protocol is kg_v1.0 [13:46:48]action value=close_receipt [13:46:48]process_action close_receipt [13:46:48]cmd_close_receipt [13:46:48]MH_GetDate [13:46:48]Write to MH i2c: F0 00 00 61 34 84 [13:46:48]Write i2c OK [13:46:48]MH_I2C_Read... [13:46:48]Read from MH i2c: F0 [13:46:48]MH_I2C_Read... [13:46:48]Read from MH i2c: F0 09 00 [13:46:48]MH_I2C_Read... [13:46:48]Read from MH i2c: F0 09 00 61 34 00 E1 D5 76 66 BC EC 60 65 8C [13:46:48]GetLastDocTimeStamp 1719063913 [13:46:48]current date 1719064033 [13:46:48]FM_GetShiftState [13:46:48]SAM_PROTO_GetShiftState [13:46:48]wFMCommunicate request_size=4 [13:46:48]MH_SAM_APDU [13:46:48]CAPDU: 80 13 01 00 [13:46:48]Write to MH i2c: E2 08 00 62 34 80 13 01 00 00 00 00 00 13 [13:46:48]Write i2c OK [13:46:48]MH_I2C_Read... [13:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:48]Read from MH i2c: E2 [13:46:48]MH_I2C_Read... [13:46:48]Read from MH i2c: E2 0E 00 [13:46:48]MH_I2C_Read... [13:46:48]Read from MH i2c: E2 0E 00 62 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 48 [13:46:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:46:48]wFMCommunicate OK [13:46:48]SAM_PROTO_GetShiftState done [13:46:48]FM_GetShiftState done [13:46:48]opened in 1719020067 [13:46:48]opened+sec_in_day 1719106467 [13:46:48]quantity*price = 100064 [13:46:48]sum+1 = 100066 [13:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 103 22.06.2024 13:47 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112237 ФПД: 225100232236815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134713&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112237&fm=225100232236815&tin=02508201610067®Number=0000000000092771&sum=100065 [13:46:50]StoreToDocumentArchive [13:46:50]shift 391 fd 112237 [13:46:50]save to /storage/0391/doc_00112237 [13:46:50]save last doc name /storage/0391/doc_00112237 to /storage/kkm_last_doc_name [13:46:50]save OK [13:46:50]Clear old archive folders... [13:46:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:50]tlvbuf is 0114BD20 [13:46:50]SAM_PROTO_ClearQueue [13:46:50]wFMCommunicate request_size=4 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 09 00 00 [13:46:50]Write to MH i2c: E2 08 00 6F 34 80 09 00 00 00 00 00 00 15 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 6F 34 00 90 00 17 [13:46:50]RAPDU: 90 00 [13:46:50]wFMCommunicate OK [13:46:50]SAM_PROTO_ClearQueue done [13:46:50]KKMCreateOFDPacket [13:46:50]OFDProtocolAddRootSTLVToBuf [13:46:50]FM_MakeSignedData [13:46:50]FM_MakeSignedData [13:46:50]SAM_PROTO_SignData [13:46:50]wFMCommunicate request_size=4 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 0D 01 02 [13:46:50]Write to MH i2c: E2 08 00 70 34 80 0D 01 02 00 00 00 00 1D [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 70 34 00 90 00 18 [13:46:50]RAPDU: 90 00 [13:46:50]wFMCommunicate OK [13:46:50]wFMCommunicate request_size=255 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E1 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B6 01 00 35 04 06 00 CC [13:46:50]Write to MH i2c: E2 02 01 71 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E1 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B6 01 00 35 04 06 00 CC 00 00 14 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 71 34 00 90 00 19 [13:46:50]RAPDU: 90 00 [13:46:50]wFMCommunicate OK [13:46:50]wFMCommunicate request_size=10 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 0D 02 02 05 BA 3B 61 9F 0F [13:46:50]Write to MH i2c: E2 0D 00 72 34 80 0D 02 02 05 00 BA 3B 61 9F 0F 00 00 2E [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 03 00 72 34 00 90 00 1A [13:46:50]RAPDU: 90 00 [13:46:50]wFMCommunicate OK [13:46:50]wFMCommunicate request_size=4 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 0D 03 02 [13:46:50]Write to MH i2c: E2 08 00 73 34 80 0D 03 02 00 00 00 00 22 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 0B 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 0B 00 73 34 00 3D C5 50 CD 6F 0F 49 F1 90 00 FA [13:46:50]RAPDU: 3D C5 50 CD 6F 0F 49 F1 90 00 [13:46:50]wFMCommunicate OK [13:46:50]SAM_PROTO_SignData done [13:46:50]FM_MakeSignedData done [13:46:50]CreateOFDProtocolMessage [13:46:50]wFMCommunicate request_size=4 [13:46:50]MH_SAM_APDU [13:46:50]CAPDU: 80 11 00 00 [13:46:50]Write to MH i2c: E2 08 00 74 34 80 11 00 00 00 00 00 00 22 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:50]Read from MH i2c: E2 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 17 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: E2 17 00 74 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [13:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:46:50]wFMCommunicate OK [13:46:50]CreateOFDProtocolMessage done [13:46:50]OFDSenderStorePacket 112237 [13:46:50]StoreOFDPacket docnum=112237 [13:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 D4 07 01 D3 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E1 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B6 01 00 35 04 06 00 CC BA 3B 61 9F 0F 3D C5 50 CD 6F 0F 49 F1 [13:46:50]CheckFolder [13:46:50]dirname=/storage/ofd_packets [13:46:50]CheckFolder done [13:46:50]ProducePacketName [13:46:50]name=ofd_packets/00112237 [13:46:50]NVStorageSaveData ofd_packets/00112237 [13:46:50]File name is /storage/ofd_packets/00112237 [13:46:50]Write 301 bytes [13:46:50]NVStorageSaveData done [13:46:50]OFDSenderStorePacket done [13:46:50]KKMCreateOFDPacket done [13:46:50]NVStorageSaveData kkm_last_timestamp [13:46:50]File name is /storage/kkm_last_timestamp [13:46:50]Write 4 bytes [13:46:50]NVStorageSaveData done [13:46:50]ExternCall_PrintAddStr [13:46:50]wPrintStart [13:46:50]Write to MH i2c: 01 00 00 75 34 A9 [13:46:50]Write i2c OK [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: 01 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: 01 07 00 [13:46:50]MH_I2C_Read... [13:46:50]Read from MH i2c: 01 07 00 75 34 00 00 00 00 00 FF 0F BE [13:46:50]RasterBufferAndPrint [13:46:50]line Счет N : (1)320912 [13:46:50]line ИНН: 02508201610067 [13:46:50]line Контрольно-Кассовый Чек [13:46:50]line ПРОДАЖА [13:46:50]line ТРК (МРК, ГНК) : 11 [13:46:50]line Товар: 2710124130 [13:46:50]line Аи-92-К-5 [13:46:50]line 15.070 * 66.40 [13:46:50]line = 1000.65 [13:46:50]line НДС 12% НСП 1% [13:46:50]line > о реализуемом товаре [13:46:50]line ИТОГО: 1000.65 [13:46:50]line НСП 1% : 8.85 [13:46:50]line НДС 12% : 106.26 [13:46:50]line Наличными: 0.00 [13:46:50]line Безнал.: 1000.65 [13:46:50]line Место: АЗС № 65 "Партнер Нефть" [13:46:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:46:50]line СНО: Общий режим [13:46:50]line Чек 103 22.06.2024 13:47 [13:46:50]line Смена: 391 ФФД: 1.0 [13:46:50]line ЗНМ: 0300000198 [13:46:50]line РНМ: 0000000000092771 [13:46:50]line Версия ККМ: 001 [13:46:50]line Платежная система: О! деньги [13:46:50]line ФМ: 0000000000875083 [13:46:50]line ФД: 112237 [13:46:50]line ФПД: 225100232236815 [13:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134713&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112237&fm=225100232236815&tin=02508201610067®Number=0000000000092771&sum=100065 [13:46:50]written 0, free lines is 4095 [13:46:50]OFD Sender: Processing packet 112237 [packets to send 38, broken 37] [13:46:50]ProducePacketName [13:46:50]name=ofd_packets/00112237 [13:46:50]OFD Sender: To server: pG, [13:46:50]CommunicateWithHost lk.salyk.kg:30040 [13:46:50]ConnectInit lk.salyk.kg [13:46:51]Connected sock=10 [13:46:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 D4 07 01 D3 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E1 D5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B6 01 00 35 04 06 00 CC BA 3B 61 9F 0F 3D C5 50 CD 6F 0F 49 F1 [13:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 50 F2 47 00 39 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B6 01 00 F4 03 04 00 EC 6C 76 66 B6 04 01 00 00 03 69 79 B4 0E 66 A8 3C [13:46:51]CommunicateWithHost err = 0 [13:46:51]CheckOFDResponse [13:46:51]1017 (14) - 77093643461234 [13:46:51]1041 (16) - 0000000000875083 [13:46:51]1040 (4) - 112237 [13:46:51]1012 (4) - 22.06.2024 06:19 [13:46:51]1206 (1) - 0 [13:46:51]OFD Sender: Remove packet 112237 [13:46:51]ProducePacketName [13:46:51]name=ofd_packets/00112237 [13:46:51]NVStorageDeleteData [13:46:51]Write to MH i2c: 01 00 00 9F 34 D3 [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: 01 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: 01 07 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: 01 07 00 9F 34 00 00 00 00 00 E1 0C C7 [13:46:51]RasterBufferAndPrint [13:46:51]line [13:46:51]line [13:46:51]line [13:46:51]line [13:46:51]line [13:46:51]written 0, free lines is 3303 [13:46:51]MH_Cut [13:46:51]Write to MH i2c: D1 01 00 A6 34 01 AC [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: D1 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: D1 01 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: D1 01 00 A6 34 00 AB [13:46:51]Write to MH i2c: 01 00 00 A7 34 DB [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]OFD Sender: No OFD packet to send [13:46:52]*** Cut start [13:46:52]*** Partial cut [13:46:52]*** CUTSNS_PIN = 1 [13:46:52]*** CUTSNS_PIN = 0 [13:46:52]*** Brake cut motor [13:46:52]Read from MH i2c: 01 [13:46:52]MH_I2C_Read... [13:46:52]*** Stop cut motor [13:46:52]*** Cut end [13:46:52]Read from MH i2c: 01 07 00 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 FF 0F F0 [13:46:52]process_action close_receipt done [13:46:52]requested_data is exist [13:46:52]produce_requested_data [13:46:52]requested_item fm.sn is exist - process it [13:46:52]wFMCommunicate request_size=4 [13:46:52]MH_SAM_APDU [13:46:52]CAPDU: 80 11 00 00 [13:46:52]Write to MH i2c: E2 08 00 A8 34 80 11 00 00 00 00 00 00 56 [13:46:52]Write i2c OK [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: E2 [13:46:52]MH_I2C_Read... [13:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:52]Read from MH i2c: E2 17 00 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: E2 17 00 A8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [13:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:46:52]wFMCommunicate OK [13:46:52]requested_item fd.num is exist - process it [13:46:52]SAM_PROTO_GetFieldsCounters [13:46:52]wFMCommunicate request_size=4 [13:46:52]MH_SAM_APDU [13:46:52]CAPDU: 80 13 00 00 [13:46:52]Write to MH i2c: E2 08 00 A9 34 80 13 00 00 00 00 00 00 59 [13:46:52]Write i2c OK [13:46:52]MH_I2C_Read... [13:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:52]Read from MH i2c: E2 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: E2 62 00 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: E2 62 00 A9 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [13:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:52]wFMCommunicate OK [13:46:52]SAM_PROTO_GetFieldsCounters done [13:46:52]requested_item shift.num is exist - process it [13:46:52]requested_item shift.opened is exist - process it [13:46:52]req_shift_opened [13:46:52]FM_GetShiftState [13:46:52]SAM_PROTO_GetShiftState [13:46:52]wFMCommunicate request_size=4 [13:46:52]MH_SAM_APDU [13:46:52]CAPDU: 80 13 01 00 [13:46:52]Write to MH i2c: E2 08 00 AA 34 80 13 01 00 00 00 00 00 5B [13:46:52]Write i2c OK [13:46:52]MH_I2C_Read... [13:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:52]Read from MH i2c: E2 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: E2 0E 00 [13:46:52]MH_I2C_Read... [13:46:52]Read from MH i2c: E2 0E 00 AA 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 90 [13:46:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:46:52]wFMCommunicate OK [13:46:52]SAM_PROTO_GetShiftState done [13:46:52]FM_GetShiftState done [13:46:52]req_shift_opened done [13:46:52]requested_item shift.open_date is exist - process it [13:46:52]req_shift_open_date [13:46:52]req_shift_open_date done [13:46:52]produce_requested_data done [13:46:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112237,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:46:52]process_action_free close_receipt [13:46:52]json_value_free [13:46:52]json_value_free done [13:46:52]process_json_proto returns [13:46:52]Send response to host [13:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112237,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:46:52]free response buf [13:46:52]execute_script done [13:46:52]execute_script returns [13:46:52]free content buf [13:46:52]Sock 9.Close socket [13:46:52]Sock 9.Thread stoped [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:05]accept exits with 7 [13:48:05]New connection [13:48:05]New thread 3066957156 created [13:48:05]Thread 3066813796 joined [13:48:05]Waiting for new connection... [13:48:05] Sock 7.Parse request [13:48:05]Sock 7.Check first char [13:48:05]Sock 7.First char is OK [13:48:05]request: POST /json_proto HTTP/1.0 [13:48:05]Method: POST [13:48:05]URL: /json_proto [13:48:05]Method is POST - this is cgi request [13:48:05]url: /json_proto [13:48:05]query_string will be loaded in cgi processing [13:48:05]execute_cgi json_proto POST (null) [13:48:05]execute_cgi path=json_proto method=POST [13:48:05]POST find Content-Length [13:48:05]Host: 172.17.59.68:8080 [13:48:05]Content-Length: 677 [13:48:05]Content-Type: application/json [13:48:05] [13:48:05]POST finish read [13:48:05]Found Content-Length = 677 [13:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320913", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:05]execute_script... [13:48: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)320913", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:05]POST & json_proto [13:48:05]process_json_proto [13:48:05]json parsed OK: [13:48:05]protocol is kg_v1.0 [13:48:05]action value=close_receipt [13:48:05]process_action close_receipt [13:48:05]cmd_close_receipt [13:48:05]MH_GetDate [13:48:05]Write to MH i2c: F0 00 00 AB 34 CE [13:48:05]Write i2c OK [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: F0 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: F0 09 00 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: F0 09 00 AB 34 00 2E D6 76 66 BC EC 60 65 24 [13:48:05]GetLastDocTimeStamp 1719064033 [13:48:05]current date 1719064110 [13:48:05]FM_GetShiftState [13:48:05]SAM_PROTO_GetShiftState [13:48:05]wFMCommunicate request_size=4 [13:48:05]MH_SAM_APDU [13:48:05]CAPDU: 80 13 01 00 [13:48:05]Write to MH i2c: E2 08 00 AC 34 80 13 01 00 00 00 00 00 5D [13:48:05]Write i2c OK [13:48:05]MH_I2C_Read... [13:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:05]Read from MH i2c: E2 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: E2 0E 00 [13:48:05]MH_I2C_Read... [13:48:05]Read from MH i2c: E2 0E 00 AC 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 92 [13:48:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:48:05]wFMCommunicate OK [13:48:05]SAM_PROTO_GetShiftState done [13:48:05]FM_GetShiftState done [13:48:05]opened in 1719020067 [13:48:05]opened+sec_in_day 1719106467 [13:48:05]quantity*price = 50065 [13:48:05]sum+1 = 50067 [13:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 104 22.06.2024 13:48 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112238 ФПД: 20016007018903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134830&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112238&fm=20016007018903&tin=02508201610067®Number=0000000000092771&sum=50000 [13:48:06]StoreToDocumentArchive [13:48:06]shift 391 fd 112238 [13:48:06]save to /storage/0391/doc_00112238 [13:48:06]save last doc name /storage/0391/doc_00112238 to /storage/kkm_last_doc_name [13:48:06]save OK [13:48:06]Clear old archive folders... [13:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:06]tlvbuf is 011C7510 [13:48:06]SAM_PROTO_ClearQueue [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 09 00 00 [13:48:06]Write to MH i2c: E2 08 00 B9 34 80 09 00 00 00 00 00 00 5F [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 B9 34 00 90 00 61 [13:48:06]RAPDU: 90 00 [13:48:06]wFMCommunicate OK [13:48:06]SAM_PROTO_ClearQueue done [13:48:06]KKMCreateOFDPacket [13:48:06]OFDProtocolAddRootSTLVToBuf [13:48:06]FM_MakeSignedData [13:48:06]FM_MakeSignedData [13:48:06]SAM_PROTO_SignData [13:48:06]wFMCommunicate request_size=4 [13:48:06]MH_SAM_APDU [13:48:06]CAPDU: 80 0D 01 02 [13:48:06]Write to MH i2c: E2 08 00 BA 34 80 0D 01 02 00 00 00 00 67 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:06]Read from MH i2c: E2 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 [13:48:06]MH_I2C_Read... [13:48:06]Read from MH i2c: E2 03 00 BA 34 00 90 00 62 [13:48:06]RAPDU: 90 00 [13:48:06]wFMCommunicate OK [13:48:06]wFMCommunicate request_size=255 [13:48:06]MH_SAM_APDU [13:48: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2E D6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B6 01 00 35 04 06 00 12 [13:48:06]Write to MH i2c: E2 02 01 BB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2E D6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B6 01 00 35 04 06 00 12 00 00 22 [13:48:06]Write i2c OK [13:48:06]MH_I2C_Read... [13:48:06]OFD Sender: No OFD packet to send [13:48:07]*** iso7816_exchange 80 0D 02 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 BB 34 00 90 00 63 [13:48:07]RAPDU: 90 00 [13:48:07]wFMCommunicate OK [13:48:07]wFMCommunicate request_size=10 [13:48:07]MH_SAM_APDU [13:48:07]CAPDU: 80 0D 02 02 05 34 56 FC F9 97 [13:48:07]Write to MH i2c: E2 0D 00 BC 34 80 0D 02 02 05 00 34 56 FC F9 97 00 00 8A [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]*** iso7816_exchange 80 0D 02 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 BC 34 00 90 00 64 [13:48:07]RAPDU: 90 00 [13:48:07]wFMCommunicate OK [13:48:07]wFMCommunicate request_size=4 [13:48:07]MH_SAM_APDU [13:48:07]CAPDU: 80 0D 03 02 [13:48:07]Write to MH i2c: E2 08 00 BD 34 80 0D 03 02 00 00 00 00 6C [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:07]Read from MH i2c: E2 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 0B 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 0B 00 BD 34 00 35 CD CD 49 F1 C0 09 52 90 00 91 [13:48:07]RAPDU: 35 CD CD 49 F1 C0 09 52 90 00 [13:48:07]wFMCommunicate OK [13:48:07]SAM_PROTO_SignData done [13:48:07]FM_MakeSignedData done [13:48:07]CreateOFDProtocolMessage [13:48:07]wFMCommunicate request_size=4 [13:48:07]MH_SAM_APDU [13:48:07]CAPDU: 80 11 00 00 [13:48:07]Write to MH i2c: E2 08 00 BE 34 80 11 00 00 00 00 00 00 6C [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:07]Read from MH i2c: E2 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 17 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: E2 17 00 BE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [13:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:48:07]wFMCommunicate OK [13:48:07]CreateOFDProtocolMessage done [13:48:07]OFDSenderStorePacket 112238 [13:48:07]StoreOFDPacket docnum=112238 [13:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 17 8C 07 01 61 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2E D6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B6 01 00 35 04 06 00 12 34 56 FC F9 97 35 CD CD 49 F1 C0 09 52 [13:48:07]CheckFolder [13:48:07]dirname=/storage/ofd_packets [13:48:07]CheckFolder done [13:48:07]ProducePacketName [13:48:07]name=ofd_packets/00112238 [13:48:07]NVStorageSaveData ofd_packets/00112238 [13:48:07]File name is /storage/ofd_packets/00112238 [13:48:07]Write 301 bytes [13:48:07]NVStorageSaveData done [13:48:07]OFDSenderStorePacket done [13:48:07]KKMCreateOFDPacket done [13:48:07]NVStorageSaveData kkm_last_timestamp [13:48:07]File name is /storage/kkm_last_timestamp [13:48:07]Write 4 bytes [13:48:07]NVStorageSaveData done [13:48:07]ExternCall_PrintAddStr [13:48:07]wPrintStart [13:48:07]Write to MH i2c: 01 00 00 BF 34 F3 [13:48:07]Write i2c OK [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: 01 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: 01 07 00 [13:48:07]MH_I2C_Read... [13:48:07]Read from MH i2c: 01 07 00 BF 34 00 00 00 00 00 FF 0F 08 [13:48:07]RasterBufferAndPrint [13:48:07]line Счет N : (1)320913 [13:48:07]line ИНН: 02508201610067 [13:48:07]line Контрольно-Кассовый Чек [13:48:07]line ПРОДАЖА [13:48:07]line ТРК (МРК, ГНК) : 11 [13:48:07]line Товар: 2710124130 [13:48:07]line Аи-92-К-5 [13:48:07]line 7.540 * 66.40 [13:48:07]line = 500.66 [13:48:07]line НДС 12% НСП 1% [13:48:07]line > о реализуемом товаре [13:48:07]line ОКРУГЛЕНИЕ: -0.66 [13:48:07]line ИТОГО: 500.00 [13:48:07]line Внесено: 500.00 [13:48:07]line СДАЧА: 0.00 [13:48:07]line НСП 1% : 4.43 [13:48:07]line НДС 12% : 53.17 [13:48:07]line Наличными: 500.00 [13:48:07]line Безнал.: 0.00 [13:48:07]line Место: АЗС № 65 "Партнер Нефть" [13:48:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:48:07]line СНО: Общий режим [13:48:07]line Чек 104 22.06.2024 13:48 [13:48:07]line Смена: 391 ФФД: 1.0 [13:48:07]line ЗНМ: 0300000198 [13:48:07]line РНМ: 0000000000092771 [13:48:07]line Версия ККМ: 001 [13:48:07]line ФМ: 0000000000875083 [13:48:07]line ФД: 112238 [13:48:07]line ФПД: 20016007018903 [13:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T134830&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112238&fm=20016007018903&tin=02508201610067®Number=0000000000092771&sum=50000 [13:48:07]OFD Sender: Processing packet 112238 [packets to send 38, broken 37] [13:48:07]ProducePacketName [13:48:07]name=ofd_packets/00112238 [13:48:07]OFD Sender: To server: pG, [13:48:07]CommunicateWithHost lk.salyk.kg:30040 [13:48:07]ConnectInit lk.salyk.kg [13:48:07]written 0, free lines is 4095 [13:48:07]Connected sock=10 [13:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 17 8C 07 01 61 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2E D6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B6 01 00 35 04 06 00 12 34 56 FC F9 97 35 CD CD 49 F1 C0 09 52 [13:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BF F0 47 00 79 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B6 01 00 F4 03 04 00 39 6D 76 66 B6 04 01 00 00 BD B7 F8 18 79 0A 64 C2 [13:48:07]CommunicateWithHost err = 0 [13:48:07]CheckOFDResponse [13:48:07]1017 (14) - 77093643461234 [13:48:07]1041 (16) - 0000000000875083 [13:48:07]1040 (4) - 112238 [13:48:07]1012 (4) - 22.06.2024 06:20 [13:48:07]1206 (1) - 0 [13:48:07]OFD Sender: Remove packet 112238 [13:48:07]ProducePacketName [13:48:07]name=ofd_packets/00112238 [13:48:07]NVStorageDeleteData [13:48:07]Write to MH i2c: 01 00 00 EA 34 1E [13:48:07]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 EA 34 00 00 00 00 00 CD 0C FE [13:48:08]RasterBufferAndPrint [13:48:08]line [13:48:08]line [13:48:08]line [13:48:08]line [13:48:08]line [13:48:08]written 0, free lines is 3283 [13:48:08]MH_Cut [13:48:08]Write to MH i2c: D1 01 00 F1 34 01 F7 [13:48:08]Write i2c OK [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: D1 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: D1 01 00 [13:48:08]MH_I2C_Read... [13:48:08]Read from MH i2c: D1 01 00 F1 34 00 F6 [13:48:08]Write to MH i2c: 01 00 00 F2 34 26 [13:48:08]Write i2c OK [13:48:08]MH_I2C_Read... [13:48:08]OFD Sender: No OFD packet to send [13:48:08]*** Cut start [13:48:08]*** Partial cut [13:48:08]*** CUTSNS_PIN = 1 [13:48:08]*** CUTSNS_PIN = 0 [13:48:08]*** Brake cut motor [13:48:09]Read from MH i2c: 01 [13:48:09]MH_I2C_Read... [13:48:09]*** Stop cut motor [13:48:09]*** Cut end [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 F2 34 00 00 00 00 00 FF 0F 3B [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 F3 34 80 11 00 00 00 00 00 00 A1 [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 F3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [13:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 F4 34 80 13 00 00 00 00 00 00 A4 [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 F4 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 F5 34 80 13 01 00 00 00 00 00 A6 [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 F5 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DB [13:48:09]RAPDU: 09 00 01 23 2A 76 66 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":"0000000000875083","fd.num":112238,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [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":"0000000000875083","fd.num":112238,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [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 7.Close socket [13:48:09]Sock 7.Thread stoped [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [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:09]accept exits with 9 [13:53:09]New connection [13:53:09]New thread 3066813796 created [13:53:09]Thread 3066957156 joined [13:53:09]Waiting for new connection... [13:53:09] Sock 9.Parse request [13:53:09]Sock 9.Check first char [13:53:09]Sock 9.First char is OK [13:53:09]request: POST /json_proto HTTP/1.0 [13:53:09]Method: POST [13:53:09]URL: /json_proto [13:53:09]Method is POST - this is cgi request [13:53:09]url: /json_proto [13:53:09]query_string will be loaded in cgi processing [13:53:09]execute_cgi json_proto POST (null) [13:53:09]execute_cgi path=json_proto method=POST [13:53:09]POST find Content-Length [13:53:09]Host: 172.17.59.68:8080 [13:53:09]Content-Length: 677 [13:53:09]Content-Type: application/json [13:53:09] [13:53:09]POST finish read [13:53:09]Found Content-Length = 677 [13:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320914", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:53:09]execute_script... [13:53: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)320914", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:53:09]POST & json_proto [13:53:09]process_json_proto [13:53:09]json parsed OK: [13:53:09]protocol is kg_v1.0 [13:53:09]action value=close_receipt [13:53:09]process_action close_receipt [13:53:09]cmd_close_receipt [13:53:09]MH_GetDate [13:53:09]Write to MH i2c: F0 00 00 F6 34 19 [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: F0 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: F0 09 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: F0 09 00 F6 34 00 5E D7 76 66 BC EC 60 65 A0 [13:53:09]GetLastDocTimeStamp 1719064110 [13:53:09]current date 1719064414 [13:53:09]FM_GetShiftState [13:53:09]SAM_PROTO_GetShiftState [13:53:09]wFMCommunicate request_size=4 [13:53:09]MH_SAM_APDU [13:53:09]CAPDU: 80 13 01 00 [13:53:09]Write to MH i2c: E2 08 00 F7 34 80 13 01 00 00 00 00 00 A8 [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:09]Read from MH i2c: E2 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 0E 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 0E 00 F7 34 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DD [13:53:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:53:09]wFMCommunicate OK [13:53:09]SAM_PROTO_GetShiftState done [13:53:09]FM_GetShiftState done [13:53:09]opened in 1719020067 [13:53:09]opened+sec_in_day 1719106467 [13:53:09]quantity*price = 30012 [13:53:09]sum+1 = 30014 [13:53:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 105 22.06.2024 13:53 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112239 ФПД: 240228516355007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112239&fm=240228516355007&tin=02508201610067®Number=0000000000092771&sum=30000 [13:53:10]StoreToDocumentArchive [13:53:10]shift 391 fd 112239 [13:53:10]save to /storage/0391/doc_00112239 [13:53:10]save last doc name /storage/0391/doc_00112239 to /storage/kkm_last_doc_name [13:53:10]save OK [13:53:10]Clear old archive folders... [13:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:10]tlvbuf is 011D1B40 [13:53:10]SAM_PROTO_ClearQueue [13:53:10]wFMCommunicate request_size=4 [13:53:10]MH_SAM_APDU [13:53:10]CAPDU: 80 09 00 00 [13:53:10]Write to MH i2c: E2 08 00 04 35 80 09 00 00 00 00 00 00 AB [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:10]Read from MH i2c: E2 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 03 00 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 03 00 04 35 00 90 00 AD [13:53:10]RAPDU: 90 00 [13:53:10]wFMCommunicate OK [13:53:10]SAM_PROTO_ClearQueue done [13:53:10]KKMCreateOFDPacket [13:53:10]OFDProtocolAddRootSTLVToBuf [13:53:10]FM_MakeSignedData [13:53:10]FM_MakeSignedData [13:53:10]SAM_PROTO_SignData [13:53:10]wFMCommunicate request_size=4 [13:53:10]MH_SAM_APDU [13:53:10]CAPDU: 80 0D 01 02 [13:53:10]Write to MH i2c: E2 08 00 05 35 80 0D 01 02 00 00 00 00 B3 [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 05 35 00 90 00 AE [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=255 [13:53:11]MH_SAM_APDU [13:53: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5E D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B6 01 00 35 04 06 00 DA [13:53:11]Write to MH i2c: E2 02 01 06 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5E D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B6 01 00 35 04 06 00 DA 00 00 07 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 06 35 00 90 00 AF [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=10 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 02 02 05 7C 8F 61 DB BF [13:53:11]Write to MH i2c: E2 0D 00 07 35 80 0D 02 02 05 00 7C 8F 61 DB BF 00 00 C6 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 07 35 00 90 00 B0 [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 03 02 [13:53:11]Write to MH i2c: E2 08 00 08 35 80 0D 03 02 00 00 00 00 B8 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 0B 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 0B 00 08 35 00 67 9B 64 D9 DB AC B1 79 90 00 A9 [13:53:11]RAPDU: 67 9B 64 D9 DB AC B1 79 90 00 [13:53:11]wFMCommunicate OK [13:53:11]SAM_PROTO_SignData done [13:53:11]FM_MakeSignedData done [13:53:11]CreateOFDProtocolMessage [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 11 00 00 [13:53:11]Write to MH i2c: E2 08 00 09 35 80 11 00 00 00 00 00 00 B8 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 17 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 17 00 09 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [13:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:11]wFMCommunicate OK [13:53:11]CreateOFDProtocolMessage done [13:53:11]OFDSenderStorePacket 112239 [13:53:11]StoreOFDPacket docnum=112239 [13:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 1B 07 01 1B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5E D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B6 01 00 35 04 06 00 DA 7C 8F 61 DB BF 67 9B 64 D9 DB AC B1 79 [13:53:11]CheckFolder [13:53:11]dirname=/storage/ofd_packets [13:53:11]CheckFolder done [13:53:11]ProducePacketName [13:53:11]name=ofd_packets/00112239 [13:53:11]NVStorageSaveData ofd_packets/00112239 [13:53:11]File name is /storage/ofd_packets/00112239 [13:53:11]Write 301 bytes [13:53:11]NVStorageSaveData done [13:53:11]OFDSenderStorePacket done [13:53:11]KKMCreateOFDPacket done [13:53:11]NVStorageSaveData kkm_last_timestamp [13:53:11]File name is /storage/kkm_last_timestamp [13:53:11]Write 4 bytes [13:53:11]NVStorageSaveData done [13:53:11]ExternCall_PrintAddStr [13:53:11]wPrintStart [13:53:11]Write to MH i2c: 01 00 00 0A 35 3F [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: 01 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: 01 07 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: 01 07 00 0A 35 00 00 00 00 00 FF 0F 54 [13:53:11]RasterBufferAndPrint [13:53:11]line Счет N : (1)320914 [13:53:11]line ИНН: 02508201610067 [13:53:11]line Контрольно-Кассовый Чек [13:53:11]line ПРОДАЖА [13:53:11]line ТРК (МРК, ГНК) : 11 [13:53:11]line Товар: 2710124130 [13:53:11]line Аи-92-К-5 [13:53:11]line 4.520 * 66.40 [13:53:11]line = 300.13 [13:53:11]line НДС 12% НСП 1% [13:53:11]line > о реализуемом товаре [13:53:11]line ОКРУГЛЕНИЕ: -0.13 [13:53:11]line ИТОГО: 300.00 [13:53:11]line Внесено: 300.00 [13:53:11]line СДАЧА: 0.00 [13:53:11]line НСП 1% : 2.66 [13:53:11]line НДС 12% : 31.87 [13:53:11]line Наличными: 300.00 [13:53:11]line Безнал.: 0.00 [13:53:11]line Место: АЗС № 65 "Партнер Нефть" [13:53:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:53:11]line СНО: Общий режим [13:53:11]line Чек 105 22.06.2024 13:53 [13:53:11]line Смена: 391 ФФД: 1.0 [13:53:11]line ЗНМ: 0300000198 [13:53:11]line РНМ: 0000000000092771 [13:53:11]line Версия ККМ: 001 [13:53:11]line ФМ: 0000000000875083 [13:53:11]line ФД: 112239 [13:53:11]line ФПД: 240228516355007 [13:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112239&fm=240228516355007&tin=02508201610067®Number=0000000000092771&sum=30000 [13:53:11]OFD Sender: Processing packet 112239 [packets to send 38, broken 37] [13:53:11]ProducePacketName [13:53:11]name=ofd_packets/00112239 [13:53:11]OFD Sender: To server: pG, [13:53:11]CommunicateWithHost lk.salyk.kg:30040 [13:53:11]ConnectInit lk.salyk.kg [13:53:11]written 0, free lines is 4095 [13:53:11]Connected sock=10 [13:53:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 1B 07 01 1B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 5E D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B6 01 00 35 04 06 00 DA 7C 8F 61 DB BF 67 9B 64 D9 DB AC B1 79 [13:53:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E9 47 47 00 40 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B6 01 00 F4 03 04 00 69 6E 76 66 B6 04 01 00 00 4E 22 94 66 66 EB EC F5 [13:53:12]CommunicateWithHost err = 0 [13:53:12]CheckOFDResponse [13:53:12]1017 (14) - 77093643461234 [13:53:12]1041 (16) - 0000000000875083 [13:53:12]1040 (4) - 112239 [13:53:12]1012 (4) - 22.06.2024 06:25 [13:53:12]1206 (1) - 0 [13:53:12]OFD Sender: Remove packet 112239 [13:53:12]ProducePacketName [13:53:12]name=ofd_packets/00112239 [13:53:12]NVStorageDeleteData [13:53:12]Write to MH i2c: 01 00 00 35 35 6A [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 35 35 00 00 00 00 00 D0 0C 4D [13:53:12]RasterBufferAndPrint [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]written 0, free lines is 3288 [13:53:12]MH_Cut [13:53:12]Write to MH i2c: D1 01 00 3C 35 01 43 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 01 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 01 00 3C 35 00 42 [13:53:12]Write to MH i2c: 01 00 00 3D 35 72 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]OFD Sender: No OFD packet to send [13:53:13]*** Cut start [13:53:13]*** Partial cut [13:53:13]*** CUTSNS_PIN = 1 [13:53:13]*** CUTSNS_PIN = 0 [13:53:13]*** Brake cut motor [13:53:13]Read from MH i2c: 01 [13:53:13]MH_I2C_Read... [13:53:13]*** Stop cut motor [13:53:13]*** Cut end [13:53:13]Read from MH i2c: 01 07 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 07 00 3D 35 00 00 00 00 00 FF 0F 87 [13:53:13]process_action close_receipt done [13:53:13]requested_data is exist [13:53:13]produce_requested_data [13:53:13]requested_item fm.sn is exist - process it [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 11 00 00 [13:53:13]Write to MH i2c: E2 08 00 3E 35 80 11 00 00 00 00 00 00 ED [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 17 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 17 00 3E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [13:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:13]wFMCommunicate OK [13:53:13]requested_item fd.num is exist - process it [13:53:13]SAM_PROTO_GetFieldsCounters [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 13 00 00 [13:53:13]Write to MH i2c: E2 08 00 3F 35 80 13 00 00 00 00 00 00 F0 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 62 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 62 00 3F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [13:53:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:13]wFMCommunicate OK [13:53:13]SAM_PROTO_GetFieldsCounters done [13:53:13]requested_item shift.num is exist - process it [13:53:13]requested_item shift.opened is exist - process it [13:53:13]req_shift_opened [13:53:13]FM_GetShiftState [13:53:13]SAM_PROTO_GetShiftState [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 13 01 00 [13:53:13]Write to MH i2c: E2 08 00 40 35 80 13 01 00 00 00 00 00 F2 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0E 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0E 00 40 35 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 27 [13:53:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:53:13]wFMCommunicate OK [13:53:13]SAM_PROTO_GetShiftState done [13:53:13]FM_GetShiftState done [13:53:13]req_shift_opened done [13:53:13]requested_item shift.open_date is exist - process it [13:53:13]req_shift_open_date [13:53:13]req_shift_open_date done [13:53:13]produce_requested_data done [13:53:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112239,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:53:13]process_action_free close_receipt [13:53:13]json_value_free [13:53:13]json_value_free done [13:53:13]process_json_proto returns [13:53:13]Send response to host [13:53:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112239,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:53:13]free response buf [13:53:13]execute_script done [13:53:13]execute_script returns [13:53:13]free content buf [13:53:13]Sock 9.Close socket [13:53:13]Sock 9.Thread stoped [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:03]accept exits with 7 [13:55:03]New connection [13:55:03]New thread 3066957156 created [13:55:03]Thread 3066813796 joined [13:55:03]Waiting for new connection... [13:55:03] Sock 7.Parse request [13:55:03]Sock 7.Check first char [13:55:03]Sock 7.First char is OK [13:55:03]request: POST /json_proto HTTP/1.0 [13:55:03]Method: POST [13:55:03]URL: /json_proto [13:55:03]Method is POST - this is cgi request [13:55:03]url: /json_proto [13:55:03]query_string will be loaded in cgi processing [13:55:03]execute_cgi json_proto POST (null) [13:55:03]execute_cgi path=json_proto method=POST [13:55:03]POST find Content-Length [13:55:03]Host: 172.17.59.68:8080 [13:55:03]Content-Length: 678 [13:55:03]Content-Type: application/json [13:55:03] [13:55:03]POST finish read [13:55:03]Found Content-Length = 678 [13:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320915", "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.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:03]execute_script... [13:55: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)320915", "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.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:03]POST & json_proto [13:55:03]process_json_proto [13:55:03]json parsed OK: [13:55:03]protocol is kg_v1.0 [13:55:03]action value=close_receipt [13:55:03]process_action close_receipt [13:55:03]cmd_close_receipt [13:55:03]MH_GetDate [13:55:03]Write to MH i2c: F0 00 00 41 35 65 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: F0 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: F0 09 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: F0 09 00 41 35 00 D0 D7 76 66 BC EC 60 65 5E [13:55:03]GetLastDocTimeStamp 1719064414 [13:55:03]current date 1719064528 [13:55:03]FM_GetShiftState [13:55:03]SAM_PROTO_GetShiftState [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 13 01 00 [13:55:03]Write to MH i2c: E2 08 00 42 35 80 13 01 00 00 00 00 00 F4 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0E 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0E 00 42 35 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 29 [13:55:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_GetShiftState done [13:55:03]FM_GetShiftState done [13:55:03]opened in 1719020067 [13:55:03]opened+sec_in_day 1719106467 [13:55:03]quantity*price = 67064 [13:55:03]sum+1 = 67065 [13:55:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 106 22.06.2024 13:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112240 ФПД: 263242191683561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135528&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112240&fm=263242191683561&tin=02508201610067®Number=0000000000092771&sum=67000 [13:55:04]StoreToDocumentArchive [13:55:04]shift 391 fd 112240 [13:55:04]save to /storage/0391/doc_00112240 [13:55:04]save last doc name /storage/0391/doc_00112240 to /storage/kkm_last_doc_name [13:55:04]save OK [13:55:04]Clear old archive folders... [13:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:04]tlvbuf is 012340F0 [13:55:04]SAM_PROTO_ClearQueue [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 09 00 00 [13:55:04]Write to MH i2c: E2 08 00 4F 35 80 09 00 00 00 00 00 00 F6 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 4F 35 00 90 00 F8 [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]SAM_PROTO_ClearQueue done [13:55:04]KKMCreateOFDPacket [13:55:04]OFDProtocolAddRootSTLVToBuf [13:55:04]FM_MakeSignedData [13:55:04]FM_MakeSignedData [13:55:04]SAM_PROTO_SignData [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 01 02 [13:55:04]Write to MH i2c: E2 08 00 50 35 80 0D 01 02 00 00 00 00 FE [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 50 35 00 90 00 F9 [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=255 [13:55:04]MH_SAM_APDU [13:55: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D0 D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B6 01 00 35 04 06 00 EF [13:55:04]Write to MH i2c: E2 02 01 51 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D0 D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B6 01 00 35 04 06 00 EF 00 00 F1 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 51 35 00 90 00 FA [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=10 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 02 02 05 6A D9 53 3F E9 [13:55:04]Write to MH i2c: E2 0D 00 52 35 80 0D 02 02 05 00 6A D9 53 3F E9 00 00 C9 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 52 35 00 90 00 FB [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 03 02 [13:55:04]Write to MH i2c: E2 08 00 53 35 80 0D 03 02 00 00 00 00 03 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0B 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0B 00 53 35 00 FF FD 61 87 48 B1 11 B2 90 00 A4 [13:55:04]RAPDU: FF FD 61 87 48 B1 11 B2 90 00 [13:55:04]wFMCommunicate OK [13:55:04]SAM_PROTO_SignData done [13:55:04]FM_MakeSignedData done [13:55:04]CreateOFDProtocolMessage [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 11 00 00 [13:55:04]Write to MH i2c: E2 08 00 54 35 80 11 00 00 00 00 00 00 03 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:05]Read from MH i2c: E2 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 17 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 17 00 54 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [13:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:55:05]wFMCommunicate OK [13:55:05]CreateOFDProtocolMessage done [13:55:05]OFDSenderStorePacket 112240 [13:55:05]StoreOFDPacket docnum=112240 [13:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 38 07 01 4A 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D0 D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B6 01 00 35 04 06 00 EF 6A D9 53 3F E9 FF FD 61 87 48 B1 11 B2 [13:55:05]CheckFolder [13:55:05]dirname=/storage/ofd_packets [13:55:05]CheckFolder done [13:55:05]ProducePacketName [13:55:05]name=ofd_packets/00112240 [13:55:05]NVStorageSaveData ofd_packets/00112240 [13:55:05]File name is /storage/ofd_packets/00112240 [13:55:05]Write 301 bytes [13:55:05]NVStorageSaveData done [13:55:05]OFDSenderStorePacket done [13:55:05]KKMCreateOFDPacket done [13:55:05]NVStorageSaveData kkm_last_timestamp [13:55:05]File name is /storage/kkm_last_timestamp [13:55:05]Write 4 bytes [13:55:05]NVStorageSaveData done [13:55:05]OFD Sender: Processing packet 112240 [packets to send 38, broken 37] [13:55:05]ProducePacketName [13:55:05]name=ofd_packets/00112240 [13:55:05]OFD Sender: To server: pG, [13:55:05]CommunicateWithHost lk.salyk.kg:30040 [13:55:05]ConnectInit lk.salyk.kg [13:55:05]ExternCall_PrintAddStr [13:55:05]wPrintStart [13:55:05]Write to MH i2c: 01 00 00 55 35 8A [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 55 35 00 00 00 00 00 FF 0F 9F [13:55:05]RasterBufferAndPrint [13:55:05]line Счет N : (1)320915 [13:55:05]line ИНН: 02508201610067 [13:55:05]line Контрольно-Кассовый Чек [13:55:05]line ПРОДАЖА [13:55:05]line ТРК (МРК, ГНК) : 11 [13:55:05]line Товар: 2710124130 [13:55:05]line Аи-92-К-5 [13:55:05]line 10.100 * 66.40 [13:55:05]line = 670.64 [13:55:05]line НДС 12% НСП 1% [13:55:05]line > о реализуемом товаре [13:55:05]line ОКРУГЛЕНИЕ: -0.64 [13:55:05]line ИТОГО: 670.00 [13:55:05]line Внесено: 670.00 [13:55:05]line СДАЧА: 0.00 [13:55:05]line НСП 1% : 5.93 [13:55:05]line НДС 12% : 71.22 [13:55:05]line Наличными: 670.00 [13:55:05]line Безнал.: 0.00 [13:55:05]line Место: АЗС № 65 "Партнер Нефть" [13:55:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:55:05]line СНО: Общий режим [13:55:05]line Чек 106 22.06.2024 13:55 [13:55:05]line Смена: 391 ФФД: 1.0 [13:55:05]line ЗНМ: 0300000198 [13:55:05]line РНМ: 0000000000092771 [13:55:05]line Версия ККМ: 001 [13:55:05]line ФМ: 0000000000875083 [13:55:05]line ФД: 112240 [13:55:05]line ФПД: 263242191683561 [13:55:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135528&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112240&fm=263242191683561&tin=02508201610067®Number=0000000000092771&sum=67000 [13:55:05]Connected sock=11 [13:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 38 07 01 4A 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D0 D7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B6 01 00 35 04 06 00 EF 6A D9 53 3F E9 FF FD 61 87 48 B1 11 B2 [13:55:05]written 0, free lines is 4095 [13:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 39 C4 47 00 5E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B6 01 00 F4 03 04 00 DA 6E 76 66 B6 04 01 00 00 BA BA CC 37 2A EB D1 78 [13:55:05]CommunicateWithHost err = 0 [13:55:05]CheckOFDResponse [13:55:05]1017 (14) - 77093643461234 [13:55:05]1041 (16) - 0000000000875083 [13:55:05]1040 (4) - 112240 [13:55:05]1012 (4) - 22.06.2024 06:27 [13:55:05]1206 (1) - 0 [13:55:05]OFD Sender: Remove packet 112240 [13:55:05]ProducePacketName [13:55:05]name=ofd_packets/00112240 [13:55:05]NVStorageDeleteData [13:55:05]Write to MH i2c: 01 00 00 80 35 B5 [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 80 35 00 00 00 00 00 CE 0C 96 [13:55:05]RasterBufferAndPrint [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]written 0, free lines is 3284 [13:55:05]MH_Cut [13:55:05]Write to MH i2c: D1 01 00 87 35 01 8E [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 01 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 01 00 87 35 00 8D [13:55:05]Write to MH i2c: 01 00 00 88 35 BD [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:06]OFD Sender: No OFD packet to send [13:55:06]*** Cut start [13:55:06]*** Partial cut [13:55:06]*** CUTSNS_PIN = 1 [13:55:06]*** CUTSNS_PIN = 0 [13:55:06]*** Brake cut motor [13:55:07]Read from MH i2c: 01 [13:55:07]MH_I2C_Read... [13:55:07]*** Stop cut motor [13:55:07]*** Cut end [13:55:07]Read from MH i2c: 01 07 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 88 35 00 00 00 00 00 FF 0F D2 [13:55:07]process_action close_receipt done [13:55:07]requested_data is exist [13:55:07]produce_requested_data [13:55:07]requested_item fm.sn is exist - process it [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 11 00 00 [13:55:07]Write to MH i2c: E2 08 00 89 35 80 11 00 00 00 00 00 00 38 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 89 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [13:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:55:07]wFMCommunicate OK [13:55:07]requested_item fd.num is exist - process it [13:55:07]SAM_PROTO_GetFieldsCounters [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 13 00 00 [13:55:07]Write to MH i2c: E2 08 00 8A 35 80 13 00 00 00 00 00 00 3B [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 62 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 62 00 8A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [13:55:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_GetFieldsCounters done [13:55:07]requested_item shift.num is exist - process it [13:55:07]requested_item shift.opened is exist - process it [13:55:07]req_shift_opened [13:55:07]FM_GetShiftState [13:55:07]SAM_PROTO_GetShiftState [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 13 01 00 [13:55:07]Write to MH i2c: E2 08 00 8B 35 80 13 01 00 00 00 00 00 3D [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0E 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0E 00 8B 35 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 72 [13:55:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_GetShiftState done [13:55:07]FM_GetShiftState done [13:55:07]req_shift_opened done [13:55:07]requested_item shift.open_date is exist - process it [13:55:07]req_shift_open_date [13:55:07]req_shift_open_date done [13:55:07]produce_requested_data done [13:55:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112240,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:55:07]process_action_free close_receipt [13:55:07]json_value_free [13:55:07]json_value_free done [13:55:07]process_json_proto returns [13:55:07]Send response to host [13:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112240,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:55:07]free response buf [13:55:07]execute_script done [13:55:07]execute_script returns [13:55:07]free content buf [13:55:07]Sock 7.Close socket [13:55:07]Sock 7.Thread stoped [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:55]accept exits with 9 [13:55:55]New connection [13:55:55]New thread 3066813796 created [13:55:55]Thread 3066957156 joined [13:55:55]Waiting for new connection... [13:55:55] Sock 9.Parse request [13:55:55]Sock 9.Check first char [13:55:55]Sock 9.First char is OK [13:55:55]request: POST /json_proto HTTP/1.0 [13:55:55]Method: POST [13:55:55]URL: /json_proto [13:55:55]Method is POST - this is cgi request [13:55:55]url: /json_proto [13:55:55]query_string will be loaded in cgi processing [13:55:55]execute_cgi json_proto POST (null) [13:55:55]execute_cgi path=json_proto method=POST [13:55:55]POST find Content-Length [13:55:55]Host: 172.17.59.68:8080 [13:55:55]Content-Length: 677 [13:55:55]Content-Type: application/json [13:55:55] [13:55:55]POST finish read [13:55:55]Found Content-Length = 677 [13:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320916", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:55:55]execute_script... [13:55: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)320916", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:55:55]POST & json_proto [13:55:55]process_json_proto [13:55:55]json parsed OK: [13:55:55]protocol is kg_v1.0 [13:55:55]action value=close_receipt [13:55:55]process_action close_receipt [13:55:55]cmd_close_receipt [13:55:55]MH_GetDate [13:55:55]Write to MH i2c: F0 00 00 8C 35 B0 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: F0 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: F0 09 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: F0 09 00 8C 35 00 04 D8 76 66 BC EC 60 65 DE [13:55:55]GetLastDocTimeStamp 1719064528 [13:55:55]current date 1719064580 [13:55:55]FM_GetShiftState [13:55:55]SAM_PROTO_GetShiftState [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 13 01 00 [13:55:55]Write to MH i2c: E2 08 00 8D 35 80 13 01 00 00 00 00 00 3F [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0E 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0E 00 8D 35 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 74 [13:55:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_GetShiftState done [13:55:55]FM_GetShiftState done [13:55:55]opened in 1719020067 [13:55:55]opened+sec_in_day 1719106467 [13:55:55]quantity*price = 20052 [13:55:55]sum+1 = 20054 [13:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 107 22.06.2024 13:56 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112241 ФПД: 164616322454949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112241&fm=164616322454949&tin=02508201610067®Number=0000000000092771&sum=20000 [13:55:56]StoreToDocumentArchive [13:55:56]shift 391 fd 112241 [13:55:56]save to /storage/0391/doc_00112241 [13:55:56]save last doc name /storage/0391/doc_00112241 to /storage/kkm_last_doc_name [13:55:56]save OK [13:55:56]Clear old archive folders... [13:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:56]tlvbuf is B6EDB8E0 [13:55:56]SAM_PROTO_ClearQueue [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 09 00 00 [13:55:56]Write to MH i2c: E2 08 00 9A 35 80 09 00 00 00 00 00 00 41 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 9A 35 00 90 00 43 [13:55:56]RAPDU: 90 00 [13:55:56]wFMCommunicate OK [13:55:56]SAM_PROTO_ClearQueue done [13:55:56]KKMCreateOFDPacket [13:55:56]OFDProtocolAddRootSTLVToBuf [13:55:56]FM_MakeSignedData [13:55:56]FM_MakeSignedData [13:55:56]SAM_PROTO_SignData [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 0D 01 02 [13:55:56]Write to MH i2c: E2 08 00 9B 35 80 0D 01 02 00 00 00 00 49 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 9B 35 00 90 00 44 [13:55:56]RAPDU: 90 00 [13:55:56]wFMCommunicate OK [13:55:56]wFMCommunicate request_size=255 [13:55:56]MH_SAM_APDU [13:55: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 04 D8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B6 01 00 35 04 06 00 95 [13:55:56]Write to MH i2c: E2 02 01 9C 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 04 D8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B6 01 00 35 04 06 00 95 00 00 24 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 9C 35 00 90 00 45 [13:55:56]RAPDU: 90 00 [13:55:56]wFMCommunicate OK [13:55:56]wFMCommunicate request_size=10 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 0D 02 02 05 B7 B9 6C 95 A5 [13:55:56]Write to MH i2c: E2 0D 00 9D 35 80 0D 02 02 05 00 B7 B9 6C 95 A5 00 00 6C [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 03 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [13:55:57]RAPDU: 90 00 [13:55:57]wFMCommunicate OK [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 0D 03 02 [13:55:57]Write to MH i2c: E2 08 00 9E 35 80 0D 03 02 00 00 00 00 4E [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0B 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0B 00 9E 35 00 59 73 49 C2 B1 91 0D B0 90 00 25 [13:55:57]RAPDU: 59 73 49 C2 B1 91 0D B0 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_SignData done [13:55:57]FM_MakeSignedData done [13:55:57]CreateOFDProtocolMessage [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 11 00 00 [13:55:57]Write to MH i2c: E2 08 00 9F 35 80 11 00 00 00 00 00 00 4E [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 17 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 17 00 9F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [13:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:55:57]wFMCommunicate OK [13:55:57]CreateOFDProtocolMessage done [13:55:57]OFDSenderStorePacket 112241 [13:55:57]StoreOFDPacket docnum=112241 [13:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 1D 07 01 FD 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 04 D8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B6 01 00 35 04 06 00 95 B7 B9 6C 95 A5 59 73 49 C2 B1 91 0D B0 [13:55:57]CheckFolder [13:55:57]dirname=/storage/ofd_packets [13:55:57]CheckFolder done [13:55:57]ProducePacketName [13:55:57]name=ofd_packets/00112241 [13:55:57]NVStorageSaveData ofd_packets/00112241 [13:55:57]File name is /storage/ofd_packets/00112241 [13:55:57]Write 301 bytes [13:55:57]NVStorageSaveData done [13:55:57]OFDSenderStorePacket done [13:55:57]KKMCreateOFDPacket done [13:55:57]NVStorageSaveData kkm_last_timestamp [13:55:57]File name is /storage/kkm_last_timestamp [13:55:57]Write 4 bytes [13:55:57]NVStorageSaveData done [13:55:57]ExternCall_PrintAddStr [13:55:57]wPrintStart [13:55:57]Write to MH i2c: 01 00 00 A0 35 D5 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 07 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 07 00 A0 35 00 00 00 00 00 FF 0F EA [13:55:57]RasterBufferAndPrint [13:55:57]line Счет N : (1)320916 [13:55:57]line ИНН: 02508201610067 [13:55:57]line Контрольно-Кассовый Чек [13:55:57]line ПРОДАЖА [13:55:57]line ТРК (МРК, ГНК) : 11 [13:55:57]line Товар: 2710124130 [13:55:57]line Аи-92-К-5 [13:55:57]line 3.020 * 66.40 [13:55:57]line = 200.53 [13:55:57]line НДС 12% НСП 1% [13:55:57]line > о реализуемом товаре [13:55:57]line ОКРУГЛЕНИЕ: -0.53 [13:55:57]line ИТОГО: 200.00 [13:55:57]line Внесено: 200.00 [13:55:57]line СДАЧА: 0.00 [13:55:57]line НСП 1% : 1.77 [13:55:57]line НДС 12% : 21.29 [13:55:57]line Наличными: 200.00 [13:55:57]line Безнал.: 0.00 [13:55:57]line Место: АЗС № 65 "Партнер Нефть" [13:55:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:55:57]line СНО: Общий режим [13:55:57]line Чек 107 22.06.2024 13:56 [13:55:57]line Смена: 391 ФФД: 1.0 [13:55:57]line ЗНМ: 0300000198 [13:55:57]line РНМ: 0000000000092771 [13:55:57]line Версия ККМ: 001 [13:55:57]line ФМ: 0000000000875083 [13:55:57]line ФД: 112241 [13:55:57]line ФПД: 164616322454949 [13:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T135620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112241&fm=164616322454949&tin=02508201610067®Number=0000000000092771&sum=20000 [13:55:57]OFD Sender: Processing packet 112241 [packets to send 38, broken 37] [13:55:57]ProducePacketName [13:55:57]name=ofd_packets/00112241 [13:55:57]OFD Sender: To server: pG, [13:55:57]CommunicateWithHost lk.salyk.kg:30040 [13:55:57]ConnectInit lk.salyk.kg [13:55:57]written 0, free lines is 4095 [13:55:57]Connected sock=10 [13:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 1D 07 01 FD 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 04 D8 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B6 01 00 35 04 06 00 95 B7 B9 6C 95 A5 59 73 49 C2 B1 91 0D B0 [13:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7F 93 47 00 2E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B6 01 00 F4 03 04 00 0E 6F 76 66 B6 04 01 00 00 B1 1A 89 C6 85 D8 D8 90 [13:55:57]CommunicateWithHost err = 0 [13:55:57]CheckOFDResponse [13:55:57]1017 (14) - 77093643461234 [13:55:57]1041 (16) - 0000000000875083 [13:55:57]1040 (4) - 112241 [13:55:57]1012 (4) - 22.06.2024 06:28 [13:55:57]1206 (1) - 0 [13:55:57]OFD Sender: Remove packet 112241 [13:55:57]ProducePacketName [13:55:57]name=ofd_packets/00112241 [13:55:57]NVStorageDeleteData [13:55:57]Write to MH i2c: 01 00 00 CB 35 00 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 07 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 07 00 CB 35 00 00 00 00 00 D0 0C E3 [13:55:57]RasterBufferAndPrint [13:55:57]line [13:55:57]line [13:55:57]line [13:55:57]line [13:55:57]line [13:55:57]written 0, free lines is 3288 [13:55:57]MH_Cut [13:55:57]Write to MH i2c: D1 01 00 D2 35 01 D9 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: D1 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: D1 01 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: D1 01 00 D2 35 00 D8 [13:55:57]Write to MH i2c: 01 00 00 D3 35 08 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:58]OFD Sender: No OFD packet to send [13:55:58]*** Cut start [13:55:58]*** Partial cut [13:55:58]*** CUTSNS_PIN = 1 [13:55:58]*** CUTSNS_PIN = 0 [13:55:58]*** Brake cut motor [13:55:59]Read from MH i2c: 01 [13:55:59]MH_I2C_Read... [13:55:59]*** Stop cut motor [13:55:59]*** Cut end [13:55:59]Read from MH i2c: 01 07 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 D3 35 00 00 00 00 00 FF 0F 1D [13:55:59]process_action close_receipt done [13:55:59]requested_data is exist [13:55:59]produce_requested_data [13:55:59]requested_item fm.sn is exist - process it [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 11 00 00 [13:55:59]Write to MH i2c: E2 08 00 D4 35 80 11 00 00 00 00 00 00 83 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 D4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [13:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:55:59]wFMCommunicate OK [13:55:59]requested_item fd.num is exist - process it [13:55:59]SAM_PROTO_GetFieldsCounters [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 13 00 00 [13:55:59]Write to MH i2c: E2 08 00 D5 35 80 13 00 00 00 00 00 00 86 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 62 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 62 00 D5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [13:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_GetFieldsCounters done [13:55:59]requested_item shift.num is exist - process it [13:55:59]requested_item shift.opened is exist - process it [13:55:59]req_shift_opened [13:55:59]FM_GetShiftState [13:55:59]SAM_PROTO_GetShiftState [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 13 01 00 [13:55:59]Write to MH i2c: E2 08 00 D6 35 80 13 01 00 00 00 00 00 88 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0E 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0E 00 D6 35 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BD [13:55:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_GetShiftState done [13:55:59]FM_GetShiftState done [13:55:59]req_shift_opened done [13:55:59]requested_item shift.open_date is exist - process it [13:55:59]req_shift_open_date [13:55:59]req_shift_open_date done [13:55:59]produce_requested_data done [13:55:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112241,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [13:55:59]process_action_free close_receipt [13:55:59]json_value_free [13:55:59]json_value_free done [13:55:59]process_json_proto returns [13:55:59]Send response to host [13:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112241,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [13:55:59]free response buf [13:55:59]execute_script done [13:55:59]execute_script returns [13:55:59]free content buf [13:55:59]Sock 9.Close socket [13:55:59]Sock 9.Thread stoped [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [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 7 [14:04:57]New connection [14:04:57]New thread 3066957156 created [14:04:57]Thread 3066813796 joined [14:04:57]Waiting for new connection... [14:04:57] Sock 7.Parse request [14:04:57]Sock 7.Check first char [14:04:57]Sock 7.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.59.68:8080 [14:04:57]Content-Length: 679 [14:04:57]Content-Type: application/json [14:04:57] [14:04:57]POST finish read [14:04:57]Found Content-Length = 679 [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)320918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)320918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 D7 35 FB [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 D7 35 00 22 DA 76 66 BC EC 60 65 49 [14:04:57]GetLastDocTimeStamp 1719064580 [14:04:57]current date 1719065122 [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 D8 35 80 13 01 00 00 00 00 00 8A [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 D8 35 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BF [14:04:57]RAPDU: 09 00 01 23 2A 76 66 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 1719020067 [14:04:57]opened+sec_in_day 1719106467 [14:04:57]quantity*price = 100018 [14:04:57]sum+1 = 100020 [14:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 108 22.06.2024 14:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112242 ФПД: 243801299744774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112242&fm=243801299744774&tin=02508201610067®Number=0000000000092771&sum=100000 [14:04:58]StoreToDocumentArchive [14:04:58]shift 391 fd 112242 [14:04:58]save to /storage/0391/doc_00112242 [14:04:58]save last doc name /storage/0391/doc_00112242 to /storage/kkm_last_doc_name [14:04:58]save OK [14:04:58]Clear old archive folders... [14:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:04:58]tlvbuf is 011D1510 [14:04:58]SAM_PROTO_ClearQueue [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 09 00 00 [14:04:58]Write to MH i2c: E2 08 00 E5 35 80 09 00 00 00 00 00 00 8C [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 E5 35 00 90 00 8E [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]SAM_PROTO_ClearQueue done [14:04:58]KKMCreateOFDPacket [14:04:58]OFDProtocolAddRootSTLVToBuf [14:04:58]FM_MakeSignedData [14:04:58]FM_MakeSignedData [14:04:58]SAM_PROTO_SignData [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 01 02 [14:04:58]Write to MH i2c: E2 08 00 E6 35 80 0D 01 02 00 00 00 00 94 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 E6 35 00 90 00 8F [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]wFMCommunicate request_size=255 [14:04:58]MH_SAM_APDU [14:04: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B6 01 00 35 04 06 00 DD BC 69 DD [14:04:58]Write to MH i2c: E2 02 01 E7 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B6 01 00 35 04 06 00 DD BC 69 DD 00 00 CE [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 E7 35 00 90 00 90 [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]wFMCommunicate request_size=7 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 02 02 02 F8 06 [14:04:58]Write to MH i2c: E2 0A 00 E8 35 80 0D 02 02 02 00 F8 06 00 00 99 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 03 00 E8 35 00 90 00 91 [14:04:58]RAPDU: 90 00 [14:04:58]wFMCommunicate OK [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 0D 03 02 [14:04:58]Write to MH i2c: E2 08 00 E9 35 80 0D 03 02 00 00 00 00 99 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0B 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 0B 00 E9 35 00 27 AD D0 3A 09 07 28 3D 90 00 ED [14:04:58]RAPDU: 27 AD D0 3A 09 07 28 3D 90 00 [14:04:58]wFMCommunicate OK [14:04:58]SAM_PROTO_SignData done [14:04:58]FM_MakeSignedData done [14:04:58]CreateOFDProtocolMessage [14:04:58]wFMCommunicate request_size=4 [14:04:58]MH_SAM_APDU [14:04:58]CAPDU: 80 11 00 00 [14:04:58]Write to MH i2c: E2 08 00 EA 35 80 11 00 00 00 00 00 00 99 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]OFD Sender: No OFD packet to send [14:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:58]Read from MH i2c: E2 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 17 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: E2 17 00 EA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EB [14:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:04:58]wFMCommunicate OK [14:04:58]CreateOFDProtocolMessage done [14:04:58]OFDSenderStorePacket 112242 [14:04:58]StoreOFDPacket docnum=112242 [14:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 72 46 04 01 23 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B6 01 00 35 04 06 00 DD BC 69 DD F8 06 27 AD D0 3A 09 07 28 3D [14:04:58]CheckFolder [14:04:58]dirname=/storage/ofd_packets [14:04:58]CheckFolder done [14:04:58]ProducePacketName [14:04:58]name=ofd_packets/00112242 [14:04:58]NVStorageSaveData ofd_packets/00112242 [14:04:58]File name is /storage/ofd_packets/00112242 [14:04:58]Write 298 bytes [14:04:58]NVStorageSaveData done [14:04:58]OFDSenderStorePacket done [14:04:58]KKMCreateOFDPacket done [14:04:58]NVStorageSaveData kkm_last_timestamp [14:04:58]File name is /storage/kkm_last_timestamp [14:04:58]Write 4 bytes [14:04:58]NVStorageSaveData done [14:04:58]ExternCall_PrintAddStr [14:04:58]wPrintStart [14:04:58]Write to MH i2c: 01 00 00 EB 35 20 [14:04:58]Write i2c OK [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: 01 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: 01 07 00 [14:04:58]MH_I2C_Read... [14:04:58]Read from MH i2c: 01 07 00 EB 35 00 00 00 00 00 FF 0F 35 [14:04:58]RasterBufferAndPrint [14:04:58]line Счет N : (1)320918 [14:04:58]line ИНН: 02508201610067 [14:04:58]line Контрольно-Кассовый Чек [14:04:58]line ПРОДАЖА [14:04:58]line ТРК (МРК, ГНК) : 22 [14:04:58]line Товар: 2710194210 [14:04:58]line ДТ-К-5 [14:04:58]line 13.720 * 72.90 [14:04:58]line = 1000.19 [14:04:58]line НДС 12% НСП 1% [14:04:58]line > о реализуемом товаре [14:04:58]line ОКРУГЛЕНИЕ: -0.19 [14:04:58]line ИТОГО: 1000.00 [14:04:58]line Внесено: 1000.00 [14:04:58]line СДАЧА: 0.00 [14:04:58]line НСП 1% : 8.85 [14:04:58]line НДС 12% : 106.21 [14:04:58]line Наличными: 1000.00 [14:04:58]line Безнал.: 0.00 [14:04:58]line Место: АЗС № 65 "Партнер Нефть" [14:04:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:04:58]line СНО: Общий режим [14:04:58]line Чек 108 22.06.2024 14:05 [14:04:58]line Смена: 391 ФФД: 1.0 [14:04:58]line ЗНМ: 0300000198 [14:04:58]line РНМ: 0000000000092771 [14:04:58]line Версия ККМ: 001 [14:04:58]line ФМ: 0000000000875083 [14:04:58]line ФД: 112242 [14:04:58]line ФПД: 243801299744774 [14:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112242&fm=243801299744774&tin=02508201610067®Number=0000000000092771&sum=100000 [14:04:59]OFD Sender: Processing packet 112242 [packets to send 38, broken 37] [14:04:59]ProducePacketName [14:04:59]name=ofd_packets/00112242 [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:04:59]Connected sock=9 [14: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 35 30 38 33 0C 01 00 00 72 46 04 01 23 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 22 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B6 01 00 35 04 06 00 DD BC 69 DD F8 06 27 AD D0 3A 09 07 28 3D [14:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F7 42 47 00 98 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B6 01 00 F4 03 04 00 2C 71 76 66 B6 04 01 00 00 B7 4F 96 BE 02 DC 1B AE [14:04:59]CommunicateWithHost err = 0 [14:04:59]CheckOFDResponse [14:04:59]1017 (14) - 77093643461234 [14:04:59]1041 (16) - 0000000000875083 [14:04:59]1040 (4) - 112242 [14:04:59]1012 (4) - 22.06.2024 06:37 [14:04:59]1206 (1) - 0 [14:04:59]OFD Sender: Remove packet 112242 [14:04:59]ProducePacketName [14:04:59]name=ofd_packets/00112242 [14:04:59]NVStorageDeleteData [14:04:59]Write to MH i2c: 01 00 00 16 36 4C [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 16 36 00 00 00 00 00 DD 0C 3C [14:04:59]RasterBufferAndPrint [14:04:59]line [14:04:59]line [14:04:59]line [14:04:59]line [14:04:59]line [14:04:59]written 0, free lines is 3302 [14:04:59]MH_Cut [14:04:59]Write to MH i2c: D1 01 00 1D 36 01 25 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: D1 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: D1 01 00 [14:04:59]MH_I2C_Read... [14:04:59]Read from MH i2c: D1 01 00 1D 36 00 24 [14:04:59]Write to MH i2c: 01 00 00 1E 36 54 [14:04:59]Write i2c OK [14:04:59]MH_I2C_Read... [14:04:59]OFD Sender: No OFD packet to send [14:05:00]*** Cut start [14:05:00]*** Partial cut [14:05:00]*** CUTSNS_PIN = 1 [14:05:00]*** CUTSNS_PIN = 0 [14:05:00]*** Brake cut motor [14:05:00]Read from MH i2c: 01 [14:05:00]MH_I2C_Read... [14:05:00]*** Stop cut motor [14:05:00]*** Cut end [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 1E 36 00 00 00 00 00 FF 0F 69 [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 1F 36 80 11 00 00 00 00 00 00 CF [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 1F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [14:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:05:01]wFMCommunicate OK [14:05:01]requested_item fd.num is exist - process it [14:05:01]SAM_PROTO_GetFieldsCounters [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 13 00 00 [14:05:01]Write to MH i2c: E2 08 00 20 36 80 13 00 00 00 00 00 00 D2 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 62 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 62 00 20 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [14:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:01]wFMCommunicate OK [14:05:01]SAM_PROTO_GetFieldsCounters done [14:05:01]requested_item shift.num is exist - process it [14:05:01]requested_item shift.opened is exist - process it [14:05:01]req_shift_opened [14:05:01]FM_GetShiftState [14:05:01]SAM_PROTO_GetShiftState [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 13 01 00 [14:05:01]Write to MH i2c: E2 08 00 21 36 80 13 01 00 00 00 00 00 D4 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 0E 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 0E 00 21 36 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 09 [14:05:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:05:01]wFMCommunicate OK [14:05:01]SAM_PROTO_GetShiftState done [14:05:01]FM_GetShiftState done [14:05:01]req_shift_opened done [14:05:01]requested_item shift.open_date is exist - process it [14:05:01]req_shift_open_date [14:05:01]req_shift_open_date done [14:05:01]produce_requested_data done [14:05:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112242,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:05:01]process_action_free close_receipt [14:05:01]json_value_free [14:05:01]json_value_free done [14:05:01]process_json_proto returns [14:05:01]Send response to host [14:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112242,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:05:01]free response buf [14:05:01]execute_script done [14:05:01]execute_script returns [14:05:01]free content buf [14:05:01]Sock 7.Close socket [14:05:01]Sock 7.Thread stoped [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:21]accept exits with 10 [14:05:21]New connection [14:05:21]New thread 3066813796 created [14:05:21]Thread 3066957156 joined [14:05:21]Waiting for new connection... [14:05:21] Sock 10.Parse request [14:05:21]Sock 10.Check first char [14:05:21]Sock 10.First char is OK [14:05:21]request: POST /json_proto HTTP/1.0 [14:05:21]Method: POST [14:05:21]URL: /json_proto [14:05:21]Method is POST - this is cgi request [14:05:21]url: /json_proto [14:05:21]query_string will be loaded in cgi processing [14:05:21]execute_cgi json_proto POST (null) [14:05:21]execute_cgi path=json_proto method=POST [14:05:21]POST find Content-Length [14:05:21]Host: 172.17.59.68:8080 [14:05:21]Content-Length: 682 [14:05:21]Content-Type: application/json [14:05:21] [14:05:21]POST finish read [14:05:21]Found Content-Length = 682 [14:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320917", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [14:05:21]execute_script... [14: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)320917", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [14:05:21]POST & json_proto [14:05:21]process_json_proto [14:05:21]json parsed OK: [14:05:21]protocol is kg_v1.0 [14:05:21]action value=close_receipt [14:05:21]process_action close_receipt [14:05:21]cmd_close_receipt [14:05:21]MH_GetDate [14:05:21]Write to MH i2c: F0 00 00 22 36 47 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: F0 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: F0 09 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: F0 09 00 22 36 00 3A DA 76 66 BC EC 60 65 AD [14:05:21]GetLastDocTimeStamp 1719065122 [14:05:21]current date 1719065146 [14:05:21]FM_GetShiftState [14:05:21]SAM_PROTO_GetShiftState [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 13 01 00 [14:05:21]Write to MH i2c: E2 08 00 23 36 80 13 01 00 00 00 00 00 D6 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0E 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0E 00 23 36 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0B [14:05:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:05:21]wFMCommunicate OK [14:05:21]SAM_PROTO_GetShiftState done [14:05:21]FM_GetShiftState done [14:05:21]opened in 1719020067 [14:05:21]opened+sec_in_day 1719106467 [14:05:21]quantity*price = 200063 [14:05:21]sum+1 = 200064 [14:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 109 22.06.2024 14:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112243 ФПД: 141738115962063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140547&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112243&fm=141738115962063&tin=02508201610067®Number=0000000000092771&sum=200000 [14:05:23]StoreToDocumentArchive [14:05:23]shift 391 fd 112243 [14:05:23]save to /storage/0391/doc_00112243 [14:05:23]save last doc name /storage/0391/doc_00112243 to /storage/kkm_last_doc_name [14:05:23]save OK [14:05:23]Clear old archive folders... [14:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:23]tlvbuf is 011D19E0 [14:05:23]SAM_PROTO_ClearQueue [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 09 00 00 [14:05:23]Write to MH i2c: E2 08 00 30 36 80 09 00 00 00 00 00 00 D8 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 30 36 00 90 00 DA [14:05:23]RAPDU: 90 00 [14:05:23]wFMCommunicate OK [14:05:23]SAM_PROTO_ClearQueue done [14:05:23]KKMCreateOFDPacket [14:05:23]OFDProtocolAddRootSTLVToBuf [14:05:23]FM_MakeSignedData [14:05:23]FM_MakeSignedData [14:05:23]SAM_PROTO_SignData [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 0D 01 02 [14:05:23]Write to MH i2c: E2 08 00 31 36 80 0D 01 02 00 00 00 00 E0 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 31 36 00 90 00 DB [14:05:23]RAPDU: 90 00 [14:05:23]wFMCommunicate OK [14:05:23]wFMCommunicate request_size=255 [14:05:23]MH_SAM_APDU [14: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 3B DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B6 01 00 35 04 06 00 80 [14:05:23]Write to MH i2c: E2 02 01 32 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 3B DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B6 01 00 35 04 06 00 80 00 00 19 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 32 36 00 90 00 DC [14:05:23]RAPDU: 90 00 [14:05:23]wFMCommunicate OK [14:05:23]wFMCommunicate request_size=10 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 0D 02 02 05 E8 FA 0D 94 CF [14:05:23]Write to MH i2c: E2 0D 00 33 36 80 0D 02 02 05 00 E8 FA 0D 94 CF 00 00 3F [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 03 00 33 36 00 90 00 DD [14:05:23]RAPDU: 90 00 [14:05:23]wFMCommunicate OK [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 0D 03 02 [14:05:23]Write to MH i2c: E2 08 00 34 36 80 0D 03 02 00 00 00 00 E5 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 0B 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 0B 00 34 36 00 45 89 9C 39 AA 9B FC 37 90 00 01 [14:05:23]RAPDU: 45 89 9C 39 AA 9B FC 37 90 00 [14:05:23]wFMCommunicate OK [14:05:23]SAM_PROTO_SignData done [14:05:23]FM_MakeSignedData done [14:05:23]CreateOFDProtocolMessage [14:05:23]wFMCommunicate request_size=4 [14:05:23]MH_SAM_APDU [14:05:23]CAPDU: 80 11 00 00 [14:05:23]Write to MH i2c: E2 08 00 35 36 80 11 00 00 00 00 00 00 E5 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:23]Read from MH i2c: E2 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 17 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: E2 17 00 35 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [14:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:05:23]wFMCommunicate OK [14:05:23]CreateOFDProtocolMessage done [14:05:23]OFDSenderStorePacket 112243 [14:05:23]StoreOFDPacket docnum=112243 [14:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E8 A8 07 01 F9 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 3B DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B6 01 00 35 04 06 00 80 E8 FA 0D 94 CF 45 89 9C 39 AA 9B FC 37 [14:05:23]CheckFolder [14:05:23]dirname=/storage/ofd_packets [14:05:23]CheckFolder done [14:05:23]ProducePacketName [14:05:23]name=ofd_packets/00112243 [14:05:23]NVStorageSaveData ofd_packets/00112243 [14:05:23]File name is /storage/ofd_packets/00112243 [14:05:23]Write 301 bytes [14:05:23]NVStorageSaveData done [14:05:23]OFDSenderStorePacket done [14:05:23]KKMCreateOFDPacket done [14:05:23]NVStorageSaveData kkm_last_timestamp [14:05:23]File name is /storage/kkm_last_timestamp [14:05:23]Write 4 bytes [14:05:23]NVStorageSaveData done [14:05:23]ExternCall_PrintAddStr [14:05:23]wPrintStart [14:05:23]Write to MH i2c: 01 00 00 36 36 6C [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 07 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 07 00 36 36 00 00 00 00 00 FF 0F 81 [14:05:23]RasterBufferAndPrint [14:05:23]line Счет N : (1)320917 [14:05:23]line ИНН: 02508201610067 [14:05:23]line Контрольно-Кассовый Чек [14:05:23]line ПРОДАЖА [14:05:23]line ТРК (МРК, ГНК) : 11 [14:05:23]line Товар: 2710124130 [14:05:23]line Аи-92-К-5 [14:05:23]line 30.130 * 66.40 [14:05:23]line = 2000.63 [14:05:23]line НДС 12% НСП 1% [14:05:23]line > о реализуемом товаре [14:05:23]line ОКРУГЛЕНИЕ: -0.63 [14:05:23]line ИТОГО: 2000.00 [14:05:23]line Внесено: 2000.00 [14:05:23]line СДАЧА: 0.00 [14:05:23]line НСП 1% : 17.70 [14:05:23]line НДС 12% : 212.46 [14:05:23]line Наличными: 2000.00 [14:05:23]line Безнал.: 0.00 [14:05:23]line Место: АЗС № 65 "Партнер Нефть" [14:05:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:05:23]line СНО: Общий режим [14:05:23]line Чек 109 22.06.2024 14:05 [14:05:23]line Смена: 391 ФФД: 1.0 [14:05:23]line ЗНМ: 0300000198 [14:05:23]line РНМ: 0000000000092771 [14:05:23]line Версия ККМ: 001 [14:05:23]line ФМ: 0000000000875083 [14:05:23]line ФД: 112243 [14:05:23]line ФПД: 141738115962063 [14:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140547&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112243&fm=141738115962063&tin=02508201610067®Number=0000000000092771&sum=200000 [14:05:23]OFD Sender: Processing packet 112243 [packets to send 38, broken 37] [14:05:23]ProducePacketName [14:05:23]name=ofd_packets/00112243 [14:05:23]OFD Sender: To server: pG, [14:05:23]CommunicateWithHost lk.salyk.kg:30040 [14:05:23]ConnectInit lk.salyk.kg [14:05:23]written 0, free lines is 4095 [14:05:24]Connected sock=9 [14:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E8 A8 07 01 F9 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 6D 00 00 00 F4 03 04 00 3B DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B6 01 00 35 04 06 00 80 E8 FA 0D 94 CF 45 89 9C 39 AA 9B FC 37 [14:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 43 66 47 00 21 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B6 01 00 F4 03 04 00 45 71 76 66 B6 04 01 00 00 55 1E F6 B4 E3 3C A5 87 [14:05:24]CommunicateWithHost err = 0 [14:05:24]CheckOFDResponse [14:05:24]1017 (14) - 77093643461234 [14:05:24]1041 (16) - 0000000000875083 [14:05:24]1040 (4) - 112243 [14:05:24]1012 (4) - 22.06.2024 06:37 [14:05:24]1206 (1) - 0 [14:05:24]OFD Sender: Remove packet 112243 [14:05:24]ProducePacketName [14:05:24]name=ofd_packets/00112243 [14:05:24]NVStorageDeleteData [14:05:24]Write to MH i2c: 01 00 00 61 36 97 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: 01 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: 01 07 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: 01 07 00 61 36 00 00 00 00 00 D3 0C 7D [14:05:24]RasterBufferAndPrint [14:05:24]line [14:05:24]line [14:05:24]line [14:05:24]line [14:05:24]line [14:05:24]written 0, free lines is 3287 [14:05:24]MH_Cut [14:05:24]Write to MH i2c: D1 01 00 68 36 01 70 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: D1 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: D1 01 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: D1 01 00 68 36 00 6F [14:05:24]Write to MH i2c: 01 00 00 69 36 9F [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]OFD Sender: No OFD packet to send [14:05:25]*** Cut start [14:05:25]*** Partial cut [14:05:25]*** CUTSNS_PIN = 1 [14:05:25]*** CUTSNS_PIN = 0 [14:05:25]*** Brake cut motor [14:05:25]Read from MH i2c: 01 [14:05:25]MH_I2C_Read... [14:05:25]*** Stop cut motor [14:05:25]*** Cut end [14:05:25]Read from MH i2c: 01 07 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: 01 07 00 69 36 00 00 00 00 00 FF 0F B4 [14:05:25]process_action close_receipt done [14:05:25]requested_data is exist [14:05:25]produce_requested_data [14:05:25]requested_item fm.sn is exist - process it [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 11 00 00 [14:05:25]Write to MH i2c: E2 08 00 6A 36 80 11 00 00 00 00 00 00 1A [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 17 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 17 00 6A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [14:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:05:25]wFMCommunicate OK [14:05:25]requested_item fd.num is exist - process it [14:05:25]SAM_PROTO_GetFieldsCounters [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 13 00 00 [14:05:25]Write to MH i2c: E2 08 00 6B 36 80 13 00 00 00 00 00 00 1D [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 62 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 62 00 6B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [14:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:25]wFMCommunicate OK [14:05:25]SAM_PROTO_GetFieldsCounters done [14:05:25]requested_item shift.num is exist - process it [14:05:25]requested_item shift.opened is exist - process it [14:05:25]req_shift_opened [14:05:25]FM_GetShiftState [14:05:25]SAM_PROTO_GetShiftState [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 13 01 00 [14:05:25]Write to MH i2c: E2 08 00 6C 36 80 13 01 00 00 00 00 00 1F [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 0E 00 [14:05:25]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0E 00 6C 36 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 54 [14:05:26]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:05:26]wFMCommunicate OK [14:05:26]SAM_PROTO_GetShiftState done [14:05:26]FM_GetShiftState done [14:05:26]req_shift_opened done [14:05:26]requested_item shift.open_date is exist - process it [14:05:26]req_shift_open_date [14:05:26]req_shift_open_date done [14:05:26]produce_requested_data done [14:05:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112243,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:05:26]process_action_free close_receipt [14:05:26]json_value_free [14:05:26]json_value_free done [14:05:26]process_json_proto returns [14:05:26]Send response to host [14:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112243,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:05:26]free response buf [14:05:26]execute_script done [14:05:26]execute_script returns [14:05:26]free content buf [14:05:26]Sock 10.Close socket [14:05:26]Sock 10.Thread stoped [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:53]accept exits with 7 [14:07:53]New connection [14:07:53]New thread 3066957156 created [14:07:53]Thread 3066813796 joined [14:07:53]Waiting for new connection... [14:07:53] Sock 7.Parse request [14:07:53]Sock 7.Check first char [14:07:53]Sock 7.First char is OK [14:07:53]request: POST /json_proto HTTP/1.0 [14:07:53]Method: POST [14:07:53]URL: /json_proto [14:07:53]Method is POST - this is cgi request [14:07:53]url: /json_proto [14:07:53]query_string will be loaded in cgi processing [14:07:53]execute_cgi json_proto POST (null) [14:07:53]execute_cgi path=json_proto method=POST [14:07:53]POST find Content-Length [14:07:53]Host: 172.17.59.68:8080 [14:07:53]Content-Length: 677 [14:07:53]Content-Type: application/json [14:07:53] [14:07:53]POST finish read [14:07:53]Found Content-Length = 677 [14:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320919", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:53]execute_script... [14:07:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320919", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:53]POST & json_proto [14:07:53]process_json_proto [14:07:53]json parsed OK: [14:07:53]protocol is kg_v1.0 [14:07:53]action value=close_receipt [14:07:53]process_action close_receipt [14:07:53]cmd_close_receipt [14:07:53]MH_GetDate [14:07:53]Write to MH i2c: F0 00 00 6D 36 92 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: F0 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: F0 09 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: F0 09 00 6D 36 00 D3 DA 76 66 BC EC 60 65 91 [14:07:53]GetLastDocTimeStamp 1719065147 [14:07:53]current date 1719065299 [14:07:53]FM_GetShiftState [14:07:53]SAM_PROTO_GetShiftState [14:07:53]wFMCommunicate request_size=4 [14:07:53]MH_SAM_APDU [14:07:53]CAPDU: 80 13 01 00 [14:07:53]Write to MH i2c: E2 08 00 6E 36 80 13 01 00 00 00 00 00 21 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:53]Read from MH i2c: E2 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 0E 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: E2 0E 00 6E 36 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 56 [14:07:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:07:53]wFMCommunicate OK [14:07:53]SAM_PROTO_GetShiftState done [14:07:53]FM_GetShiftState done [14:07:53]opened in 1719020067 [14:07:53]opened+sec_in_day 1719106467 [14:07:53]quantity*price = 50065 [14:07:53]sum+1 = 50067 [14:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 110 22.06.2024 14:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112244 ФПД: 137733055476420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140819&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112244&fm=137733055476420&tin=02508201610067®Number=0000000000092771&sum=50000 [14:07:55]StoreToDocumentArchive [14:07:55]shift 391 fd 112244 [14:07:55]save to /storage/0391/doc_00112244 [14:07:55]save last doc name /storage/0391/doc_00112244 to /storage/kkm_last_doc_name [14:07:55]save OK [14:07:55]Clear old archive folders... [14:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:55]tlvbuf is 011F1BC0 [14:07:55]SAM_PROTO_ClearQueue [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 09 00 00 [14:07:55]Write to MH i2c: E2 08 00 7B 36 80 09 00 00 00 00 00 00 23 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 7B 36 00 90 00 25 [14:07:55]RAPDU: 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_ClearQueue done [14:07:55]KKMCreateOFDPacket [14:07:55]OFDProtocolAddRootSTLVToBuf [14:07:55]FM_MakeSignedData [14:07:55]FM_MakeSignedData [14:07:55]SAM_PROTO_SignData [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 0D 01 02 [14:07:55]Write to MH i2c: E2 08 00 7C 36 80 0D 01 02 00 00 00 00 2B [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 7C 36 00 90 00 26 [14:07:55]RAPDU: 90 00 [14:07:55]wFMCommunicate OK [14:07:55]wFMCommunicate request_size=255 [14:07:55]MH_SAM_APDU [14:07: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D3 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B6 01 00 35 04 06 00 7D [14:07:55]Write to MH i2c: E2 02 01 7D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D3 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B6 01 00 35 04 06 00 7D 00 00 06 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 7D 36 00 90 00 27 [14:07:55]RAPDU: 90 00 [14:07:55]wFMCommunicate OK [14:07:55]wFMCommunicate request_size=10 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 0D 02 02 05 44 79 D8 72 C4 [14:07:55]Write to MH i2c: E2 0D 00 7E 36 80 0D 02 02 05 00 44 79 D8 72 C4 00 00 03 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 03 00 7E 36 00 90 00 28 [14:07:55]RAPDU: 90 00 [14:07:55]wFMCommunicate OK [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 0D 03 02 [14:07:55]Write to MH i2c: E2 08 00 7F 36 80 0D 03 02 00 00 00 00 30 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0B 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0B 00 7F 36 00 E1 86 6A AB 31 98 77 DE 90 00 CB [14:07:55]RAPDU: E1 86 6A AB 31 98 77 DE 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_SignData done [14:07:55]FM_MakeSignedData done [14:07:55]CreateOFDProtocolMessage [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 11 00 00 [14:07:55]Write to MH i2c: E2 08 00 80 36 80 11 00 00 00 00 00 00 30 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 80 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 82 [14:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:07:55]wFMCommunicate OK [14:07:55]CreateOFDProtocolMessage done [14:07:55]OFDSenderStorePacket 112244 [14:07:55]StoreOFDPacket docnum=112244 [14:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 42 07 01 F0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D3 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B6 01 00 35 04 06 00 7D 44 79 D8 72 C4 E1 86 6A AB 31 98 77 DE [14:07:55]CheckFolder [14:07:55]dirname=/storage/ofd_packets [14:07:55]CheckFolder done [14:07:55]ProducePacketName [14:07:55]name=ofd_packets/00112244 [14:07:55]NVStorageSaveData ofd_packets/00112244 [14:07:55]File name is /storage/ofd_packets/00112244 [14:07:55]Write 301 bytes [14:07:55]NVStorageSaveData done [14:07:55]OFDSenderStorePacket done [14:07:55]KKMCreateOFDPacket done [14:07:55]NVStorageSaveData kkm_last_timestamp [14:07:55]File name is /storage/kkm_last_timestamp [14:07:55]Write 4 bytes [14:07:55]NVStorageSaveData done [14:07:55]ExternCall_PrintAddStr [14:07:55]wPrintStart [14:07:55]Write to MH i2c: 01 00 00 81 36 B7 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 81 36 00 00 00 00 00 FF 0F CC [14:07:55]RasterBufferAndPrint [14:07:55]line Счет N : (1)320919 [14:07:55]line ИНН: 02508201610067 [14:07:55]line Контрольно-Кассовый Чек [14:07:55]line ПРОДАЖА [14:07:55]line ТРК (МРК, ГНК) : 11 [14:07:55]line Товар: 2710124130 [14:07:55]line Аи-92-К-5 [14:07:55]line 7.540 * 66.40 [14:07:55]line = 500.66 [14:07:55]line НДС 12% НСП 1% [14:07:55]line > о реализуемом товаре [14:07:55]line ОКРУГЛЕНИЕ: -0.66 [14:07:55]line ИТОГО: 500.00 [14:07:55]line Внесено: 500.00 [14:07:55]line СДАЧА: 0.00 [14:07:55]line НСП 1% : 4.43 [14:07:55]line НДС 12% : 53.17 [14:07:55]line Наличными: 500.00 [14:07:55]line Безнал.: 0.00 [14:07:55]line Место: АЗС № 65 "Партнер Нефть" [14:07:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:07:55]line СНО: Общий режим [14:07:55]line Чек 110 22.06.2024 14:08 [14:07:55]line Смена: 391 ФФД: 1.0 [14:07:55]line ЗНМ: 0300000198 [14:07:55]line РНМ: 0000000000092771 [14:07:55]line Версия ККМ: 001 [14:07:55]line ФМ: 0000000000875083 [14:07:55]line ФД: 112244 [14:07:55]line ФПД: 137733055476420 [14:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140819&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112244&fm=137733055476420&tin=02508201610067®Number=0000000000092771&sum=50000 [14:07:55]OFD Sender: Processing packet 112244 [packets to send 38, broken 37] [14:07:55]ProducePacketName [14:07:55]name=ofd_packets/00112244 [14:07:55]OFD Sender: To server: pG, [14:07:55]CommunicateWithHost lk.salyk.kg:30040 [14:07:55]ConnectInit lk.salyk.kg [14:07:55]written 0, free lines is 4095 [14:07:56]Connected sock=11 [14:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 42 07 01 F0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D3 DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B6 01 00 35 04 06 00 7D 44 79 D8 72 C4 E1 86 6A AB 31 98 77 DE [14:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D7 C8 47 00 A4 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 35 30 38 33 10 04 04 00 74 B6 01 00 F4 03 04 00 DD 71 76 66 B6 04 01 00 00 11 87 77 18 B9 EB 1D 9B [14:07:56]CommunicateWithHost err = 0 [14:07:56]CheckOFDResponse [14:07:56]1017 (14) - 77093643461234 [14:07:56]1041 (16) - 0000000000875083 [14:07:56]1040 (4) - 112244 [14:07:56]1012 (4) - 22.06.2024 06:40 [14:07:56]1206 (1) - 0 [14:07:56]OFD Sender: Remove packet 112244 [14:07:56]ProducePacketName [14:07:56]name=ofd_packets/00112244 [14:07:56]NVStorageDeleteData [14:07:56]Write to MH i2c: 01 00 00 AC 36 E2 [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: 01 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: 01 07 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: 01 07 00 AC 36 00 00 00 00 00 D1 0C C6 [14:07:56]RasterBufferAndPrint [14:07:56]line [14:07:56]line [14:07:56]line [14:07:56]line [14:07:56]line [14:07:56]written 0, free lines is 3288 [14:07:56]MH_Cut [14:07:56]Write to MH i2c: D1 01 00 B3 36 01 BB [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: D1 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: D1 01 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: D1 01 00 B3 36 00 BA [14:07:56]Write to MH i2c: 01 00 00 B4 36 EA [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]OFD Sender: No OFD packet to send [14:07:57]*** Cut start [14:07:57]*** Partial cut [14:07:57]*** CUTSNS_PIN = 1 [14:07:57]*** CUTSNS_PIN = 0 [14:07:57]*** Brake cut motor [14:07:57]Read from MH i2c: 01 [14:07:57]MH_I2C_Read... [14:07:57]*** Stop cut motor [14:07:57]*** Cut end [14:07:57]Read from MH i2c: 01 07 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: 01 07 00 B4 36 00 00 00 00 00 FF 0F FF [14:07:57]process_action close_receipt done [14:07:57]requested_data is exist [14:07:57]produce_requested_data [14:07:57]requested_item fm.sn is exist - process it [14:07:57]wFMCommunicate request_size=4 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 11 00 00 [14:07:57]Write to MH i2c: E2 08 00 B5 36 80 11 00 00 00 00 00 00 65 [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 17 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 17 00 B5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [14:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:07:57]wFMCommunicate OK [14:07:57]requested_item fd.num is exist - process it [14:07:57]SAM_PROTO_GetFieldsCounters [14:07:57]wFMCommunicate request_size=4 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 13 00 00 [14:07:57]Write to MH i2c: E2 08 00 B6 36 80 13 00 00 00 00 00 00 68 [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 62 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 62 00 B6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [14:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:57]wFMCommunicate OK [14:07:57]SAM_PROTO_GetFieldsCounters done [14:07:57]requested_item shift.num is exist - process it [14:07:57]requested_item shift.opened is exist - process it [14:07:57]req_shift_opened [14:07:57]FM_GetShiftState [14:07:57]SAM_PROTO_GetShiftState [14:07:57]wFMCommunicate request_size=4 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 13 01 00 [14:07:57]Write to MH i2c: E2 08 00 B7 36 80 13 01 00 00 00 00 00 6A [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 0E 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 0E 00 B7 36 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9F [14:07:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:07:57]wFMCommunicate OK [14:07:57]SAM_PROTO_GetShiftState done [14:07:57]FM_GetShiftState done [14:07:57]req_shift_opened done [14:07:57]requested_item shift.open_date is exist - process it [14:07:58]req_shift_open_date [14:07:58]req_shift_open_date done [14:07:58]produce_requested_data done [14:07:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112244,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:07:58]process_action_free close_receipt [14:07:58]json_value_free [14:07:58]json_value_free done [14:07:58]process_json_proto returns [14:07:58]Send response to host [14:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112244,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:07:58]free response buf [14:07:58]execute_script done [14:07:58]execute_script returns [14:07:58]free content buf [14:07:58]Sock 7.Close socket [14:07:58]Sock 7.Thread stoped [14:08:01]OFD Sender: No OFD packet to send [14:08:06]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:33]accept exits with 9 [14:08:33]New connection [14:08:33]New thread 3066813796 created [14:08:33]Thread 3066957156 joined [14:08:33]Waiting for new connection... [14:08:33] Sock 9.Parse request [14:08:33]Sock 9.Check first char [14:08:33]Sock 9.First char is OK [14:08:33]request: POST /json_proto HTTP/1.0 [14:08:33]Method: POST [14:08:33]URL: /json_proto [14:08:33]Method is POST - this is cgi request [14:08:33]url: /json_proto [14:08:33]query_string will be loaded in cgi processing [14:08:33]execute_cgi json_proto POST (null) [14:08:33]execute_cgi path=json_proto method=POST [14:08:33]POST find Content-Length [14:08:33]Host: 172.17.59.68:8080 [14:08:33]Content-Length: 805 [14:08:33]Content-Type: application/json [14:08:33] [14:08:33]POST finish read [14:08:33]Found Content-Length = 805 [14:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320920", "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.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:33]execute_script... [14:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320920", "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.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:33]POST & json_proto [14:08:33]process_json_proto [14:08:33]json parsed OK: [14:08:33]protocol is kg_v1.0 [14:08:33]action value=close_receipt [14:08:33]process_action close_receipt [14:08:33]cmd_close_receipt [14:08:33]MH_GetDate [14:08:33]Write to MH i2c: F0 00 00 B8 36 DD [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 09 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: F0 09 00 B8 36 00 FA DA 76 66 BC EC 60 65 03 [14:08:33]GetLastDocTimeStamp 1719065299 [14:08:33]current date 1719065338 [14:08:33]FM_GetShiftState [14:08:33]SAM_PROTO_GetShiftState [14:08:33]wFMCommunicate request_size=4 [14:08:33]MH_SAM_APDU [14:08:33]CAPDU: 80 13 01 00 [14:08:33]Write to MH i2c: E2 08 00 B9 36 80 13 01 00 00 00 00 00 6C [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:33]Read from MH i2c: E2 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: E2 0E 00 B9 36 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A1 [14:08:33]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:08:33]wFMCommunicate OK [14:08:33]SAM_PROTO_GetShiftState done [14:08:33]FM_GetShiftState done [14:08:33]opened in 1719020067 [14:08:33]opened+sec_in_day 1719106467 [14:08:33]quantity*price = 40039 [14:08:33]sum+1 = 40040 [14:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 111 22.06.2024 14:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112245 ФПД: 133780393986045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112245&fm=133780393986045&tin=02508201610067®Number=0000000000092771&sum=40039 [14:08:34]StoreToDocumentArchive [14:08:34]shift 391 fd 112245 [14:08:34]save to /storage/0391/doc_00112245 [14:08:34]save last doc name /storage/0391/doc_00112245 to /storage/kkm_last_doc_name [14:08:34]save OK [14:08:34]Clear old archive folders... [14:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:34]tlvbuf is 0114BC80 [14:08:34]SAM_PROTO_ClearQueue [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 09 00 00 [14:08:34]Write to MH i2c: E2 08 00 C6 36 80 09 00 00 00 00 00 00 6E [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 C6 36 00 90 00 70 [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]SAM_PROTO_ClearQueue done [14:08:34]KKMCreateOFDPacket [14:08:34]OFDProtocolAddRootSTLVToBuf [14:08:34]FM_MakeSignedData [14:08:34]FM_MakeSignedData [14:08:34]SAM_PROTO_SignData [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 0D 01 02 [14:08:34]Write to MH i2c: E2 08 00 C7 36 80 0D 01 02 00 00 00 00 76 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 03 00 C7 36 00 90 00 71 [14:08:34]RAPDU: 90 00 [14:08:34]wFMCommunicate OK [14:08:34]wFMCommunicate request_size=255 [14:08:34]MH_SAM_APDU [14: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FA DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B6 01 00 35 04 06 00 79 [14:08:34]Write to MH i2c: E2 02 01 C8 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FA DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B6 01 00 35 04 06 00 79 00 00 92 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 C8 36 00 90 00 72 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]wFMCommunicate request_size=10 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 0D 02 02 05 AC 2C DC 87 FD [14:08:35]Write to MH i2c: E2 0D 00 C9 36 80 0D 02 02 05 00 AC 2C DC 87 FD 00 00 BB [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 C9 36 00 90 00 73 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 0D 03 02 [14:08:35]Write to MH i2c: E2 08 00 CA 36 80 0D 03 02 00 00 00 00 7B [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0B 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0B 00 CA 36 00 31 94 9D 66 13 B8 AA 5E 90 00 17 [14:08:35]RAPDU: 31 94 9D 66 13 B8 AA 5E 90 00 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_SignData done [14:08:35]FM_MakeSignedData done [14:08:35]CreateOFDProtocolMessage [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 11 00 00 [14:08:35]Write to MH i2c: E2 08 00 CB 36 80 11 00 00 00 00 00 00 7B [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 CB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CD [14:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:08:35]wFMCommunicate OK [14:08:35]CreateOFDProtocolMessage done [14:08:35]OFDSenderStorePacket 112245 [14:08:35]StoreOFDPacket docnum=112245 [14:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 35 07 01 DC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FA DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B6 01 00 35 04 06 00 79 AC 2C DC 87 FD 31 94 9D 66 13 B8 AA 5E [14:08:35]CheckFolder [14:08:35]dirname=/storage/ofd_packets [14:08:35]CheckFolder done [14:08:35]ProducePacketName [14:08:35]name=ofd_packets/00112245 [14:08:35]NVStorageSaveData ofd_packets/00112245 [14:08:35]File name is /storage/ofd_packets/00112245 [14:08:35]Write 301 bytes [14:08:35]NVStorageSaveData done [14:08:35]OFDSenderStorePacket done [14:08:35]KKMCreateOFDPacket done [14:08:35]NVStorageSaveData kkm_last_timestamp [14:08:35]File name is /storage/kkm_last_timestamp [14:08:35]Write 4 bytes [14:08:35]NVStorageSaveData done [14:08:35]ExternCall_PrintAddStr [14:08:35]wPrintStart [14:08:35]Write to MH i2c: 01 00 00 CC 36 02 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: 01 07 00 CC 36 00 00 00 00 00 FF 0F 17 [14:08:35]RasterBufferAndPrint [14:08:35]line Счет N : (1)320920 [14:08:35]line ИНН: 02508201610067 [14:08:35]line Контрольно-Кассовый Чек [14:08:35]line ПРОДАЖА [14:08:35]line ТРК (МРК, ГНК) : 11 [14:08:35]line Товар: 2710124130 [14:08:35]line Аи-92-К-5 [14:08:35]line 6.030 * 66.40 [14:08:35]line = 400.39 [14:08:35]line НДС 12% НСП 1% [14:08:35]line > о реализуемом товаре [14:08:35]line ИТОГО: 400.39 [14:08:35]line НСП 1% : 3.54 [14:08:35]line НДС 12% : 42.52 [14:08:35]line Наличными: 0.00 [14:08:35]line Безнал.: 400.39 [14:08:35]line Место: АЗС № 65 "Партнер Нефть" [14:08:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:08:35]line СНО: Общий режим [14:08:35]line Чек 111 22.06.2024 14:08 [14:08:35]line Смена: 391 ФФД: 1.0 [14:08:35]line ЗНМ: 0300000198 [14:08:35]line РНМ: 0000000000092771 [14:08:35]line Версия ККМ: 001 [14:08:35]line Платежная система: О! деньги [14:08:35]line ФМ: 0000000000875083 [14:08:35]line ФД: 112245 [14:08:35]line ФПД: 133780393986045 [14:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112245&fm=133780393986045&tin=02508201610067®Number=0000000000092771&sum=40039 [14:08:35]written 0, free lines is 4095 [14:08:35]OFD Sender: Processing packet 112245 [packets to send 38, broken 37] [14:08:35]ProducePacketName [14:08:35]name=ofd_packets/00112245 [14:08:35]OFD Sender: To server: pG, [14:08:35]CommunicateWithHost lk.salyk.kg:30040 [14:08:35]ConnectInit lk.salyk.kg [14:08:35]Connected sock=10 [14:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 35 07 01 DC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FA DA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B6 01 00 35 04 06 00 79 AC 2C DC 87 FD 31 94 9D 66 13 B8 AA 5E [14:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 43 39 47 00 7A 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B6 01 00 F4 03 04 00 05 72 76 66 B6 04 01 00 00 0E 93 60 F3 2D 92 C1 A2 [14:08:35]CommunicateWithHost err = 0 [14:08:35]CheckOFDResponse [14:08:35]1017 (14) - 77093643461234 [14:08:35]1041 (16) - 0000000000875083 [14:08:35]1040 (4) - 112245 [14:08:35]1012 (4) - 22.06.2024 06:41 [14:08:35]1206 (1) - 0 [14:08:35]OFD Sender: Remove packet 112245 [14:08:35]ProducePacketName [14:08:35]name=ofd_packets/00112245 [14:08:35]NVStorageDeleteData [14:08:36]Write to MH i2c: 01 00 00 F6 36 2C [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 F6 36 00 00 00 00 00 E7 0C 26 [14:08:36]RasterBufferAndPrint [14:08:36]line [14:08:36]line [14:08:36]line [14:08:36]line [14:08:36]line [14:08:36]written 0, free lines is 3313 [14:08:36]MH_Cut [14:08:36]Write to MH i2c: D1 01 00 FD 36 01 05 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: D1 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: D1 01 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: D1 01 00 FD 36 00 04 [14:08:36]Write to MH i2c: 01 00 00 FE 36 34 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]OFD Sender: No OFD packet to send [14:08:36]*** Cut start [14:08:36]*** Partial cut [14:08:36]*** CUTSNS_PIN = 1 [14:08:36]*** CUTSNS_PIN = 0 [14:08:37]*** Brake cut motor [14:08:37]Read from MH i2c: 01 [14:08:37]MH_I2C_Read... [14:08:37]*** Stop cut motor [14:08:37]*** Cut end [14:08:37]Read from MH i2c: 01 07 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 07 00 FE 36 00 00 00 00 00 FF 0F 49 [14:08:37]process_action close_receipt done [14:08:37]requested_data is exist [14:08:37]produce_requested_data [14:08:37]requested_item fm.sn is exist - process it [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 11 00 00 [14:08:37]Write to MH i2c: E2 08 00 FF 36 80 11 00 00 00 00 00 00 AF [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 17 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 17 00 FF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [14:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:08:37]wFMCommunicate OK [14:08:37]requested_item fd.num is exist - process it [14:08:37]SAM_PROTO_GetFieldsCounters [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 13 00 00 [14:08:37]Write to MH i2c: E2 08 00 00 37 80 13 00 00 00 00 00 00 B3 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 62 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 62 00 00 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [14:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetFieldsCounters done [14:08:37]requested_item shift.num is exist - process it [14:08:37]requested_item shift.opened is exist - process it [14:08:37]req_shift_opened [14:08:37]FM_GetShiftState [14:08:37]SAM_PROTO_GetShiftState [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 13 01 00 [14:08:37]Write to MH i2c: E2 08 00 01 37 80 13 01 00 00 00 00 00 B5 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 01 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EA [14:08:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetShiftState done [14:08:37]FM_GetShiftState done [14:08:37]req_shift_opened done [14:08:37]requested_item shift.open_date is exist - process it [14:08:37]req_shift_open_date [14:08:37]req_shift_open_date done [14:08:37]produce_requested_data done [14:08:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112245,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:08:37]process_action_free close_receipt [14:08:37]json_value_free [14:08:37]json_value_free done [14:08:37]process_json_proto returns [14:08:37]Send response to host [14:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112245,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:08:37]free response buf [14:08:37]execute_script done [14:08:37]execute_script returns [14:08:37]free content buf [14:08:37]Sock 9.Close socket [14:08:37]Sock 9.Thread stoped [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]accept exits with 7 [14:09:11]New connection [14:09:11]New thread 3066957156 created [14:09:11]Thread 3066813796 joined [14:09:11]Waiting for new connection... [14:09:11] Sock 7.Parse request [14:09:11]Sock 7.Check first char [14:09:11]Sock 7.First char is OK [14:09:11]request: POST /json_proto HTTP/1.0 [14:09:11]Method: POST [14:09:11]URL: /json_proto [14:09:11]Method is POST - this is cgi request [14:09:11]url: /json_proto [14:09:11]query_string will be loaded in cgi processing [14:09:11]execute_cgi json_proto POST (null) [14:09:11]execute_cgi path=json_proto method=POST [14:09:11]POST find Content-Length [14:09:11]Host: 172.17.59.68:8080 [14:09:11]Content-Length: 805 [14:09:11]Content-Type: application/json [14:09:11] [14:09:11]POST finish read [14:09:11]Found Content-Length = 805 [14:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320921", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:11]execute_script... [14:09:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320921", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:11]POST & json_proto [14:09:11]process_json_proto [14:09:11]json parsed OK: [14:09:11]protocol is kg_v1.0 [14:09:11]action value=close_receipt [14:09:11]process_action close_receipt [14:09:11]cmd_close_receipt [14:09:11]MH_GetDate [14:09:11]Write to MH i2c: F0 00 00 02 37 28 [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: F0 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: F0 09 00 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: F0 09 00 02 37 00 20 DB 76 66 BC EC 60 65 75 [14:09:11]GetLastDocTimeStamp 1719065338 [14:09:11]current date 1719065376 [14:09:11]FM_GetShiftState [14:09:11]SAM_PROTO_GetShiftState [14:09:11]wFMCommunicate request_size=4 [14:09:11]MH_SAM_APDU [14:09:11]CAPDU: 80 13 01 00 [14:09:11]Write to MH i2c: E2 08 00 03 37 80 13 01 00 00 00 00 00 B7 [14:09:11]Write i2c OK [14:09:11]MH_I2C_Read... [14:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:11]Read from MH i2c: E2 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 0E 00 [14:09:11]MH_I2C_Read... [14:09:11]Read from MH i2c: E2 0E 00 03 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EC [14:09:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:09:11]wFMCommunicate OK [14:09:11]SAM_PROTO_GetShiftState done [14:09:11]FM_GetShiftState done [14:09:11]opened in 1719020067 [14:09:11]opened+sec_in_day 1719106467 [14:09:11]quantity*price = 20052 [14:09:11]sum+1 = 20054 [14:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 112 22.06.2024 14:09 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112246 ФПД: 104519942093788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140936&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112246&fm=104519942093788&tin=02508201610067®Number=0000000000092771&sum=20053 [14:09:12]StoreToDocumentArchive [14:09:12]shift 391 fd 112246 [14:09:12]save to /storage/0391/doc_00112246 [14:09:12]save last doc name /storage/0391/doc_00112246 to /storage/kkm_last_doc_name [14:09:12]save OK [14:09:12]Clear old archive folders... [14:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:12]tlvbuf is 0114B650 [14:09:12]SAM_PROTO_ClearQueue [14:09:12]wFMCommunicate request_size=4 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 09 00 00 [14:09:12]Write to MH i2c: E2 08 00 10 37 80 09 00 00 00 00 00 00 B9 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 03 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 03 00 10 37 00 90 00 BB [14:09:12]RAPDU: 90 00 [14:09:12]wFMCommunicate OK [14:09:12]SAM_PROTO_ClearQueue done [14:09:12]KKMCreateOFDPacket [14:09:12]OFDProtocolAddRootSTLVToBuf [14:09:12]FM_MakeSignedData [14:09:12]FM_MakeSignedData [14:09:12]SAM_PROTO_SignData [14:09:12]wFMCommunicate request_size=4 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 0D 01 02 [14:09:12]Write to MH i2c: E2 08 00 11 37 80 0D 01 02 00 00 00 00 C1 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 03 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 03 00 11 37 00 90 00 BC [14:09:12]RAPDU: 90 00 [14:09:12]wFMCommunicate OK [14:09:12]wFMCommunicate request_size=255 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 20 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B6 01 00 35 04 06 00 5F [14:09:12]Write to MH i2c: E2 02 01 12 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 20 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B6 01 00 35 04 06 00 5F 00 00 F9 [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:12]Read from MH i2c: E2 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 03 00 [14:09:12]MH_I2C_Read... [14:09:12]Read from MH i2c: E2 03 00 12 37 00 90 00 BD [14:09:12]RAPDU: 90 00 [14:09:12]wFMCommunicate OK [14:09:12]wFMCommunicate request_size=10 [14:09:12]MH_SAM_APDU [14:09:12]CAPDU: 80 0D 02 02 05 0F 72 05 3B DC [14:09:12]Write to MH i2c: E2 0D 00 13 37 80 0D 02 02 05 00 0F 72 05 3B DC 00 00 6B [14:09:12]Write i2c OK [14:09:12]MH_I2C_Read... [14:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:13]Read from MH i2c: E2 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 03 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 03 00 13 37 00 90 00 BE [14:09:13]RAPDU: 90 00 [14:09:13]wFMCommunicate OK [14:09:13]wFMCommunicate request_size=4 [14:09:13]MH_SAM_APDU [14:09:13]CAPDU: 80 0D 03 02 [14:09:13]Write to MH i2c: E2 08 00 14 37 80 0D 03 02 00 00 00 00 C6 [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:13]Read from MH i2c: E2 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 0B 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 0B 00 14 37 00 66 9A 77 28 04 AF 55 91 90 00 FF [14:09:13]RAPDU: 66 9A 77 28 04 AF 55 91 90 00 [14:09:13]wFMCommunicate OK [14:09:13]SAM_PROTO_SignData done [14:09:13]FM_MakeSignedData done [14:09:13]CreateOFDProtocolMessage [14:09:13]wFMCommunicate request_size=4 [14:09:13]MH_SAM_APDU [14:09:13]CAPDU: 80 11 00 00 [14:09:13]Write to MH i2c: E2 08 00 15 37 80 11 00 00 00 00 00 00 C6 [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:13]Read from MH i2c: E2 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 17 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: E2 17 00 15 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [14:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:13]wFMCommunicate OK [14:09:13]CreateOFDProtocolMessage done [14:09:13]OFDSenderStorePacket 112246 [14:09:13]StoreOFDPacket docnum=112246 [14:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 53 07 01 11 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 20 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B6 01 00 35 04 06 00 5F 0F 72 05 3B DC 66 9A 77 28 04 AF 55 91 [14:09:13]CheckFolder [14:09:13]dirname=/storage/ofd_packets [14:09:13]CheckFolder done [14:09:13]ProducePacketName [14:09:13]name=ofd_packets/00112246 [14:09:13]NVStorageSaveData ofd_packets/00112246 [14:09:13]File name is /storage/ofd_packets/00112246 [14:09:13]Write 301 bytes [14:09:13]NVStorageSaveData done [14:09:13]OFDSenderStorePacket done [14:09:13]KKMCreateOFDPacket done [14:09:13]NVStorageSaveData kkm_last_timestamp [14:09:13]File name is /storage/kkm_last_timestamp [14:09:13]Write 4 bytes [14:09:13]NVStorageSaveData done [14:09:13]ExternCall_PrintAddStr [14:09:13]wPrintStart [14:09:13]Write to MH i2c: 01 00 00 16 37 4D [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: 01 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: 01 07 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: 01 07 00 16 37 00 00 00 00 00 FF 0F 62 [14:09:13]RasterBufferAndPrint [14:09:13]line Счет N : (1)320921 [14:09:13]line ИНН: 02508201610067 [14:09:13]line Контрольно-Кассовый Чек [14:09:13]line ПРОДАЖА [14:09:13]line ТРК (МРК, ГНК) : 11 [14:09:13]line Товар: 2710124130 [14:09:13]line Аи-92-К-5 [14:09:13]line 3.020 * 66.40 [14:09:13]line = 200.53 [14:09:13]line НДС 12% НСП 1% [14:09:13]line > о реализуемом товаре [14:09:13]line ИТОГО: 200.53 [14:09:13]line НСП 1% : 1.77 [14:09:13]line НДС 12% : 21.29 [14:09:13]line Наличными: 0.00 [14:09:13]line Безнал.: 200.53 [14:09:13]line Место: АЗС № 65 "Партнер Нефть" [14:09:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:09:13]line СНО: Общий режим [14:09:13]line Чек 112 22.06.2024 14:09 [14:09:13]line Смена: 391 ФФД: 1.0 [14:09:13]line ЗНМ: 0300000198 [14:09:13]line РНМ: 0000000000092771 [14:09:13]line Версия ККМ: 001 [14:09:13]line Платежная система: О! деньги [14:09:13]line ФМ: 0000000000875083 [14:09:13]line ФД: 112246 [14:09:13]line ФПД: 104519942093788 [14:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140936&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112246&fm=104519942093788&tin=02508201610067®Number=0000000000092771&sum=20053 [14:09:13]written 0, free lines is 4095 [14:09:13]OFD Sender: Processing packet 112246 [packets to send 38, broken 37] [14:09:13]ProducePacketName [14:09:13]name=ofd_packets/00112246 [14:09:13]OFD Sender: To server: pG, [14:09:13]CommunicateWithHost lk.salyk.kg:30040 [14:09:13]ConnectInit lk.salyk.kg [14:09:13]Connected sock=10 [14:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 53 07 01 11 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 20 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B6 01 00 35 04 06 00 5F 0F 72 05 3B DC 66 9A 77 28 04 AF 55 91 [14:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 0A 47 00 FC 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B6 01 00 F4 03 04 00 2A 72 76 66 B6 04 01 00 00 56 37 BA 1A 94 BD 87 40 [14:09:13]CommunicateWithHost err = 0 [14:09:13]CheckOFDResponse [14:09:13]1017 (14) - 77093643461234 [14:09:13]1041 (16) - 0000000000875083 [14:09:13]1040 (4) - 112246 [14:09:13]1012 (4) - 22.06.2024 06:41 [14:09:13]1206 (1) - 0 [14:09:13]OFD Sender: Remove packet 112246 [14:09:13]ProducePacketName [14:09:13]name=ofd_packets/00112246 [14:09:13]NVStorageDeleteData [14:09:13]Write to MH i2c: 01 00 00 40 37 77 [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: 01 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: 01 07 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: 01 07 00 40 37 00 00 00 00 00 DF 0C 69 [14:09:13]RasterBufferAndPrint [14:09:13]line [14:09:13]line [14:09:13]line [14:09:13]line [14:09:13]line [14:09:13]written 0, free lines is 3301 [14:09:13]MH_Cut [14:09:13]Write to MH i2c: D1 01 00 47 37 01 50 [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: D1 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: D1 01 00 [14:09:13]MH_I2C_Read... [14:09:13]Read from MH i2c: D1 01 00 47 37 00 4F [14:09:13]Write to MH i2c: 01 00 00 48 37 7F [14:09:13]Write i2c OK [14:09:13]MH_I2C_Read... [14:09:14]OFD Sender: No OFD packet to send [14:09:14]*** Cut start [14:09:14]*** Partial cut [14:09:14]*** CUTSNS_PIN = 1 [14:09:14]*** CUTSNS_PIN = 0 [14:09:14]*** Brake cut motor [14:09:15]Read from MH i2c: 01 [14:09:15]MH_I2C_Read... [14:09:15]*** Stop cut motor [14:09:15]*** Cut end [14:09:15]Read from MH i2c: 01 07 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: 01 07 00 48 37 00 00 00 00 00 FF 0F 94 [14:09:15]process_action close_receipt done [14:09:15]requested_data is exist [14:09:15]produce_requested_data [14:09:15]requested_item fm.sn is exist - process it [14:09:15]wFMCommunicate request_size=4 [14:09:15]MH_SAM_APDU [14:09:15]CAPDU: 80 11 00 00 [14:09:15]Write to MH i2c: E2 08 00 49 37 80 11 00 00 00 00 00 00 FA [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 17 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 17 00 49 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [14:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:15]wFMCommunicate OK [14:09:15]requested_item fd.num is exist - process it [14:09:15]SAM_PROTO_GetFieldsCounters [14:09:15]wFMCommunicate request_size=4 [14:09:15]MH_SAM_APDU [14:09:15]CAPDU: 80 13 00 00 [14:09:15]Write to MH i2c: E2 08 00 4A 37 80 13 00 00 00 00 00 00 FD [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 62 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 62 00 4A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [14:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:15]wFMCommunicate OK [14:09:15]SAM_PROTO_GetFieldsCounters done [14:09:15]requested_item shift.num is exist - process it [14:09:15]requested_item shift.opened is exist - process it [14:09:15]req_shift_opened [14:09:15]FM_GetShiftState [14:09:15]SAM_PROTO_GetShiftState [14:09:15]wFMCommunicate request_size=4 [14:09:15]MH_SAM_APDU [14:09:15]CAPDU: 80 13 01 00 [14:09:15]Write to MH i2c: E2 08 00 4B 37 80 13 01 00 00 00 00 00 FF [14:09:15]Write i2c OK [14:09:15]MH_I2C_Read... [14:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:15]Read from MH i2c: E2 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 0E 00 [14:09:15]MH_I2C_Read... [14:09:15]Read from MH i2c: E2 0E 00 4B 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 34 [14:09:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:09:15]wFMCommunicate OK [14:09:15]SAM_PROTO_GetShiftState done [14:09:15]FM_GetShiftState done [14:09:15]req_shift_opened done [14:09:15]requested_item shift.open_date is exist - process it [14:09:15]req_shift_open_date [14:09:15]req_shift_open_date done [14:09:15]produce_requested_data done [14:09:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112246,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:09:15]process_action_free close_receipt [14:09:15]json_value_free [14:09:15]json_value_free done [14:09:15]process_json_proto returns [14:09:15]Send response to host [14:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112246,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:09:15]free response buf [14:09:15]execute_script done [14:09:15]execute_script returns [14:09:15]free content buf [14:09:15]Sock 7.Close socket [14:09:15]Sock 7.Thread stoped [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:37]accept exits with 9 [14:11:37]New connection [14:11:37]New thread 3066813796 created [14:11:37]Thread 3066957156 joined [14:11:37]Waiting for new connection... [14:11:37] Sock 9.Parse request [14:11:37]Sock 9.Check first char [14:11:37]Sock 9.First char is OK [14:11:37]request: POST /json_proto HTTP/1.0 [14:11:37]Method: POST [14:11:37]URL: /json_proto [14:11:37]Method is POST - this is cgi request [14:11:37]url: /json_proto [14:11:37]query_string will be loaded in cgi processing [14:11:37]execute_cgi json_proto POST (null) [14:11:37]execute_cgi path=json_proto method=POST [14:11:37]POST find Content-Length [14:11:37]Host: 172.17.59.68:8080 [14:11:37]Content-Length: 682 [14:11:37]Content-Type: application/json [14:11:37] [14:11:37]POST finish read [14:11:37]Found Content-Length = 682 [14:11:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320922", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:37]execute_script... [14:11:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320922", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:37]POST & json_proto [14:11:37]process_json_proto [14:11:37]json parsed OK: [14:11:37]protocol is kg_v1.0 [14:11:37]action value=close_receipt [14:11:37]process_action close_receipt [14:11:37]cmd_close_receipt [14:11:37]MH_GetDate [14:11:37]Write to MH i2c: F0 00 00 4C 37 72 [14:11:37]Write i2c OK [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: F0 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: F0 09 00 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: F0 09 00 4C 37 00 B2 DB 76 66 BC EC 60 65 51 [14:11:37]GetLastDocTimeStamp 1719065376 [14:11:37]current date 1719065522 [14:11:37]FM_GetShiftState [14:11:37]SAM_PROTO_GetShiftState [14:11:37]wFMCommunicate request_size=4 [14:11:37]MH_SAM_APDU [14:11:37]CAPDU: 80 13 01 00 [14:11:37]Write to MH i2c: E2 08 00 4D 37 80 13 01 00 00 00 00 00 01 [14:11:37]Write i2c OK [14:11:37]MH_I2C_Read... [14:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:37]Read from MH i2c: E2 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 0E 00 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 0E 00 4D 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 36 [14:11:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:11:37]wFMCommunicate OK [14:11:37]SAM_PROTO_GetShiftState done [14:11:37]FM_GetShiftState done [14:11:37]opened in 1719020067 [14:11:37]opened+sec_in_day 1719106467 [14:11:37]quantity*price = 100064 [14:11:37]sum+1 = 100066 [14:11:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 113 22.06.2024 14:12 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112247 ФПД: 145251223062567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141202&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112247&fm=145251223062567&tin=02508201610067®Number=0000000000092771&sum=100000 [14:11:38]StoreToDocumentArchive [14:11:38]shift 391 fd 112247 [14:11:38]save to /storage/0391/doc_00112247 [14:11:38]save last doc name /storage/0391/doc_00112247 to /storage/kkm_last_doc_name [14:11:38]save OK [14:11:38]Clear old archive folders... [14:11:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:38]tlvbuf is 0114B720 [14:11:38]SAM_PROTO_ClearQueue [14:11:38]wFMCommunicate request_size=4 [14:11:38]MH_SAM_APDU [14:11:38]CAPDU: 80 09 00 00 [14:11:38]Write to MH i2c: E2 08 00 5A 37 80 09 00 00 00 00 00 00 03 [14:11:38]Write i2c OK [14:11:38]MH_I2C_Read... [14:11:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:38]Read from MH i2c: E2 [14:11:38]MH_I2C_Read... [14:11:38]Read from MH i2c: E2 03 00 [14:11:38]MH_I2C_Read... [14:11:38]Read from MH i2c: E2 03 00 5A 37 00 90 00 05 [14:11:38]RAPDU: 90 00 [14:11:38]wFMCommunicate OK [14:11:38]SAM_PROTO_ClearQueue done [14:11:38]KKMCreateOFDPacket [14:11:38]OFDProtocolAddRootSTLVToBuf [14:11:38]FM_MakeSignedData [14:11:38]FM_MakeSignedData [14:11:38]SAM_PROTO_SignData [14:11:38]wFMCommunicate request_size=4 [14:11:38]MH_SAM_APDU [14:11:38]CAPDU: 80 0D 01 02 [14:11:38]Write to MH i2c: E2 08 00 5B 37 80 0D 01 02 00 00 00 00 0B [14:11:38]Write i2c OK [14:11:38]MH_I2C_Read... [14:11:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:38]Read from MH i2c: E2 [14:11:38]MH_I2C_Read... [14:11:38]Read from MH i2c: E2 03 00 [14:11:38]MH_I2C_Read... [14:11:38]Read from MH i2c: E2 03 00 5B 37 00 90 00 06 [14:11:38]RAPDU: 90 00 [14:11:38]wFMCommunicate OK [14:11:38]wFMCommunicate request_size=255 [14:11:38]MH_SAM_APDU [14:11: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B6 01 00 35 04 06 00 84 [14:11:38]Write to MH i2c: E2 02 01 5C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B6 01 00 35 04 06 00 84 00 00 23 [14:11:38]Write i2c OK [14:11:38]MH_I2C_Read... [14:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:39]Read from MH i2c: E2 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 03 00 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 03 00 5C 37 00 90 00 07 [14:11:39]RAPDU: 90 00 [14:11:39]wFMCommunicate OK [14:11:39]wFMCommunicate request_size=10 [14:11:39]MH_SAM_APDU [14:11:39]CAPDU: 80 0D 02 02 05 1A EF 8D C8 27 [14:11:39]Write to MH i2c: E2 0D 00 5D 37 80 0D 02 02 05 00 1A EF 8D C8 27 00 00 9D [14:11:39]Write i2c OK [14:11:39]MH_I2C_Read... [14:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:39]Read from MH i2c: E2 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 03 00 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 03 00 5D 37 00 90 00 08 [14:11:39]RAPDU: 90 00 [14:11:39]wFMCommunicate OK [14:11:39]wFMCommunicate request_size=4 [14:11:39]MH_SAM_APDU [14:11:39]CAPDU: 80 0D 03 02 [14:11:39]Write to MH i2c: E2 08 00 5E 37 80 0D 03 02 00 00 00 00 10 [14:11:39]Write i2c OK [14:11:39]MH_I2C_Read... [14:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:39]Read from MH i2c: E2 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 0B 00 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 0B 00 5E 37 00 82 F6 D1 DE 21 6E 9C EA 90 00 4D [14:11:39]RAPDU: 82 F6 D1 DE 21 6E 9C EA 90 00 [14:11:39]wFMCommunicate OK [14:11:39]SAM_PROTO_SignData done [14:11:39]FM_MakeSignedData done [14:11:39]CreateOFDProtocolMessage [14:11:39]wFMCommunicate request_size=4 [14:11:39]MH_SAM_APDU [14:11:39]CAPDU: 80 11 00 00 [14:11:39]Write to MH i2c: E2 08 00 5F 37 80 11 00 00 00 00 00 00 10 [14:11:39]Write i2c OK [14:11:39]MH_I2C_Read... [14:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:39]Read from MH i2c: E2 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: E2 17 00 [14:11:39]MH_I2C_Read... [14:11:39]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 35 30 38 33 90 00 62 [14:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:39]wFMCommunicate OK [14:11:39]CreateOFDProtocolMessage done [14:11:39]OFDSenderStorePacket 112247 [14:11:39]StoreOFDPacket docnum=112247 [14:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1E 02 07 01 87 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B6 01 00 35 04 06 00 84 1A EF 8D C8 27 82 F6 D1 DE 21 6E 9C EA [14:11:39]CheckFolder [14:11:39]dirname=/storage/ofd_packets [14:11:39]CheckFolder done [14:11:39]ProducePacketName [14:11:39]name=ofd_packets/00112247 [14:11:39]NVStorageSaveData ofd_packets/00112247 [14:11:39]File name is /storage/ofd_packets/00112247 [14:11:39]Write 301 bytes [14:11:39]NVStorageSaveData done [14:11:39]OFDSenderStorePacket done [14:11:39]KKMCreateOFDPacket done [14:11:39]NVStorageSaveData kkm_last_timestamp [14:11:39]File name is /storage/kkm_last_timestamp [14:11:39]Write 4 bytes [14:11:39]NVStorageSaveData done [14:11:39]ExternCall_PrintAddStr [14:11:39]wPrintStart [14:11:39]Write to MH i2c: 01 00 00 60 37 97 [14:11:39]Write i2c OK [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: 01 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: 01 07 00 [14:11:39]MH_I2C_Read... [14:11:39]Read from MH i2c: 01 07 00 60 37 00 00 00 00 00 FF 0F AC [14:11:39]RasterBufferAndPrint [14:11:39]line Счет N : (1)320922 [14:11:39]line ИНН: 02508201610067 [14:11:39]line Контрольно-Кассовый Чек [14:11:39]line ПРОДАЖА [14:11:39]line ТРК (МРК, ГНК) : 11 [14:11:39]line Товар: 2710124130 [14:11:39]line Аи-92-К-5 [14:11:39]line 15.070 * 66.40 [14:11:39]line = 1000.65 [14:11:39]line НДС 12% НСП 1% [14:11:39]line > о реализуемом товаре [14:11:39]line ОКРУГЛЕНИЕ: -0.65 [14:11:39]line ИТОГО: 1000.00 [14:11:39]line Внесено: 1000.00 [14:11:39]line СДАЧА: 0.00 [14:11:39]line НСП 1% : 8.85 [14:11:39]line НДС 12% : 106.26 [14:11:39]line Наличными: 1000.00 [14:11:39]line Безнал.: 0.00 [14:11:39]line Место: АЗС № 65 "Партнер Нефть" [14:11:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:11:39]line СНО: Общий режим [14:11:39]line Чек 113 22.06.2024 14:12 [14:11:39]line Смена: 391 ФФД: 1.0 [14:11:39]line ЗНМ: 0300000198 [14:11:39]line РНМ: 0000000000092771 [14:11:39]line Версия ККМ: 001 [14:11:39]line ФМ: 0000000000875083 [14:11:39]line ФД: 112247 [14:11:39]line ФПД: 145251223062567 [14:11:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141202&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112247&fm=145251223062567&tin=02508201610067®Number=0000000000092771&sum=100000 [14:11:39]OFD Sender: Processing packet 112247 [packets to send 38, broken 37] [14:11:39]ProducePacketName [14:11:39]name=ofd_packets/00112247 [14:11:39]OFD Sender: To server: pG, [14:11:39]CommunicateWithHost lk.salyk.kg:30040 [14:11:39]ConnectInit lk.salyk.kg [14:11:39]written 0, free lines is 4095 [14:11:39]Connected sock=10 [14:11:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1E 02 07 01 87 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B2 DB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B6 01 00 35 04 06 00 84 1A EF 8D C8 27 82 F6 D1 DE 21 6E 9C EA [14:11:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 79 82 47 00 32 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B6 01 00 F4 03 04 00 BD 72 76 66 B6 04 01 00 00 20 7F 9E 75 09 62 E4 17 [14:11:39]CommunicateWithHost err = 0 [14:11:39]CheckOFDResponse [14:11:39]1017 (14) - 77093643461234 [14:11:39]1041 (16) - 0000000000875083 [14:11:39]1040 (4) - 112247 [14:11:39]1012 (4) - 22.06.2024 06:44 [14:11:39]1206 (1) - 0 [14:11:39]OFD Sender: Remove packet 112247 [14:11:39]ProducePacketName [14:11:39]name=ofd_packets/00112247 [14:11:39]NVStorageDeleteData [14:11:40]Write to MH i2c: 01 00 00 8B 37 C2 [14:11:40]Write i2c OK [14:11:40]MH_I2C_Read... [14:11:40]Read from MH i2c: 01 [14:11:40]MH_I2C_Read... [14:11:40]Read from MH i2c: 01 07 00 [14:11:40]MH_I2C_Read... [14:11:40]Read from MH i2c: 01 07 00 8B 37 00 00 00 00 00 D9 0C AE [14:11:40]RasterBufferAndPrint [14:11:40]line [14:11:40]line [14:11:40]line [14:11:40]line [14:11:40]line [14:11:40]written 0, free lines is 3296 [14:11:40]MH_Cut [14:11:40]Write to MH i2c: D1 01 00 92 37 01 9B [14:11:40]Write i2c OK [14:11:40]MH_I2C_Read... [14:11:40]Read from MH i2c: D1 [14:11:40]MH_I2C_Read... [14:11:40]Read from MH i2c: D1 01 00 [14:11:40]MH_I2C_Read... [14:11:40]Read from MH i2c: D1 01 00 92 37 00 9A [14:11:40]Write to MH i2c: 01 00 00 93 37 CA [14:11:40]Write i2c OK [14:11:40]MH_I2C_Read... [14:11:40]OFD Sender: No OFD packet to send [14:11:40]*** Cut start [14:11:40]*** Partial cut [14:11:40]*** CUTSNS_PIN = 1 [14:11:40]*** CUTSNS_PIN = 0 [14:11:41]*** Brake cut motor [14:11:41]Read from MH i2c: 01 [14:11:41]MH_I2C_Read... [14:11:41]*** Stop cut motor [14:11:41]*** Cut end [14:11:41]Read from MH i2c: 01 07 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 07 00 93 37 00 00 00 00 00 FF 0F DF [14:11:41]process_action close_receipt done [14:11:41]requested_data is exist [14:11:41]produce_requested_data [14:11:41]requested_item fm.sn is exist - process it [14:11:41]wFMCommunicate request_size=4 [14:11:41]MH_SAM_APDU [14:11:41]CAPDU: 80 11 00 00 [14:11:41]Write to MH i2c: E2 08 00 94 37 80 11 00 00 00 00 00 00 45 [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:41]Read from MH i2c: E2 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: E2 17 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: E2 17 00 94 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [14:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:41]wFMCommunicate OK [14:11:41]requested_item fd.num is exist - process it [14:11:41]SAM_PROTO_GetFieldsCounters [14:11:41]wFMCommunicate request_size=4 [14:11:41]MH_SAM_APDU [14:11:41]CAPDU: 80 13 00 00 [14:11:41]Write to MH i2c: E2 08 00 95 37 80 13 00 00 00 00 00 00 48 [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:41]Read from MH i2c: E2 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: E2 62 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: E2 62 00 95 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [14:11:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:41]wFMCommunicate OK [14:11:41]SAM_PROTO_GetFieldsCounters done [14:11:41]requested_item shift.num is exist - process it [14:11:41]requested_item shift.opened is exist - process it [14:11:41]req_shift_opened [14:11:41]FM_GetShiftState [14:11:41]SAM_PROTO_GetShiftState [14:11:41]wFMCommunicate request_size=4 [14:11:41]MH_SAM_APDU [14:11:41]CAPDU: 80 13 01 00 [14:11:41]Write to MH i2c: E2 08 00 96 37 80 13 01 00 00 00 00 00 4A [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:41]Read from MH i2c: E2 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: E2 0E 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: E2 0E 00 96 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7F [14:11:41]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:11:41]wFMCommunicate OK [14:11:41]SAM_PROTO_GetShiftState done [14:11:41]FM_GetShiftState done [14:11:41]req_shift_opened done [14:11:41]requested_item shift.open_date is exist - process it [14:11:41]req_shift_open_date [14:11:41]req_shift_open_date done [14:11:41]produce_requested_data done [14:11:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112247,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:11:41]process_action_free close_receipt [14:11:41]json_value_free [14:11:41]json_value_free done [14:11:41]process_json_proto returns [14:11:41]Send response to host [14:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112247,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:11:41]free response buf [14:11:41]execute_script done [14:11:41]execute_script returns [14:11:41]free content buf [14:11:41]Sock 9.Close socket [14:11:41]Sock 9.Thread stoped [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:23]accept exits with 7 [14:13:23]New connection [14:13:23]New thread 3066957156 created [14:13:23]Thread 3066813796 joined [14:13:23]Waiting for new connection... [14:13:23] Sock 7.Parse request [14:13:23]Sock 7.Check first char [14:13:23]Sock 7.First char is OK [14:13:23]request: POST /json_proto HTTP/1.0 [14:13:23]Method: POST [14:13:23]URL: /json_proto [14:13:23]Method is POST - this is cgi request [14:13:23]url: /json_proto [14:13:23]query_string will be loaded in cgi processing [14:13:23]execute_cgi json_proto POST (null) [14:13:23]execute_cgi path=json_proto method=POST [14:13:23]POST find Content-Length [14:13:23]Host: 172.17.59.68:8080 [14:13:23]Content-Length: 677 [14:13:23]Content-Type: application/json [14:13:23] [14:13:23]POST finish read [14:13:23]Found Content-Length = 677 [14:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320923", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:23]execute_script... [14:13: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)320923", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:23]POST & json_proto [14:13:23]process_json_proto [14:13:23]json parsed OK: [14:13:23]protocol is kg_v1.0 [14:13:23]action value=close_receipt [14:13:23]process_action close_receipt [14:13:23]cmd_close_receipt [14:13:23]MH_GetDate [14:13:23]Write to MH i2c: F0 00 00 97 37 BD [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 97 37 00 1C DC 76 66 BC EC 60 65 07 [14:13:23]GetLastDocTimeStamp 1719065522 [14:13:23]current date 1719065628 [14:13:23]FM_GetShiftState [14:13:23]SAM_PROTO_GetShiftState [14:13:23]wFMCommunicate request_size=4 [14:13:23]MH_SAM_APDU [14:13:23]CAPDU: 80 13 01 00 [14:13:23]Write to MH i2c: E2 08 00 98 37 80 13 01 00 00 00 00 00 4C [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:23]Read from MH i2c: E2 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 98 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 81 [14:13:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:13:23]wFMCommunicate OK [14:13:23]SAM_PROTO_GetShiftState done [14:13:23]FM_GetShiftState done [14:13:23]opened in 1719020067 [14:13:23]opened+sec_in_day 1719106467 [14:13:23]quantity*price = 50065 [14:13:23]sum+1 = 50067 [14:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 114 22.06.2024 14:13 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112248 ФПД: 50950553341935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112248&fm=50950553341935&tin=02508201610067®Number=0000000000092771&sum=50000 [14:13:24]StoreToDocumentArchive [14:13:24]shift 391 fd 112248 [14:13:24]save to /storage/0391/doc_00112248 [14:13:24]save last doc name /storage/0391/doc_00112248 to /storage/kkm_last_doc_name [14:13:24]save OK [14:13:24]Clear old archive folders... [14:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:24]tlvbuf is 011C7D70 [14:13:24]SAM_PROTO_ClearQueue [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 09 00 00 [14:13:24]Write to MH i2c: E2 08 00 A5 37 80 09 00 00 00 00 00 00 4E [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 A5 37 00 90 00 50 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]SAM_PROTO_ClearQueue done [14:13:24]KKMCreateOFDPacket [14:13:24]OFDProtocolAddRootSTLVToBuf [14:13:24]FM_MakeSignedData [14:13:24]FM_MakeSignedData [14:13:24]SAM_PROTO_SignData [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 0D 01 02 [14:13:24]Write to MH i2c: E2 08 00 A6 37 80 0D 01 02 00 00 00 00 56 [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 03 00 A6 37 00 90 00 51 [14:13:24]RAPDU: 90 00 [14:13:24]wFMCommunicate OK [14:13:24]wFMCommunicate request_size=255 [14:13:24]MH_SAM_APDU [14: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1C DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B6 01 00 35 04 06 00 2E [14:13:24]Write to MH i2c: E2 02 01 A7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1C DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B6 01 00 35 04 06 00 2E 00 00 35 [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 A7 37 00 90 00 52 [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=10 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 02 02 05 56 D9 A2 0F EF [14:13:25]Write to MH i2c: E2 0D 00 A8 37 80 0D 02 02 05 00 56 D9 A2 0F EF 00 00 32 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 A8 37 00 90 00 53 [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 03 02 [14:13:25]Write to MH i2c: E2 08 00 A9 37 80 0D 03 02 00 00 00 00 5B [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0B 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0B 00 A9 37 00 3B 8A 5B 98 20 19 83 4D 90 00 1D [14:13:25]RAPDU: 3B 8A 5B 98 20 19 83 4D 90 00 [14:13:25]wFMCommunicate OK [14:13:25]SAM_PROTO_SignData done [14:13:25]FM_MakeSignedData done [14:13:25]CreateOFDProtocolMessage [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 11 00 00 [14:13:25]Write to MH i2c: E2 08 00 AA 37 80 11 00 00 00 00 00 00 5B [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 AA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [14:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:25]wFMCommunicate OK [14:13:25]CreateOFDProtocolMessage done [14:13:25]OFDSenderStorePacket 112248 [14:13:25]StoreOFDPacket docnum=112248 [14:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 B9 07 01 CE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1C DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B6 01 00 35 04 06 00 2E 56 D9 A2 0F EF 3B 8A 5B 98 20 19 83 4D [14:13:25]CheckFolder [14:13:25]dirname=/storage/ofd_packets [14:13:25]CheckFolder done [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00112248 [14:13:25]NVStorageSaveData ofd_packets/00112248 [14:13:25]File name is /storage/ofd_packets/00112248 [14:13:25]Write 301 bytes [14:13:25]NVStorageSaveData done [14:13:25]OFDSenderStorePacket done [14:13:25]KKMCreateOFDPacket done [14:13:25]NVStorageSaveData kkm_last_timestamp [14:13:25]File name is /storage/kkm_last_timestamp [14:13:25]Write 4 bytes [14:13:25]NVStorageSaveData done [14:13:25]ExternCall_PrintAddStr [14:13:25]wPrintStart [14:13:25]Write to MH i2c: 01 00 00 AB 37 E2 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 AB 37 00 00 00 00 00 FF 0F F7 [14:13:25]RasterBufferAndPrint [14:13:25]line Счет N : (1)320923 [14:13:25]line ИНН: 02508201610067 [14:13:25]line Контрольно-Кассовый Чек [14:13:25]line ПРОДАЖА [14:13:25]line ТРК (МРК, ГНК) : 11 [14:13:25]line Товар: 2710124130 [14:13:25]line Аи-92-К-5 [14:13:25]line 7.540 * 66.40 [14:13:25]line = 500.66 [14:13:25]line НДС 12% НСП 1% [14:13:25]line > о реализуемом товаре [14:13:25]line ОКРУГЛЕНИЕ: -0.66 [14:13:25]line ИТОГО: 500.00 [14:13:25]line Внесено: 500.00 [14:13:25]line СДАЧА: 0.00 [14:13:25]line НСП 1% : 4.43 [14:13:25]line НДС 12% : 53.17 [14:13:25]line Наличными: 500.00 [14:13:25]line Безнал.: 0.00 [14:13:25]line Место: АЗС № 65 "Партнер Нефть" [14:13:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:13:25]line СНО: Общий режим [14:13:25]line Чек 114 22.06.2024 14:13 [14:13:25]line Смена: 391 ФФД: 1.0 [14:13:25]line ЗНМ: 0300000198 [14:13:25]line РНМ: 0000000000092771 [14:13:25]line Версия ККМ: 001 [14:13:25]line ФМ: 0000000000875083 [14:13:25]line ФД: 112248 [14:13:25]line ФПД: 50950553341935 [14:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112248&fm=50950553341935&tin=02508201610067®Number=0000000000092771&sum=50000 [14:13:25]OFD Sender: Processing packet 112248 [packets to send 38, broken 37] [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00112248 [14:13:25]OFD Sender: To server: pG, [14:13:25]CommunicateWithHost lk.salyk.kg:30040 [14:13:25]ConnectInit lk.salyk.kg [14:13:25]written 0, free lines is 4095 [14:13:25]Connected sock=10 [14:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 B9 07 01 CE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1C DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B6 01 00 35 04 06 00 2E 56 D9 A2 0F EF 3B 8A 5B 98 20 19 83 4D [14:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 22 BF 47 00 09 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B6 01 00 F4 03 04 00 27 73 76 66 B6 04 01 00 00 6B E1 D3 69 DB 7E 3D 1B [14:13:25]CommunicateWithHost err = 0 [14:13:25]CheckOFDResponse [14:13:25]1017 (14) - 77093643461234 [14:13:25]1041 (16) - 0000000000875083 [14:13:25]1040 (4) - 112248 [14:13:25]1012 (4) - 22.06.2024 06:45 [14:13:25]1206 (1) - 0 [14:13:25]OFD Sender: Remove packet 112248 [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00112248 [14:13:25]NVStorageDeleteData [14:13:26]Write to MH i2c: 01 00 00 D6 37 0D [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 07 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 07 00 D6 37 00 00 00 00 00 D4 0C F4 [14:13:26]RasterBufferAndPrint [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]written 0, free lines is 3292 [14:13:26]MH_Cut [14:13:26]Write to MH i2c: D1 01 00 DD 37 01 E6 [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 01 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 01 00 DD 37 00 E5 [14:13:26]Write to MH i2c: 01 00 00 DE 37 15 [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]OFD Sender: No OFD packet to send [14:13:26]*** Cut start [14:13:26]*** Partial cut [14:13:26]*** CUTSNS_PIN = 1 [14:13:26]*** CUTSNS_PIN = 0 [14:13:27]*** Brake cut motor [14:13:27]Read from MH i2c: 01 [14:13:27]MH_I2C_Read... [14:13:27]*** Stop cut motor [14:13:27]*** Cut end [14:13:27]Read from MH i2c: 01 07 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: 01 07 00 DE 37 00 00 00 00 00 FF 0F 2A [14:13:27]process_action close_receipt done [14:13:27]requested_data is exist [14:13:27]produce_requested_data [14:13:27]requested_item fm.sn is exist - process it [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 11 00 00 [14:13:27]Write to MH i2c: E2 08 00 DF 37 80 11 00 00 00 00 00 00 90 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 DF 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E2 [14:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:27]wFMCommunicate OK [14:13:27]requested_item fd.num is exist - process it [14:13:27]SAM_PROTO_GetFieldsCounters [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 00 00 [14:13:27]Write to MH i2c: E2 08 00 E0 37 80 13 00 00 00 00 00 00 93 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 E0 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetFieldsCounters done [14:13:27]requested_item shift.num is exist - process it [14:13:27]requested_item shift.opened is exist - process it [14:13:27]req_shift_opened [14:13:27]FM_GetShiftState [14:13:27]SAM_PROTO_GetShiftState [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 01 00 [14:13:27]Write to MH i2c: E2 08 00 E1 37 80 13 01 00 00 00 00 00 95 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 0E 00 E1 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CA [14:13:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:13:27]wFMCommunicate OK [14:13:27]SAM_PROTO_GetShiftState done [14:13:27]FM_GetShiftState done [14:13:27]req_shift_opened done [14:13:27]requested_item shift.open_date is exist - process it [14:13:27]req_shift_open_date [14:13:27]req_shift_open_date done [14:13:27]produce_requested_data done [14:13:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112248,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:13:27]process_action_free close_receipt [14:13:27]json_value_free [14:13:27]json_value_free done [14:13:27]process_json_proto returns [14:13:27]Send response to host [14:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112248,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:13:27]free response buf [14:13:27]execute_script done [14:13:27]execute_script returns [14:13:27]free content buf [14:13:27]Sock 7.Close socket [14:13:27]Sock 7.Thread stoped [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:32]accept exits with 9 [14:16:32]New connection [14:16:32]New thread 3066813796 created [14:16:32]Thread 3066957156 joined [14:16:32]Waiting for new connection... [14:16:32] Sock 9.Parse request [14:16:32]Sock 9.Check first char [14:16:32]Sock 9.First char is OK [14:16:32]request: POST /json_proto HTTP/1.0 [14:16:32]Method: POST [14:16:32]URL: /json_proto [14:16:32]Method is POST - this is cgi request [14:16:32]url: /json_proto [14:16:32]query_string will be loaded in cgi processing [14:16:32]execute_cgi json_proto POST (null) [14:16:32]execute_cgi path=json_proto method=POST [14:16:32]POST find Content-Length [14:16:32]Host: 172.17.59.68:8080 [14:16:32]Content-Length: 682 [14:16:32]Content-Type: application/json [14:16:32] [14:16:32]POST finish read [14:16:32]Found Content-Length = 682 [14:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320924", "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.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:32]execute_script... [14:16: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)320924", "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.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:32]POST & json_proto [14:16:32]process_json_proto [14:16:32]json parsed OK: [14:16:32]protocol is kg_v1.0 [14:16:32]action value=close_receipt [14:16:32]process_action close_receipt [14:16:32]cmd_close_receipt [14:16:32]MH_GetDate [14:16:32]Write to MH i2c: F0 00 00 E2 37 08 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: F0 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: F0 09 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: F0 09 00 E2 37 00 DA DC 76 66 BC EC 60 65 10 [14:16:32]GetLastDocTimeStamp 1719065628 [14:16:32]current date 1719065818 [14:16:32]FM_GetShiftState [14:16:32]SAM_PROTO_GetShiftState [14:16:32]wFMCommunicate request_size=4 [14:16:32]MH_SAM_APDU [14:16:32]CAPDU: 80 13 01 00 [14:16:32]Write to MH i2c: E2 08 00 E3 37 80 13 01 00 00 00 00 00 97 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:32]Read from MH i2c: E2 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 0E 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 0E 00 E3 37 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CC [14:16:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:16:32]wFMCommunicate OK [14:16:32]SAM_PROTO_GetShiftState done [14:16:32]FM_GetShiftState done [14:16:32]opened in 1719020067 [14:16:32]opened+sec_in_day 1719106467 [14:16:32]quantity*price = 133065 [14:16:32]sum+1 = 133067 [14:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 115 22.06.2024 14:16 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112249 ФПД: 41462537064144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141658&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112249&fm=41462537064144&tin=02508201610067®Number=0000000000092771&sum=133000 [14:16:33]StoreToDocumentArchive [14:16:33]shift 391 fd 112249 [14:16:33]save to /storage/0391/doc_00112249 [14:16:33]save last doc name /storage/0391/doc_00112249 to /storage/kkm_last_doc_name [14:16:33]save OK [14:16:33]Clear old archive folders... [14:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:33]tlvbuf is 0114B910 [14:16:33]SAM_PROTO_ClearQueue [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 09 00 00 [14:16:33]Write to MH i2c: E2 08 00 F0 37 80 09 00 00 00 00 00 00 99 [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:33]Read from MH i2c: E2 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 03 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 03 00 F0 37 00 90 00 9B [14:16:33]RAPDU: 90 00 [14:16:33]wFMCommunicate OK [14:16:33]SAM_PROTO_ClearQueue done [14:16:33]KKMCreateOFDPacket [14:16:33]OFDProtocolAddRootSTLVToBuf [14:16:33]FM_MakeSignedData [14:16:33]FM_MakeSignedData [14:16:33]SAM_PROTO_SignData [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 0D 01 02 [14:16:33]Write to MH i2c: E2 08 00 F1 37 80 0D 01 02 00 00 00 00 A1 [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 F1 37 00 90 00 9C [14:16:34]RAPDU: 90 00 [14:16:34]wFMCommunicate OK [14:16:34]wFMCommunicate request_size=255 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 DA DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B6 01 00 35 04 06 00 25 [14:16:34]Write to MH i2c: E2 02 01 F2 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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 DA DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B6 01 00 35 04 06 00 25 00 00 29 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 F2 37 00 90 00 9D [14:16:34]RAPDU: 90 00 [14:16:34]wFMCommunicate OK [14:16:34]wFMCommunicate request_size=10 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 0D 02 02 05 B5 BF CB 0E D0 [14:16:34]Write to MH i2c: E2 0D 00 F3 37 80 0D 02 02 05 00 B5 BF CB 0E D0 00 00 CB [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 F3 37 00 90 00 9E [14:16:34]RAPDU: 90 00 [14:16:34]wFMCommunicate OK [14:16:34]wFMCommunicate request_size=4 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 0D 03 02 [14:16:34]Write to MH i2c: E2 08 00 F4 37 80 0D 03 02 00 00 00 00 A6 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 0B 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 0B 00 F4 37 00 86 28 CE CB CF B0 EB 64 90 00 BC [14:16:34]RAPDU: 86 28 CE CB CF B0 EB 64 90 00 [14:16:34]wFMCommunicate OK [14:16:34]SAM_PROTO_SignData done [14:16:34]FM_MakeSignedData done [14:16:34]CreateOFDProtocolMessage [14:16:34]wFMCommunicate request_size=4 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 11 00 00 [14:16:34]Write to MH i2c: E2 08 00 F5 37 80 11 00 00 00 00 00 00 A6 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 17 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 17 00 F5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F8 [14:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:34]wFMCommunicate OK [14:16:34]CreateOFDProtocolMessage done [14:16:34]OFDSenderStorePacket 112249 [14:16:34]StoreOFDPacket docnum=112249 [14:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 8A 07 01 B6 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 DA DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B6 01 00 35 04 06 00 25 B5 BF CB 0E D0 86 28 CE CB CF B0 EB 64 [14:16:34]CheckFolder [14:16:34]dirname=/storage/ofd_packets [14:16:34]CheckFolder done [14:16:34]ProducePacketName [14:16:34]name=ofd_packets/00112249 [14:16:34]NVStorageSaveData ofd_packets/00112249 [14:16:34]File name is /storage/ofd_packets/00112249 [14:16:34]Write 301 bytes [14:16:34]NVStorageSaveData done [14:16:34]OFDSenderStorePacket done [14:16:34]KKMCreateOFDPacket done [14:16:34]NVStorageSaveData kkm_last_timestamp [14:16:34]File name is /storage/kkm_last_timestamp [14:16:34]Write 4 bytes [14:16:34]NVStorageSaveData done [14:16:34]ExternCall_PrintAddStr [14:16:34]wPrintStart [14:16:34]Write to MH i2c: 01 00 00 F6 37 2D [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: 01 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: 01 07 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: 01 07 00 F6 37 00 00 00 00 00 FF 0F 42 [14:16:34]RasterBufferAndPrint [14:16:34]line Счет N : (1)320924 [14:16:34]line ИНН: 02508201610067 [14:16:34]line Контрольно-Кассовый Чек [14:16:34]line ПРОДАЖА [14:16:34]line ТРК (МРК, ГНК) : 11 [14:16:34]line Товар: 2710124130 [14:16:34]line Аи-92-К-5 [14:16:34]line 20.040 * 66.40 [14:16:34]line = 1330.66 [14:16:34]line НДС 12% НСП 1% [14:16:34]line > о реализуемом товаре [14:16:34]line ОКРУГЛЕНИЕ: -0.66 [14:16:34]line ИТОГО: 1330.00 [14:16:34]line Внесено: 1330.00 [14:16:34]line СДАЧА: 0.00 [14:16:34]line НСП 1% : 11.78 [14:16:34]line НДС 12% : 141.31 [14:16:34]line Наличными: 1330.00 [14:16:34]line Безнал.: 0.00 [14:16:34]line Место: АЗС № 65 "Партнер Нефть" [14:16:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:16:34]line СНО: Общий режим [14:16:34]line Чек 115 22.06.2024 14:16 [14:16:34]line Смена: 391 ФФД: 1.0 [14:16:34]line ЗНМ: 0300000198 [14:16:34]line РНМ: 0000000000092771 [14:16:34]line Версия ККМ: 001 [14:16:34]line ФМ: 0000000000875083 [14:16:34]line ФД: 112249 [14:16:34]line ФПД: 41462537064144 [14:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141658&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112249&fm=41462537064144&tin=02508201610067®Number=0000000000092771&sum=133000 [14:16:34]OFD Sender: Processing packet 112249 [packets to send 38, broken 37] [14:16:34]ProducePacketName [14:16:34]name=ofd_packets/00112249 [14:16:34]OFD Sender: To server: pG, [14:16:34]CommunicateWithHost lk.salyk.kg:30040 [14:16:34]ConnectInit lk.salyk.kg [14:16:34]written 0, free lines is 4095 [14:16:34]Connected sock=10 [14:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 8A 07 01 B6 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 DA DC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B6 01 00 35 04 06 00 25 B5 BF CB 0E D0 86 28 CE CB CF B0 EB 64 [14:16:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 99 AE 47 00 D6 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B6 01 00 F4 03 04 00 E4 73 76 66 B6 04 01 00 00 D6 81 32 C1 D1 12 B1 1C [14:16:35]CommunicateWithHost err = 0 [14:16:35]CheckOFDResponse [14:16:35]1017 (14) - 77093643461234 [14:16:35]1041 (16) - 0000000000875083 [14:16:35]1040 (4) - 112249 [14:16:35]1012 (4) - 22.06.2024 06:49 [14:16:35]1206 (1) - 0 [14:16:35]OFD Sender: Remove packet 112249 [14:16:35]ProducePacketName [14:16:35]name=ofd_packets/00112249 [14:16:35]NVStorageDeleteData [14:16:35]Write to MH i2c: 01 00 00 21 38 59 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: 01 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: 01 07 00 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: 01 07 00 21 38 00 00 00 00 00 D4 0C 40 [14:16:35]RasterBufferAndPrint [14:16:35]line [14:16:35]line [14:16:35]line [14:16:35]line [14:16:35]line [14:16:35]written 0, free lines is 3292 [14:16:35]MH_Cut [14:16:35]Write to MH i2c: D1 01 00 28 38 01 32 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: D1 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: D1 01 00 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: D1 01 00 28 38 00 31 [14:16:35]Write to MH i2c: 01 00 00 29 38 61 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]OFD Sender: No OFD packet to send [14:16:36]*** Cut start [14:16:36]*** Partial cut [14:16:36]*** CUTSNS_PIN = 1 [14:16:36]*** CUTSNS_PIN = 0 [14:16:36]*** Brake cut motor [14:16:36]Read from MH i2c: 01 [14:16:36]MH_I2C_Read... [14:16:36]*** Stop cut motor [14:16:36]*** Cut end [14:16:36]Read from MH i2c: 01 07 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: 01 07 00 29 38 00 00 00 00 00 FF 0F 76 [14:16:36]process_action close_receipt done [14:16:36]requested_data is exist [14:16:36]produce_requested_data [14:16:36]requested_item fm.sn is exist - process it [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 11 00 00 [14:16:36]Write to MH i2c: E2 08 00 2A 38 80 11 00 00 00 00 00 00 DC [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 17 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 17 00 2A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [14:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:36]wFMCommunicate OK [14:16:36]requested_item fd.num is exist - process it [14:16:36]SAM_PROTO_GetFieldsCounters [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 13 00 00 [14:16:36]Write to MH i2c: E2 08 00 2B 38 80 13 00 00 00 00 00 00 DF [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 62 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 62 00 2B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [14:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:36]wFMCommunicate OK [14:16:36]SAM_PROTO_GetFieldsCounters done [14:16:36]requested_item shift.num is exist - process it [14:16:36]requested_item shift.opened is exist - process it [14:16:36]req_shift_opened [14:16:36]FM_GetShiftState [14:16:36]SAM_PROTO_GetShiftState [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 13 01 00 [14:16:36]Write to MH i2c: E2 08 00 2C 38 80 13 01 00 00 00 00 00 E1 [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 0E 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 0E 00 2C 38 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 16 [14:16:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:16:36]wFMCommunicate OK [14:16:36]SAM_PROTO_GetShiftState done [14:16:36]FM_GetShiftState done [14:16:36]req_shift_opened done [14:16:36]requested_item shift.open_date is exist - process it [14:16:36]req_shift_open_date [14:16:36]req_shift_open_date done [14:16:36]produce_requested_data done [14:16:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112249,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:16:36]process_action_free close_receipt [14:16:36]json_value_free [14:16:36]json_value_free done [14:16:36]process_json_proto returns [14:16:36]Send response to host [14:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112249,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:16:36]free response buf [14:16:36]execute_script done [14:16:36]execute_script returns [14:16:36]free content buf [14:16:36]Sock 9.Close socket [14:16:36]Sock 9.Thread stoped [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:26]accept exits with 7 [14:18:26]New connection [14:18:26]New thread 3066957156 created [14:18:26]Thread 3066813796 joined [14:18:26]Waiting for new connection... [14:18:26] Sock 7.Parse request [14:18:26]Sock 7.Check first char [14:18:26]Sock 7.First char is OK [14:18:26]request: POST /json_proto HTTP/1.0 [14:18:26]Method: POST [14:18:26]URL: /json_proto [14:18:26]Method is POST - this is cgi request [14:18:26]url: /json_proto [14:18:26]query_string will be loaded in cgi processing [14:18:26]execute_cgi json_proto POST (null) [14:18:26]execute_cgi path=json_proto method=POST [14:18:26]POST find Content-Length [14:18:26]Host: 172.17.59.68:8080 [14:18:26]Content-Length: 677 [14:18:26]Content-Type: application/json [14:18:26] [14:18:26]POST finish read [14:18:26]Found Content-Length = 677 [14:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320925", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:18:26]execute_script... [14: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)320925", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:18:26]POST & json_proto [14:18:26]process_json_proto [14:18:26]json parsed OK: [14:18:26]protocol is kg_v1.0 [14:18:26]action value=close_receipt [14:18:26]process_action close_receipt [14:18:26]cmd_close_receipt [14:18:26]MH_GetDate [14:18:26]Write to MH i2c: F0 00 00 2D 38 54 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: F0 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: F0 09 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: F0 09 00 2D 38 00 4B DD 76 66 BC EC 60 65 CE [14:18:26]GetLastDocTimeStamp 1719065818 [14:18:26]current date 1719065931 [14:18:26]FM_GetShiftState [14:18:26]SAM_PROTO_GetShiftState [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 13 01 00 [14:18:26]Write to MH i2c: E2 08 00 2E 38 80 13 01 00 00 00 00 00 E3 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 0E 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 0E 00 2E 38 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 18 [14:18:26]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:18:26]wFMCommunicate OK [14:18:26]SAM_PROTO_GetShiftState done [14:18:26]FM_GetShiftState done [14:18:26]opened in 1719020067 [14:18:26]opened+sec_in_day 1719106467 [14:18:26]quantity*price = 30012 [14:18:26]sum+1 = 30014 [14:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 116 22.06.2024 14:18 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112250 ФПД: 103332884945825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112250&fm=103332884945825&tin=02508201610067®Number=0000000000092771&sum=30000 [14:18:27]StoreToDocumentArchive [14:18:27]shift 391 fd 112250 [14:18:27]save to /storage/0391/doc_00112250 [14:18:27]save last doc name /storage/0391/doc_00112250 to /storage/kkm_last_doc_name [14:18:27]save OK [14:18:27]Clear old archive folders... [14:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:27]tlvbuf is 01196840 [14:18:27]SAM_PROTO_ClearQueue [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 09 00 00 [14:18:27]Write to MH i2c: E2 08 00 3B 38 80 09 00 00 00 00 00 00 E5 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 3B 38 00 90 00 E7 [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_ClearQueue done [14:18:27]KKMCreateOFDPacket [14:18:27]OFDProtocolAddRootSTLVToBuf [14:18:27]FM_MakeSignedData [14:18:27]FM_MakeSignedData [14:18:27]SAM_PROTO_SignData [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 01 02 [14:18:27]Write to MH i2c: E2 08 00 3C 38 80 0D 01 02 00 00 00 00 ED [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 3C 38 00 90 00 E8 [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=255 [14:18:27]MH_SAM_APDU [14:18: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B6 01 00 35 04 06 00 5D [14:18:27]Write to MH i2c: E2 02 01 3D 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B6 01 00 35 04 06 00 5D 00 00 CD [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 3D 38 00 90 00 E9 [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=10 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 02 02 05 FB 0F E6 9B A1 [14:18:27]Write to MH i2c: E2 0D 00 3E 38 80 0D 02 02 05 00 FB 0F E6 9B A1 00 00 26 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 03 00 3E 38 00 90 00 EA [14:18:27]RAPDU: 90 00 [14:18:27]wFMCommunicate OK [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 0D 03 02 [14:18:27]Write to MH i2c: E2 08 00 3F 38 80 0D 03 02 00 00 00 00 F2 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0B 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0B 00 3F 38 00 30 AA 94 0F A1 10 DA 16 90 00 11 [14:18:27]RAPDU: 30 AA 94 0F A1 10 DA 16 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_SignData done [14:18:27]FM_MakeSignedData done [14:18:27]CreateOFDProtocolMessage [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 11 00 00 [14:18:27]Write to MH i2c: E2 08 00 40 38 80 11 00 00 00 00 00 00 F2 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 17 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 17 00 40 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 44 [14:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:18:28]wFMCommunicate OK [14:18:28]CreateOFDProtocolMessage done [14:18:28]OFDSenderStorePacket 112250 [14:18:28]StoreOFDPacket docnum=112250 [14:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8D 37 07 01 16 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B6 01 00 35 04 06 00 5D FB 0F E6 9B A1 30 AA 94 0F A1 10 DA 16 [14:18:28]CheckFolder [14:18:28]dirname=/storage/ofd_packets [14:18:28]CheckFolder done [14:18:28]ProducePacketName [14:18:28]name=ofd_packets/00112250 [14:18:28]NVStorageSaveData ofd_packets/00112250 [14:18:28]File name is /storage/ofd_packets/00112250 [14:18:28]Write 301 bytes [14:18:28]NVStorageSaveData done [14:18:28]OFDSenderStorePacket done [14:18:28]KKMCreateOFDPacket done [14:18:28]NVStorageSaveData kkm_last_timestamp [14:18:28]File name is /storage/kkm_last_timestamp [14:18:28]Write 4 bytes [14:18:28]NVStorageSaveData done [14:18:28]ExternCall_PrintAddStr [14:18:28]wPrintStart [14:18:28]Write to MH i2c: 01 00 00 41 38 79 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 41 38 00 00 00 00 00 FF 0F 8E [14:18:28]RasterBufferAndPrint [14:18:28]line Счет N : (1)320925 [14:18:28]line ИНН: 02508201610067 [14:18:28]line Контрольно-Кассовый Чек [14:18:28]line ПРОДАЖА [14:18:28]line ТРК (МРК, ГНК) : 11 [14:18:28]line Товар: 2710124130 [14:18:28]line Аи-92-К-5 [14:18:28]line 4.520 * 66.40 [14:18:28]line = 300.13 [14:18:28]line НДС 12% НСП 1% [14:18:28]line > о реализуемом товаре [14:18:28]line ОКРУГЛЕНИЕ: -0.13 [14:18:28]line ИТОГО: 300.00 [14:18:28]line Внесено: 300.00 [14:18:28]line СДАЧА: 0.00 [14:18:28]line НСП 1% : 2.66 [14:18:28]line НДС 12% : 31.87 [14:18:28]line Наличными: 300.00 [14:18:28]line Безнал.: 0.00 [14:18:28]line Место: АЗС № 65 "Партнер Нефть" [14:18:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:18:28]line СНО: Общий режим [14:18:28]line Чек 116 22.06.2024 14:18 [14:18:28]line Смена: 391 ФФД: 1.0 [14:18:28]line ЗНМ: 0300000198 [14:18:28]line РНМ: 0000000000092771 [14:18:28]line Версия ККМ: 001 [14:18:28]line ФМ: 0000000000875083 [14:18:28]line ФД: 112250 [14:18:28]line ФПД: 103332884945825 [14:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T141851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112250&fm=103332884945825&tin=02508201610067®Number=0000000000092771&sum=30000 [14:18:28]OFD Sender: Processing packet 112250 [packets to send 38, broken 37] [14:18:28]ProducePacketName [14:18:28]name=ofd_packets/00112250 [14:18:28]OFD Sender: To server: pG, [14:18:28]CommunicateWithHost lk.salyk.kg:30040 [14:18:28]ConnectInit lk.salyk.kg [14:18:28]written 0, free lines is 4095 [14:18:28]Connected sock=10 [14: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 35 30 38 33 0F 01 00 00 8D 37 07 01 16 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 4B DD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B6 01 00 35 04 06 00 5D FB 0F E6 9B A1 30 AA 94 0F A1 10 DA 16 [14:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5A D6 47 00 C4 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B6 01 00 F4 03 04 00 55 74 76 66 B6 04 01 00 00 FE 46 B1 25 50 4A B9 AC [14:18:28]CommunicateWithHost err = 0 [14:18:28]CheckOFDResponse [14:18:28]1017 (14) - 77093643461234 [14:18:28]1041 (16) - 0000000000875083 [14:18:28]1040 (4) - 112250 [14:18:28]1012 (4) - 22.06.2024 06:51 [14:18:28]1206 (1) - 0 [14:18:28]OFD Sender: Remove packet 112250 [14:18:28]ProducePacketName [14:18:28]name=ofd_packets/00112250 [14:18:28]NVStorageDeleteData [14:18:28]Write to MH i2c: 01 00 00 6C 38 A4 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: 01 07 00 6C 38 00 00 00 00 00 D8 0C 8F [14:18:28]RasterBufferAndPrint [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]line [14:18:28]written 0, free lines is 3295 [14:18:28]MH_Cut [14:18:28]Write to MH i2c: D1 01 00 73 38 01 7D [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 01 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: D1 01 00 73 38 00 7C [14:18:28]Write to MH i2c: 01 00 00 74 38 AC [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:29]OFD Sender: No OFD packet to send [14:18:29]*** Cut start [14:18:29]*** Partial cut [14:18:29]*** CUTSNS_PIN = 1 [14:18:29]*** CUTSNS_PIN = 0 [14:18:29]*** Brake cut motor [14:18:30]Read from MH i2c: 01 [14:18:30]MH_I2C_Read... [14:18:30]*** Stop cut motor [14:18:30]*** Cut end [14:18:30]Read from MH i2c: 01 07 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 74 38 00 00 00 00 00 FF 0F C1 [14:18:30]process_action close_receipt done [14:18:30]requested_data is exist [14:18:30]produce_requested_data [14:18:30]requested_item fm.sn is exist - process it [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 11 00 00 [14:18:30]Write to MH i2c: E2 08 00 75 38 80 11 00 00 00 00 00 00 27 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 75 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [14:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:18:30]wFMCommunicate OK [14:18:30]requested_item fd.num is exist - process it [14:18:30]SAM_PROTO_GetFieldsCounters [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 00 00 [14:18:30]Write to MH i2c: E2 08 00 76 38 80 13 00 00 00 00 00 00 2A [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 62 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 62 00 76 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [14:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetFieldsCounters done [14:18:30]requested_item shift.num is exist - process it [14:18:30]requested_item shift.opened is exist - process it [14:18:30]req_shift_opened [14:18:30]FM_GetShiftState [14:18:30]SAM_PROTO_GetShiftState [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 01 00 [14:18:30]Write to MH i2c: E2 08 00 77 38 80 13 01 00 00 00 00 00 2C [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 77 38 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 61 [14:18:30]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetShiftState done [14:18:30]FM_GetShiftState done [14:18:30]req_shift_opened done [14:18:30]requested_item shift.open_date is exist - process it [14:18:30]req_shift_open_date [14:18:30]req_shift_open_date done [14:18:30]produce_requested_data done [14:18:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112250,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:18:30]process_action_free close_receipt [14:18:30]json_value_free [14:18:30]json_value_free done [14:18:30]process_json_proto returns [14:18:30]Send response to host [14:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112250,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:18:30]free response buf [14:18:30]execute_script done [14:18:30]execute_script returns [14:18:30]free content buf [14:18:30]Sock 7.Close socket [14:18:30]Sock 7.Thread stoped [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:09]accept exits with 9 [14:22:09]New connection [14:22:09]New thread 3066813796 created [14:22:09]Thread 3066957156 joined [14:22:09]Waiting for new connection... [14:22:09] Sock 9.Parse request [14:22:09]Sock 9.Check first char [14:22:09]Sock 9.First char is OK [14:22:09]request: POST /json_proto HTTP/1.0 [14:22:09]Method: POST [14:22:09]URL: /json_proto [14:22:09]Method is POST - this is cgi request [14:22:09]url: /json_proto [14:22:09]query_string will be loaded in cgi processing [14:22:09]execute_cgi json_proto POST (null) [14:22:09]execute_cgi path=json_proto method=POST [14:22:09]POST find Content-Length [14:22:09]Host: 172.17.59.68:8080 [14:22:09]Content-Length: 677 [14:22:09]Content-Type: application/json [14:22:09] [14:22:09]POST finish read [14:22:09]Found Content-Length = 677 [14:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320926", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:22:09]execute_script... [14:22: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)320926", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:22:09]POST & json_proto [14:22:09]process_json_proto [14:22:09]json parsed OK: [14:22:09]protocol is kg_v1.0 [14:22:09]action value=close_receipt [14:22:09]process_action close_receipt [14:22:09]cmd_close_receipt [14:22:09]MH_GetDate [14:22:09]Write to MH i2c: F0 00 00 78 38 9F [14:22:09]Write i2c OK [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: F0 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: F0 09 00 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: F0 09 00 78 38 00 2B DE 76 66 BC EC 60 65 FA [14:22:09]GetLastDocTimeStamp 1719065931 [14:22:09]current date 1719066155 [14:22:09]FM_GetShiftState [14:22:09]SAM_PROTO_GetShiftState [14:22:09]wFMCommunicate request_size=4 [14:22:09]MH_SAM_APDU [14:22:09]CAPDU: 80 13 01 00 [14:22:09]Write to MH i2c: E2 08 00 79 38 80 13 01 00 00 00 00 00 2E [14:22:09]Write i2c OK [14:22:09]MH_I2C_Read... [14:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:09]Read from MH i2c: E2 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: E2 0E 00 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: E2 0E 00 79 38 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 63 [14:22:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:22:09]wFMCommunicate OK [14:22:09]SAM_PROTO_GetShiftState done [14:22:09]FM_GetShiftState done [14:22:09]opened in 1719020067 [14:22:09]opened+sec_in_day 1719106467 [14:22:09]quantity*price = 30012 [14:22:09]sum+1 = 30014 [14:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 117 22.06.2024 14:22 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112251 ФПД: 21214743132982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142235&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112251&fm=21214743132982&tin=02508201610067®Number=0000000000092771&sum=30000 [14:22:10]StoreToDocumentArchive [14:22:10]shift 391 fd 112251 [14:22:10]save to /storage/0391/doc_00112251 [14:22:10]save last doc name /storage/0391/doc_00112251 to /storage/kkm_last_doc_name [14:22:10]save OK [14:22:10]Clear old archive folders... [14:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:10]tlvbuf is 01233E60 [14:22:10]SAM_PROTO_ClearQueue [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 09 00 00 [14:22:10]Write to MH i2c: E2 08 00 86 38 80 09 00 00 00 00 00 00 30 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 86 38 00 90 00 32 [14:22:11]RAPDU: 90 00 [14:22:11]wFMCommunicate OK [14:22:11]SAM_PROTO_ClearQueue done [14:22:11]KKMCreateOFDPacket [14:22:11]OFDProtocolAddRootSTLVToBuf [14:22:11]FM_MakeSignedData [14:22:11]FM_MakeSignedData [14:22:11]SAM_PROTO_SignData [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 0D 01 02 [14:22:11]Write to MH i2c: E2 08 00 87 38 80 0D 01 02 00 00 00 00 38 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 87 38 00 90 00 33 [14:22:11]RAPDU: 90 00 [14:22:11]wFMCommunicate OK [14:22:11]wFMCommunicate request_size=255 [14:22:11]MH_SAM_APDU [14: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B6 01 00 35 04 06 00 13 [14:22:11]Write to MH i2c: E2 02 01 88 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B6 01 00 35 04 06 00 13 00 00 B1 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 88 38 00 90 00 34 [14:22:11]RAPDU: 90 00 [14:22:11]wFMCommunicate OK [14:22:11]wFMCommunicate request_size=10 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 0D 02 02 05 4B 71 3A 7B 36 [14:22:11]Write to MH i2c: E2 0D 00 89 38 80 0D 02 02 05 00 4B 71 3A 7B 36 00 00 EC [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 89 38 00 90 00 35 [14:22:11]RAPDU: 90 00 [14:22:11]wFMCommunicate OK [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 0D 03 02 [14:22:11]Write to MH i2c: E2 08 00 8A 38 80 0D 03 02 00 00 00 00 3D [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0B 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0B 00 8A 38 00 40 37 C8 DB 1D EB E1 0A 90 00 4B [14:22:11]RAPDU: 40 37 C8 DB 1D EB E1 0A 90 00 [14:22:11]wFMCommunicate OK [14:22:11]SAM_PROTO_SignData done [14:22:11]FM_MakeSignedData done [14:22:11]CreateOFDProtocolMessage [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 11 00 00 [14:22:11]Write to MH i2c: E2 08 00 8B 38 80 11 00 00 00 00 00 00 3D [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 17 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 17 00 8B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [14:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:11]wFMCommunicate OK [14:22:11]CreateOFDProtocolMessage done [14:22:11]OFDSenderStorePacket 112251 [14:22:11]StoreOFDPacket docnum=112251 [14:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 70 07 01 4C 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B6 01 00 35 04 06 00 13 4B 71 3A 7B 36 40 37 C8 DB 1D EB E1 0A [14:22:11]CheckFolder [14:22:11]dirname=/storage/ofd_packets [14:22:11]CheckFolder done [14:22:11]ProducePacketName [14:22:11]name=ofd_packets/00112251 [14:22:11]NVStorageSaveData ofd_packets/00112251 [14:22:11]File name is /storage/ofd_packets/00112251 [14:22:11]Write 301 bytes [14:22:11]NVStorageSaveData done [14:22:11]OFDSenderStorePacket done [14:22:11]KKMCreateOFDPacket done [14:22:11]NVStorageSaveData kkm_last_timestamp [14:22:11]File name is /storage/kkm_last_timestamp [14:22:11]Write 4 bytes [14:22:11]NVStorageSaveData done [14:22:11]ExternCall_PrintAddStr [14:22:11]wPrintStart [14:22:11]Write to MH i2c: 01 00 00 8C 38 C4 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 8C 38 00 00 00 00 00 FF 0F D9 [14:22:11]RasterBufferAndPrint [14:22:11]line Счет N : (1)320926 [14:22:11]line ИНН: 02508201610067 [14:22:11]line Контрольно-Кассовый Чек [14:22:11]line ПРОДАЖА [14:22:11]line ТРК (МРК, ГНК) : 11 [14:22:11]line Товар: 2710124130 [14:22:11]line Аи-92-К-5 [14:22:11]line 4.520 * 66.40 [14:22:11]line = 300.13 [14:22:11]line НДС 12% НСП 1% [14:22:11]line > о реализуемом товаре [14:22:11]line ОКРУГЛЕНИЕ: -0.13 [14:22:11]line ИТОГО: 300.00 [14:22:11]line Внесено: 300.00 [14:22:11]line СДАЧА: 0.00 [14:22:11]line НСП 1% : 2.66 [14:22:11]line НДС 12% : 31.87 [14:22:11]line Наличными: 300.00 [14:22:11]line Безнал.: 0.00 [14:22:11]line Место: АЗС № 65 "Партнер Нефть" [14:22:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:22:11]line СНО: Общий режим [14:22:11]line Чек 117 22.06.2024 14:22 [14:22:11]line Смена: 391 ФФД: 1.0 [14:22:11]line ЗНМ: 0300000198 [14:22:11]line РНМ: 0000000000092771 [14:22:11]line Версия ККМ: 001 [14:22:11]line ФМ: 0000000000875083 [14:22:11]line ФД: 112251 [14:22:11]line ФПД: 21214743132982 [14:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142235&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112251&fm=21214743132982&tin=02508201610067®Number=0000000000092771&sum=30000 [14:22:11]written 0, free lines is 4095 [14:22:11]OFD Sender: Processing packet 112251 [packets to send 38, broken 37] [14:22:11]ProducePacketName [14:22:11]name=ofd_packets/00112251 [14:22:11]OFD Sender: To server: pG, [14:22:11]CommunicateWithHost lk.salyk.kg:30040 [14:22:11]ConnectInit lk.salyk.kg [14:22:11]Connected sock=10 [14:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 70 07 01 4C 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 2B DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B6 01 00 35 04 06 00 13 4B 71 3A 7B 36 40 37 C8 DB 1D EB E1 0A [14:22:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB 66 47 00 50 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 35 30 38 33 10 04 04 00 7B B6 01 00 F4 03 04 00 35 75 76 66 B6 04 01 00 00 37 CE B5 1D 93 58 62 2E [14:22:11]CommunicateWithHost err = 0 [14:22:11]CheckOFDResponse [14:22:11]1017 (14) - 77093643461234 [14:22:11]1041 (16) - 0000000000875083 [14:22:11]1040 (4) - 112251 [14:22:11]1012 (4) - 22.06.2024 06:54 [14:22:11]1206 (1) - 0 [14:22:11]OFD Sender: Remove packet 112251 [14:22:11]ProducePacketName [14:22:11]name=ofd_packets/00112251 [14:22:11]NVStorageDeleteData [14:22:11]Write to MH i2c: 01 00 00 B7 38 EF [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 B7 38 00 00 00 00 00 DE 0C E0 [14:22:11]RasterBufferAndPrint [14:22:11]line [14:22:11]line [14:22:11]line [14:22:11]line [14:22:11]line [14:22:11]written 0, free lines is 3303 [14:22:11]MH_Cut [14:22:11]Write to MH i2c: D1 01 00 BE 38 01 C8 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: D1 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: D1 01 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: D1 01 00 BE 38 00 C7 [14:22:11]Write to MH i2c: 01 00 00 BF 38 F7 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:12]OFD Sender: No OFD packet to send [14:22:12]*** Cut start [14:22:12]*** Partial cut [14:22:12]*** CUTSNS_PIN = 1 [14:22:12]*** CUTSNS_PIN = 0 [14:22:12]*** Brake cut motor [14:22:13]Read from MH i2c: 01 [14:22:13]MH_I2C_Read... [14:22:13]*** Stop cut motor [14:22:13]*** Cut end [14:22:13]Read from MH i2c: 01 07 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 BF 38 00 00 00 00 00 FF 0F 0C [14:22:13]process_action close_receipt done [14:22:13]requested_data is exist [14:22:13]produce_requested_data [14:22:13]requested_item fm.sn is exist - process it [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 11 00 00 [14:22:13]Write to MH i2c: E2 08 00 C0 38 80 11 00 00 00 00 00 00 72 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 C0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [14:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:13]wFMCommunicate OK [14:22:13]requested_item fd.num is exist - process it [14:22:13]SAM_PROTO_GetFieldsCounters [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 00 00 [14:22:13]Write to MH i2c: E2 08 00 C1 38 80 13 00 00 00 00 00 00 75 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 C1 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetFieldsCounters done [14:22:13]requested_item shift.num is exist - process it [14:22:13]requested_item shift.opened is exist - process it [14:22:13]req_shift_opened [14:22:13]FM_GetShiftState [14:22:13]SAM_PROTO_GetShiftState [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 01 00 [14:22:13]Write to MH i2c: E2 08 00 C2 38 80 13 01 00 00 00 00 00 77 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 0E 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 0E 00 C2 38 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AC [14:22:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetShiftState done [14:22:13]FM_GetShiftState done [14:22:13]req_shift_opened done [14:22:13]requested_item shift.open_date is exist - process it [14:22:13]req_shift_open_date [14:22:13]req_shift_open_date done [14:22:13]produce_requested_data done [14:22:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112251,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:22:13]process_action_free close_receipt [14:22:13]json_value_free [14:22:13]json_value_free done [14:22:13]process_json_proto returns [14:22:13]Send response to host [14:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112251,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:22:13]free response buf [14:22:13]execute_script done [14:22:13]execute_script returns [14:22:13]free content buf [14:22:13]Sock 9.Close socket [14:22:13]Sock 9.Thread stoped [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:34]accept exits with 7 [14:23:34]New connection [14:23:34]New thread 3066957156 created [14:23:34]Thread 3066813796 joined [14:23:34]Waiting for new connection... [14:23:34] Sock 7.Parse request [14:23:34]Sock 7.Check first char [14:23:34]Sock 7.First char is OK [14:23:34]request: POST /json_proto HTTP/1.0 [14:23:34]Method: POST [14:23:34]URL: /json_proto [14:23:34]Method is POST - this is cgi request [14:23:34]url: /json_proto [14:23:34]query_string will be loaded in cgi processing [14:23:34]execute_cgi json_proto POST (null) [14:23:34]execute_cgi path=json_proto method=POST [14:23:34]POST find Content-Length [14:23:34]Host: 172.17.59.68:8080 [14:23:34]Content-Length: 674 [14:23:34]Content-Type: application/json [14:23:34] [14:23:34]POST finish read [14:23:34]Found Content-Length = 674 [14:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:34]execute_script... [14:23: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)320927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:34]POST & json_proto [14:23:34]process_json_proto [14:23:34]json parsed OK: [14:23:34]protocol is kg_v1.0 [14:23:34]action value=close_receipt [14:23:34]process_action close_receipt [14:23:34]cmd_close_receipt [14:23:34]MH_GetDate [14:23:34]Write to MH i2c: F0 00 00 C3 38 EA [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: F0 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: F0 09 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: F0 09 00 C3 38 00 7F DE 76 66 BC EC 60 65 99 [14:23:34]GetLastDocTimeStamp 1719066155 [14:23:34]current date 1719066239 [14:23:34]FM_GetShiftState [14:23:34]SAM_PROTO_GetShiftState [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 13 01 00 [14:23:34]Write to MH i2c: E2 08 00 C4 38 80 13 01 00 00 00 00 00 79 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 C4 38 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AE [14:23:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_GetShiftState done [14:23:34]FM_GetShiftState done [14:23:34]opened in 1719020067 [14:23:34]opened+sec_in_day 1719106467 [14:23:34]quantity*price = 70056 [14:23:34]sum+1 = 70058 [14:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 118 22.06.2024 14:23 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112252 ФПД: 65626074597560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142359&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112252&fm=65626074597560&tin=02508201610067®Number=0000000000092771&sum=70000 [14:23:35]StoreToDocumentArchive [14:23:35]shift 391 fd 112252 [14:23:35]save to /storage/0391/doc_00112252 [14:23:35]save last doc name /storage/0391/doc_00112252 to /storage/kkm_last_doc_name [14:23:35]save OK [14:23:35]Clear old archive folders... [14:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:35]tlvbuf is 01185D70 [14:23:35]SAM_PROTO_ClearQueue [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 09 00 00 [14:23:35]Write to MH i2c: E2 08 00 D1 38 80 09 00 00 00 00 00 00 7B [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 D1 38 00 90 00 7D [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]SAM_PROTO_ClearQueue done [14:23:35]KKMCreateOFDPacket [14:23:35]OFDProtocolAddRootSTLVToBuf [14:23:35]FM_MakeSignedData [14:23:35]FM_MakeSignedData [14:23:35]SAM_PROTO_SignData [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 01 02 [14:23:35]Write to MH i2c: E2 08 00 D2 38 80 0D 01 02 00 00 00 00 83 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 D2 38 00 90 00 7E [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=255 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7F DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B6 01 00 35 04 06 00 3B AF C2 DD [14:23:35]Write to MH i2c: E2 02 01 D3 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7F DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B6 01 00 35 04 06 00 3B AF C2 DD 00 00 72 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 D3 38 00 90 00 7F [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=7 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 02 02 02 48 B8 [14:23:35]Write to MH i2c: E2 0A 00 D4 38 80 0D 02 02 02 00 48 B8 00 00 8A [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 D4 38 00 90 00 80 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 03 02 [14:23:35]Write to MH i2c: E2 08 00 D5 38 80 0D 03 02 00 00 00 00 88 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:36]Read from MH i2c: E2 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 0B 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 0B 00 D5 38 00 B4 15 E3 E4 5B 9F 5A 34 90 00 A1 [14:23:36]RAPDU: B4 15 E3 E4 5B 9F 5A 34 90 00 [14:23:36]wFMCommunicate OK [14:23:36]SAM_PROTO_SignData done [14:23:36]FM_MakeSignedData done [14:23:36]CreateOFDProtocolMessage [14:23:36]wFMCommunicate request_size=4 [14:23:36]MH_SAM_APDU [14:23:36]CAPDU: 80 11 00 00 [14:23:36]Write to MH i2c: E2 08 00 D6 38 80 11 00 00 00 00 00 00 88 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:36]Read from MH i2c: E2 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 17 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 17 00 D6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:23:36]wFMCommunicate OK [14:23:36]CreateOFDProtocolMessage done [14:23:36]OFDSenderStorePacket 112252 [14:23:36]StoreOFDPacket docnum=112252 [14:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 23 C5 04 01 20 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7F DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B6 01 00 35 04 06 00 3B AF C2 DD 48 B8 B4 15 E3 E4 5B 9F 5A 34 [14:23:36]CheckFolder [14:23:36]dirname=/storage/ofd_packets [14:23:36]CheckFolder done [14:23:36]ProducePacketName [14:23:36]name=ofd_packets/00112252 [14:23:36]NVStorageSaveData ofd_packets/00112252 [14:23:36]File name is /storage/ofd_packets/00112252 [14:23:36]Write 298 bytes [14:23:36]NVStorageSaveData done [14:23:36]OFDSenderStorePacket done [14:23:36]KKMCreateOFDPacket done [14:23:36]NVStorageSaveData kkm_last_timestamp [14:23:36]File name is /storage/kkm_last_timestamp [14:23:36]Write 4 bytes [14:23:36]NVStorageSaveData done [14:23:36]ExternCall_PrintAddStr [14:23:36]wPrintStart [14:23:36]Write to MH i2c: 01 00 00 D7 38 0F [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 D7 38 00 00 00 00 00 FF 0F 24 [14:23:36]RasterBufferAndPrint [14:23:36]line Счет N : (1)320927 [14:23:36]line ИНН: 02508201610067 [14:23:36]line Контрольно-Кассовый Чек [14:23:36]line ПРОДАЖА [14:23:36]line ТРК (МРК, ГНК) : 22 [14:23:36]line Товар: 2710194210 [14:23:36]line ДТ-К-5 [14:23:36]line 9.610 * 72.90 [14:23:36]line = 700.57 [14:23:36]line НДС 12% НСП 1% [14:23:36]line > о реализуемом товаре [14:23:36]line ОКРУГЛЕНИЕ: -0.57 [14:23:36]line ИТОГО: 700.00 [14:23:36]line Внесено: 700.00 [14:23:36]line СДАЧА: 0.00 [14:23:36]line НСП 1% : 6.20 [14:23:36]line НДС 12% : 74.40 [14:23:36]line Наличными: 700.00 [14:23:36]line Безнал.: 0.00 [14:23:36]line Место: АЗС № 65 "Партнер Нефть" [14:23:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:23:36]line СНО: Общий режим [14:23:36]line Чек 118 22.06.2024 14:23 [14:23:36]line Смена: 391 ФФД: 1.0 [14:23:36]line ЗНМ: 0300000198 [14:23:36]line РНМ: 0000000000092771 [14:23:36]line Версия ККМ: 001 [14:23:36]line ФМ: 0000000000875083 [14:23:36]line ФД: 112252 [14:23:36]line ФПД: 65626074597560 [14:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142359&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112252&fm=65626074597560&tin=02508201610067®Number=0000000000092771&sum=70000 [14:23:36]OFD Sender: Processing packet 112252 [packets to send 38, broken 37] [14:23:36]ProducePacketName [14:23:36]name=ofd_packets/00112252 [14:23:36]OFD Sender: To server: pG, [14:23:36]CommunicateWithHost lk.salyk.kg:30040 [14:23:36]ConnectInit lk.salyk.kg [14:23:36]written 0, free lines is 4095 [14:23:36]Connected sock=10 [14:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 23 C5 04 01 20 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 7F DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B6 01 00 35 04 06 00 3B AF C2 DD 48 B8 B4 15 E3 E4 5B 9F 5A 34 [14:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A 53 47 00 17 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B6 01 00 F4 03 04 00 89 75 76 66 B6 04 01 00 00 E1 16 E4 B1 1D C9 75 C0 [14:23:36]CommunicateWithHost err = 0 [14:23:36]CheckOFDResponse [14:23:36]1017 (14) - 77093643461234 [14:23:36]1041 (16) - 0000000000875083 [14:23:36]1040 (4) - 112252 [14:23:36]1012 (4) - 22.06.2024 06:56 [14:23:36]1206 (1) - 0 [14:23:36]OFD Sender: Remove packet 112252 [14:23:36]ProducePacketName [14:23:36]name=ofd_packets/00112252 [14:23:36]NVStorageDeleteData [14:23:36]Write to MH i2c: 01 00 00 02 39 3B [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 02 39 00 00 00 00 00 D0 0C 1E [14:23:36]RasterBufferAndPrint [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]written 0, free lines is 3287 [14:23:36]MH_Cut [14:23:36]Write to MH i2c: D1 01 00 09 39 01 14 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 01 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 01 00 09 39 00 13 [14:23:36]Write to MH i2c: 01 00 00 0A 39 43 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:37]OFD Sender: No OFD packet to send [14:23:37]*** Cut start [14:23:37]*** Partial cut [14:23:37]*** CUTSNS_PIN = 1 [14:23:37]*** CUTSNS_PIN = 0 [14:23:37]*** Brake cut motor [14:23:38]Read from MH i2c: 01 [14:23:38]MH_I2C_Read... [14:23:38]*** Stop cut motor [14:23:38]*** Cut end [14:23:38]Read from MH i2c: 01 07 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 07 00 0A 39 00 00 00 00 00 FF 0F 58 [14:23:38]process_action close_receipt done [14:23:38]requested_data is exist [14:23:38]produce_requested_data [14:23:38]requested_item fm.sn is exist - process it [14:23:38]wFMCommunicate request_size=4 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 11 00 00 [14:23:38]Write to MH i2c: E2 08 00 0B 39 80 11 00 00 00 00 00 00 BE [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 17 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 17 00 0B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [14:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:23:38]wFMCommunicate OK [14:23:38]requested_item fd.num is exist - process it [14:23:38]SAM_PROTO_GetFieldsCounters [14:23:38]wFMCommunicate request_size=4 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 13 00 00 [14:23:38]Write to MH i2c: E2 08 00 0C 39 80 13 00 00 00 00 00 00 C1 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 62 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 62 00 0C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [14:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:38]wFMCommunicate OK [14:23:38]SAM_PROTO_GetFieldsCounters done [14:23:38]requested_item shift.num is exist - process it [14:23:38]requested_item shift.opened is exist - process it [14:23:38]req_shift_opened [14:23:38]FM_GetShiftState [14:23:38]SAM_PROTO_GetShiftState [14:23:38]wFMCommunicate request_size=4 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 13 01 00 [14:23:38]Write to MH i2c: E2 08 00 0D 39 80 13 01 00 00 00 00 00 C3 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 0E 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 0E 00 0D 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F8 [14:23:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:23:38]wFMCommunicate OK [14:23:38]SAM_PROTO_GetShiftState done [14:23:38]FM_GetShiftState done [14:23:38]req_shift_opened done [14:23:38]requested_item shift.open_date is exist - process it [14:23:38]req_shift_open_date [14:23:38]req_shift_open_date done [14:23:38]produce_requested_data done [14:23:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112252,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:23:38]process_action_free close_receipt [14:23:38]json_value_free [14:23:38]json_value_free done [14:23:38]process_json_proto returns [14:23:38]Send response to host [14:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112252,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:23:38]free response buf [14:23:38]execute_script done [14:23:38]execute_script returns [14:23:38]free content buf [14:23:38]Sock 7.Close socket [14:23:38]Sock 7.Thread stoped [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:56]accept exits with 9 [14:24:56]New connection [14:24:56]New thread 3066813796 created [14:24:56]Thread 3066957156 joined [14:24:56]Waiting for new connection... [14:24:56] Sock 9.Parse request [14:24:56]Sock 9.Check first char [14:24:56]Sock 9.First char is OK [14:24:56]request: POST /json_proto HTTP/1.0 [14:24:56]Method: POST [14:24:56]URL: /json_proto [14:24:56]Method is POST - this is cgi request [14:24:56]url: /json_proto [14:24:56]query_string will be loaded in cgi processing [14:24:56]execute_cgi json_proto POST (null) [14:24:56]execute_cgi path=json_proto method=POST [14:24:56]POST find Content-Length [14:24:56]Host: 172.17.59.68:8080 [14:24:56]Content-Length: 677 [14:24:56]Content-Type: application/json [14:24:56] [14:24:56]POST finish read [14:24:56]Found Content-Length = 677 [14:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320928", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:56]execute_script... [14:24: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)320928", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:56]POST & json_proto [14:24:56]process_json_proto [14:24:56]json parsed OK: [14:24:56]protocol is kg_v1.0 [14:24:56]action value=close_receipt [14:24:56]process_action close_receipt [14:24:56]cmd_close_receipt [14:24:56]MH_GetDate [14:24:56]Write to MH i2c: F0 00 00 0E 39 36 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 09 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: F0 09 00 0E 39 00 D1 DE 76 66 BC EC 60 65 37 [14:24:56]GetLastDocTimeStamp 1719066239 [14:24:56]current date 1719066321 [14:24:56]FM_GetShiftState [14:24:56]SAM_PROTO_GetShiftState [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 13 01 00 [14:24:56]Write to MH i2c: E2 08 00 0F 39 80 13 01 00 00 00 00 00 C5 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0E 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 0E 00 0F 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FA [14:24:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_GetShiftState done [14:24:56]FM_GetShiftState done [14:24:56]opened in 1719020067 [14:24:56]opened+sec_in_day 1719106467 [14:24:56]quantity*price = 50065 [14:24:56]sum+1 = 50067 [14:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 119 22.06.2024 14:25 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112253 ФПД: 71226464960934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142521&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112253&fm=71226464960934&tin=02508201610067®Number=0000000000092771&sum=50000 [14:24:57]StoreToDocumentArchive [14:24:57]shift 391 fd 112253 [14:24:57]save to /storage/0391/doc_00112253 [14:24:57]save last doc name /storage/0391/doc_00112253 to /storage/kkm_last_doc_name [14:24:57]save OK [14:24:57]Clear old archive folders... [14:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:57]tlvbuf is 0123B510 [14:24:57]SAM_PROTO_ClearQueue [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 09 00 00 [14:24:57]Write to MH i2c: E2 08 00 1C 39 80 09 00 00 00 00 00 00 C7 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 1C 39 00 90 00 C9 [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_ClearQueue done [14:24:57]KKMCreateOFDPacket [14:24:57]OFDProtocolAddRootSTLVToBuf [14:24:57]FM_MakeSignedData [14:24:57]FM_MakeSignedData [14:24:57]SAM_PROTO_SignData [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 01 02 [14:24:57]Write to MH i2c: E2 08 00 1D 39 80 0D 01 02 00 00 00 00 CF [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 1D 39 00 90 00 CA [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=255 [14:24:57]MH_SAM_APDU [14:24: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D1 DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B6 01 00 35 04 06 00 40 [14:24:57]Write to MH i2c: E2 02 01 1E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D1 DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B6 01 00 35 04 06 00 40 00 00 81 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 1E 39 00 90 00 CB [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=10 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 02 02 05 C7 B4 24 81 A6 [14:24:57]Write to MH i2c: E2 0D 00 1F 39 80 0D 02 02 05 00 C7 B4 24 81 A6 00 00 A2 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 1F 39 00 90 00 CC [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 03 02 [14:24:57]Write to MH i2c: E2 08 00 20 39 80 0D 03 02 00 00 00 00 D4 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 20 39 00 D2 43 1A 78 75 37 AF E1 90 00 B8 [14:24:57]RAPDU: D2 43 1A 78 75 37 AF E1 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_SignData done [14:24:57]FM_MakeSignedData done [14:24:57]CreateOFDProtocolMessage [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 11 00 00 [14:24:57]Write to MH i2c: E2 08 00 21 39 80 11 00 00 00 00 00 00 D4 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:58]Read from MH i2c: E2 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: E2 17 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: E2 17 00 21 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [14:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:58]wFMCommunicate OK [14:24:58]CreateOFDProtocolMessage done [14:24:58]OFDSenderStorePacket 112253 [14:24:58]StoreOFDPacket docnum=112253 [14:24:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 89 07 01 FA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D1 DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B6 01 00 35 04 06 00 40 C7 B4 24 81 A6 D2 43 1A 78 75 37 AF E1 [14:24:58]CheckFolder [14:24:58]dirname=/storage/ofd_packets [14:24:58]CheckFolder done [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00112253 [14:24:58]NVStorageSaveData ofd_packets/00112253 [14:24:58]File name is /storage/ofd_packets/00112253 [14:24:58]Write 301 bytes [14:24:58]NVStorageSaveData done [14:24:58]OFDSenderStorePacket done [14:24:58]KKMCreateOFDPacket done [14:24:58]NVStorageSaveData kkm_last_timestamp [14:24:58]File name is /storage/kkm_last_timestamp [14:24:58]Write 4 bytes [14:24:58]NVStorageSaveData done [14:24:58]ExternCall_PrintAddStr [14:24:58]wPrintStart [14:24:58]Write to MH i2c: 01 00 00 22 39 5B [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 22 39 00 00 00 00 00 FF 0F 70 [14:24:58]RasterBufferAndPrint [14:24:58]line Счет N : (1)320928 [14:24:58]line ИНН: 02508201610067 [14:24:58]line Контрольно-Кассовый Чек [14:24:58]line ПРОДАЖА [14:24:58]line ТРК (МРК, ГНК) : 11 [14:24:58]line Товар: 2710124130 [14:24:58]line Аи-92-К-5 [14:24:58]line 7.540 * 66.40 [14:24:58]line = 500.66 [14:24:58]line НДС 12% НСП 1% [14:24:58]line > о реализуемом товаре [14:24:58]line ОКРУГЛЕНИЕ: -0.66 [14:24:58]line ИТОГО: 500.00 [14:24:58]line Внесено: 500.00 [14:24:58]line СДАЧА: 0.00 [14:24:58]line НСП 1% : 4.43 [14:24:58]line НДС 12% : 53.17 [14:24:58]line Наличными: 500.00 [14:24:58]line Безнал.: 0.00 [14:24:58]line Место: АЗС № 65 "Партнер Нефть" [14:24:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:24:58]line СНО: Общий режим [14:24:58]line Чек 119 22.06.2024 14:25 [14:24:58]line Смена: 391 ФФД: 1.0 [14:24:58]line ЗНМ: 0300000198 [14:24:58]line РНМ: 0000000000092771 [14:24:58]line Версия ККМ: 001 [14:24:58]line ФМ: 0000000000875083 [14:24:58]line ФД: 112253 [14:24:58]line ФПД: 71226464960934 [14:24:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T142521&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112253&fm=71226464960934&tin=02508201610067®Number=0000000000092771&sum=50000 [14:24:58]OFD Sender: Processing packet 112253 [packets to send 38, broken 37] [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00112253 [14:24:58]OFD Sender: To server: pG, [14:24:58]CommunicateWithHost lk.salyk.kg:30040 [14:24:58]ConnectInit lk.salyk.kg [14:24:58]written 0, free lines is 4095 [14:24:58]Connected sock=10 [14:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 89 07 01 FA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D1 DE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B6 01 00 35 04 06 00 40 C7 B4 24 81 A6 D2 43 1A 78 75 37 AF E1 [14:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C CA 47 00 21 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B6 01 00 F4 03 04 00 DB 75 76 66 B6 04 01 00 00 29 99 F4 CC CC 18 CF 18 [14:24:58]CommunicateWithHost err = 0 [14:24:58]CheckOFDResponse [14:24:58]1017 (14) - 77093643461234 [14:24:58]1041 (16) - 0000000000875083 [14:24:58]1040 (4) - 112253 [14:24:58]1012 (4) - 22.06.2024 06:57 [14:24:58]1206 (1) - 0 [14:24:58]OFD Sender: Remove packet 112253 [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00112253 [14:24:58]NVStorageDeleteData [14:24:58]Write to MH i2c: 01 00 00 4D 39 86 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 4D 39 00 00 00 00 00 CE 0C 67 [14:24:58]RasterBufferAndPrint [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]written 0, free lines is 3286 [14:24:58]MH_Cut [14:24:58]Write to MH i2c: D1 01 00 54 39 01 5F [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 54 39 00 5E [14:24:58]Write to MH i2c: 01 00 00 55 39 8E [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:59]OFD Sender: No OFD packet to send [14:24:59]*** Cut start [14:24:59]*** Partial cut [14:24:59]*** CUTSNS_PIN = 1 [14:24:59]*** CUTSNS_PIN = 0 [14:24:59]*** Brake cut motor [14:25:00]Read from MH i2c: 01 [14:25:00]MH_I2C_Read... [14:25:00]*** Stop cut motor [14:25:00]*** Cut end [14:25:00]Read from MH i2c: 01 07 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: 01 07 00 55 39 00 00 00 00 00 FF 0F A3 [14:25:00]process_action close_receipt done [14:25:00]requested_data is exist [14:25:00]produce_requested_data [14:25:00]requested_item fm.sn is exist - process it [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 11 00 00 [14:25:00]Write to MH i2c: E2 08 00 56 39 80 11 00 00 00 00 00 00 09 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 17 00 56 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [14:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:25:00]wFMCommunicate OK [14:25:00]requested_item fd.num is exist - process it [14:25:00]SAM_PROTO_GetFieldsCounters [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 00 00 [14:25:00]Write to MH i2c: E2 08 00 57 39 80 13 00 00 00 00 00 00 0C [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 62 00 57 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [14:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetFieldsCounters done [14:25:00]requested_item shift.num is exist - process it [14:25:00]requested_item shift.opened is exist - process it [14:25:00]req_shift_opened [14:25:00]FM_GetShiftState [14:25:00]SAM_PROTO_GetShiftState [14:25:00]wFMCommunicate request_size=4 [14:25:00]MH_SAM_APDU [14:25:00]CAPDU: 80 13 01 00 [14:25:00]Write to MH i2c: E2 08 00 58 39 80 13 01 00 00 00 00 00 0E [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:00]Read from MH i2c: E2 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: E2 0E 00 58 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 43 [14:25:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:25:00]wFMCommunicate OK [14:25:00]SAM_PROTO_GetShiftState done [14:25:00]FM_GetShiftState done [14:25:00]req_shift_opened done [14:25:00]requested_item shift.open_date is exist - process it [14:25:00]req_shift_open_date [14:25:00]req_shift_open_date done [14:25:00]produce_requested_data done [14:25:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112253,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:25:00]process_action_free close_receipt [14:25:00]json_value_free [14:25:00]json_value_free done [14:25:00]process_json_proto returns [14:25:00]Send response to host [14:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112253,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:25:00]free response buf [14:25:00]execute_script done [14:25:00]execute_script returns [14:25:00]free content buf [14:25:00]Sock 9.Close socket [14:25:00]Sock 9.Thread stoped [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [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:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:46]accept exits with 7 [14:29:46]New connection [14:29:46]New thread 3066957156 created [14:29:46]Thread 3066813796 joined [14:29:46]Waiting for new connection... [14:29:46] Sock 7.Parse request [14:29:46]Sock 7.Check first char [14:29:46]Sock 7.First char is OK [14:29:46]request: POST /json_proto HTTP/1.0 [14:29:46]Method: POST [14:29:46]URL: /json_proto [14:29:46]Method is POST - this is cgi request [14:29:46]url: /json_proto [14:29:46]query_string will be loaded in cgi processing [14:29:46]execute_cgi json_proto POST (null) [14:29:46]execute_cgi path=json_proto method=POST [14:29:46]POST find Content-Length [14:29:46]Host: 172.17.59.68:8080 [14:29:46]Content-Length: 677 [14:29:46]Content-Type: application/json [14:29:46] [14:29:46]POST finish read [14:29:46]Found Content-Length = 677 [14:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320929", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:46]execute_script... [14:29:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320929", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:46]POST & json_proto [14:29:46]process_json_proto [14:29:46]json parsed OK: [14:29:46]protocol is kg_v1.0 [14:29:46]action value=close_receipt [14:29:46]process_action close_receipt [14:29:46]cmd_close_receipt [14:29:46]MH_GetDate [14:29:46]Write to MH i2c: F0 00 00 59 39 81 [14:29:46]Write i2c OK [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: F0 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: F0 09 00 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: F0 09 00 59 39 00 F4 DF 76 66 BC EC 60 65 A6 [14:29:46]GetLastDocTimeStamp 1719066321 [14:29:46]current date 1719066612 [14:29:46]FM_GetShiftState [14:29:46]SAM_PROTO_GetShiftState [14:29:46]wFMCommunicate request_size=4 [14:29:46]MH_SAM_APDU [14:29:46]CAPDU: 80 13 01 00 [14:29:46]Write to MH i2c: E2 08 00 5A 39 80 13 01 00 00 00 00 00 10 [14:29:46]Write i2c OK [14:29:46]MH_I2C_Read... [14:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:46]Read from MH i2c: E2 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: E2 0E 00 [14:29:46]MH_I2C_Read... [14:29:46]Read from MH i2c: E2 0E 00 5A 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 45 [14:29:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:29:46]wFMCommunicate OK [14:29:46]SAM_PROTO_GetShiftState done [14:29:46]FM_GetShiftState done [14:29:46]opened in 1719020067 [14:29:46]opened+sec_in_day 1719106467 [14:29:46]quantity*price = 50065 [14:29:46]sum+1 = 50067 [14:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 120 22.06.2024 14:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112254 ФПД: 117848206140828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143012&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112254&fm=117848206140828&tin=02508201610067®Number=0000000000092771&sum=50000 [14:29:48]StoreToDocumentArchive [14:29:48]shift 391 fd 112254 [14:29:48]save to /storage/0391/doc_00112254 [14:29:48]save last doc name /storage/0391/doc_00112254 to /storage/kkm_last_doc_name [14:29:48]save OK [14:29:48]Clear old archive folders... [14:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:48]tlvbuf is 01201360 [14:29:48]SAM_PROTO_ClearQueue [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 09 00 00 [14:29:48]Write to MH i2c: E2 08 00 67 39 80 09 00 00 00 00 00 00 12 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 67 39 00 90 00 14 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]SAM_PROTO_ClearQueue done [14:29:48]KKMCreateOFDPacket [14:29:48]OFDProtocolAddRootSTLVToBuf [14:29:48]FM_MakeSignedData [14:29:48]FM_MakeSignedData [14:29:48]SAM_PROTO_SignData [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 01 02 [14:29:48]Write to MH i2c: E2 08 00 68 39 80 0D 01 02 00 00 00 00 1A [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 68 39 00 90 00 15 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]wFMCommunicate request_size=255 [14:29:48]MH_SAM_APDU [14:29: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F4 DF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B6 01 00 35 04 06 00 6B [14:29:48]Write to MH i2c: E2 02 01 69 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F4 DF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B6 01 00 35 04 06 00 6B 00 00 1D [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 69 39 00 90 00 16 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]wFMCommunicate request_size=10 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 02 02 05 2E AC 76 E5 9C [14:29:48]Write to MH i2c: E2 0D 00 6A 39 80 0D 02 02 05 00 2E AC 76 E5 9C 00 00 F8 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 03 00 6A 39 00 90 00 17 [14:29:48]RAPDU: 90 00 [14:29:48]wFMCommunicate OK [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 0D 03 02 [14:29:48]Write to MH i2c: E2 08 00 6B 39 80 0D 03 02 00 00 00 00 1F [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 0B 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 0B 00 6B 39 00 83 AC 9B 3D 1B 31 F0 AB 90 00 0E [14:29:48]RAPDU: 83 AC 9B 3D 1B 31 F0 AB 90 00 [14:29:48]wFMCommunicate OK [14:29:48]SAM_PROTO_SignData done [14:29:48]FM_MakeSignedData done [14:29:48]CreateOFDProtocolMessage [14:29:48]wFMCommunicate request_size=4 [14:29:48]MH_SAM_APDU [14:29:48]CAPDU: 80 11 00 00 [14:29:48]Write to MH i2c: E2 08 00 6C 39 80 11 00 00 00 00 00 00 1F [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:48]Read from MH i2c: E2 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 17 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: E2 17 00 6C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [14:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:29:48]wFMCommunicate OK [14:29:48]CreateOFDProtocolMessage done [14:29:48]OFDSenderStorePacket 112254 [14:29:48]StoreOFDPacket docnum=112254 [14:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A 47 07 01 3E B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F4 DF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B6 01 00 35 04 06 00 6B 2E AC 76 E5 9C 83 AC 9B 3D 1B 31 F0 AB [14:29:48]CheckFolder [14:29:48]dirname=/storage/ofd_packets [14:29:48]CheckFolder done [14:29:48]ProducePacketName [14:29:48]name=ofd_packets/00112254 [14:29:48]NVStorageSaveData ofd_packets/00112254 [14:29:48]File name is /storage/ofd_packets/00112254 [14:29:48]Write 301 bytes [14:29:48]NVStorageSaveData done [14:29:48]OFDSenderStorePacket done [14:29:48]KKMCreateOFDPacket done [14:29:48]NVStorageSaveData kkm_last_timestamp [14:29:48]File name is /storage/kkm_last_timestamp [14:29:48]Write 4 bytes [14:29:48]NVStorageSaveData done [14:29:48]ExternCall_PrintAddStr [14:29:48]wPrintStart [14:29:48]Write to MH i2c: 01 00 00 6D 39 A6 [14:29:48]Write i2c OK [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: 01 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: 01 07 00 [14:29:48]MH_I2C_Read... [14:29:48]Read from MH i2c: 01 07 00 6D 39 00 00 00 00 00 FF 0F BB [14:29:48]RasterBufferAndPrint [14:29:48]line Счет N : (1)320929 [14:29:48]line ИНН: 02508201610067 [14:29:48]line Контрольно-Кассовый Чек [14:29:48]line ПРОДАЖА [14:29:48]line ТРК (МРК, ГНК) : 11 [14:29:48]line Товар: 2710124130 [14:29:48]line Аи-92-К-5 [14:29:48]line 7.540 * 66.40 [14:29:48]line = 500.66 [14:29:48]line НДС 12% НСП 1% [14:29:48]line > о реализуемом товаре [14:29:48]line ОКРУГЛЕНИЕ: -0.66 [14:29:48]line ИТОГО: 500.00 [14:29:48]line Внесено: 500.00 [14:29:48]line СДАЧА: 0.00 [14:29:48]line НСП 1% : 4.43 [14:29:48]line НДС 12% : 53.17 [14:29:48]line Наличными: 500.00 [14:29:48]line Безнал.: 0.00 [14:29:48]line Место: АЗС № 65 "Партнер Нефть" [14:29:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:29:48]line СНО: Общий режим [14:29:48]line Чек 120 22.06.2024 14:30 [14:29:48]line Смена: 391 ФФД: 1.0 [14:29:48]line ЗНМ: 0300000198 [14:29:48]line РНМ: 0000000000092771 [14:29:48]line Версия ККМ: 001 [14:29:48]line ФМ: 0000000000875083 [14:29:48]line ФД: 112254 [14:29:48]line ФПД: 117848206140828 [14:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143012&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112254&fm=117848206140828&tin=02508201610067®Number=0000000000092771&sum=50000 [14:29:48]OFD Sender: Processing packet 112254 [packets to send 38, broken 37] [14:29:48]ProducePacketName [14:29:48]name=ofd_packets/00112254 [14:29:48]OFD Sender: To server: pG, [14:29:48]CommunicateWithHost lk.salyk.kg:30040 [14:29:48]ConnectInit lk.salyk.kg [14:29:48]written 0, free lines is 4095 [14:29:49]Connected sock=10 [14:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A 47 07 01 3E B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F4 DF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B6 01 00 35 04 06 00 6B 2E AC 76 E5 9C 83 AC 9B 3D 1B 31 F0 AB [14:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C 18 47 00 77 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B6 01 00 F4 03 04 00 FE 76 76 66 B6 04 01 00 00 4E D6 E6 B3 52 E2 47 0F [14:29:49]CommunicateWithHost err = 0 [14:29:49]CheckOFDResponse [14:29:49]1017 (14) - 77093643461234 [14:29:49]1041 (16) - 0000000000875083 [14:29:49]1040 (4) - 112254 [14:29:49]1012 (4) - 22.06.2024 07:02 [14:29:49]1206 (1) - 0 [14:29:49]OFD Sender: Remove packet 112254 [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00112254 [14:29:49]NVStorageDeleteData [14:29:49]Write to MH i2c: 01 00 00 98 39 D1 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 07 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 07 00 98 39 00 00 00 00 00 CD 0C B1 [14:29:49]RasterBufferAndPrint [14:29:49]line [14:29:49]line [14:29:49]line [14:29:49]line [14:29:49]line [14:29:49]written 0, free lines is 3283 [14:29:49]MH_Cut [14:29:49]Write to MH i2c: D1 01 00 9F 39 01 AA [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: D1 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: D1 01 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: D1 01 00 9F 39 00 A9 [14:29:49]Write to MH i2c: 01 00 00 A0 39 D9 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]OFD Sender: No OFD packet to send [14:29:50]*** Cut start [14:29:50]*** Partial cut [14:29:50]*** CUTSNS_PIN = 1 [14:29:50]*** CUTSNS_PIN = 0 [14:29:50]*** Brake cut motor [14:29:50]Read from MH i2c: 01 [14:29:50]MH_I2C_Read... [14:29:50]*** Stop cut motor [14:29:50]*** Cut end [14:29:50]Read from MH i2c: 01 07 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 07 00 A0 39 00 00 00 00 00 FF 0F EE [14:29:50]process_action close_receipt done [14:29:50]requested_data is exist [14:29:50]produce_requested_data [14:29:50]requested_item fm.sn is exist - process it [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 11 00 00 [14:29:50]Write to MH i2c: E2 08 00 A1 39 80 11 00 00 00 00 00 00 54 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 17 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 17 00 A1 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [14:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:29:50]wFMCommunicate OK [14:29:50]requested_item fd.num is exist - process it [14:29:50]SAM_PROTO_GetFieldsCounters [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 13 00 00 [14:29:50]Write to MH i2c: E2 08 00 A2 39 80 13 00 00 00 00 00 00 57 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 62 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 62 00 A2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:50]wFMCommunicate OK [14:29:50]SAM_PROTO_GetFieldsCounters done [14:29:50]requested_item shift.num is exist - process it [14:29:50]requested_item shift.opened is exist - process it [14:29:50]req_shift_opened [14:29:50]FM_GetShiftState [14:29:50]SAM_PROTO_GetShiftState [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 13 01 00 [14:29:50]Write to MH i2c: E2 08 00 A3 39 80 13 01 00 00 00 00 00 59 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 0E 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 0E 00 A3 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8E [14:29:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:29:50]wFMCommunicate OK [14:29:50]SAM_PROTO_GetShiftState done [14:29:50]FM_GetShiftState done [14:29:50]req_shift_opened done [14:29:50]requested_item shift.open_date is exist - process it [14:29:50]req_shift_open_date [14:29:50]req_shift_open_date done [14:29:50]produce_requested_data done [14:29:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112254,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:29:50]process_action_free close_receipt [14:29:50]json_value_free [14:29:50]json_value_free done [14:29:50]process_json_proto returns [14:29:50]Send response to host [14:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112254,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:29:50]free response buf [14:29:50]execute_script done [14:29:50]execute_script returns [14:29:50]free content buf [14:29:50]Sock 7.Close socket [14:29:50]Sock 7.Thread stoped [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:16]accept exits with 9 [14:30:16]New connection [14:30:16]New thread 3066813796 created [14:30:16]Thread 3066957156 joined [14:30:16]Waiting for new connection... [14:30:16] Sock 9.Parse request [14:30:16]Sock 9.Check first char [14:30:16]Sock 9.First char is OK [14:30:16]request: POST /json_proto HTTP/1.0 [14:30:16]Method: POST [14:30:16]URL: /json_proto [14:30:16]Method is POST - this is cgi request [14:30:16]url: /json_proto [14:30:16]query_string will be loaded in cgi processing [14:30:16]execute_cgi json_proto POST (null) [14:30:16]execute_cgi path=json_proto method=POST [14:30:16]POST find Content-Length [14:30:16]Host: 172.17.59.68:8080 [14:30:16]Content-Length: 805 [14:30:16]Content-Type: application/json [14:30:16] [14:30:16]POST finish read [14:30:16]Found Content-Length = 805 [14:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320930", "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.40, "quantity" : 3.380, "sum" : 224.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 224.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:16]execute_script... [14:30: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)320930", "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.40, "quantity" : 3.380, "sum" : 224.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 224.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:16]POST & json_proto [14:30:16]process_json_proto [14:30:16]json parsed OK: [14:30:16]protocol is kg_v1.0 [14:30:16]action value=close_receipt [14:30:16]process_action close_receipt [14:30:16]cmd_close_receipt [14:30:16]MH_GetDate [14:30:16]Write to MH i2c: F0 00 00 A4 39 CC [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: F0 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: F0 09 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: F0 09 00 A4 39 00 12 E0 76 66 BC EC 60 65 10 [14:30:16]GetLastDocTimeStamp 1719066612 [14:30:16]current date 1719066642 [14:30:16]FM_GetShiftState [14:30:16]SAM_PROTO_GetShiftState [14:30:16]wFMCommunicate request_size=4 [14:30:16]MH_SAM_APDU [14:30:16]CAPDU: 80 13 01 00 [14:30:16]Write to MH i2c: E2 08 00 A5 39 80 13 01 00 00 00 00 00 5B [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:16]Read from MH i2c: E2 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: E2 0E 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: E2 0E 00 A5 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 90 [14:30:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:30:16]wFMCommunicate OK [14:30:16]SAM_PROTO_GetShiftState done [14:30:16]FM_GetShiftState done [14:30:16]opened in 1719020067 [14:30:16]opened+sec_in_day 1719106467 [14:30:16]quantity*price = 22443 [14:30:16]sum+1 = 22444 [14:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 224.43 НСП 1% : 1.99 НДС 12% : 23.83 Наличными: 0.00 Безнал.: 224.43 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 121 22.06.2024 14:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112255 ФПД: 129311310853933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143042&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112255&fm=129311310853933&tin=02508201610067®Number=0000000000092771&sum=22443 [14:30:17]StoreToDocumentArchive [14:30:17]shift 391 fd 112255 [14:30:17]save to /storage/0391/doc_00112255 [14:30:17]save last doc name /storage/0391/doc_00112255 to /storage/kkm_last_doc_name [14:30:17]save OK [14:30:17]Clear old archive folders... [14:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:17]tlvbuf is B6DA9160 [14:30:17]SAM_PROTO_ClearQueue [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 09 00 00 [14:30:17]Write to MH i2c: E2 08 00 B2 39 80 09 00 00 00 00 00 00 5D [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 B2 39 00 90 00 5F [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_ClearQueue done [14:30:17]KKMCreateOFDPacket [14:30:17]OFDProtocolAddRootSTLVToBuf [14:30:17]FM_MakeSignedData [14:30:17]FM_MakeSignedData [14:30:17]SAM_PROTO_SignData [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 01 02 [14:30:17]Write to MH i2c: E2 08 00 B3 39 80 0D 01 02 00 00 00 00 65 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 B3 39 00 90 00 60 [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=255 [14:30:17]MH_SAM_APDU [14:30: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 34 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AB 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B6 01 00 35 04 06 00 75 [14:30:17]Write to MH i2c: E2 02 01 B4 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 34 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AB 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B6 01 00 35 04 06 00 75 00 00 58 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 B4 39 00 90 00 61 [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]wFMCommunicate request_size=10 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 02 02 05 9B A2 BF B7 2D [14:30:18]Write to MH i2c: E2 0D 00 B5 39 80 0D 02 02 05 00 9B A2 BF B7 2D 00 00 52 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 B5 39 00 90 00 62 [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 03 02 [14:30:18]Write to MH i2c: E2 08 00 B6 39 80 0D 03 02 00 00 00 00 6A [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 0B 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 0B 00 B6 39 00 7B E3 0A 83 90 7B 6A 63 90 00 2E [14:30:18]RAPDU: 7B E3 0A 83 90 7B 6A 63 90 00 [14:30:18]wFMCommunicate OK [14:30:18]SAM_PROTO_SignData done [14:30:18]FM_MakeSignedData done [14:30:18]CreateOFDProtocolMessage [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 11 00 00 [14:30:18]Write to MH i2c: E2 08 00 B7 39 80 11 00 00 00 00 00 00 6A [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 17 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 17 00 B7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [14:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:30:18]wFMCommunicate OK [14:30:18]CreateOFDProtocolMessage done [14:30:18]OFDSenderStorePacket 112255 [14:30:18]StoreOFDPacket docnum=112255 [14:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 41 07 01 30 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 34 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AB 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B6 01 00 35 04 06 00 75 9B A2 BF B7 2D 7B E3 0A 83 90 7B 6A 63 [14:30:18]CheckFolder [14:30:18]dirname=/storage/ofd_packets [14:30:18]CheckFolder done [14:30:18]ProducePacketName [14:30:18]name=ofd_packets/00112255 [14:30:18]NVStorageSaveData ofd_packets/00112255 [14:30:18]File name is /storage/ofd_packets/00112255 [14:30:18]Write 301 bytes [14:30:18]NVStorageSaveData done [14:30:18]OFDSenderStorePacket done [14:30:18]KKMCreateOFDPacket done [14:30:18]NVStorageSaveData kkm_last_timestamp [14:30:18]File name is /storage/kkm_last_timestamp [14:30:18]Write 4 bytes [14:30:18]NVStorageSaveData done [14:30:18]ExternCall_PrintAddStr [14:30:18]wPrintStart [14:30:18]Write to MH i2c: 01 00 00 B8 39 F1 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 B8 39 00 00 00 00 00 FF 0F 06 [14:30:18]RasterBufferAndPrint [14:30:18]line Счет N : (1)320930 [14:30:18]line ИНН: 02508201610067 [14:30:18]line Контрольно-Кассовый Чек [14:30:18]line ПРОДАЖА [14:30:18]line ТРК (МРК, ГНК) : 11 [14:30:18]line Товар: 2710124130 [14:30:18]line Аи-92-К-5 [14:30:18]line 3.380 * 66.40 [14:30:18]line = 224.43 [14:30:18]line НДС 12% НСП 1% [14:30:18]line > о реализуемом товаре [14:30:18]line ИТОГО: 224.43 [14:30:18]line НСП 1% : 1.99 [14:30:18]line НДС 12% : 23.83 [14:30:18]line Наличными: 0.00 [14:30:18]line Безнал.: 224.43 [14:30:18]line Место: АЗС № 65 "Партнер Нефть" [14:30:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:30:18]line СНО: Общий режим [14:30:18]line Чек 121 22.06.2024 14:30 [14:30:18]line Смена: 391 ФФД: 1.0 [14:30:18]line ЗНМ: 0300000198 [14:30:18]line РНМ: 0000000000092771 [14:30:18]line Версия ККМ: 001 [14:30:18]line Платежная система: О! деньги [14:30:18]line ФМ: 0000000000875083 [14:30:18]line ФД: 112255 [14:30:18]line ФПД: 129311310853933 [14:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143042&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112255&fm=129311310853933&tin=02508201610067®Number=0000000000092771&sum=22443 [14:30:18]OFD Sender: Processing packet 112255 [packets to send 38, broken 37] [14:30:18]ProducePacketName [14:30:18]name=ofd_packets/00112255 [14:30:18]OFD Sender: To server: pG, [14:30:18]CommunicateWithHost lk.salyk.kg:30040 [14:30:18]ConnectInit lk.salyk.kg [14:30:18]written 0, free lines is 4095 [14:30:18]Connected sock=10 [14:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 41 07 01 30 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 34 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AB 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B6 01 00 35 04 06 00 75 9B A2 BF B7 2D 7B E3 0A 83 90 7B 6A 63 [14:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8A E8 47 00 FD 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B6 01 00 F4 03 04 00 1C 77 76 66 B6 04 01 00 00 BA 2D E5 06 35 C2 18 7E [14:30:18]CommunicateWithHost err = 0 [14:30:18]CheckOFDResponse [14:30:18]1017 (14) - 77093643461234 [14:30:18]1041 (16) - 0000000000875083 [14:30:18]1040 (4) - 112255 [14:30:18]1012 (4) - 22.06.2024 07:02 [14:30:18]1206 (1) - 0 [14:30:18]OFD Sender: Remove packet 112255 [14:30:18]ProducePacketName [14:30:18]name=ofd_packets/00112255 [14:30:18]NVStorageDeleteData [14:30:18]Write to MH i2c: 01 00 00 E2 39 1B [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 E2 39 00 00 00 00 00 F4 0C 22 [14:30:18]RasterBufferAndPrint [14:30:18]line [14:30:18]line [14:30:18]line [14:30:18]line [14:30:18]line [14:30:18]written 0, free lines is 3323 [14:30:18]MH_Cut [14:30:18]Write to MH i2c: D1 01 00 E9 39 01 F4 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: D1 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: D1 01 00 [14:30:18]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 01 00 E9 39 00 F3 [14:30:19]Write to MH i2c: 01 00 00 EA 39 23 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]OFD Sender: No OFD packet to send [14:30:19]*** Cut start [14:30:19]*** Partial cut [14:30:19]*** CUTSNS_PIN = 1 [14:30:19]*** CUTSNS_PIN = 0 [14:30:19]*** Brake cut motor [14:30:20]Read from MH i2c: 01 [14:30:20]MH_I2C_Read... [14:30:20]*** Stop cut motor [14:30:20]*** Cut end [14:30:20]Read from MH i2c: 01 07 00 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: 01 07 00 EA 39 00 00 00 00 00 FF 0F 38 [14:30:20]process_action close_receipt done [14:30:20]requested_data is exist [14:30:20]produce_requested_data [14:30:20]requested_item fm.sn is exist - process it [14:30:20]wFMCommunicate request_size=4 [14:30:20]MH_SAM_APDU [14:30:20]CAPDU: 80 11 00 00 [14:30:20]Write to MH i2c: E2 08 00 EB 39 80 11 00 00 00 00 00 00 9E [14:30:20]Write i2c OK [14:30:20]MH_I2C_Read... [14:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:20]Read from MH i2c: E2 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: E2 17 00 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: E2 17 00 EB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F0 [14:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:30:20]wFMCommunicate OK [14:30:20]requested_item fd.num is exist - process it [14:30:20]SAM_PROTO_GetFieldsCounters [14:30:20]wFMCommunicate request_size=4 [14:30:20]MH_SAM_APDU [14:30:20]CAPDU: 80 13 00 00 [14:30:20]Write to MH i2c: E2 08 00 EC 39 80 13 00 00 00 00 00 00 A1 [14:30:20]Write i2c OK [14:30:20]MH_I2C_Read... [14:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:20]Read from MH i2c: E2 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: E2 62 00 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: E2 62 00 EC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [14:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:20]wFMCommunicate OK [14:30:20]SAM_PROTO_GetFieldsCounters done [14:30:20]requested_item shift.num is exist - process it [14:30:20]requested_item shift.opened is exist - process it [14:30:20]req_shift_opened [14:30:20]FM_GetShiftState [14:30:20]SAM_PROTO_GetShiftState [14:30:20]wFMCommunicate request_size=4 [14:30:20]MH_SAM_APDU [14:30:20]CAPDU: 80 13 01 00 [14:30:20]Write to MH i2c: E2 08 00 ED 39 80 13 01 00 00 00 00 00 A3 [14:30:20]Write i2c OK [14:30:20]MH_I2C_Read... [14:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:20]Read from MH i2c: E2 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: E2 0E 00 [14:30:20]MH_I2C_Read... [14:30:20]Read from MH i2c: E2 0E 00 ED 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D8 [14:30:20]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:30:20]wFMCommunicate OK [14:30:20]SAM_PROTO_GetShiftState done [14:30:20]FM_GetShiftState done [14:30:20]req_shift_opened done [14:30:20]requested_item shift.open_date is exist - process it [14:30:20]req_shift_open_date [14:30:20]req_shift_open_date done [14:30:20]produce_requested_data done [14:30:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112255,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:30:20]process_action_free close_receipt [14:30:20]json_value_free [14:30:20]json_value_free done [14:30:20]process_json_proto returns [14:30:20]Send response to host [14:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112255,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:30:20]free response buf [14:30:20]execute_script done [14:30:20]execute_script returns [14:30:20]free content buf [14:30:20]Sock 9.Close socket [14:30:20]Sock 9.Thread stoped [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:49]accept exits with 7 [14:32:49]New connection [14:32:49]New thread 3066957156 created [14:32:49]Thread 3066813796 joined [14:32:49]Waiting for new connection... [14:32:49] Sock 7.Parse request [14:32:49]Sock 7.Check first char [14:32:49]Sock 7.First char is OK [14:32:49]request: POST /json_proto HTTP/1.0 [14:32:49]Method: POST [14:32:49]URL: /json_proto [14:32:49]Method is POST - this is cgi request [14:32:49]url: /json_proto [14:32:49]query_string will be loaded in cgi processing [14:32:49]execute_cgi json_proto POST (null) [14:32:49]execute_cgi path=json_proto method=POST [14:32:49]POST find Content-Length [14:32:49]Host: 172.17.59.68:8080 [14:32:49]Content-Length: 805 [14:32:49]Content-Type: application/json [14:32:49] [14:32:49]POST finish read [14:32:49]Found Content-Length = 805 [14:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320931", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:49]execute_script... [14:32: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)320931", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:49]POST & json_proto [14:32:49]process_json_proto [14:32:49]json parsed OK: [14:32:49]protocol is kg_v1.0 [14:32:49]action value=close_receipt [14:32:49]process_action close_receipt [14:32:49]cmd_close_receipt [14:32:49]MH_GetDate [14:32:49]Write to MH i2c: F0 00 00 EE 39 16 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: F0 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: F0 09 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: F0 09 00 EE 39 00 AB E0 76 66 BC EC 60 65 F3 [14:32:49]GetLastDocTimeStamp 1719066642 [14:32:49]current date 1719066795 [14:32:49]FM_GetShiftState [14:32:49]SAM_PROTO_GetShiftState [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 13 01 00 [14:32:49]Write to MH i2c: E2 08 00 EF 39 80 13 01 00 00 00 00 00 A5 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 0E 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 0E 00 EF 39 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DA [14:32:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:32:49]wFMCommunicate OK [14:32:49]SAM_PROTO_GetShiftState done [14:32:49]FM_GetShiftState done [14:32:49]opened in 1719020067 [14:32:49]opened+sec_in_day 1719106467 [14:32:49]quantity*price = 50065 [14:32:49]sum+1 = 50067 [14:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 122 22.06.2024 14:33 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112256 ФПД: 122500249518412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143315&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112256&fm=122500249518412&tin=02508201610067®Number=0000000000092771&sum=50066 [14:32:50]StoreToDocumentArchive [14:32:50]shift 391 fd 112256 [14:32:50]save to /storage/0391/doc_00112256 [14:32:50]save last doc name /storage/0391/doc_00112256 to /storage/kkm_last_doc_name [14:32:50]save OK [14:32:50]Clear old archive folders... [14:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:50]tlvbuf is 011F6E60 [14:32:50]SAM_PROTO_ClearQueue [14:32:50]wFMCommunicate request_size=4 [14:32:50]MH_SAM_APDU [14:32:50]CAPDU: 80 09 00 00 [14:32:50]Write to MH i2c: E2 08 00 FC 39 80 09 00 00 00 00 00 00 A7 [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 03 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 03 00 FC 39 00 90 00 A9 [14:32:50]RAPDU: 90 00 [14:32:50]wFMCommunicate OK [14:32:50]SAM_PROTO_ClearQueue done [14:32:50]KKMCreateOFDPacket [14:32:50]OFDProtocolAddRootSTLVToBuf [14:32:50]FM_MakeSignedData [14:32:50]FM_MakeSignedData [14:32:50]SAM_PROTO_SignData [14:32:50]wFMCommunicate request_size=4 [14:32:50]MH_SAM_APDU [14:32:50]CAPDU: 80 0D 01 02 [14:32:50]Write to MH i2c: E2 08 00 FD 39 80 0D 01 02 00 00 00 00 AF [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 03 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 03 00 FD 39 00 90 00 AA [14:32:50]RAPDU: 90 00 [14:32:50]wFMCommunicate OK [14:32:50]wFMCommunicate request_size=255 [14:32:50]MH_SAM_APDU [14: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AB E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B6 01 00 35 04 06 00 6F [14:32:50]Write to MH i2c: E2 02 01 FE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AB E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B6 01 00 35 04 06 00 6F 00 00 F6 [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 03 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 03 00 FE 39 00 90 00 AB [14:32:51]RAPDU: 90 00 [14:32:51]wFMCommunicate OK [14:32:51]wFMCommunicate request_size=10 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 0D 02 02 05 69 CF DB 81 4C [14:32:51]Write to MH i2c: E2 0D 00 FF 39 80 0D 02 02 05 00 69 CF DB 81 4C 00 00 9C [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 03 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 03 00 FF 39 00 90 00 AC [14:32:51]RAPDU: 90 00 [14:32:51]wFMCommunicate OK [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 0D 03 02 [14:32:51]Write to MH i2c: E2 08 00 00 3A 80 0D 03 02 00 00 00 00 B5 [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 0B 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 0B 00 00 3A 00 12 ED C3 36 4C 47 D8 45 90 00 5E [14:32:51]RAPDU: 12 ED C3 36 4C 47 D8 45 90 00 [14:32:51]wFMCommunicate OK [14:32:51]SAM_PROTO_SignData done [14:32:51]FM_MakeSignedData done [14:32:51]CreateOFDProtocolMessage [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 11 00 00 [14:32:51]Write to MH i2c: E2 08 00 01 3A 80 11 00 00 00 00 00 00 B5 [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:51]Read from MH i2c: E2 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 17 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: E2 17 00 01 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [14:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:32:51]wFMCommunicate OK [14:32:51]CreateOFDProtocolMessage done [14:32:51]OFDSenderStorePacket 112256 [14:32:51]StoreOFDPacket docnum=112256 [14:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 04 07 01 2D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AB E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B6 01 00 35 04 06 00 6F 69 CF DB 81 4C 12 ED C3 36 4C 47 D8 45 [14:32:51]CheckFolder [14:32:51]dirname=/storage/ofd_packets [14:32:51]CheckFolder done [14:32:51]ProducePacketName [14:32:51]name=ofd_packets/00112256 [14:32:51]NVStorageSaveData ofd_packets/00112256 [14:32:51]File name is /storage/ofd_packets/00112256 [14:32:51]Write 301 bytes [14:32:51]NVStorageSaveData done [14:32:51]OFDSenderStorePacket done [14:32:51]KKMCreateOFDPacket done [14:32:51]NVStorageSaveData kkm_last_timestamp [14:32:51]File name is /storage/kkm_last_timestamp [14:32:51]Write 4 bytes [14:32:51]NVStorageSaveData done [14:32:51]ExternCall_PrintAddStr [14:32:51]wPrintStart [14:32:51]Write to MH i2c: 01 00 00 02 3A 3C [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: 01 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: 01 07 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: 01 07 00 02 3A 00 00 00 00 00 FF 0F 51 [14:32:51]RasterBufferAndPrint [14:32:51]line Счет N : (1)320931 [14:32:51]line ИНН: 02508201610067 [14:32:51]line Контрольно-Кассовый Чек [14:32:51]line ПРОДАЖА [14:32:51]line ТРК (МРК, ГНК) : 11 [14:32:51]line Товар: 2710124130 [14:32:51]line Аи-92-К-5 [14:32:51]line 7.540 * 66.40 [14:32:51]line = 500.66 [14:32:51]line НДС 12% НСП 1% [14:32:51]line > о реализуемом товаре [14:32:51]line ИТОГО: 500.66 [14:32:51]line НСП 1% : 4.43 [14:32:51]line НДС 12% : 53.17 [14:32:51]line Наличными: 0.00 [14:32:51]line Безнал.: 500.66 [14:32:51]line Место: АЗС № 65 "Партнер Нефть" [14:32:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:32:51]line СНО: Общий режим [14:32:51]line Чек 122 22.06.2024 14:33 [14:32:51]line Смена: 391 ФФД: 1.0 [14:32:51]line ЗНМ: 0300000198 [14:32:51]line РНМ: 0000000000092771 [14:32:51]line Версия ККМ: 001 [14:32:51]line Платежная система: О! деньги [14:32:51]line ФМ: 0000000000875083 [14:32:51]line ФД: 112256 [14:32:51]line ФПД: 122500249518412 [14:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143315&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112256&fm=122500249518412&tin=02508201610067®Number=0000000000092771&sum=50066 [14:32:51]OFD Sender: Processing packet 112256 [packets to send 38, broken 37] [14:32:51]ProducePacketName [14:32:51]name=ofd_packets/00112256 [14:32:51]OFD Sender: To server: pG, [14:32:51]CommunicateWithHost lk.salyk.kg:30040 [14:32:51]ConnectInit lk.salyk.kg [14:32:51]written 0, free lines is 4095 [14:32:51]Connected sock=10 [14: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 35 30 38 33 0F 01 00 00 42 04 07 01 2D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AB E0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B6 01 00 35 04 06 00 6F 69 CF DB 81 4C 12 ED C3 36 4C 47 D8 45 [14:32:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 29 47 00 48 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B6 01 00 F4 03 04 00 B5 77 76 66 B6 04 01 00 00 2F 35 F3 71 86 6E 63 5B [14:32:51]CommunicateWithHost err = 0 [14:32:51]CheckOFDResponse [14:32:51]1017 (14) - 77093643461234 [14:32:51]1041 (16) - 0000000000875083 [14:32:51]1040 (4) - 112256 [14:32:51]1012 (4) - 22.06.2024 07:05 [14:32:51]1206 (1) - 0 [14:32:51]OFD Sender: Remove packet 112256 [14:32:51]ProducePacketName [14:32:51]name=ofd_packets/00112256 [14:32:51]NVStorageDeleteData [14:32:52]Write to MH i2c: 01 00 00 2C 3A 66 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: 01 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: 01 07 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: 01 07 00 2C 3A 00 00 00 00 00 E6 0C 5F [14:32:52]RasterBufferAndPrint [14:32:52]line [14:32:52]line [14:32:52]line [14:32:52]line [14:32:52]line [14:32:52]written 0, free lines is 3309 [14:32:52]MH_Cut [14:32:52]Write to MH i2c: D1 01 00 33 3A 01 3F [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: D1 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: D1 01 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: D1 01 00 33 3A 00 3E [14:32:52]Write to MH i2c: 01 00 00 34 3A 6E [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]OFD Sender: No OFD packet to send [14:32:52]*** Cut start [14:32:52]*** Partial cut [14:32:52]*** CUTSNS_PIN = 1 [14:32:52]*** CUTSNS_PIN = 0 [14:32:53]*** Brake cut motor [14:32:53]Read from MH i2c: 01 [14:32:53]MH_I2C_Read... [14:32:53]*** Stop cut motor [14:32:53]*** Cut end [14:32:53]Read from MH i2c: 01 07 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 07 00 34 3A 00 00 00 00 00 FF 0F 83 [14:32:53]process_action close_receipt done [14:32:53]requested_data is exist [14:32:53]produce_requested_data [14:32:53]requested_item fm.sn is exist - process it [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 11 00 00 [14:32:53]Write to MH i2c: E2 08 00 35 3A 80 11 00 00 00 00 00 00 E9 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 17 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 17 00 35 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [14:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:32:53]wFMCommunicate OK [14:32:53]requested_item fd.num is exist - process it [14:32:53]SAM_PROTO_GetFieldsCounters [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 13 00 00 [14:32:53]Write to MH i2c: E2 08 00 36 3A 80 13 00 00 00 00 00 00 EC [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 62 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 62 00 36 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [14:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:53]wFMCommunicate OK [14:32:53]SAM_PROTO_GetFieldsCounters done [14:32:53]requested_item shift.num is exist - process it [14:32:53]requested_item shift.opened is exist - process it [14:32:53]req_shift_opened [14:32:53]FM_GetShiftState [14:32:53]SAM_PROTO_GetShiftState [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 13 01 00 [14:32:53]Write to MH i2c: E2 08 00 37 3A 80 13 01 00 00 00 00 00 EE [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 0E 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 0E 00 37 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 23 [14:32:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:32:53]wFMCommunicate OK [14:32:53]SAM_PROTO_GetShiftState done [14:32:53]FM_GetShiftState done [14:32:53]req_shift_opened done [14:32:53]requested_item shift.open_date is exist - process it [14:32:53]req_shift_open_date [14:32:53]req_shift_open_date done [14:32:53]produce_requested_data done [14:32:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112256,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:32:53]process_action_free close_receipt [14:32:53]json_value_free [14:32:53]json_value_free done [14:32:53]process_json_proto returns [14:32:53]Send response to host [14:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112256,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:32:53]free response buf [14:32:53]execute_script done [14:32:53]execute_script returns [14:32:53]free content buf [14:32:53]Sock 7.Close socket [14:32:53]Sock 7.Thread stoped [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:45]accept exits with 9 [14:35:45]New connection [14:35:45]New thread 3066813796 created [14:35:45]Thread 3066957156 joined [14:35:45]Waiting for new connection... [14:35:45] Sock 9.Parse request [14:35:45]Sock 9.Check first char [14:35:45]Sock 9.First char is OK [14:35:45]request: POST /json_proto HTTP/1.0 [14:35:45]Method: POST [14:35:45]URL: /json_proto [14:35:45]Method is POST - this is cgi request [14:35:45]url: /json_proto [14:35:45]query_string will be loaded in cgi processing [14:35:45]execute_cgi json_proto POST (null) [14:35:45]execute_cgi path=json_proto method=POST [14:35:45]POST find Content-Length [14:35:45]Host: 172.17.59.68:8080 [14:35:45]Content-Length: 1190 [14:35:45]Content-Type: application/json [14:35:45] [14:35:45]POST finish read [14:35:45]Found Content-Length = 1190 [14:35:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320932\u000A22.06.2024 13:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889956\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:45]execute_script... [14:35:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320932\u000A22.06.2024 13:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889956\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:45]POST & json_proto [14:35:45]process_json_proto [14:35:45]json parsed OK: [14:35:45]protocol is kg_v1.0 [14:35:45]action value=print_text [14:35:45]process_action print_text [14:35:45]cmd_print_text [14:35:45]ExternCall_PrintAddStr [14:35:45]wPrintStart [14:35:45]Write to MH i2c: 01 00 00 38 3A 72 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 07 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 07 00 38 3A 00 00 00 00 00 FF 0F 87 [14:35:45]RasterBufferAndPrint [14:35:45]line *****ТОВАРНЫЙ ЧЕК***** [14:35:45]line АЗС 65 [14:35:45]line Партнер нефть [14:35:45]line 02508201610067 [14:35:45]line Кассир : Амантуров Р. [14:35:45]line Счет N : (1)320932 [14:35:45]line 22.06.2024 13:02 [14:35:45]line ПРОДАЖА [14:35:45]line ТРК (МРК, ГНК): 11 [14:35:45]line Вид ГСМ : 2710124130 [14:35:45]line Аи-92-К-5 [14:35:45]line 10.000 x 66.40 [14:35:45]line ИТОГ: 664.00 [14:35:45]line Тип оплаты: Талоны: Партнер нефть [14:35:45]line 3889956 [14:35:45]line ______________________ [14:35:45]line (подпись) [14:35:45]written 0, free lines is 4095 [14:35:46]Write to MH i2c: 01 00 00 4C 3A 86 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 4C 3A 00 00 00 00 00 11 0E AC [14:35:46]RasterBufferAndPrint [14:35:46]line [14:35:46]line [14:35:46]line [14:35:46]line [14:35:46]line [14:35:46]written 0, free lines is 3603 [14:35:46]MH_Cut [14:35:46]Write to MH i2c: D1 01 00 53 3A 01 5F [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: D1 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: D1 01 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: D1 01 00 53 3A 00 5E [14:35:46]Write to MH i2c: 01 00 00 54 3A 8E [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** Cut start [14:35:46]*** Partial cut [14:35:46]*** CUTSNS_PIN = 1 [14:35:46]*** CUTSNS_PIN = 0 [14:35:46]*** Brake cut motor [14:35:47]Read from MH i2c: 01 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: 01 07 00 [14:35:47]MH_I2C_Read... [14:35:47]*** Stop cut motor [14:35:47]*** Cut end [14:35:47]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [14:35:47]process_action print_text done [14:35:47]requested_data is exist [14:35:47]produce_requested_data [14:35:47]requested_item fm.sn is exist - process it [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 11 00 00 [14:35:47]Write to MH i2c: E2 08 00 55 3A 80 11 00 00 00 00 00 00 09 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 17 00 [14:35:47]MH_I2C_Read... [14:35:47]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 35 30 38 33 90 00 5B [14:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:35:47]wFMCommunicate OK [14:35:47]requested_item fd.num is exist - process it [14:35:47]SAM_PROTO_GetFieldsCounters [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 13 00 00 [14:35:47]Write to MH i2c: E2 08 00 56 3A 80 13 00 00 00 00 00 00 0C [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:47]Read from MH i2c: E2 62 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 62 00 56 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:47]wFMCommunicate OK [14:35:47]SAM_PROTO_GetFieldsCounters done [14:35:47]requested_item shift.num is exist - process it [14:35:47]requested_item shift.opened is exist - process it [14:35:47]req_shift_opened [14:35:47]FM_GetShiftState [14:35:47]SAM_PROTO_GetShiftState [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 13 01 00 [14:35:47]Write to MH i2c: E2 08 00 57 3A 80 13 01 00 00 00 00 00 0E [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 0E 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 0E 00 57 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 43 [14:35:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:35:47]wFMCommunicate OK [14:35:47]SAM_PROTO_GetShiftState done [14:35:47]FM_GetShiftState done [14:35:47]req_shift_opened done [14:35:47]requested_item shift.open_date is exist - process it [14:35:47]req_shift_open_date [14:35:47]req_shift_open_date done [14:35:47]produce_requested_data done [14:35:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112256,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:35:47]process_action_free print_text [14:35:47]json_value_free [14:35:47]json_value_free done [14:35:47]process_json_proto returns [14:35:47]Send response to host [14:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112256,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:35:47]free response buf [14:35:47]execute_script done [14:35:47]execute_script returns [14:35:47]free content buf [14:35:47]Sock 9.Close socket [14:35:47]Sock 9.Thread stoped [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:21]accept exits with 7 [14:36:21]New connection [14:36:21]New thread 3066957156 created [14:36:21]Thread 3066813796 joined [14:36:21]Waiting for new connection... [14:36:21] Sock 7.Parse request [14:36:21]Sock 7.Check first char [14:36:21]Sock 7.First char is OK [14:36:21]request: POST /json_proto HTTP/1.0 [14:36:21]Method: POST [14:36:21]URL: /json_proto [14:36:21]Method is POST - this is cgi request [14:36:21]url: /json_proto [14:36:21]query_string will be loaded in cgi processing [14:36:21]execute_cgi json_proto POST (null) [14:36:21]execute_cgi path=json_proto method=POST [14:36:21]POST find Content-Length [14:36:21]Host: 172.17.59.68:8080 [14:36:21]Content-Length: 677 [14:36:21]Content-Type: application/json [14:36:21] [14:36:21]POST finish read [14:36:21]Found Content-Length = 677 [14:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320933", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:21]execute_script... [14:36:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320933", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:21]POST & json_proto [14:36:21]process_json_proto [14:36:21]json parsed OK: [14:36:21]protocol is kg_v1.0 [14:36:21]action value=close_receipt [14:36:21]process_action close_receipt [14:36:21]cmd_close_receipt [14:36:21]MH_GetDate [14:36:21]Write to MH i2c: F0 00 00 58 3A 81 [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: F0 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: F0 09 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: F0 09 00 58 3A 00 7F E1 76 66 BC EC 60 65 33 [14:36:21]GetLastDocTimeStamp 1719066795 [14:36:21]current date 1719067007 [14:36:21]FM_GetShiftState [14:36:21]SAM_PROTO_GetShiftState [14:36:21]wFMCommunicate request_size=4 [14:36:21]MH_SAM_APDU [14:36:21]CAPDU: 80 13 01 00 [14:36:21]Write to MH i2c: E2 08 00 59 3A 80 13 01 00 00 00 00 00 10 [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:21]Read from MH i2c: E2 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 0E 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 0E 00 59 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 45 [14:36:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:36:21]wFMCommunicate OK [14:36:21]SAM_PROTO_GetShiftState done [14:36:21]FM_GetShiftState done [14:36:21]opened in 1719020067 [14:36:21]opened+sec_in_day 1719106467 [14:36:21]quantity*price = 60025 [14:36:21]sum+1 = 60027 [14:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 123 22.06.2024 14:36 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112257 ФПД: 66373182056946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143647&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112257&fm=66373182056946&tin=02508201610067®Number=0000000000092771&sum=60000 [14:36:22]StoreToDocumentArchive [14:36:22]shift 391 fd 112257 [14:36:22]save to /storage/0391/doc_00112257 [14:36:22]save last doc name /storage/0391/doc_00112257 to /storage/kkm_last_doc_name [14:36:22]save OK [14:36:22]Clear old archive folders... [14:36:22]OFD Sender: No OFD packet to send [14:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:22]tlvbuf is 0119A380 [14:36:22]SAM_PROTO_ClearQueue [14:36:22]wFMCommunicate request_size=4 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 09 00 00 [14:36:22]Write to MH i2c: E2 08 00 66 3A 80 09 00 00 00 00 00 00 12 [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 66 3A 00 90 00 14 [14:36:22]RAPDU: 90 00 [14:36:22]wFMCommunicate OK [14:36:22]SAM_PROTO_ClearQueue done [14:36:22]KKMCreateOFDPacket [14:36:22]OFDProtocolAddRootSTLVToBuf [14:36:22]FM_MakeSignedData [14:36:22]FM_MakeSignedData [14:36:22]SAM_PROTO_SignData [14:36:22]wFMCommunicate request_size=4 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 0D 01 02 [14:36:22]Write to MH i2c: E2 08 00 67 3A 80 0D 01 02 00 00 00 00 1A [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 67 3A 00 90 00 15 [14:36:22]RAPDU: 90 00 [14:36:22]wFMCommunicate OK [14:36:22]wFMCommunicate request_size=255 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F E1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B6 01 00 35 04 06 00 3C [14:36:22]Write to MH i2c: E2 02 01 68 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F E1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B6 01 00 35 04 06 00 3C 00 00 5E [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [14:36:22]RAPDU: 90 00 [14:36:22]wFMCommunicate OK [14:36:22]wFMCommunicate request_size=10 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 0D 02 02 05 5D B5 F0 69 F2 [14:36:22]Write to MH i2c: E2 0D 00 69 3A 80 0D 02 02 05 00 5D B5 F0 69 F2 00 00 84 [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 69 3A 00 90 00 17 [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 03 02 [14:36:23]Write to MH i2c: E2 08 00 6A 3A 80 0D 03 02 00 00 00 00 1F [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 0B 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 0B 00 6A 3A 00 37 AA 25 AE FE 40 A8 44 90 00 FE [14:36:23]RAPDU: 37 AA 25 AE FE 40 A8 44 90 00 [14:36:23]wFMCommunicate OK [14:36:23]SAM_PROTO_SignData done [14:36:23]FM_MakeSignedData done [14:36:23]CreateOFDProtocolMessage [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 11 00 00 [14:36:23]Write to MH i2c: E2 08 00 6B 3A 80 11 00 00 00 00 00 00 1F [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 17 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 17 00 6B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [14:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:36:23]wFMCommunicate OK [14:36:23]CreateOFDProtocolMessage done [14:36:23]OFDSenderStorePacket 112257 [14:36:23]StoreOFDPacket docnum=112257 [14:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 87 07 01 8E 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F E1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B6 01 00 35 04 06 00 3C 5D B5 F0 69 F2 37 AA 25 AE FE 40 A8 44 [14:36:23]CheckFolder [14:36:23]dirname=/storage/ofd_packets [14:36:23]CheckFolder done [14:36:23]ProducePacketName [14:36:23]name=ofd_packets/00112257 [14:36:23]NVStorageSaveData ofd_packets/00112257 [14:36:23]File name is /storage/ofd_packets/00112257 [14:36:23]Write 301 bytes [14:36:23]NVStorageSaveData done [14:36:23]OFDSenderStorePacket done [14:36:23]KKMCreateOFDPacket done [14:36:23]NVStorageSaveData kkm_last_timestamp [14:36:23]File name is /storage/kkm_last_timestamp [14:36:23]Write 4 bytes [14:36:23]NVStorageSaveData done [14:36:23]ExternCall_PrintAddStr [14:36:23]wPrintStart [14:36:23]Write to MH i2c: 01 00 00 6C 3A A6 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 07 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [14:36:23]RasterBufferAndPrint [14:36:23]line Счет N : (1)320933 [14:36:23]line ИНН: 02508201610067 [14:36:23]line Контрольно-Кассовый Чек [14:36:23]line ПРОДАЖА [14:36:23]line ТРК (МРК, ГНК) : 11 [14:36:23]line Товар: 2710124130 [14:36:23]line Аи-92-К-5 [14:36:23]line 9.040 * 66.40 [14:36:23]line = 600.26 [14:36:23]line НДС 12% НСП 1% [14:36:23]line > о реализуемом товаре [14:36:23]line ОКРУГЛЕНИЕ: -0.26 [14:36:23]line ИТОГО: 600.00 [14:36:23]line Внесено: 600.00 [14:36:23]line СДАЧА: 0.00 [14:36:23]line НСП 1% : 5.31 [14:36:23]line НДС 12% : 63.74 [14:36:23]line Наличными: 600.00 [14:36:23]line Безнал.: 0.00 [14:36:23]line Место: АЗС № 65 "Партнер Нефть" [14:36:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:36:23]line СНО: Общий режим [14:36:23]line Чек 123 22.06.2024 14:36 [14:36:23]line Смена: 391 ФФД: 1.0 [14:36:23]line ЗНМ: 0300000198 [14:36:23]line РНМ: 0000000000092771 [14:36:23]line Версия ККМ: 001 [14:36:23]line ФМ: 0000000000875083 [14:36:23]line ФД: 112257 [14:36:23]line ФПД: 66373182056946 [14:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143647&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112257&fm=66373182056946&tin=02508201610067®Number=0000000000092771&sum=60000 [14:36:23]OFD Sender: Processing packet 112257 [packets to send 38, broken 37] [14:36:23]ProducePacketName [14:36:23]name=ofd_packets/00112257 [14:36:23]OFD Sender: To server: pG, [14:36:23]CommunicateWithHost lk.salyk.kg:30040 [14:36:23]ConnectInit lk.salyk.kg [14:36:23]written 0, free lines is 4095 [14:36:23]Connected sock=10 [14:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 87 07 01 8E 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F E1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B6 01 00 35 04 06 00 3C 5D B5 F0 69 F2 37 AA 25 AE FE 40 A8 44 [14:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B6 41 47 00 7E 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B6 01 00 F4 03 04 00 89 78 76 66 B6 04 01 00 00 64 4A DF 15 35 3C 57 81 [14:36:23]CommunicateWithHost err = 0 [14:36:23]CheckOFDResponse [14:36:23]1017 (14) - 77093643461234 [14:36:23]1041 (16) - 0000000000875083 [14:36:23]1040 (4) - 112257 [14:36:23]1012 (4) - 22.06.2024 07:08 [14:36:23]1206 (1) - 0 [14:36:23]OFD Sender: Remove packet 112257 [14:36:23]ProducePacketName [14:36:23]name=ofd_packets/00112257 [14:36:23]NVStorageDeleteData [14:36:23]Write to MH i2c: 01 00 00 97 3A D1 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 07 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 07 00 97 3A 00 00 00 00 00 CD 0C B1 [14:36:23]RasterBufferAndPrint [14:36:23]line [14:36:23]line [14:36:23]line [14:36:23]line [14:36:23]line [14:36:23]written 0, free lines is 3283 [14:36:23]MH_Cut [14:36:23]Write to MH i2c: D1 01 00 9E 3A 01 AA [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: D1 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: D1 01 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: D1 01 00 9E 3A 00 A9 [14:36:23]Write to MH i2c: 01 00 00 9F 3A D9 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:24]OFD Sender: No OFD packet to send [14:36:24]*** Cut start [14:36:24]*** Partial cut [14:36:24]*** CUTSNS_PIN = 1 [14:36:24]*** CUTSNS_PIN = 0 [14:36:24]*** Brake cut motor [14:36:25]Read from MH i2c: 01 [14:36:25]MH_I2C_Read... [14:36:25]*** Stop cut motor [14:36:25]*** Cut end [14:36:25]Read from MH i2c: 01 07 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: 01 07 00 9F 3A 00 00 00 00 00 FF 0F EE [14:36:25]process_action close_receipt done [14:36:25]requested_data is exist [14:36:25]produce_requested_data [14:36:25]requested_item fm.sn is exist - process it [14:36:25]wFMCommunicate request_size=4 [14:36:25]MH_SAM_APDU [14:36:25]CAPDU: 80 11 00 00 [14:36:25]Write to MH i2c: E2 08 00 A0 3A 80 11 00 00 00 00 00 00 54 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:25]Read from MH i2c: E2 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 17 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 17 00 A0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [14:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:36:25]wFMCommunicate OK [14:36:25]requested_item fd.num is exist - process it [14:36:25]SAM_PROTO_GetFieldsCounters [14:36:25]wFMCommunicate request_size=4 [14:36:25]MH_SAM_APDU [14:36:25]CAPDU: 80 13 00 00 [14:36:25]Write to MH i2c: E2 08 00 A1 3A 80 13 00 00 00 00 00 00 57 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:25]Read from MH i2c: E2 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 62 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 62 00 A1 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [14:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:25]wFMCommunicate OK [14:36:25]SAM_PROTO_GetFieldsCounters done [14:36:25]requested_item shift.num is exist - process it [14:36:25]requested_item shift.opened is exist - process it [14:36:25]req_shift_opened [14:36:25]FM_GetShiftState [14:36:25]SAM_PROTO_GetShiftState [14:36:25]wFMCommunicate request_size=4 [14:36:25]MH_SAM_APDU [14:36:25]CAPDU: 80 13 01 00 [14:36:25]Write to MH i2c: E2 08 00 A2 3A 80 13 01 00 00 00 00 00 59 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:25]Read from MH i2c: E2 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 0E 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 0E 00 A2 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8E [14:36:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:36:25]wFMCommunicate OK [14:36:25]SAM_PROTO_GetShiftState done [14:36:25]FM_GetShiftState done [14:36:25]req_shift_opened done [14:36:25]requested_item shift.open_date is exist - process it [14:36:25]req_shift_open_date [14:36:25]req_shift_open_date done [14:36:25]produce_requested_data done [14:36:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112257,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:36:25]process_action_free close_receipt [14:36:25]json_value_free [14:36:25]json_value_free done [14:36:25]process_json_proto returns [14:36:25]Send response to host [14:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112257,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:36:25]free response buf [14:36:25]execute_script done [14:36:25]execute_script returns [14:36:25]free content buf [14:36:25]Sock 7.Close socket [14:36:25]Sock 7.Thread stoped [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:34]accept exits with 9 [14:38:34]New connection [14:38:34]New thread 3066813796 created [14:38:34]Thread 3066957156 joined [14:38:34]Waiting for new connection... [14:38:34] Sock 9.Parse request [14:38:34]Sock 9.Check first char [14:38:34]Sock 9.First char is OK [14:38:34]request: POST /json_proto HTTP/1.0 [14:38:34]Method: POST [14:38:34]URL: /json_proto [14:38:34]Method is POST - this is cgi request [14:38:34]url: /json_proto [14:38:34]query_string will be loaded in cgi processing [14:38:34]execute_cgi json_proto POST (null) [14:38:34]execute_cgi path=json_proto method=POST [14:38:34]POST find Content-Length [14:38:34]Host: 172.17.59.68:8080 [14:38:34]Content-Length: 677 [14:38:34]Content-Type: application/json [14:38:34] [14:38:34]POST finish read [14:38:34]Found Content-Length = 677 [14:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320934", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:34]execute_script... [14:38:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320934", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:34]POST & json_proto [14:38:34]process_json_proto [14:38:34]json parsed OK: [14:38:34]protocol is kg_v1.0 [14:38:34]action value=close_receipt [14:38:34]process_action close_receipt [14:38:34]cmd_close_receipt [14:38:34]MH_GetDate [14:38:34]Write to MH i2c: F0 00 00 A3 3A CC [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: F0 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: F0 09 00 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: F0 09 00 A3 3A 00 04 E2 76 66 BC EC 60 65 04 [14:38:34]GetLastDocTimeStamp 1719067007 [14:38:34]current date 1719067140 [14:38:34]FM_GetShiftState [14:38:34]SAM_PROTO_GetShiftState [14:38:34]wFMCommunicate request_size=4 [14:38:34]MH_SAM_APDU [14:38:34]CAPDU: 80 13 01 00 [14:38:34]Write to MH i2c: E2 08 00 A4 3A 80 13 01 00 00 00 00 00 5B [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 0E 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 0E 00 A4 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 90 [14:38:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:38:35]wFMCommunicate OK [14:38:35]SAM_PROTO_GetShiftState done [14:38:35]FM_GetShiftState done [14:38:35]opened in 1719020067 [14:38:35]opened+sec_in_day 1719106467 [14:38:35]quantity*price = 60025 [14:38:35]sum+1 = 60027 [14:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 124 22.06.2024 14:39 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112258 ФПД: 50530933664428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112258&fm=50530933664428&tin=02508201610067®Number=0000000000092771&sum=60000 [14:38:36]StoreToDocumentArchive [14:38:36]shift 391 fd 112258 [14:38:36]save to /storage/0391/doc_00112258 [14:38:36]save last doc name /storage/0391/doc_00112258 to /storage/kkm_last_doc_name [14:38:36]save OK [14:38:36]Clear old archive folders... [14:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:36]tlvbuf is 01201570 [14:38:36]SAM_PROTO_ClearQueue [14:38:36]wFMCommunicate request_size=4 [14:38:36]MH_SAM_APDU [14:38:36]CAPDU: 80 09 00 00 [14:38:36]Write to MH i2c: E2 08 00 B1 3A 80 09 00 00 00 00 00 00 5D [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:36]Read from MH i2c: E2 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 B1 3A 00 90 00 5F [14:38:36]RAPDU: 90 00 [14:38:36]wFMCommunicate OK [14:38:36]SAM_PROTO_ClearQueue done [14:38:36]KKMCreateOFDPacket [14:38:36]OFDProtocolAddRootSTLVToBuf [14:38:36]FM_MakeSignedData [14:38:36]FM_MakeSignedData [14:38:36]SAM_PROTO_SignData [14:38:36]wFMCommunicate request_size=4 [14:38:36]MH_SAM_APDU [14:38:36]CAPDU: 80 0D 01 02 [14:38:36]Write to MH i2c: E2 08 00 B2 3A 80 0D 01 02 00 00 00 00 65 [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:36]Read from MH i2c: E2 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 B2 3A 00 90 00 60 [14:38:36]RAPDU: 90 00 [14:38:36]wFMCommunicate OK [14:38:36]wFMCommunicate request_size=255 [14:38:36]MH_SAM_APDU [14:38:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 E2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B6 01 00 35 04 06 00 2D [14:38:36]Write to MH i2c: E2 02 01 B3 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 E2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B6 01 00 35 04 06 00 2D 00 00 22 [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:36]Read from MH i2c: E2 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 B3 3A 00 90 00 61 [14:38:36]RAPDU: 90 00 [14:38:36]wFMCommunicate OK [14:38:36]wFMCommunicate request_size=10 [14:38:36]MH_SAM_APDU [14:38:36]CAPDU: 80 0D 02 02 05 F5 26 59 EA AC [14:38:36]Write to MH i2c: E2 0D 00 B4 3A 80 0D 02 02 05 00 F5 26 59 EA AC 00 00 7C [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:36]Read from MH i2c: E2 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 03 00 B4 3A 00 90 00 62 [14:38:36]RAPDU: 90 00 [14:38:36]wFMCommunicate OK [14:38:36]wFMCommunicate request_size=4 [14:38:36]MH_SAM_APDU [14:38:36]CAPDU: 80 0D 03 02 [14:38:36]Write to MH i2c: E2 08 00 B5 3A 80 0D 03 02 00 00 00 00 6A [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:36]Read from MH i2c: E2 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 0B 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 0B 00 B5 3A 00 44 92 61 0A 6A 2E 88 8E 90 00 5A [14:38:36]RAPDU: 44 92 61 0A 6A 2E 88 8E 90 00 [14:38:36]wFMCommunicate OK [14:38:36]SAM_PROTO_SignData done [14:38:36]FM_MakeSignedData done [14:38:36]CreateOFDProtocolMessage [14:38:36]wFMCommunicate request_size=4 [14:38:36]MH_SAM_APDU [14:38:36]CAPDU: 80 11 00 00 [14:38:36]Write to MH i2c: E2 08 00 B6 3A 80 11 00 00 00 00 00 00 6A [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:36]Read from MH i2c: E2 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 17 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: E2 17 00 B6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [14:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:36]wFMCommunicate OK [14:38:36]CreateOFDProtocolMessage done [14:38:36]OFDSenderStorePacket 112258 [14:38:36]StoreOFDPacket docnum=112258 [14:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC B7 07 01 54 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 E2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B6 01 00 35 04 06 00 2D F5 26 59 EA AC 44 92 61 0A 6A 2E 88 8E [14:38:36]CheckFolder [14:38:36]dirname=/storage/ofd_packets [14:38:36]CheckFolder done [14:38:36]ProducePacketName [14:38:36]name=ofd_packets/00112258 [14:38:36]NVStorageSaveData ofd_packets/00112258 [14:38:36]File name is /storage/ofd_packets/00112258 [14:38:36]Write 301 bytes [14:38:36]NVStorageSaveData done [14:38:36]OFDSenderStorePacket done [14:38:36]KKMCreateOFDPacket done [14:38:36]NVStorageSaveData kkm_last_timestamp [14:38:36]File name is /storage/kkm_last_timestamp [14:38:36]Write 4 bytes [14:38:36]NVStorageSaveData done [14:38:36]ExternCall_PrintAddStr [14:38:36]wPrintStart [14:38:36]Write to MH i2c: 01 00 00 B7 3A F1 [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: 01 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: 01 07 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: 01 07 00 B7 3A 00 00 00 00 00 FF 0F 06 [14:38:36]RasterBufferAndPrint [14:38:36]line Счет N : (1)320934 [14:38:36]line ИНН: 02508201610067 [14:38:36]line Контрольно-Кассовый Чек [14:38:36]line ПРОДАЖА [14:38:36]line ТРК (МРК, ГНК) : 11 [14:38:36]line Товар: 2710124130 [14:38:36]line Аи-92-К-5 [14:38:36]line 9.040 * 66.40 [14:38:36]line = 600.26 [14:38:36]line НДС 12% НСП 1% [14:38:36]line > о реализуемом товаре [14:38:36]line ОКРУГЛЕНИЕ: -0.26 [14:38:36]line ИТОГО: 600.00 [14:38:36]line Внесено: 600.00 [14:38:36]line СДАЧА: 0.00 [14:38:36]line НСП 1% : 5.31 [14:38:36]line НДС 12% : 63.74 [14:38:36]line Наличными: 600.00 [14:38:36]line Безнал.: 0.00 [14:38:36]line Место: АЗС № 65 "Партнер Нефть" [14:38:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:38:36]line СНО: Общий режим [14:38:36]line Чек 124 22.06.2024 14:39 [14:38:36]line Смена: 391 ФФД: 1.0 [14:38:36]line ЗНМ: 0300000198 [14:38:36]line РНМ: 0000000000092771 [14:38:36]line Версия ККМ: 001 [14:38:36]line ФМ: 0000000000875083 [14:38:36]line ФД: 112258 [14:38:36]line ФПД: 50530933664428 [14:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112258&fm=50530933664428&tin=02508201610067®Number=0000000000092771&sum=60000 [14:38:37]OFD Sender: Processing packet 112258 [packets to send 38, broken 37] [14:38:37]ProducePacketName [14:38:37]name=ofd_packets/00112258 [14:38:37]OFD Sender: To server: pG, [14:38:37]CommunicateWithHost lk.salyk.kg:30040 [14:38:37]ConnectInit lk.salyk.kg [14:38:37]written 0, free lines is 4095 [14:38:37]Connected sock=11 [14:38:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC B7 07 01 54 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 04 E2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B6 01 00 35 04 06 00 2D F5 26 59 EA AC 44 92 61 0A 6A 2E 88 8E [14:38:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DA A0 47 00 BF 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 35 30 38 33 10 04 04 00 82 B6 01 00 F4 03 04 00 0E 79 76 66 B6 04 01 00 00 71 09 B2 68 C4 52 12 B4 [14:38:37]CommunicateWithHost err = 0 [14:38:37]CheckOFDResponse [14:38:37]1017 (14) - 77093643461234 [14:38:37]1041 (16) - 0000000000875083 [14:38:37]1040 (4) - 112258 [14:38:37]1012 (4) - 22.06.2024 07:11 [14:38:37]1206 (1) - 0 [14:38:37]OFD Sender: Remove packet 112258 [14:38:37]ProducePacketName [14:38:37]name=ofd_packets/00112258 [14:38:37]NVStorageDeleteData [14:38:37]Write to MH i2c: 01 00 00 E2 3A 1C [14:38:37]Write i2c OK [14:38:37]MH_I2C_Read... [14:38:37]Read from MH i2c: 01 [14:38:37]MH_I2C_Read... [14:38:37]Read from MH i2c: 01 07 00 [14:38:37]MH_I2C_Read... [14:38:37]Read from MH i2c: 01 07 00 E2 3A 00 00 00 00 00 D8 0C 07 [14:38:37]RasterBufferAndPrint [14:38:37]line [14:38:37]line [14:38:37]line [14:38:37]line [14:38:37]line [14:38:37]written 0, free lines is 3296 [14:38:37]MH_Cut [14:38:37]Write to MH i2c: D1 01 00 E9 3A 01 F5 [14:38:37]Write i2c OK [14:38:37]MH_I2C_Read... [14:38:37]Read from MH i2c: D1 [14:38:37]MH_I2C_Read... [14:38:37]Read from MH i2c: D1 01 00 [14:38:37]MH_I2C_Read... [14:38:37]Read from MH i2c: D1 01 00 E9 3A 00 F4 [14:38:37]Write to MH i2c: 01 00 00 EA 3A 24 [14:38:37]Write i2c OK [14:38:37]MH_I2C_Read... [14:38:37]OFD Sender: No OFD packet to send [14:38:38]*** Cut start [14:38:38]*** Partial cut [14:38:38]*** CUTSNS_PIN = 1 [14:38:38]*** CUTSNS_PIN = 0 [14:38:38]*** Brake cut motor [14:38:38]Read from MH i2c: 01 [14:38:38]MH_I2C_Read... [14:38:38]*** Stop cut motor [14:38:38]*** Cut end [14:38:38]Read from MH i2c: 01 07 00 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: 01 07 00 EA 3A 00 00 00 00 00 FF 0F 39 [14:38:38]process_action close_receipt done [14:38:38]requested_data is exist [14:38:38]produce_requested_data [14:38:38]requested_item fm.sn is exist - process it [14:38:38]wFMCommunicate request_size=4 [14:38:38]MH_SAM_APDU [14:38:38]CAPDU: 80 11 00 00 [14:38:38]Write to MH i2c: E2 08 00 EB 3A 80 11 00 00 00 00 00 00 9F [14:38:38]Write i2c OK [14:38:38]MH_I2C_Read... [14:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:38]Read from MH i2c: E2 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 17 00 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 17 00 EB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [14:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:38]wFMCommunicate OK [14:38:38]requested_item fd.num is exist - process it [14:38:38]SAM_PROTO_GetFieldsCounters [14:38:38]wFMCommunicate request_size=4 [14:38:38]MH_SAM_APDU [14:38:38]CAPDU: 80 13 00 00 [14:38:38]Write to MH i2c: E2 08 00 EC 3A 80 13 00 00 00 00 00 00 A2 [14:38:38]Write i2c OK [14:38:38]MH_I2C_Read... [14:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:39]Read from MH i2c: E2 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: E2 62 00 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: E2 62 00 EC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [14:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:39]wFMCommunicate OK [14:38:39]SAM_PROTO_GetFieldsCounters done [14:38:39]requested_item shift.num is exist - process it [14:38:39]requested_item shift.opened is exist - process it [14:38:39]req_shift_opened [14:38:39]FM_GetShiftState [14:38:39]SAM_PROTO_GetShiftState [14:38:39]wFMCommunicate request_size=4 [14:38:39]MH_SAM_APDU [14:38:39]CAPDU: 80 13 01 00 [14:38:39]Write to MH i2c: E2 08 00 ED 3A 80 13 01 00 00 00 00 00 A4 [14:38:39]Write i2c OK [14:38:39]MH_I2C_Read... [14:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:39]Read from MH i2c: E2 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: E2 0E 00 [14:38:39]MH_I2C_Read... [14:38:39]Read from MH i2c: E2 0E 00 ED 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D9 [14:38:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:38:39]wFMCommunicate OK [14:38:39]SAM_PROTO_GetShiftState done [14:38:39]FM_GetShiftState done [14:38:39]req_shift_opened done [14:38:39]requested_item shift.open_date is exist - process it [14:38:39]req_shift_open_date [14:38:39]req_shift_open_date done [14:38:39]produce_requested_data done [14:38:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112258,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:38:39]process_action_free close_receipt [14:38:39]json_value_free [14:38:39]json_value_free done [14:38:39]process_json_proto returns [14:38:39]Send response to host [14:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112258,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:38:39]free response buf [14:38:39]execute_script done [14:38:39]execute_script returns [14:38:39]free content buf [14:38:39]Sock 9.Close socket [14:38:39]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:46:59]accept exits with 7 [14:46:59]New connection [14:46:59]New thread 3066957156 created [14:46:59]Thread 3066813796 joined [14:46:59]Waiting for new connection... [14:46:59] Sock 7.Parse request [14:46:59]Sock 7.Check first char [14:46:59]Sock 7.First char is OK [14:46:59]request: POST /json_proto HTTP/1.0 [14:46:59]Method: POST [14:46:59]URL: /json_proto [14:46:59]Method is POST - this is cgi request [14:46:59]url: /json_proto [14:46:59]query_string will be loaded in cgi processing [14:46:59]execute_cgi json_proto POST (null) [14:46:59]execute_cgi path=json_proto method=POST [14:46:59]POST find Content-Length [14:46:59]Host: 172.17.59.68:8080 [14:46:59]Content-Length: 682 [14:46:59]Content-Type: application/json [14:46:59] [14:46:59]POST finish read [14:46:59]Found Content-Length = 682 [14:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320935", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:59]execute_script... [14:46: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)320935", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:59]POST & json_proto [14:46:59]process_json_proto [14:46:59]json parsed OK: [14:46:59]protocol is kg_v1.0 [14:46:59]action value=close_receipt [14:46:59]process_action close_receipt [14:46:59]cmd_close_receipt [14:46:59]MH_GetDate [14:46:59]Write to MH i2c: F0 00 00 EE 3A 17 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: F0 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: F0 09 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: F0 09 00 EE 3A 00 FD E3 76 66 BC EC 60 65 49 [14:46:59]GetLastDocTimeStamp 1719067140 [14:46:59]current date 1719067645 [14:46:59]FM_GetShiftState [14:46:59]SAM_PROTO_GetShiftState [14:46:59]wFMCommunicate request_size=4 [14:46:59]MH_SAM_APDU [14:46:59]CAPDU: 80 13 01 00 [14:46:59]Write to MH i2c: E2 08 00 EF 3A 80 13 01 00 00 00 00 00 A6 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 EF 3A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DB [14:47:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetShiftState done [14:47:00]FM_GetShiftState done [14:47:00]opened in 1719020067 [14:47:00]opened+sec_in_day 1719106467 [14:47:00]quantity*price = 100064 [14:47:00]sum+1 = 100066 [14:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 125 22.06.2024 14:47 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112259 ФПД: 39570571850805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144726&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112259&fm=39570571850805&tin=02508201610067®Number=0000000000092771&sum=100000 [14:47:01]StoreToDocumentArchive [14:47:01]shift 391 fd 112259 [14:47:01]save to /storage/0391/doc_00112259 [14:47:01]save last doc name /storage/0391/doc_00112259 to /storage/kkm_last_doc_name [14:47:01]save OK [14:47:01]Clear old archive folders... [14:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:01]tlvbuf is 011F16D0 [14:47:01]SAM_PROTO_ClearQueue [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 09 00 00 [14:47:01]Write to MH i2c: E2 08 00 FC 3A 80 09 00 00 00 00 00 00 A8 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 FC 3A 00 90 00 AA [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]SAM_PROTO_ClearQueue done [14:47:01]KKMCreateOFDPacket [14:47:01]OFDProtocolAddRootSTLVToBuf [14:47:01]FM_MakeSignedData [14:47:01]FM_MakeSignedData [14:47:01]SAM_PROTO_SignData [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 01 02 [14:47:01]Write to MH i2c: E2 08 00 FD 3A 80 0D 01 02 00 00 00 00 B0 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 FD 3A 00 90 00 AB [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=255 [14:47:01]MH_SAM_APDU [14:47: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FE E3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B6 01 00 35 04 06 00 23 [14:47:01]Write to MH i2c: E2 02 01 FE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FE E3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B6 01 00 35 04 06 00 23 00 00 D3 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 FE 3A 00 90 00 AC [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=10 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 02 02 05 FD 3D E0 F4 35 [14:47:01]Write to MH i2c: E2 0D 00 FF 3A 80 0D 02 02 05 00 FD 3D E0 F4 35 00 00 00 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 FF 3A 00 90 00 AD [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 03 02 [14:47:01]Write to MH i2c: E2 08 00 00 3B 80 0D 03 02 00 00 00 00 B6 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 0B 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 0B 00 00 3B 00 7B DC 44 F1 FF E3 D1 CF 90 00 C5 [14:47:01]RAPDU: 7B DC 44 F1 FF E3 D1 CF 90 00 [14:47:01]wFMCommunicate OK [14:47:01]SAM_PROTO_SignData done [14:47:01]FM_MakeSignedData done [14:47:01]CreateOFDProtocolMessage [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 11 00 00 [14:47:01]Write to MH i2c: E2 08 00 01 3B 80 11 00 00 00 00 00 00 B6 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 17 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 17 00 01 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [14:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:01]wFMCommunicate OK [14:47:01]CreateOFDProtocolMessage done [14:47:01]OFDSenderStorePacket 112259 [14:47:01]StoreOFDPacket docnum=112259 [14:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C CD 07 01 B1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FE E3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B6 01 00 35 04 06 00 23 FD 3D E0 F4 35 7B DC 44 F1 FF E3 D1 CF [14:47:01]CheckFolder [14:47:01]dirname=/storage/ofd_packets [14:47:01]CheckFolder done [14:47:01]ProducePacketName [14:47:01]name=ofd_packets/00112259 [14:47:01]NVStorageSaveData ofd_packets/00112259 [14:47:01]File name is /storage/ofd_packets/00112259 [14:47:01]Write 301 bytes [14:47:01]NVStorageSaveData done [14:47:01]OFDSenderStorePacket done [14:47:01]KKMCreateOFDPacket done [14:47:01]NVStorageSaveData kkm_last_timestamp [14:47:01]File name is /storage/kkm_last_timestamp [14:47:01]Write 4 bytes [14:47:01]NVStorageSaveData done [14:47:01]ExternCall_PrintAddStr [14:47:01]wPrintStart [14:47:01]Write to MH i2c: 01 00 00 02 3B 3D [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 07 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 07 00 02 3B 00 00 00 00 00 FF 0F 52 [14:47:01]RasterBufferAndPrint [14:47:01]line Счет N : (1)320935 [14:47:01]line ИНН: 02508201610067 [14:47:01]line Контрольно-Кассовый Чек [14:47:01]line ПРОДАЖА [14:47:01]line ТРК (МРК, ГНК) : 11 [14:47:01]line Товар: 2710124130 [14:47:01]line Аи-92-К-5 [14:47:01]line 15.070 * 66.40 [14:47:01]line = 1000.65 [14:47:01]line НДС 12% НСП 1% [14:47:01]line > о реализуемом товаре [14:47:01]line ОКРУГЛЕНИЕ: -0.65 [14:47:01]line ИТОГО: 1000.00 [14:47:01]line Внесено: 1000.00 [14:47:01]line СДАЧА: 0.00 [14:47:01]line НСП 1% : 8.85 [14:47:01]line НДС 12% : 106.26 [14:47:01]line Наличными: 1000.00 [14:47:01]line Безнал.: 0.00 [14:47:01]line Место: АЗС № 65 "Партнер Нефть" [14:47:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:47:01]line СНО: Общий режим [14:47:01]line Чек 125 22.06.2024 14:47 [14:47:01]line Смена: 391 ФФД: 1.0 [14:47:01]line ЗНМ: 0300000198 [14:47:01]line РНМ: 0000000000092771 [14:47:01]line Версия ККМ: 001 [14:47:01]line ФМ: 0000000000875083 [14:47:01]line ФД: 112259 [14:47:01]line ФПД: 39570571850805 [14:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144726&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112259&fm=39570571850805&tin=02508201610067®Number=0000000000092771&sum=100000 [14:47:01]OFD Sender: Processing packet 112259 [packets to send 38, broken 37] [14:47:01]ProducePacketName [14:47:01]name=ofd_packets/00112259 [14:47:01]OFD Sender: To server: pG, [14:47:01]CommunicateWithHost lk.salyk.kg:30040 [14:47:01]ConnectInit lk.salyk.kg [14:47:01]written 0, free lines is 4095 [14:47:02]Connected sock=10 [14:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C CD 07 01 B1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FE E3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B6 01 00 35 04 06 00 23 FD 3D E0 F4 35 7B DC 44 F1 FF E3 D1 CF [14:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 20 47 00 65 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B6 01 00 F4 03 04 00 07 7B 76 66 B6 04 01 00 00 31 7F E5 AC 83 8C 7B A9 [14:47:02]CommunicateWithHost err = 0 [14:47:02]CheckOFDResponse [14:47:02]1017 (14) - 77093643461234 [14:47:02]1041 (16) - 0000000000875083 [14:47:02]1040 (4) - 112259 [14:47:02]1012 (4) - 22.06.2024 07:19 [14:47:02]1206 (1) - 0 [14:47:02]OFD Sender: Remove packet 112259 [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00112259 [14:47:02]NVStorageDeleteData [14:47:02]Write to MH i2c: 01 00 00 2D 3B 68 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 2D 3B 00 00 00 00 00 DA 0C 55 [14:47:02]RasterBufferAndPrint [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]written 0, free lines is 3298 [14:47:02]MH_Cut [14:47:02]Write to MH i2c: D1 01 00 34 3B 01 41 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 01 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 01 00 34 3B 00 40 [14:47:02]Write to MH i2c: 01 00 00 35 3B 70 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]OFD Sender: No OFD packet to send [14:47:03]*** Cut start [14:47:03]*** Partial cut [14:47:03]*** CUTSNS_PIN = 1 [14:47:03]*** CUTSNS_PIN = 0 [14:47:03]*** Brake cut motor [14:47:03]Read from MH i2c: 01 [14:47:03]MH_I2C_Read... [14:47:03]*** Stop cut motor [14:47:03]*** Cut end [14:47:03]Read from MH i2c: 01 07 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 07 00 35 3B 00 00 00 00 00 FF 0F 85 [14:47:03]process_action close_receipt done [14:47:03]requested_data is exist [14:47:03]produce_requested_data [14:47:03]requested_item fm.sn is exist - process it [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 11 00 00 [14:47:03]Write to MH i2c: E2 08 00 36 3B 80 11 00 00 00 00 00 00 EB [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 36 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [14:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:03]wFMCommunicate OK [14:47:03]requested_item fd.num is exist - process it [14:47:03]SAM_PROTO_GetFieldsCounters [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 00 00 [14:47:03]Write to MH i2c: E2 08 00 37 3B 80 13 00 00 00 00 00 00 EE [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 62 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 62 00 37 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_GetFieldsCounters done [14:47:03]requested_item shift.num is exist - process it [14:47:03]requested_item shift.opened is exist - process it [14:47:03]req_shift_opened [14:47:03]FM_GetShiftState [14:47:03]SAM_PROTO_GetShiftState [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 01 00 [14:47:03]Write to MH i2c: E2 08 00 38 3B 80 13 01 00 00 00 00 00 F0 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 0E 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 0E 00 38 3B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 25 [14:47:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:47:04]wFMCommunicate OK [14:47:04]SAM_PROTO_GetShiftState done [14:47:04]FM_GetShiftState done [14:47:04]req_shift_opened done [14:47:04]requested_item shift.open_date is exist - process it [14:47:04]req_shift_open_date [14:47:04]req_shift_open_date done [14:47:04]produce_requested_data done [14:47:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112259,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:47:04]process_action_free close_receipt [14:47:04]json_value_free [14:47:04]json_value_free done [14:47:04]process_json_proto returns [14:47:04]Send response to host [14:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112259,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:47:04]free response buf [14:47:04]execute_script done [14:47:04]execute_script returns [14:47:04]free content buf [14:47:04]Sock 7.Close socket [14:47:04]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:52:59]accept exits with 9 [14:52:59]New connection [14:52:59]New thread 3066813796 created [14:52:59]Thread 3066957156 joined [14:52:59]Waiting for new connection... [14:52:59] Sock 9.Parse request [14:52:59]Sock 9.Check first char [14:52:59]Sock 9.First char is OK [14:52:59]request: POST /json_proto HTTP/1.0 [14:52:59]Method: POST [14:52:59]URL: /json_proto [14:52:59]Method is POST - this is cgi request [14:52:59]url: /json_proto [14:52:59]query_string will be loaded in cgi processing [14:52:59]execute_cgi json_proto POST (null) [14:52:59]execute_cgi path=json_proto method=POST [14:52:59]POST find Content-Length [14:52:59]Host: 172.17.59.68:8080 [14:52:59]Content-Length: 682 [14:52:59]Content-Type: application/json [14:52:59] [14:52:59]POST finish read [14:52:59]Found Content-Length = 682 [14:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320936", "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.40, "quantity" : 65.070, "sum" : 4320.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4320.00, "total" : 4320.00, "payments": [ { "type": 0, "sum" : 4320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:59]execute_script... [14:52: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)320936", "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.40, "quantity" : 65.070, "sum" : 4320.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4320.00, "total" : 4320.00, "payments": [ { "type": 0, "sum" : 4320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:59]POST & json_proto [14:52:59]process_json_proto [14:52:59]json parsed OK: [14:52:59]protocol is kg_v1.0 [14:52:59]action value=close_receipt [14:52:59]process_action close_receipt [14:52:59]cmd_close_receipt [14:52:59]MH_GetDate [14:52:59]Write to MH i2c: F0 00 00 39 3B 63 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 09 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: F0 09 00 39 3B 00 65 E5 76 66 BC EC 60 65 FF [14:52:59]GetLastDocTimeStamp 1719067646 [14:52:59]current date 1719068005 [14:52:59]FM_GetShiftState [14:52:59]SAM_PROTO_GetShiftState [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 13 01 00 [14:52:59]Write to MH i2c: E2 08 00 3A 3B 80 13 01 00 00 00 00 00 F2 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0E 00 3A 3B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 27 [14:52:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_GetShiftState done [14:52:59]FM_GetShiftState done [14:52:59]opened in 1719020067 [14:52:59]opened+sec_in_day 1719106467 [14:52:59]quantity*price = 432064 [14:52:59]sum+1 = 432066 [14:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 4320.00 Внесено: 4320.00 СДАЧА: 0.00 НСП 1% : 38.24 НДС 12% : 458.83 Наличными: 4320.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 126 22.06.2024 14:53 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112260 ФПД: 82361494669055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145325&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112260&fm=82361494669055&tin=02508201610067®Number=0000000000092771&sum=432000 [14:53:00]StoreToDocumentArchive [14:53:00]shift 391 fd 112260 [14:53:00]save to /storage/0391/doc_00112260 [14:53:00]save last doc name /storage/0391/doc_00112260 to /storage/kkm_last_doc_name [14:53:00]save OK [14:53:00]Clear old archive folders... [14:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:00]tlvbuf is 011C7EC0 [14:53:00]SAM_PROTO_ClearQueue [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 09 00 00 [14:53:00]Write to MH i2c: E2 08 00 47 3B 80 09 00 00 00 00 00 00 F4 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 47 3B 00 90 00 F6 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]SAM_PROTO_ClearQueue done [14:53:00]KKMCreateOFDPacket [14:53:00]OFDProtocolAddRootSTLVToBuf [14:53:00]FM_MakeSignedData [14:53:00]FM_MakeSignedData [14:53:00]SAM_PROTO_SignData [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 01 02 [14:53:00]Write to MH i2c: E2 08 00 48 3B 80 0D 01 02 00 00 00 00 FC [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=255 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E FE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C1 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 65 E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B6 01 00 35 04 06 00 4A [14:53:00]Write to MH i2c: E2 02 01 49 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E FE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C1 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 65 E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B6 01 00 35 04 06 00 4A 00 00 70 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 49 3B 00 90 00 F8 [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=10 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 02 02 05 E8 47 A2 06 FF [14:53:01]Write to MH i2c: E2 0D 00 4A 3B 80 0D 02 02 05 00 E8 47 A2 06 FF 00 00 DF [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 03 00 4A 3B 00 90 00 F9 [14:53:01]RAPDU: 90 00 [14:53:01]wFMCommunicate OK [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 0D 03 02 [14:53:01]Write to MH i2c: E2 08 00 4B 3B 80 0D 03 02 00 00 00 00 01 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 0B 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 0B 00 4B 3B 00 4A BA C6 FF 92 16 49 BD 90 00 79 [14:53:01]RAPDU: 4A BA C6 FF 92 16 49 BD 90 00 [14:53:01]wFMCommunicate OK [14:53:01]SAM_PROTO_SignData done [14:53:01]FM_MakeSignedData done [14:53:01]CreateOFDProtocolMessage [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 11 00 00 [14:53:01]Write to MH i2c: E2 08 00 4C 3B 80 11 00 00 00 00 00 00 01 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 4C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [14:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:53:01]wFMCommunicate OK [14:53:01]CreateOFDProtocolMessage done [14:53:01]OFDSenderStorePacket 112260 [14:53:01]StoreOFDPacket docnum=112260 [14:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 4E 07 01 21 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E FE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C1 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 65 E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B6 01 00 35 04 06 00 4A E8 47 A2 06 FF 4A BA C6 FF 92 16 49 BD [14:53:01]CheckFolder [14:53:01]dirname=/storage/ofd_packets [14:53:01]CheckFolder done [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00112260 [14:53:01]NVStorageSaveData ofd_packets/00112260 [14:53:01]File name is /storage/ofd_packets/00112260 [14:53:01]Write 301 bytes [14:53:01]NVStorageSaveData done [14:53:01]OFDSenderStorePacket done [14:53:01]KKMCreateOFDPacket done [14:53:01]NVStorageSaveData kkm_last_timestamp [14:53:01]File name is /storage/kkm_last_timestamp [14:53:01]Write 4 bytes [14:53:01]NVStorageSaveData done [14:53:01]ExternCall_PrintAddStr [14:53:01]wPrintStart [14:53:01]Write to MH i2c: 01 00 00 4D 3B 88 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 4D 3B 00 00 00 00 00 FF 0F 9D [14:53:01]RasterBufferAndPrint [14:53:01]line Счет N : (1)320936 [14:53:01]line ИНН: 02508201610067 [14:53:01]line Контрольно-Кассовый Чек [14:53:01]line ПРОДАЖА [14:53:01]line ТРК (МРК, ГНК) : 11 [14:53:01]line Товар: 2710124130 [14:53:01]line Аи-92-К-5 [14:53:01]line 65.070 * 66.40 [14:53:01]line = 4320.65 [14:53:01]line НДС 12% НСП 1% [14:53:01]line > о реализуемом товаре [14:53:01]line ОКРУГЛЕНИЕ: -0.65 [14:53:01]line ИТОГО: 4320.00 [14:53:01]line Внесено: 4320.00 [14:53:01]line СДАЧА: 0.00 [14:53:01]line НСП 1% : 38.24 [14:53:01]line НДС 12% : 458.83 [14:53:01]line Наличными: 4320.00 [14:53:01]line Безнал.: 0.00 [14:53:01]line Место: АЗС № 65 "Партнер Нефть" [14:53:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:53:01]line СНО: Общий режим [14:53:01]line Чек 126 22.06.2024 14:53 [14:53:01]line Смена: 391 ФФД: 1.0 [14:53:01]line ЗНМ: 0300000198 [14:53:01]line РНМ: 0000000000092771 [14:53:01]line Версия ККМ: 001 [14:53:01]line ФМ: 0000000000875083 [14:53:01]line ФД: 112260 [14:53:01]line ФПД: 82361494669055 [14:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145325&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112260&fm=82361494669055&tin=02508201610067®Number=0000000000092771&sum=432000 [14:53:01]OFD Sender: Processing packet 112260 [packets to send 38, broken 37] [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00112260 [14:53:01]OFD Sender: To server: pG, [14:53:01]CommunicateWithHost lk.salyk.kg:30040 [14:53:01]ConnectInit lk.salyk.kg [14:53:01]written 0, free lines is 4095 [14:53:01]Connected sock=10 [14:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 4E 07 01 21 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E FE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C1 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 65 E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B6 01 00 35 04 06 00 4A E8 47 A2 06 FF 4A BA C6 FF 92 16 49 BD [14:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E D4 47 00 91 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B6 01 00 F4 03 04 00 6F 7C 76 66 B6 04 01 00 00 7E 81 AD 47 73 07 7D 77 [14:53:01]CommunicateWithHost err = 0 [14:53:01]CheckOFDResponse [14:53:01]1017 (14) - 77093643461234 [14:53:01]1041 (16) - 0000000000875083 [14:53:01]1040 (4) - 112260 [14:53:01]1012 (4) - 22.06.2024 07:25 [14:53:01]1206 (1) - 0 [14:53:01]OFD Sender: Remove packet 112260 [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00112260 [14:53:01]NVStorageDeleteData [14:53:02]Write to MH i2c: 01 00 00 78 3B B3 [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: 01 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: 01 07 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: 01 07 00 78 3B 00 00 00 00 00 EC 0C B2 [14:53:02]RasterBufferAndPrint [14:53:02]line [14:53:02]line [14:53:02]line [14:53:02]line [14:53:02]line [14:53:02]written 0, free lines is 3314 [14:53:02]MH_Cut [14:53:02]Write to MH i2c: D1 01 00 7F 3B 01 8C [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: D1 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: D1 01 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: D1 01 00 7F 3B 00 8B [14:53:02]Write to MH i2c: 01 00 00 80 3B BB [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]OFD Sender: No OFD packet to send [14:53:02]*** Cut start [14:53:02]*** Partial cut [14:53:02]*** CUTSNS_PIN = 1 [14:53:02]*** CUTSNS_PIN = 0 [14:53:03]*** Brake cut motor [14:53:03]Read from MH i2c: 01 [14:53:03]MH_I2C_Read... [14:53:03]*** Stop cut motor [14:53:03]*** Cut end [14:53:03]Read from MH i2c: 01 07 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: 01 07 00 80 3B 00 00 00 00 00 FF 0F D0 [14:53:03]process_action close_receipt done [14:53:03]requested_data is exist [14:53:03]produce_requested_data [14:53:03]requested_item fm.sn is exist - process it [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 11 00 00 [14:53:03]Write to MH i2c: E2 08 00 81 3B 80 11 00 00 00 00 00 00 36 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 17 00 81 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [14:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:53:03]wFMCommunicate OK [14:53:03]requested_item fd.num is exist - process it [14:53:03]SAM_PROTO_GetFieldsCounters [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 00 00 [14:53:03]Write to MH i2c: E2 08 00 82 3B 80 13 00 00 00 00 00 00 39 [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 62 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 62 00 82 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [14:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetFieldsCounters done [14:53:03]requested_item shift.num is exist - process it [14:53:03]requested_item shift.opened is exist - process it [14:53:03]req_shift_opened [14:53:03]FM_GetShiftState [14:53:03]SAM_PROTO_GetShiftState [14:53:03]wFMCommunicate request_size=4 [14:53:03]MH_SAM_APDU [14:53:03]CAPDU: 80 13 01 00 [14:53:03]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [14:53:03]Write i2c OK [14:53:03]MH_I2C_Read... [14:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:03]Read from MH i2c: E2 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 [14:53:03]MH_I2C_Read... [14:53:03]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 70 [14:53:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:53:03]wFMCommunicate OK [14:53:03]SAM_PROTO_GetShiftState done [14:53:03]FM_GetShiftState done [14:53:03]req_shift_opened done [14:53:03]requested_item shift.open_date is exist - process it [14:53:03]req_shift_open_date [14:53:03]req_shift_open_date done [14:53:03]produce_requested_data done [14:53:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112260,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:53:03]process_action_free close_receipt [14:53:03]json_value_free [14:53:03]json_value_free done [14:53:03]process_json_proto returns [14:53:03]Send response to host [14:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112260,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:53:03]free response buf [14:53:03]execute_script done [14:53:03]execute_script returns [14:53:03]free content buf [14:53:03]Sock 9.Close socket [14:53:03]Sock 9.Thread stoped [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:53]accept exits with 7 [14:53:53]New connection [14:53:53]New thread 3066957156 created [14:53:53]Thread 3066813796 joined [14:53:53]Waiting for new connection... [14:53:53] Sock 7.Parse request [14:53:53]Sock 7.Check first char [14:53:53]Sock 7.First char is OK [14:53:53]request: POST /json_proto HTTP/1.0 [14:53:53]Method: POST [14:53:53]URL: /json_proto [14:53:53]Method is POST - this is cgi request [14:53:53]url: /json_proto [14:53:53]query_string will be loaded in cgi processing [14:53:53]execute_cgi json_proto POST (null) [14:53:53]execute_cgi path=json_proto method=POST [14:53:53]POST find Content-Length [14:53:53]Host: 172.17.59.68:8080 [14:53:53]Content-Length: 678 [14:53:53]Content-Type: application/json [14:53:53] [14:53:53]POST finish read [14:53:53]Found Content-Length = 678 [14:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320937", "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.40, "quantity" : 13.560, "sum" : 900.38, "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" ] } } [14:53:53]execute_script... [14:53: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)320937", "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.40, "quantity" : 13.560, "sum" : 900.38, "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" ] } } [14:53:53]POST & json_proto [14:53:53]process_json_proto [14:53:53]json parsed OK: [14:53:53]protocol is kg_v1.0 [14:53:53]action value=close_receipt [14:53:53]process_action close_receipt [14:53:53]cmd_close_receipt [14:53:53]MH_GetDate [14:53:53]Write to MH i2c: F0 00 00 84 3B AE [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: F0 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: F0 09 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: F0 09 00 84 3B 00 9B E5 76 66 BC EC 60 65 80 [14:53:53]GetLastDocTimeStamp 1719068005 [14:53:53]current date 1719068059 [14:53:53]FM_GetShiftState [14:53:53]SAM_PROTO_GetShiftState [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 13 01 00 [14:53:53]Write to MH i2c: E2 08 00 85 3B 80 13 01 00 00 00 00 00 3D [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 0E 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 0E 00 85 3B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 72 [14:53:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:53:53]wFMCommunicate OK [14:53:53]SAM_PROTO_GetShiftState done [14:53:53]FM_GetShiftState done [14:53:53]opened in 1719020067 [14:53:53]opened+sec_in_day 1719106467 [14:53:53]quantity*price = 90038 [14:53:53]sum+1 = 90039 [14:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 127 22.06.2024 14:54 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112261 ФПД: 23701148238500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145419&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112261&fm=23701148238500&tin=02508201610067®Number=0000000000092771&sum=90000 [14:53:54]StoreToDocumentArchive [14:53:54]shift 391 fd 112261 [14:53:54]save to /storage/0391/doc_00112261 [14:53:54]save last doc name /storage/0391/doc_00112261 to /storage/kkm_last_doc_name [14:53:54]save OK [14:53:54]Clear old archive folders... [14:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:54]tlvbuf is 01233FD0 [14:53:54]SAM_PROTO_ClearQueue [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 09 00 00 [14:53:54]Write to MH i2c: E2 08 00 92 3B 80 09 00 00 00 00 00 00 3F [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 92 3B 00 90 00 41 [14:53:54]RAPDU: 90 00 [14:53:54]wFMCommunicate OK [14:53:54]SAM_PROTO_ClearQueue done [14:53:54]KKMCreateOFDPacket [14:53:54]OFDProtocolAddRootSTLVToBuf [14:53:54]FM_MakeSignedData [14:53:54]FM_MakeSignedData [14:53:54]SAM_PROTO_SignData [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 0D 01 02 [14:53:54]Write to MH i2c: E2 08 00 93 3B 80 0D 01 02 00 00 00 00 47 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [14:53:54]RAPDU: 90 00 [14:53:54]wFMCommunicate OK [14:53:54]wFMCommunicate request_size=255 [14:53:54]MH_SAM_APDU [14:53: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 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 7F 00 00 00 F4 03 04 00 9B E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B6 01 00 35 04 06 00 15 [14:53:54]Write to MH i2c: E2 02 01 94 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 7F 00 00 00 F4 03 04 00 9B E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B6 01 00 35 04 06 00 15 00 00 CF [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 03 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 03 00 94 3B 00 90 00 43 [14:53:55]RAPDU: 90 00 [14:53:55]wFMCommunicate OK [14:53:55]wFMCommunicate request_size=10 [14:53:55]MH_SAM_APDU [14:53:55]CAPDU: 80 0D 02 02 05 8E 5A 85 82 A4 [14:53:55]Write to MH i2c: E2 0D 00 95 3B 80 0D 02 02 05 00 8E 5A 85 82 A4 00 00 E7 [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 03 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 03 00 95 3B 00 90 00 44 [14:53:55]RAPDU: 90 00 [14:53:55]wFMCommunicate OK [14:53:55]wFMCommunicate request_size=4 [14:53:55]MH_SAM_APDU [14:53:55]CAPDU: 80 0D 03 02 [14:53:55]Write to MH i2c: E2 08 00 96 3B 80 0D 03 02 00 00 00 00 4C [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 0B 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 0B 00 96 3B 00 DA 78 22 DD C9 FA 2C 0E 90 00 9B [14:53:55]RAPDU: DA 78 22 DD C9 FA 2C 0E 90 00 [14:53:55]wFMCommunicate OK [14:53:55]SAM_PROTO_SignData done [14:53:55]FM_MakeSignedData done [14:53:55]CreateOFDProtocolMessage [14:53:55]wFMCommunicate request_size=4 [14:53:55]MH_SAM_APDU [14:53:55]CAPDU: 80 11 00 00 [14:53:55]Write to MH i2c: E2 08 00 97 3B 80 11 00 00 00 00 00 00 4C [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:55]Read from MH i2c: E2 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 17 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: E2 17 00 97 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [14:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:53:55]wFMCommunicate OK [14:53:55]CreateOFDProtocolMessage done [14:53:55]OFDSenderStorePacket 112261 [14:53:55]StoreOFDPacket docnum=112261 [14:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8A 18 07 01 32 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 7F 00 00 00 F4 03 04 00 9B E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B6 01 00 35 04 06 00 15 8E 5A 85 82 A4 DA 78 22 DD C9 FA 2C 0E [14:53:55]CheckFolder [14:53:55]dirname=/storage/ofd_packets [14:53:55]CheckFolder done [14:53:55]ProducePacketName [14:53:55]name=ofd_packets/00112261 [14:53:55]NVStorageSaveData ofd_packets/00112261 [14:53:55]File name is /storage/ofd_packets/00112261 [14:53:55]Write 301 bytes [14:53:55]NVStorageSaveData done [14:53:55]OFDSenderStorePacket done [14:53:55]KKMCreateOFDPacket done [14:53:55]NVStorageSaveData kkm_last_timestamp [14:53:55]File name is /storage/kkm_last_timestamp [14:53:55]Write 4 bytes [14:53:55]NVStorageSaveData done [14:53:55]ExternCall_PrintAddStr [14:53:55]wPrintStart [14:53:55]Write to MH i2c: 01 00 00 98 3B D3 [14:53:55]Write i2c OK [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 07 00 [14:53:55]MH_I2C_Read... [14:53:55]Read from MH i2c: 01 07 00 98 3B 00 00 00 00 00 FF 0F E8 [14:53:55]RasterBufferAndPrint [14:53:55]line Счет N : (1)320937 [14:53:55]line ИНН: 02508201610067 [14:53:55]line Контрольно-Кассовый Чек [14:53:55]line ПРОДАЖА [14:53:55]line ТРК (МРК, ГНК) : 11 [14:53:55]line Товар: 2710124130 [14:53:55]line Аи-92-К-5 [14:53:55]line 13.560 * 66.40 [14:53:55]line = 900.38 [14:53:55]line НДС 12% НСП 1% [14:53:55]line > о реализуемом товаре [14:53:55]line ОКРУГЛЕНИЕ: -0.38 [14:53:55]line ИТОГО: 900.00 [14:53:55]line Внесено: 900.00 [14:53:55]line СДАЧА: 0.00 [14:53:55]line НСП 1% : 7.97 [14:53:55]line НДС 12% : 95.62 [14:53:55]line Наличными: 900.00 [14:53:55]line Безнал.: 0.00 [14:53:55]line Место: АЗС № 65 "Партнер Нефть" [14:53:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:53:55]line СНО: Общий режим [14:53:55]line Чек 127 22.06.2024 14:54 [14:53:55]line Смена: 391 ФФД: 1.0 [14:53:55]line ЗНМ: 0300000198 [14:53:55]line РНМ: 0000000000092771 [14:53:55]line Версия ККМ: 001 [14:53:55]line ФМ: 0000000000875083 [14:53:55]line ФД: 112261 [14:53:55]line ФПД: 23701148238500 [14:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145419&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112261&fm=23701148238500&tin=02508201610067®Number=0000000000092771&sum=90000 [14:53:55]OFD Sender: Processing packet 112261 [packets to send 38, broken 37] [14:53:55]ProducePacketName [14:53:55]name=ofd_packets/00112261 [14:53:55]OFD Sender: To server: pG, [14:53:55]CommunicateWithHost lk.salyk.kg:30040 [14:53:55]ConnectInit lk.salyk.kg [14:53:55]written 0, free lines is 4095 [14:53:55]Connected sock=10 [14:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8A 18 07 01 32 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 7F 00 00 00 F4 03 04 00 9B E5 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B6 01 00 35 04 06 00 15 8E 5A 85 82 A4 DA 78 22 DD C9 FA 2C 0E [14:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7F E4 47 00 0C 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B6 01 00 F4 03 04 00 A5 7C 76 66 B6 04 01 00 00 B1 1C E0 5E 23 2A B1 39 [14:53:55]CommunicateWithHost err = 0 [14:53:55]CheckOFDResponse [14:53:55]1017 (14) - 77093643461234 [14:53:55]1041 (16) - 0000000000875083 [14:53:55]1040 (4) - 112261 [14:53:55]1012 (4) - 22.06.2024 07:26 [14:53:55]1206 (1) - 0 [14:53:55]OFD Sender: Remove packet 112261 [14:53:55]ProducePacketName [14:53:55]name=ofd_packets/00112261 [14:53:55]NVStorageDeleteData [14:53:56]Write to MH i2c: 01 00 00 C3 3B FE [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: 01 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: 01 07 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: 01 07 00 C3 3B 00 00 00 00 00 D8 0C E9 [14:53:56]RasterBufferAndPrint [14:53:56]line [14:53:56]line [14:53:56]line [14:53:56]line [14:53:56]line [14:53:56]written 0, free lines is 3295 [14:53:56]MH_Cut [14:53:56]Write to MH i2c: D1 01 00 CA 3B 01 D7 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: D1 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: D1 01 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: D1 01 00 CA 3B 00 D6 [14:53:56]Write to MH i2c: 01 00 00 CB 3B 06 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]OFD Sender: No OFD packet to send [14:53:56]*** Cut start [14:53:56]*** Partial cut [14:53:56]*** CUTSNS_PIN = 1 [14:53:56]*** CUTSNS_PIN = 0 [14:53:57]*** Brake cut motor [14:53:57]Read from MH i2c: 01 [14:53:57]MH_I2C_Read... [14:53:57]*** Stop cut motor [14:53:57]*** Cut end [14:53:57]Read from MH i2c: 01 07 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: 01 07 00 CB 3B 00 00 00 00 00 FF 0F 1B [14:53:57]process_action close_receipt done [14:53:57]requested_data is exist [14:53:57]produce_requested_data [14:53:57]requested_item fm.sn is exist - process it [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 11 00 00 [14:53:57]Write to MH i2c: E2 08 00 CC 3B 80 11 00 00 00 00 00 00 81 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 17 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 17 00 CC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [14:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:53:57]wFMCommunicate OK [14:53:57]requested_item fd.num is exist - process it [14:53:57]SAM_PROTO_GetFieldsCounters [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 13 00 00 [14:53:57]Write to MH i2c: E2 08 00 CD 3B 80 13 00 00 00 00 00 00 84 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 62 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 62 00 CD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:57]wFMCommunicate OK [14:53:57]SAM_PROTO_GetFieldsCounters done [14:53:57]requested_item shift.num is exist - process it [14:53:57]requested_item shift.opened is exist - process it [14:53:57]req_shift_opened [14:53:57]FM_GetShiftState [14:53:57]SAM_PROTO_GetShiftState [14:53:57]wFMCommunicate request_size=4 [14:53:57]MH_SAM_APDU [14:53:57]CAPDU: 80 13 01 00 [14:53:57]Write to MH i2c: E2 08 00 CE 3B 80 13 01 00 00 00 00 00 86 [14:53:57]Write i2c OK [14:53:57]MH_I2C_Read... [14:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:57]Read from MH i2c: E2 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 0E 00 [14:53:57]MH_I2C_Read... [14:53:57]Read from MH i2c: E2 0E 00 CE 3B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BB [14:53:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:53:57]wFMCommunicate OK [14:53:57]SAM_PROTO_GetShiftState done [14:53:57]FM_GetShiftState done [14:53:57]req_shift_opened done [14:53:57]requested_item shift.open_date is exist - process it [14:53:57]req_shift_open_date [14:53:57]req_shift_open_date done [14:53:57]produce_requested_data done [14:53:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112261,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:53:57]process_action_free close_receipt [14:53:57]json_value_free [14:53:57]json_value_free done [14:53:57]process_json_proto returns [14:53:57]Send response to host [14:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112261,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:53:57]free response buf [14:53:57]execute_script done [14:53:57]execute_script returns [14:53:57]free content buf [14:53:57]Sock 7.Close socket [14:53:57]Sock 7.Thread stoped [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:55]accept exits with 9 [14:55:55]New connection [14:55:55]New thread 3066813796 created [14:55:55]Thread 3066957156 joined [14:55:55]Waiting for new connection... [14:55:55] Sock 9.Parse request [14:55:55]Sock 9.Check first char [14:55:55]Sock 9.First char is OK [14:55:55]request: POST /json_proto HTTP/1.0 [14:55:55]Method: POST [14:55:55]URL: /json_proto [14:55:55]Method is POST - this is cgi request [14:55:55]url: /json_proto [14:55:55]query_string will be loaded in cgi processing [14:55:55]execute_cgi json_proto POST (null) [14:55:55]execute_cgi path=json_proto method=POST [14:55:55]POST find Content-Length [14:55:55]Host: 172.17.59.68:8080 [14:55:55]Content-Length: 682 [14:55:55]Content-Type: application/json [14:55:55] [14:55:55]POST finish read [14:55:55]Found Content-Length = 682 [14:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320938", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:55]execute_script... [14:55: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)320938", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:55]POST & json_proto [14:55:55]process_json_proto [14:55:55]json parsed OK: [14:55:55]protocol is kg_v1.0 [14:55:55]action value=close_receipt [14:55:55]process_action close_receipt [14:55:55]cmd_close_receipt [14:55:55]MH_GetDate [14:55:55]Write to MH i2c: F0 00 00 CF 3B F9 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: F0 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: F0 09 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: F0 09 00 CF 3B 00 15 E6 76 66 BC EC 60 65 46 [14:55:55]GetLastDocTimeStamp 1719068059 [14:55:55]current date 1719068181 [14:55:55]FM_GetShiftState [14:55:55]SAM_PROTO_GetShiftState [14:55:55]wFMCommunicate request_size=4 [14:55:55]MH_SAM_APDU [14:55:55]CAPDU: 80 13 01 00 [14:55:55]Write to MH i2c: E2 08 00 D0 3B 80 13 01 00 00 00 00 00 88 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:55]Read from MH i2c: E2 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 0E 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 0E 00 D0 3B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BD [14:55:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:55:55]wFMCommunicate OK [14:55:55]SAM_PROTO_GetShiftState done [14:55:55]FM_GetShiftState done [14:55:55]opened in 1719020067 [14:55:55]opened+sec_in_day 1719106467 [14:55:55]quantity*price = 100064 [14:55:55]sum+1 = 100066 [14:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 128 22.06.2024 14:56 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112262 ФПД: 264729092444761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145621&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112262&fm=264729092444761&tin=02508201610067®Number=0000000000092771&sum=100000 [14:55:56]StoreToDocumentArchive [14:55:56]shift 391 fd 112262 [14:55:56]save to /storage/0391/doc_00112262 [14:55:56]save last doc name /storage/0391/doc_00112262 to /storage/kkm_last_doc_name [14:55:56]save OK [14:55:56]Clear old archive folders... [14:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:56]tlvbuf is 01233FD0 [14:55:56]SAM_PROTO_ClearQueue [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 09 00 00 [14:55:56]Write to MH i2c: E2 08 00 DD 3B 80 09 00 00 00 00 00 00 8A [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 DD 3B 00 90 00 8C [14:55:56]RAPDU: 90 00 [14:55:56]wFMCommunicate OK [14:55:56]SAM_PROTO_ClearQueue done [14:55:56]KKMCreateOFDPacket [14:55:56]OFDProtocolAddRootSTLVToBuf [14:55:56]FM_MakeSignedData [14:55:56]FM_MakeSignedData [14:55:56]SAM_PROTO_SignData [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 0D 01 02 [14:55:56]Write to MH i2c: E2 08 00 DE 3B 80 0D 01 02 00 00 00 00 92 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 DE 3B 00 90 00 8D [14:55:56]RAPDU: 90 00 [14:55:56]wFMCommunicate OK [14:55:56]wFMCommunicate request_size=255 [14:55:56]MH_SAM_APDU [14:55: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 15 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B6 01 00 35 04 06 00 F0 [14:55:56]Write to MH i2c: E2 02 01 DF 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 15 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B6 01 00 35 04 06 00 F0 00 00 A2 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 DF 3B 00 90 00 8E [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=10 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 02 02 05 C5 0B 84 52 59 [14:55:57]Write to MH i2c: E2 0D 00 E0 3B 80 0D 02 02 05 00 C5 0B 84 52 59 00 00 9E [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 E0 3B 00 90 00 8F [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 03 02 [14:55:57]Write to MH i2c: E2 08 00 E1 3B 80 0D 03 02 00 00 00 00 97 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0B 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0B 00 E1 3B 00 A8 B5 E1 D8 1C AE D8 F6 90 00 46 [14:55:57]RAPDU: A8 B5 E1 D8 1C AE D8 F6 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_SignData done [14:55:57]FM_MakeSignedData done [14:55:57]CreateOFDProtocolMessage [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 11 00 00 [14:55:57]Write to MH i2c: E2 08 00 E2 3B 80 11 00 00 00 00 00 00 97 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 E2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [14:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:55:57]wFMCommunicate OK [14:55:57]CreateOFDProtocolMessage done [14:55:57]OFDSenderStorePacket 112262 [14:55:57]StoreOFDPacket docnum=112262 [14:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 52 07 01 86 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 15 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B6 01 00 35 04 06 00 F0 C5 0B 84 52 59 A8 B5 E1 D8 1C AE D8 F6 [14:55:57]CheckFolder [14:55:57]dirname=/storage/ofd_packets [14:55:57]CheckFolder done [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00112262 [14:55:57]NVStorageSaveData ofd_packets/00112262 [14:55:57]File name is /storage/ofd_packets/00112262 [14:55:57]Write 301 bytes [14:55:57]NVStorageSaveData done [14:55:57]OFDSenderStorePacket done [14:55:57]KKMCreateOFDPacket done [14:55:57]NVStorageSaveData kkm_last_timestamp [14:55:57]File name is /storage/kkm_last_timestamp [14:55:57]Write 4 bytes [14:55:57]NVStorageSaveData done [14:55:57]ExternCall_PrintAddStr [14:55:57]wPrintStart [14:55:57]Write to MH i2c: 01 00 00 E3 3B 1E [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 E3 3B 00 00 00 00 00 FF 0F 33 [14:55:57]RasterBufferAndPrint [14:55:57]line Счет N : (1)320938 [14:55:57]line ИНН: 02508201610067 [14:55:57]line Контрольно-Кассовый Чек [14:55:57]line ПРОДАЖА [14:55:57]line ТРК (МРК, ГНК) : 11 [14:55:57]line Товар: 2710124130 [14:55:57]line Аи-92-К-5 [14:55:57]line 15.070 * 66.40 [14:55:57]line = 1000.65 [14:55:57]line НДС 12% НСП 1% [14:55:57]line > о реализуемом товаре [14:55:57]line ОКРУГЛЕНИЕ: -0.65 [14:55:57]line ИТОГО: 1000.00 [14:55:57]line Внесено: 1000.00 [14:55:57]line СДАЧА: 0.00 [14:55:57]line НСП 1% : 8.85 [14:55:57]line НДС 12% : 106.26 [14:55:57]line Наличными: 1000.00 [14:55:57]line Безнал.: 0.00 [14:55:57]line Место: АЗС № 65 "Партнер Нефть" [14:55:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:55:57]line СНО: Общий режим [14:55:57]line Чек 128 22.06.2024 14:56 [14:55:57]line Смена: 391 ФФД: 1.0 [14:55:57]line ЗНМ: 0300000198 [14:55:57]line РНМ: 0000000000092771 [14:55:57]line Версия ККМ: 001 [14:55:57]line ФМ: 0000000000875083 [14:55:57]line ФД: 112262 [14:55:57]line ФПД: 264729092444761 [14:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145621&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112262&fm=264729092444761&tin=02508201610067®Number=0000000000092771&sum=100000 [14:55:57]OFD Sender: Processing packet 112262 [packets to send 38, broken 37] [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00112262 [14:55:57]OFD Sender: To server: pG, [14:55:57]CommunicateWithHost lk.salyk.kg:30040 [14:55:57]ConnectInit lk.salyk.kg [14:55:57]written 0, free lines is 4095 [14:55:57]Connected sock=10 [14:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 52 07 01 86 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 15 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B6 01 00 35 04 06 00 F0 C5 0B 84 52 59 A8 B5 E1 D8 1C AE D8 F6 [14:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 44 DF 47 00 24 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B6 01 00 F4 03 04 00 1F 7D 76 66 B6 04 01 00 00 F2 2C 59 64 E4 AE 7A 2C [14:55:57]CommunicateWithHost err = 0 [14:55:57]CheckOFDResponse [14:55:57]1017 (14) - 77093643461234 [14:55:57]1041 (16) - 0000000000875083 [14:55:57]1040 (4) - 112262 [14:55:57]1012 (4) - 22.06.2024 07:28 [14:55:57]1206 (1) - 0 [14:55:57]OFD Sender: Remove packet 112262 [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00112262 [14:55:57]NVStorageDeleteData [14:55:58]Write to MH i2c: 01 00 00 0E 3C 4A [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 0E 3C 00 00 00 00 00 D8 0C 35 [14:55:58]RasterBufferAndPrint [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]written 0, free lines is 3295 [14:55:58]MH_Cut [14:55:58]Write to MH i2c: D1 01 00 15 3C 01 23 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 01 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 01 00 15 3C 00 22 [14:55:58]Write to MH i2c: 01 00 00 16 3C 52 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]OFD Sender: No OFD packet to send [14:55:58]*** Cut start [14:55:58]*** Partial cut [14:55:58]*** CUTSNS_PIN = 1 [14:55:58]*** CUTSNS_PIN = 0 [14:55:59]*** Brake cut motor [14:55:59]Read from MH i2c: 01 [14:55:59]MH_I2C_Read... [14:55:59]*** Stop cut motor [14:55:59]*** Cut end [14:55:59]Read from MH i2c: 01 07 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: 01 07 00 16 3C 00 00 00 00 00 FF 0F 67 [14:55:59]process_action close_receipt done [14:55:59]requested_data is exist [14:55:59]produce_requested_data [14:55:59]requested_item fm.sn is exist - process it [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 11 00 00 [14:55:59]Write to MH i2c: E2 08 00 17 3C 80 11 00 00 00 00 00 00 CD [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 17 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 17 00 17 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [14:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:55:59]wFMCommunicate OK [14:55:59]requested_item fd.num is exist - process it [14:55:59]SAM_PROTO_GetFieldsCounters [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 00 00 [14:55:59]Write to MH i2c: E2 08 00 18 3C 80 13 00 00 00 00 00 00 D0 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 18 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [14:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetFieldsCounters done [14:55:59]requested_item shift.num is exist - process it [14:55:59]requested_item shift.opened is exist - process it [14:55:59]req_shift_opened [14:55:59]FM_GetShiftState [14:55:59]SAM_PROTO_GetShiftState [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 01 00 [14:55:59]Write to MH i2c: E2 08 00 19 3C 80 13 01 00 00 00 00 00 D2 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 19 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 07 [14:55:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetShiftState done [14:55:59]FM_GetShiftState done [14:55:59]req_shift_opened done [14:55:59]requested_item shift.open_date is exist - process it [14:55:59]req_shift_open_date [14:55:59]req_shift_open_date done [14:55:59]produce_requested_data done [14:55:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112262,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:55:59]process_action_free close_receipt [14:55:59]json_value_free [14:55:59]json_value_free done [14:55:59]process_json_proto returns [14:55:59]Send response to host [14:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112262,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:55:59]free response buf [14:55:59]execute_script done [14:55:59]execute_script returns [14:55:59]free content buf [14:55:59]Sock 9.Close socket [14:55:59]Sock 9.Thread stoped [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:56]accept exits with 7 [14:56:56]New connection [14:56:56]New thread 3066957156 created [14:56:56]Thread 3066813796 joined [14:56:56]Waiting for new connection... [14:56:56] Sock 7.Parse request [14:56:56]Sock 7.Check first char [14:56:56]Sock 7.First char is OK [14:56:56]request: POST /json_proto HTTP/1.0 [14:56:56]Method: POST [14:56:56]URL: /json_proto [14:56:56]Method is POST - this is cgi request [14:56:56]url: /json_proto [14:56:56]query_string will be loaded in cgi processing [14:56:56]execute_cgi json_proto POST (null) [14:56:56]execute_cgi path=json_proto method=POST [14:56:56]POST find Content-Length [14:56:56]Host: 172.17.59.68:8080 [14:56:56]Content-Length: 677 [14:56:56]Content-Type: application/json [14:56:56] [14:56:56]POST finish read [14:56:56]Found Content-Length = 677 [14:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320939", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:56]execute_script... [14:56: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)320939", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:56]POST & json_proto [14:56:56]process_json_proto [14:56:56]json parsed OK: [14:56:56]protocol is kg_v1.0 [14:56:56]action value=close_receipt [14:56:56]process_action close_receipt [14:56:56]cmd_close_receipt [14:56:56]MH_GetDate [14:56:56]Write to MH i2c: F0 00 00 1A 3C 45 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: F0 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: F0 09 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: F0 09 00 1A 3C 00 53 E6 76 66 BC EC 60 65 D0 [14:56:56]GetLastDocTimeStamp 1719068181 [14:56:56]current date 1719068243 [14:56:56]FM_GetShiftState [14:56:56]SAM_PROTO_GetShiftState [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 13 01 00 [14:56:56]Write to MH i2c: E2 08 00 1B 3C 80 13 01 00 00 00 00 00 D4 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0E 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0E 00 1B 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 09 [14:56:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_GetShiftState done [14:56:56]FM_GetShiftState done [14:56:56]opened in 1719020067 [14:56:56]opened+sec_in_day 1719106467 [14:56:56]quantity*price = 60025 [14:56:56]sum+1 = 60027 [14:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 129 22.06.2024 14:57 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112263 ФПД: 132287446954426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145723&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112263&fm=132287446954426&tin=02508201610067®Number=0000000000092771&sum=60000 [14:56:58]StoreToDocumentArchive [14:56:58]shift 391 fd 112263 [14:56:58]save to /storage/0391/doc_00112263 [14:56:58]save last doc name /storage/0391/doc_00112263 to /storage/kkm_last_doc_name [14:56:58]save OK [14:56:58]Clear old archive folders... [14:56:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:58]tlvbuf is 011D13D0 [14:56:58]SAM_PROTO_ClearQueue [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 09 00 00 [14:56:58]Write to MH i2c: E2 08 00 28 3C 80 09 00 00 00 00 00 00 D6 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 28 3C 00 90 00 D8 [14:56:58]RAPDU: 90 00 [14:56:58]wFMCommunicate OK [14:56:58]SAM_PROTO_ClearQueue done [14:56:58]KKMCreateOFDPacket [14:56:58]OFDProtocolAddRootSTLVToBuf [14:56:58]FM_MakeSignedData [14:56:58]FM_MakeSignedData [14:56:58]SAM_PROTO_SignData [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 0D 01 02 [14:56:58]Write to MH i2c: E2 08 00 29 3C 80 0D 01 02 00 00 00 00 DE [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 29 3C 00 90 00 D9 [14:56:58]RAPDU: 90 00 [14:56:58]wFMCommunicate OK [14:56:58]wFMCommunicate request_size=255 [14:56:58]MH_SAM_APDU [14: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 53 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B6 01 00 35 04 06 00 78 [14:56:58]Write to MH i2c: E2 02 01 2A 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 53 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B6 01 00 35 04 06 00 78 00 00 43 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 2A 3C 00 90 00 DA [14:56:58]RAPDU: 90 00 [14:56:58]wFMCommunicate OK [14:56:58]wFMCommunicate request_size=10 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 0D 02 02 05 50 92 48 B1 BA [14:56:58]Write to MH i2c: E2 0D 00 2B 3C 80 0D 02 02 05 00 50 92 48 B1 BA 00 00 80 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 03 00 2B 3C 00 90 00 DB [14:56:58]RAPDU: 90 00 [14:56:58]wFMCommunicate OK [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 0D 03 02 [14:56:58]Write to MH i2c: E2 08 00 2C 3C 80 0D 03 02 00 00 00 00 E3 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:58]OFD Sender: No OFD packet to send [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 0B 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 0B 00 2C 3C 00 0B DC 19 B8 4C A2 85 95 90 00 A4 [14:56:58]RAPDU: 0B DC 19 B8 4C A2 85 95 90 00 [14:56:58]wFMCommunicate OK [14:56:58]SAM_PROTO_SignData done [14:56:58]FM_MakeSignedData done [14:56:58]CreateOFDProtocolMessage [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 11 00 00 [14:56:58]Write to MH i2c: E2 08 00 2D 3C 80 11 00 00 00 00 00 00 E3 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 17 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 17 00 2D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [14:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:56:58]wFMCommunicate OK [14:56:58]CreateOFDProtocolMessage done [14:56:58]OFDSenderStorePacket 112263 [14:56:58]StoreOFDPacket docnum=112263 [14:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 73 07 01 EF 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 53 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B6 01 00 35 04 06 00 78 50 92 48 B1 BA 0B DC 19 B8 4C A2 85 95 [14:56:58]CheckFolder [14:56:58]dirname=/storage/ofd_packets [14:56:58]CheckFolder done [14:56:58]ProducePacketName [14:56:58]name=ofd_packets/00112263 [14:56:58]NVStorageSaveData ofd_packets/00112263 [14:56:58]File name is /storage/ofd_packets/00112263 [14:56:58]Write 301 bytes [14:56:58]NVStorageSaveData done [14:56:58]OFDSenderStorePacket done [14:56:58]KKMCreateOFDPacket done [14:56:58]NVStorageSaveData kkm_last_timestamp [14:56:58]File name is /storage/kkm_last_timestamp [14:56:58]Write 4 bytes [14:56:58]NVStorageSaveData done [14:56:58]ExternCall_PrintAddStr [14:56:58]wPrintStart [14:56:58]Write to MH i2c: 01 00 00 2E 3C 6A [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: 01 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: 01 07 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: 01 07 00 2E 3C 00 00 00 00 00 FF 0F 7F [14:56:58]RasterBufferAndPrint [14:56:58]line Счет N : (1)320939 [14:56:58]line ИНН: 02508201610067 [14:56:58]line Контрольно-Кассовый Чек [14:56:58]line ПРОДАЖА [14:56:58]line ТРК (МРК, ГНК) : 11 [14:56:58]line Товар: 2710124130 [14:56:58]line Аи-92-К-5 [14:56:58]line 9.040 * 66.40 [14:56:58]line = 600.26 [14:56:58]line НДС 12% НСП 1% [14:56:58]line > о реализуемом товаре [14:56:58]line ОКРУГЛЕНИЕ: -0.26 [14:56:58]line ИТОГО: 600.00 [14:56:58]line Внесено: 600.00 [14:56:58]line СДАЧА: 0.00 [14:56:58]line НСП 1% : 5.31 [14:56:58]line НДС 12% : 63.74 [14:56:58]line Наличными: 600.00 [14:56:58]line Безнал.: 0.00 [14:56:58]line Место: АЗС № 65 "Партнер Нефть" [14:56:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:56:58]line СНО: Общий режим [14:56:58]line Чек 129 22.06.2024 14:57 [14:56:58]line Смена: 391 ФФД: 1.0 [14:56:58]line ЗНМ: 0300000198 [14:56:58]line РНМ: 0000000000092771 [14:56:58]line Версия ККМ: 001 [14:56:58]line ФМ: 0000000000875083 [14:56:58]line ФД: 112263 [14:56:58]line ФПД: 132287446954426 [14:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145723&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112263&fm=132287446954426&tin=02508201610067®Number=0000000000092771&sum=60000 [14:56:58]OFD Sender: Processing packet 112263 [packets to send 38, broken 37] [14:56:58]ProducePacketName [14:56:58]name=ofd_packets/00112263 [14:56:58]OFD Sender: To server: pG, [14:56:58]CommunicateWithHost lk.salyk.kg:30040 [14:56:58]ConnectInit lk.salyk.kg [14:56:58]written 0, free lines is 4095 [14:56:59]Connected sock=10 [14: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 35 30 38 33 0F 01 00 00 B1 73 07 01 EF 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 53 E6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B6 01 00 35 04 06 00 78 50 92 48 B1 BA 0B DC 19 B8 4C A2 85 95 [14:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC 68 47 00 1F 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B6 01 00 F4 03 04 00 5C 7D 76 66 B6 04 01 00 00 F1 C7 9A 2A 11 7D 75 19 [14:56:59]CommunicateWithHost err = 0 [14:56:59]CheckOFDResponse [14:56:59]1017 (14) - 77093643461234 [14:56:59]1041 (16) - 0000000000875083 [14:56:59]1040 (4) - 112263 [14:56:59]1012 (4) - 22.06.2024 07:29 [14:56:59]1206 (1) - 0 [14:56:59]OFD Sender: Remove packet 112263 [14:56:59]ProducePacketName [14:56:59]name=ofd_packets/00112263 [14:56:59]NVStorageDeleteData [14:56:59]Write to MH i2c: 01 00 00 59 3C 95 [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: 01 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: 01 07 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: 01 07 00 59 3C 00 00 00 00 00 D3 0C 7B [14:56:59]RasterBufferAndPrint [14:56:59]line [14:56:59]line [14:56:59]line [14:56:59]line [14:56:59]line [14:56:59]written 0, free lines is 3290 [14:56:59]MH_Cut [14:56:59]Write to MH i2c: D1 01 00 60 3C 01 6E [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: D1 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: D1 01 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: D1 01 00 60 3C 00 6D [14:56:59]Write to MH i2c: 01 00 00 61 3C 9D [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]OFD Sender: No OFD packet to send [14:57:00]*** Cut start [14:57:00]*** Partial cut [14:57:00]*** CUTSNS_PIN = 1 [14:57:00]*** CUTSNS_PIN = 0 [14:57:00]*** Brake cut motor [14:57:00]Read from MH i2c: 01 [14:57:00]MH_I2C_Read... [14:57:00]*** Stop cut motor [14:57:00]*** Cut end [14:57:00]Read from MH i2c: 01 07 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 61 3C 00 00 00 00 00 FF 0F B2 [14:57:00]process_action close_receipt done [14:57:00]requested_data is exist [14:57:00]produce_requested_data [14:57:00]requested_item fm.sn is exist - process it [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 11 00 00 [14:57:00]Write to MH i2c: E2 08 00 62 3C 80 11 00 00 00 00 00 00 18 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 17 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 17 00 62 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [14:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:57:00]wFMCommunicate OK [14:57:00]requested_item fd.num is exist - process it [14:57:00]SAM_PROTO_GetFieldsCounters [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 13 00 00 [14:57:00]Write to MH i2c: E2 08 00 63 3C 80 13 00 00 00 00 00 00 1B [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 62 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 62 00 63 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_GetFieldsCounters done [14:57:00]requested_item shift.num is exist - process it [14:57:00]requested_item shift.opened is exist - process it [14:57:00]req_shift_opened [14:57:00]FM_GetShiftState [14:57:00]SAM_PROTO_GetShiftState [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 13 01 00 [14:57:00]Write to MH i2c: E2 08 00 64 3C 80 13 01 00 00 00 00 00 1D [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0E 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0E 00 64 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 52 [14:57:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_GetShiftState done [14:57:00]FM_GetShiftState done [14:57:00]req_shift_opened done [14:57:00]requested_item shift.open_date is exist - process it [14:57:00]req_shift_open_date [14:57:00]req_shift_open_date done [14:57:00]produce_requested_data done [14:57:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112263,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [14:57:00]process_action_free close_receipt [14:57:00]json_value_free [14:57:00]json_value_free done [14:57:00]process_json_proto returns [14:57:00]Send response to host [14:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112263,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [14:57:00]free response buf [14:57:00]execute_script done [14:57:00]execute_script returns [14:57:00]free content buf [14:57:00]Sock 7.Close socket [14:57:00]Sock 7.Thread stoped [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:03]accept exits with 9 [15:01:03]New connection [15:01:03]New thread 3066813796 created [15:01:03]Thread 3066957156 joined [15:01:03]Waiting for new connection... [15:01:03] Sock 9.Parse request [15:01:03]Sock 9.Check first char [15:01:03]Sock 9.First char is OK [15:01:03]request: POST /json_proto HTTP/1.0 [15:01:03]Method: POST [15:01:03]URL: /json_proto [15:01:03]Method is POST - this is cgi request [15:01:03]url: /json_proto [15:01:03]query_string will be loaded in cgi processing [15:01:03]execute_cgi json_proto POST (null) [15:01:03]execute_cgi path=json_proto method=POST [15:01:03]POST find Content-Length [15:01:03]Host: 172.17.59.68:8080 [15:01:03]Content-Length: 1199 [15:01:03]Content-Type: application/json [15:01:03] [15:01:03]POST finish read [15:01:03]Found Content-Length = 1199 [15:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320940\u000A22.06.2024 13:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3887374;3887375\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:03]execute_script... [15:01:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320940\u000A22.06.2024 13:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3887374;3887375\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:03]POST & json_proto [15:01:03]process_json_proto [15:01:03]json parsed OK: [15:01:03]protocol is kg_v1.0 [15:01:03]action value=print_text [15:01:03]process_action print_text [15:01:03]cmd_print_text [15:01:03]ExternCall_PrintAddStr [15:01:03]wPrintStart [15:01:03]Write to MH i2c: 01 00 00 65 3C A1 [15:01:03]Write i2c OK [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: 01 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: 01 07 00 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: 01 07 00 65 3C 00 00 00 00 00 FF 0F B6 [15:01:03]RasterBufferAndPrint [15:01:03]line *****ТОВАРНЫЙ ЧЕК***** [15:01:03]line АЗС 65 [15:01:03]line Партнер нефть [15:01:03]line 02508201610067 [15:01:03]line Кассир : Амантуров Р. [15:01:03]line Счет N : (1)320940 [15:01:03]line 22.06.2024 13:27 [15:01:03]line ПРОДАЖА [15:01:03]line ТРК (МРК, ГНК): 11 [15:01:03]line Вид ГСМ : 2710124130 [15:01:03]line Аи-92-К-5 [15:01:03]line 20.000 x 66.40 [15:01:03]line ИТОГ: 1328.00 [15:01:03]line Тип оплаты: Талоны: Партнер нефть [15:01:03]line 3887374;3887375 [15:01:03]line ______________________ [15:01:03]line (подпись) [15:01:03]written 0, free lines is 4095 [15:01:03]Write to MH i2c: 01 00 00 79 3C B5 [15:01:03]Write i2c OK [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: 01 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: 01 07 00 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: 01 07 00 79 3C 00 00 00 00 00 16 0E E0 [15:01:03]RasterBufferAndPrint [15:01:03]line [15:01:03]line [15:01:03]line [15:01:03]line [15:01:03]line [15:01:03]written 0, free lines is 3608 [15:01:03]MH_Cut [15:01:03]Write to MH i2c: D1 01 00 80 3C 01 8E [15:01:03]Write i2c OK [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: D1 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: D1 01 00 [15:01:03]MH_I2C_Read... [15:01:03]Read from MH i2c: D1 01 00 80 3C 00 8D [15:01:03]Write to MH i2c: 01 00 00 81 3C BD [15:01:03]Write i2c OK [15:01:03]MH_I2C_Read... [15:01:03]*** Cut start [15:01:03]*** Partial cut [15:01:03]*** CUTSNS_PIN = 1 [15:01:03]*** CUTSNS_PIN = 0 [15:01:04]*** Brake cut motor [15:01:04]Read from MH i2c: 01 [15:01:04]MH_I2C_Read... [15:01:04]*** Stop cut motor [15:01:04]*** Cut end [15:01:04]Read from MH i2c: 01 07 00 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: 01 07 00 81 3C 00 00 00 00 00 FF 0F D2 [15:01:04]process_action print_text done [15:01:04]requested_data is exist [15:01:04]produce_requested_data [15:01:04]requested_item fm.sn is exist - process it [15:01:04]wFMCommunicate request_size=4 [15:01:04]MH_SAM_APDU [15:01:04]CAPDU: 80 11 00 00 [15:01:04]Write to MH i2c: E2 08 00 82 3C 80 11 00 00 00 00 00 00 38 [15:01:04]Write i2c OK [15:01:04]MH_I2C_Read... [15:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:04]Read from MH i2c: E2 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 17 00 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 17 00 82 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [15:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:01:04]wFMCommunicate OK [15:01:04]requested_item fd.num is exist - process it [15:01:04]SAM_PROTO_GetFieldsCounters [15:01:04]wFMCommunicate request_size=4 [15:01:04]MH_SAM_APDU [15:01:04]CAPDU: 80 13 00 00 [15:01:04]Write to MH i2c: E2 08 00 83 3C 80 13 00 00 00 00 00 00 3B [15:01:04]Write i2c OK [15:01:04]MH_I2C_Read... [15:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:04]Read from MH i2c: E2 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 62 00 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 62 00 83 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [15:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:04]wFMCommunicate OK [15:01:04]SAM_PROTO_GetFieldsCounters done [15:01:04]requested_item shift.num is exist - process it [15:01:04]requested_item shift.opened is exist - process it [15:01:04]req_shift_opened [15:01:04]FM_GetShiftState [15:01:04]SAM_PROTO_GetShiftState [15:01:04]wFMCommunicate request_size=4 [15:01:04]MH_SAM_APDU [15:01:04]CAPDU: 80 13 01 00 [15:01:04]Write to MH i2c: E2 08 00 84 3C 80 13 01 00 00 00 00 00 3D [15:01:04]Write i2c OK [15:01:04]MH_I2C_Read... [15:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:04]Read from MH i2c: E2 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 0E 00 [15:01:04]MH_I2C_Read... [15:01:04]Read from MH i2c: E2 0E 00 84 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 72 [15:01:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:01:04]wFMCommunicate OK [15:01:04]SAM_PROTO_GetShiftState done [15:01:04]FM_GetShiftState done [15:01:04]req_shift_opened done [15:01:04]requested_item shift.open_date is exist - process it [15:01:04]req_shift_open_date [15:01:04]req_shift_open_date done [15:01:04]produce_requested_data done [15:01:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112263,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:01:04]process_action_free print_text [15:01:04]json_value_free [15:01:04]json_value_free done [15:01:04]process_json_proto returns [15:01:04]Send response to host [15:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112263,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:01:04]free response buf [15:01:04]execute_script done [15:01:04]execute_script returns [15:01:04]free content buf [15:01:04]Sock 9.Close socket [15:01:04]Sock 9.Thread stoped [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:52]accept exits with 7 [15:02:52]New connection [15:02:52]New thread 3066957156 created [15:02:52]Thread 3066813796 joined [15:02:52]Waiting for new connection... [15:02:52] Sock 7.Parse request [15:02:52]Sock 7.Check first char [15:02:52]Sock 7.First char is OK [15:02:52]request: POST /json_proto HTTP/1.0 [15:02:52]Method: POST [15:02:52]URL: /json_proto [15:02:52]Method is POST - this is cgi request [15:02:52]url: /json_proto [15:02:52]query_string will be loaded in cgi processing [15:02:52]execute_cgi json_proto POST (null) [15:02:52]execute_cgi path=json_proto method=POST [15:02:52]POST find Content-Length [15:02:52]Host: 172.17.59.68:8080 [15:02:52]Content-Length: 677 [15:02:52]Content-Type: application/json [15:02:52] [15:02:52]POST finish read [15:02:52]Found Content-Length = 677 [15:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320941", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:02:52]execute_script... [15:02: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)320941", "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.40, "quantity" : 6.030, "sum" : 400.39, "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:02:52]POST & json_proto [15:02:52]process_json_proto [15:02:52]json parsed OK: [15:02:52]protocol is kg_v1.0 [15:02:52]action value=close_receipt [15:02:52]process_action close_receipt [15:02:52]cmd_close_receipt [15:02:52]MH_GetDate [15:02:52]Write to MH i2c: F0 00 00 85 3C B0 [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: F0 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: F0 09 00 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: F0 09 00 85 3C 00 B6 E7 76 66 BC EC 60 65 9F [15:02:52]GetLastDocTimeStamp 1719068243 [15:02:52]current date 1719068598 [15:02:52]FM_GetShiftState [15:02:52]SAM_PROTO_GetShiftState [15:02:52]wFMCommunicate request_size=4 [15:02:52]MH_SAM_APDU [15:02:52]CAPDU: 80 13 01 00 [15:02:52]Write to MH i2c: E2 08 00 86 3C 80 13 01 00 00 00 00 00 3F [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:52]Read from MH i2c: E2 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 0E 00 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 0E 00 86 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 74 [15:02:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:02:52]wFMCommunicate OK [15:02:52]SAM_PROTO_GetShiftState done [15:02:52]FM_GetShiftState done [15:02:52]opened in 1719020067 [15:02:52]opened+sec_in_day 1719106467 [15:02:52]quantity*price = 40039 [15:02:52]sum+1 = 40040 [15:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 130 22.06.2024 15:03 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112264 ФПД: 7319028305400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T150318&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112264&fm=7319028305400&tin=02508201610067®Number=0000000000092771&sum=40000 [15:02:53]StoreToDocumentArchive [15:02:53]shift 391 fd 112264 [15:02:53]save to /storage/0391/doc_00112264 [15:02:53]save last doc name /storage/0391/doc_00112264 to /storage/kkm_last_doc_name [15:02:53]save OK [15:02:53]Clear old archive folders... [15:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:53]tlvbuf is 0123B510 [15:02:53]SAM_PROTO_ClearQueue [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 09 00 00 [15:02:53]Write to MH i2c: E2 08 00 93 3C 80 09 00 00 00 00 00 00 41 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 93 3C 00 90 00 43 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]SAM_PROTO_ClearQueue done [15:02:53]KKMCreateOFDPacket [15:02:53]OFDProtocolAddRootSTLVToBuf [15:02:53]FM_MakeSignedData [15:02:53]FM_MakeSignedData [15:02:53]SAM_PROTO_SignData [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 01 02 [15:02:53]Write to MH i2c: E2 08 00 94 3C 80 0D 01 02 00 00 00 00 49 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 94 3C 00 90 00 44 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]wFMCommunicate request_size=255 [15:02:53]MH_SAM_APDU [15:02: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B6 E7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B6 01 00 35 04 06 00 06 [15:02:53]Write to MH i2c: E2 02 01 95 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B6 E7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B6 01 00 35 04 06 00 06 00 00 93 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 95 3C 00 90 00 45 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]wFMCommunicate request_size=10 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 02 02 05 A8 18 15 0D F8 [15:02:53]Write to MH i2c: E2 0D 00 96 3C 80 0D 02 02 05 00 A8 18 15 0D F8 00 00 30 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 96 3C 00 90 00 46 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 03 02 [15:02:53]Write to MH i2c: E2 08 00 97 3C 80 0D 03 02 00 00 00 00 4E [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:54]Read from MH i2c: E2 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 0B 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 0B 00 97 3C 00 12 DC 42 ED 71 B0 AF 65 90 00 A1 [15:02:54]RAPDU: 12 DC 42 ED 71 B0 AF 65 90 00 [15:02:54]wFMCommunicate OK [15:02:54]SAM_PROTO_SignData done [15:02:54]FM_MakeSignedData done [15:02:54]CreateOFDProtocolMessage [15:02:54]wFMCommunicate request_size=4 [15:02:54]MH_SAM_APDU [15:02:54]CAPDU: 80 11 00 00 [15:02:54]Write to MH i2c: E2 08 00 98 3C 80 11 00 00 00 00 00 00 4E [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:54]Read from MH i2c: E2 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 17 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 17 00 98 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [15:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:02:54]wFMCommunicate OK [15:02:54]CreateOFDProtocolMessage done [15:02:54]OFDSenderStorePacket 112264 [15:02:54]StoreOFDPacket docnum=112264 [15:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5F 2C 07 01 81 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B6 E7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B6 01 00 35 04 06 00 06 A8 18 15 0D F8 12 DC 42 ED 71 B0 AF 65 [15:02:54]CheckFolder [15:02:54]dirname=/storage/ofd_packets [15:02:54]CheckFolder done [15:02:54]ProducePacketName [15:02:54]name=ofd_packets/00112264 [15:02:54]NVStorageSaveData ofd_packets/00112264 [15:02:54]File name is /storage/ofd_packets/00112264 [15:02:54]Write 301 bytes [15:02:54]NVStorageSaveData done [15:02:54]OFDSenderStorePacket done [15:02:54]KKMCreateOFDPacket done [15:02:54]NVStorageSaveData kkm_last_timestamp [15:02:54]File name is /storage/kkm_last_timestamp [15:02:54]Write 4 bytes [15:02:54]NVStorageSaveData done [15:02:54]ExternCall_PrintAddStr [15:02:54]wPrintStart [15:02:54]Write to MH i2c: 01 00 00 99 3C D5 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 99 3C 00 00 00 00 00 FF 0F EA [15:02:54]RasterBufferAndPrint [15:02:54]line Счет N : (1)320941 [15:02:54]line ИНН: 02508201610067 [15:02:54]line Контрольно-Кассовый Чек [15:02:54]line ПРОДАЖА [15:02:54]line ТРК (МРК, ГНК) : 11 [15:02:54]line Товар: 2710124130 [15:02:54]line Аи-92-К-5 [15:02:54]line 6.030 * 66.40 [15:02:54]line = 400.39 [15:02:54]line НДС 12% НСП 1% [15:02:54]line > о реализуемом товаре [15:02:54]line ОКРУГЛЕНИЕ: -0.39 [15:02:54]line ИТОГО: 400.00 [15:02:54]line Внесено: 400.00 [15:02:54]line СДАЧА: 0.00 [15:02:54]line НСП 1% : 3.54 [15:02:54]line НДС 12% : 42.52 [15:02:54]line Наличными: 400.00 [15:02:54]line Безнал.: 0.00 [15:02:54]line Место: АЗС № 65 "Партнер Нефть" [15:02:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:02:54]line СНО: Общий режим [15:02:54]line Чек 130 22.06.2024 15:03 [15:02:54]line Смена: 391 ФФД: 1.0 [15:02:54]line ЗНМ: 0300000198 [15:02:54]line РНМ: 0000000000092771 [15:02:54]line Версия ККМ: 001 [15:02:54]line ФМ: 0000000000875083 [15:02:54]line ФД: 112264 [15:02:54]line ФПД: 7319028305400 [15:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T150318&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112264&fm=7319028305400&tin=02508201610067®Number=0000000000092771&sum=40000 [15:02:54]OFD Sender: Processing packet 112264 [packets to send 38, broken 37] [15:02:54]ProducePacketName [15:02:54]name=ofd_packets/00112264 [15:02:54]OFD Sender: To server: pG, [15:02:54]CommunicateWithHost lk.salyk.kg:30040 [15:02:54]ConnectInit lk.salyk.kg [15:02:54]written 0, free lines is 4095 [15:02:54]Connected sock=10 [15:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5F 2C 07 01 81 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B6 E7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B6 01 00 35 04 06 00 06 A8 18 15 0D F8 12 DC 42 ED 71 B0 AF 65 [15:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CA 07 47 00 B8 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B6 01 00 F4 03 04 00 BF 7E 76 66 B6 04 01 00 00 8B BB F2 4C BB 6F 5B 38 [15:02:54]CommunicateWithHost err = 0 [15:02:54]CheckOFDResponse [15:02:54]1017 (14) - 77093643461234 [15:02:54]1041 (16) - 0000000000875083 [15:02:54]1040 (4) - 112264 [15:02:54]1012 (4) - 22.06.2024 07:35 [15:02:54]1206 (1) - 0 [15:02:54]OFD Sender: Remove packet 112264 [15:02:54]ProducePacketName [15:02:54]name=ofd_packets/00112264 [15:02:54]NVStorageDeleteData [15:02:54]Write to MH i2c: 01 00 00 C4 3C 00 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 C4 3C 00 00 00 00 00 DD 0C F0 [15:02:54]RasterBufferAndPrint [15:02:54]line [15:02:54]line [15:02:54]line [15:02:54]line [15:02:54]line [15:02:54]written 0, free lines is 3299 [15:02:54]MH_Cut [15:02:54]Write to MH i2c: D1 01 00 CB 3C 01 D9 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: D1 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: D1 01 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: D1 01 00 CB 3C 00 D8 [15:02:54]Write to MH i2c: 01 00 00 CC 3C 08 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:55]OFD Sender: No OFD packet to send [15:02:55]*** Cut start [15:02:55]*** Partial cut [15:02:55]*** CUTSNS_PIN = 1 [15:02:55]*** CUTSNS_PIN = 0 [15:02:55]*** Brake cut motor [15:02:56]Read from MH i2c: 01 [15:02:56]MH_I2C_Read... [15:02:56]*** Stop cut motor [15:02:56]*** Cut end [15:02:56]Read from MH i2c: 01 07 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: 01 07 00 CC 3C 00 00 00 00 00 FF 0F 1D [15:02:56]process_action close_receipt done [15:02:56]requested_data is exist [15:02:56]produce_requested_data [15:02:56]requested_item fm.sn is exist - process it [15:02:56]wFMCommunicate request_size=4 [15:02:56]MH_SAM_APDU [15:02:56]CAPDU: 80 11 00 00 [15:02:56]Write to MH i2c: E2 08 00 CD 3C 80 11 00 00 00 00 00 00 83 [15:02:56]Write i2c OK [15:02:56]MH_I2C_Read... [15:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:56]Read from MH i2c: E2 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 17 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 17 00 CD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [15:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:02:56]wFMCommunicate OK [15:02:56]requested_item fd.num is exist - process it [15:02:56]SAM_PROTO_GetFieldsCounters [15:02:56]wFMCommunicate request_size=4 [15:02:56]MH_SAM_APDU [15:02:56]CAPDU: 80 13 00 00 [15:02:56]Write to MH i2c: E2 08 00 CE 3C 80 13 00 00 00 00 00 00 86 [15:02:56]Write i2c OK [15:02:56]MH_I2C_Read... [15:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:56]Read from MH i2c: E2 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 62 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 62 00 CE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [15:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:56]wFMCommunicate OK [15:02:56]SAM_PROTO_GetFieldsCounters done [15:02:56]requested_item shift.num is exist - process it [15:02:56]requested_item shift.opened is exist - process it [15:02:56]req_shift_opened [15:02:56]FM_GetShiftState [15:02:56]SAM_PROTO_GetShiftState [15:02:56]wFMCommunicate request_size=4 [15:02:56]MH_SAM_APDU [15:02:56]CAPDU: 80 13 01 00 [15:02:56]Write to MH i2c: E2 08 00 CF 3C 80 13 01 00 00 00 00 00 88 [15:02:56]Write i2c OK [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 [15:02:56]MH_I2C_Read... [15:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:56]Read from MH i2c: E2 0E 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 0E 00 CF 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BD [15:02:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:02:56]wFMCommunicate OK [15:02:56]SAM_PROTO_GetShiftState done [15:02:56]FM_GetShiftState done [15:02:56]req_shift_opened done [15:02:56]requested_item shift.open_date is exist - process it [15:02:56]req_shift_open_date [15:02:56]req_shift_open_date done [15:02:56]produce_requested_data done [15:02:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112264,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:02:56]process_action_free close_receipt [15:02:56]json_value_free [15:02:56]json_value_free done [15:02:56]process_json_proto returns [15:02:56]Send response to host [15:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112264,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:02:56]free response buf [15:02:56]execute_script done [15:02:56]execute_script returns [15:02:56]free content buf [15:02:56]Sock 7.Close socket [15:02:56]Sock 7.Thread stoped [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:06]accept exits with 9 [15:17:06]New connection [15:17:06]New thread 3066813796 created [15:17:06]Thread 3066957156 joined [15:17:06]Waiting for new connection... [15:17:06] Sock 9.Parse request [15:17:06]Sock 9.Check first char [15:17:06]Sock 9.First char is OK [15:17:06]request: POST /json_proto HTTP/1.0 [15:17:06]Method: POST [15:17:06]URL: /json_proto [15:17:06]Method is POST - this is cgi request [15:17:06]url: /json_proto [15:17:06]query_string will be loaded in cgi processing [15:17:06]execute_cgi json_proto POST (null) [15:17:06]execute_cgi path=json_proto method=POST [15:17:06]POST find Content-Length [15:17:06]Host: 172.17.59.68:8080 [15:17:06]Content-Length: 677 [15:17:06]Content-Type: application/json [15:17:06] [15:17:06]POST finish read [15:17:06]Found Content-Length = 677 [15:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320942", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:17:06]execute_script... [15:17: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)320942", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:17:06]POST & json_proto [15:17:06]process_json_proto [15:17:06]json parsed OK: [15:17:06]protocol is kg_v1.0 [15:17:06]action value=close_receipt [15:17:06]process_action close_receipt [15:17:06]cmd_close_receipt [15:17:06]MH_GetDate [15:17:06]Write to MH i2c: F0 00 00 D0 3C FB [15:17:06]Write i2c OK [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: F0 [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: F0 09 00 [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: F0 09 00 D0 3C 00 0D EB 76 66 BC EC 60 65 45 [15:17:06]GetLastDocTimeStamp 1719068598 [15:17:06]current date 1719069453 [15:17:06]FM_GetShiftState [15:17:06]SAM_PROTO_GetShiftState [15:17:06]wFMCommunicate request_size=4 [15:17:06]MH_SAM_APDU [15:17:06]CAPDU: 80 13 01 00 [15:17:06]Write to MH i2c: E2 08 00 D1 3C 80 13 01 00 00 00 00 00 8A [15:17:06]Write i2c OK [15:17:06]MH_I2C_Read... [15:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:06]Read from MH i2c: E2 [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: E2 0E 00 [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: E2 0E 00 D1 3C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BF [15:17:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:17:06]wFMCommunicate OK [15:17:06]SAM_PROTO_GetShiftState done [15:17:06]FM_GetShiftState done [15:17:06]opened in 1719020067 [15:17:06]opened+sec_in_day 1719106467 [15:17:06]quantity*price = 30012 [15:17:06]sum+1 = 30014 [15:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 131 22.06.2024 15:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112265 ФПД: 200807153022280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151733&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112265&fm=200807153022280&tin=02508201610067®Number=0000000000092771&sum=30000 [15:17:07]StoreToDocumentArchive [15:17:07]shift 391 fd 112265 [15:17:07]save to /storage/0391/doc_00112265 [15:17:07]save last doc name /storage/0391/doc_00112265 to /storage/kkm_last_doc_name [15:17:07]save OK [15:17:07]Clear old archive folders... [15:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:07]tlvbuf is B6F56180 [15:17:07]SAM_PROTO_ClearQueue [15:17:07]wFMCommunicate request_size=4 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 09 00 00 [15:17:07]Write to MH i2c: E2 08 00 DE 3C 80 09 00 00 00 00 00 00 8C [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 DE 3C 00 90 00 8E [15:17:07]RAPDU: 90 00 [15:17:07]wFMCommunicate OK [15:17:07]SAM_PROTO_ClearQueue done [15:17:07]KKMCreateOFDPacket [15:17:07]OFDProtocolAddRootSTLVToBuf [15:17:07]FM_MakeSignedData [15:17:07]FM_MakeSignedData [15:17:07]SAM_PROTO_SignData [15:17:07]wFMCommunicate request_size=4 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 0D 01 02 [15:17:07]Write to MH i2c: E2 08 00 DF 3C 80 0D 01 02 00 00 00 00 94 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 03 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 03 00 DF 3C 00 90 00 8F [15:17:08]RAPDU: 90 00 [15:17:08]wFMCommunicate OK [15:17:08]wFMCommunicate request_size=255 [15:17:08]MH_SAM_APDU [15:17: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0D EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B6 01 00 35 04 06 00 B6 [15:17:08]Write to MH i2c: E2 02 01 E0 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0D EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B6 01 00 35 04 06 00 B6 00 00 BB [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 03 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 03 00 E0 3C 00 90 00 90 [15:17:08]RAPDU: 90 00 [15:17:08]wFMCommunicate OK [15:17:08]wFMCommunicate request_size=10 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 0D 02 02 05 A2 0F 06 35 48 [15:17:08]Write to MH i2c: E2 0D 00 E1 3C 80 0D 02 02 05 00 A2 0F 06 35 48 00 00 D5 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 03 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 03 00 E1 3C 00 90 00 91 [15:17:08]RAPDU: 90 00 [15:17:08]wFMCommunicate OK [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 0D 03 02 [15:17:08]Write to MH i2c: E2 08 00 E2 3C 80 0D 03 02 00 00 00 00 99 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0B 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0B 00 E2 3C 00 95 78 FA 37 AD 43 DB F1 90 00 94 [15:17:08]RAPDU: 95 78 FA 37 AD 43 DB F1 90 00 [15:17:08]wFMCommunicate OK [15:17:08]SAM_PROTO_SignData done [15:17:08]FM_MakeSignedData done [15:17:08]CreateOFDProtocolMessage [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 11 00 00 [15:17:08]Write to MH i2c: E2 08 00 E3 3C 80 11 00 00 00 00 00 00 99 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 17 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 17 00 E3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EB [15:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:17:08]wFMCommunicate OK [15:17:08]CreateOFDProtocolMessage done [15:17:08]OFDSenderStorePacket 112265 [15:17:08]StoreOFDPacket docnum=112265 [15:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 8A 07 01 5E 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0D EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B6 01 00 35 04 06 00 B6 A2 0F 06 35 48 95 78 FA 37 AD 43 DB F1 [15:17:08]CheckFolder [15:17:08]dirname=/storage/ofd_packets [15:17:08]CheckFolder done [15:17:08]ProducePacketName [15:17:08]name=ofd_packets/00112265 [15:17:08]NVStorageSaveData ofd_packets/00112265 [15:17:08]File name is /storage/ofd_packets/00112265 [15:17:08]Write 301 bytes [15:17:08]NVStorageSaveData done [15:17:08]OFDSenderStorePacket done [15:17:08]KKMCreateOFDPacket done [15:17:08]NVStorageSaveData kkm_last_timestamp [15:17:08]File name is /storage/kkm_last_timestamp [15:17:08]Write 4 bytes [15:17:08]NVStorageSaveData done [15:17:08]ExternCall_PrintAddStr [15:17:08]wPrintStart [15:17:08]Write to MH i2c: 01 00 00 E4 3C 20 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: 01 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: 01 07 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: 01 07 00 E4 3C 00 00 00 00 00 FF 0F 35 [15:17:08]RasterBufferAndPrint [15:17:08]line Счет N : (1)320942 [15:17:08]line ИНН: 02508201610067 [15:17:08]line Контрольно-Кассовый Чек [15:17:08]line ПРОДАЖА [15:17:08]line ТРК (МРК, ГНК) : 11 [15:17:08]line Товар: 2710124130 [15:17:08]line Аи-92-К-5 [15:17:08]line 4.520 * 66.40 [15:17:08]line = 300.13 [15:17:08]line НДС 12% НСП 1% [15:17:08]line > о реализуемом товаре [15:17:08]line ОКРУГЛЕНИЕ: -0.13 [15:17:08]line ИТОГО: 300.00 [15:17:08]line Внесено: 300.00 [15:17:08]line СДАЧА: 0.00 [15:17:08]line НСП 1% : 2.66 [15:17:08]line НДС 12% : 31.87 [15:17:08]line Наличными: 300.00 [15:17:08]line Безнал.: 0.00 [15:17:08]line Место: АЗС № 65 "Партнер Нефть" [15:17:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:17:08]line СНО: Общий режим [15:17:08]line Чек 131 22.06.2024 15:17 [15:17:08]line Смена: 391 ФФД: 1.0 [15:17:08]line ЗНМ: 0300000198 [15:17:08]line РНМ: 0000000000092771 [15:17:08]line Версия ККМ: 001 [15:17:08]line ФМ: 0000000000875083 [15:17:08]line ФД: 112265 [15:17:08]line ФПД: 200807153022280 [15:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151733&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112265&fm=200807153022280&tin=02508201610067®Number=0000000000092771&sum=30000 [15:17:08]OFD Sender: Processing packet 112265 [packets to send 38, broken 37] [15:17:08]ProducePacketName [15:17:08]name=ofd_packets/00112265 [15:17:08]OFD Sender: To server: pG, [15:17:08]CommunicateWithHost lk.salyk.kg:30040 [15:17:08]ConnectInit lk.salyk.kg [15:17:08]written 0, free lines is 4095 [15:17:08]Connected sock=10 [15:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 8A 07 01 5E 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0D EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B6 01 00 35 04 06 00 B6 A2 0F 06 35 48 95 78 FA 37 AD 43 DB F1 [15:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A 1B 47 00 55 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B6 01 00 F4 03 04 00 16 82 76 66 B6 04 01 00 00 21 03 CE 26 F8 CE C9 1F [15:17:09]CommunicateWithHost err = 0 [15:17:09]CheckOFDResponse [15:17:09]1017 (14) - 77093643461234 [15:17:09]1041 (16) - 0000000000875083 [15:17:09]1040 (4) - 112265 [15:17:09]1012 (4) - 22.06.2024 07:49 [15:17:09]1206 (1) - 0 [15:17:09]OFD Sender: Remove packet 112265 [15:17:09]ProducePacketName [15:17:09]name=ofd_packets/00112265 [15:17:09]NVStorageDeleteData [15:17:09]Write to MH i2c: 01 00 00 0F 3D 4C [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: 01 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: 01 07 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: 01 07 00 0F 3D 00 00 00 00 00 D0 0C 2F [15:17:09]RasterBufferAndPrint [15:17:09]line [15:17:09]line [15:17:09]line [15:17:09]line [15:17:09]line [15:17:09]written 0, free lines is 3288 [15:17:09]MH_Cut [15:17:09]Write to MH i2c: D1 01 00 16 3D 01 25 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: D1 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: D1 01 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: D1 01 00 16 3D 00 24 [15:17:09]Write to MH i2c: 01 00 00 17 3D 54 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]OFD Sender: No OFD packet to send [15:17:10]*** Cut start [15:17:10]*** Partial cut [15:17:10]*** CUTSNS_PIN = 1 [15:17:10]*** CUTSNS_PIN = 0 [15:17:10]*** Brake cut motor [15:17:10]Read from MH i2c: 01 [15:17:10]MH_I2C_Read... [15:17:10]*** Stop cut motor [15:17:10]*** Cut end [15:17:10]Read from MH i2c: 01 07 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 17 3D 00 00 00 00 00 FF 0F 69 [15:17:10]process_action close_receipt done [15:17:10]requested_data is exist [15:17:10]produce_requested_data [15:17:10]requested_item fm.sn is exist - process it [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 11 00 00 [15:17:10]Write to MH i2c: E2 08 00 18 3D 80 11 00 00 00 00 00 00 CF [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 17 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 17 00 18 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [15:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:17:10]wFMCommunicate OK [15:17:10]requested_item fd.num is exist - process it [15:17:10]SAM_PROTO_GetFieldsCounters [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 13 00 00 [15:17:10]Write to MH i2c: E2 08 00 19 3D 80 13 00 00 00 00 00 00 D2 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 62 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 62 00 19 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:10]wFMCommunicate OK [15:17:10]SAM_PROTO_GetFieldsCounters done [15:17:10]requested_item shift.num is exist - process it [15:17:10]requested_item shift.opened is exist - process it [15:17:10]req_shift_opened [15:17:10]FM_GetShiftState [15:17:10]SAM_PROTO_GetShiftState [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 13 01 00 [15:17:10]Write to MH i2c: E2 08 00 1A 3D 80 13 01 00 00 00 00 00 D4 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 0E 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 0E 00 1A 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 09 [15:17:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:17:10]wFMCommunicate OK [15:17:10]SAM_PROTO_GetShiftState done [15:17:10]FM_GetShiftState done [15:17:10]req_shift_opened done [15:17:10]requested_item shift.open_date is exist - process it [15:17:10]req_shift_open_date [15:17:10]req_shift_open_date done [15:17:10]produce_requested_data done [15:17:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112265,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:17:10]process_action_free close_receipt [15:17:10]json_value_free [15:17:10]json_value_free done [15:17:10]process_json_proto returns [15:17:10]Send response to host [15:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112265,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:17:10]free response buf [15:17:10]execute_script done [15:17:10]execute_script returns [15:17:10]free content buf [15:17:10]Sock 9.Close socket [15:17:10]Sock 9.Thread stoped [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:42]accept exits with 7 [15:17:42]New connection [15:17:42]New thread 3066957156 created [15:17:42]Thread 3066813796 joined [15:17:42]Waiting for new connection... [15:17:42] Sock 7.Parse request [15:17:42]Sock 7.Check first char [15:17:42]Sock 7.First char is OK [15:17:42]request: POST /json_proto HTTP/1.0 [15:17:42]Method: POST [15:17:42]URL: /json_proto [15:17:42]Method is POST - this is cgi request [15:17:42]url: /json_proto [15:17:42]query_string will be loaded in cgi processing [15:17:42]execute_cgi json_proto POST (null) [15:17:42]execute_cgi path=json_proto method=POST [15:17:42]POST find Content-Length [15:17:42]Host: 172.17.59.68:8080 [15:17:42]Content-Length: 677 [15:17:42]Content-Type: application/json [15:17:42] [15:17:42]POST finish read [15:17:42]Found Content-Length = 677 [15:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320943", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:42]execute_script... [15:17: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)320943", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:42]POST & json_proto [15:17:42]process_json_proto [15:17:42]json parsed OK: [15:17:42]protocol is kg_v1.0 [15:17:42]action value=close_receipt [15:17:42]process_action close_receipt [15:17:42]cmd_close_receipt [15:17:42]MH_GetDate [15:17:42]Write to MH i2c: F0 00 00 1B 3D 47 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: F0 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: F0 09 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: F0 09 00 1B 3D 00 30 EB 76 66 BC EC 60 65 B4 [15:17:42]GetLastDocTimeStamp 1719069453 [15:17:42]current date 1719069488 [15:17:42]FM_GetShiftState [15:17:42]SAM_PROTO_GetShiftState [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 13 01 00 [15:17:42]Write to MH i2c: E2 08 00 1C 3D 80 13 01 00 00 00 00 00 D6 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0E 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0E 00 1C 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0B [15:17:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:17:42]wFMCommunicate OK [15:17:42]SAM_PROTO_GetShiftState done [15:17:42]FM_GetShiftState done [15:17:42]opened in 1719020067 [15:17:42]opened+sec_in_day 1719106467 [15:17:42]quantity*price = 60025 [15:17:42]sum+1 = 60027 [15:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 132 22.06.2024 15:18 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112266 ФПД: 43358665102078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112266&fm=43358665102078&tin=02508201610067®Number=0000000000092771&sum=60000 [15:17:43]StoreToDocumentArchive [15:17:43]shift 391 fd 112266 [15:17:43]save to /storage/0391/doc_00112266 [15:17:43]save last doc name /storage/0391/doc_00112266 to /storage/kkm_last_doc_name [15:17:43]save OK [15:17:43]Clear old archive folders... [15:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:43]tlvbuf is 01185590 [15:17:43]SAM_PROTO_ClearQueue [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 09 00 00 [15:17:43]Write to MH i2c: E2 08 00 29 3D 80 09 00 00 00 00 00 00 D8 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 29 3D 00 90 00 DA [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_ClearQueue done [15:17:43]KKMCreateOFDPacket [15:17:43]OFDProtocolAddRootSTLVToBuf [15:17:43]FM_MakeSignedData [15:17:43]FM_MakeSignedData [15:17:43]SAM_PROTO_SignData [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 01 02 [15:17:43]Write to MH i2c: E2 08 00 2A 3D 80 0D 01 02 00 00 00 00 E0 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 2A 3D 00 90 00 DB [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]wFMCommunicate request_size=255 [15:17:43]MH_SAM_APDU [15:17: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 30 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B6 01 00 35 04 06 00 27 [15:17:43]Write to MH i2c: E2 02 01 2B 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 30 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B6 01 00 35 04 06 00 27 00 00 DC [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 2B 3D 00 90 00 DC [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]wFMCommunicate request_size=10 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 02 02 05 6F 39 D4 D2 FE [15:17:43]Write to MH i2c: E2 0D 00 2C 3D 80 0D 02 02 05 00 6F 39 D4 D2 FE 00 00 39 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 2C 3D 00 90 00 DD [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 03 02 [15:17:43]Write to MH i2c: E2 08 00 2D 3D 80 0D 03 02 00 00 00 00 E5 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0B 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0B 00 2D 3D 00 77 CB 11 F1 06 A1 03 22 90 00 F6 [15:17:43]RAPDU: 77 CB 11 F1 06 A1 03 22 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_SignData done [15:17:43]FM_MakeSignedData done [15:17:43]CreateOFDProtocolMessage [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 11 00 00 [15:17:43]Write to MH i2c: E2 08 00 2E 3D 80 11 00 00 00 00 00 00 E5 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 17 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 17 00 2E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [15:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:17:43]wFMCommunicate OK [15:17:43]CreateOFDProtocolMessage done [15:17:43]OFDSenderStorePacket 112266 [15:17:43]StoreOFDPacket docnum=112266 [15:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 56 07 01 55 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 30 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B6 01 00 35 04 06 00 27 6F 39 D4 D2 FE 77 CB 11 F1 06 A1 03 22 [15:17:43]CheckFolder [15:17:43]dirname=/storage/ofd_packets [15:17:43]CheckFolder done [15:17:43]ProducePacketName [15:17:43]name=ofd_packets/00112266 [15:17:43]NVStorageSaveData ofd_packets/00112266 [15:17:43]File name is /storage/ofd_packets/00112266 [15:17:43]Write 301 bytes [15:17:43]NVStorageSaveData done [15:17:43]OFDSenderStorePacket done [15:17:43]KKMCreateOFDPacket done [15:17:43]NVStorageSaveData kkm_last_timestamp [15:17:43]File name is /storage/kkm_last_timestamp [15:17:43]Write 4 bytes [15:17:43]NVStorageSaveData done [15:17:43]ExternCall_PrintAddStr [15:17:43]wPrintStart [15:17:43]Write to MH i2c: 01 00 00 2F 3D 6C [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 07 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 07 00 2F 3D 00 00 00 00 00 FF 0F 81 [15:17:43]RasterBufferAndPrint [15:17:43]line Счет N : (1)320943 [15:17:43]line ИНН: 02508201610067 [15:17:43]line Контрольно-Кассовый Чек [15:17:43]line ПРОДАЖА [15:17:43]line ТРК (МРК, ГНК) : 11 [15:17:43]line Товар: 2710124130 [15:17:43]line Аи-92-К-5 [15:17:43]line 9.040 * 66.40 [15:17:43]line = 600.26 [15:17:43]line НДС 12% НСП 1% [15:17:43]line > о реализуемом товаре [15:17:43]line ОКРУГЛЕНИЕ: -0.26 [15:17:43]line ИТОГО: 600.00 [15:17:43]line Внесено: 600.00 [15:17:43]line СДАЧА: 0.00 [15:17:43]line НСП 1% : 5.31 [15:17:43]line НДС 12% : 63.74 [15:17:43]line Наличными: 600.00 [15:17:43]line Безнал.: 0.00 [15:17:43]line Место: АЗС № 65 "Партнер Нефть" [15:17:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:17:43]line СНО: Общий режим [15:17:43]line Чек 132 22.06.2024 15:18 [15:17:43]line Смена: 391 ФФД: 1.0 [15:17:43]line ЗНМ: 0300000198 [15:17:43]line РНМ: 0000000000092771 [15:17:43]line Версия ККМ: 001 [15:17:43]line ФМ: 0000000000875083 [15:17:43]line ФД: 112266 [15:17:43]line ФПД: 43358665102078 [15:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112266&fm=43358665102078&tin=02508201610067®Number=0000000000092771&sum=60000 [15:17:44]OFD Sender: Processing packet 112266 [packets to send 38, broken 37] [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00112266 [15:17:44]OFD Sender: To server: pG, [15:17:44]CommunicateWithHost lk.salyk.kg:30040 [15:17:44]ConnectInit lk.salyk.kg [15:17:44]written 0, free lines is 4095 [15:17:44]Connected sock=10 [15:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 56 07 01 55 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 30 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B6 01 00 35 04 06 00 27 6F 39 D4 D2 FE 77 CB 11 F1 06 A1 03 22 [15:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DA B7 47 00 20 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B6 01 00 F4 03 04 00 39 82 76 66 B6 04 01 00 00 D0 AE 17 43 0E 9F EE DB [15:17:44]CommunicateWithHost err = 0 [15:17:44]CheckOFDResponse [15:17:44]1017 (14) - 77093643461234 [15:17:44]1041 (16) - 0000000000875083 [15:17:44]1040 (4) - 112266 [15:17:44]1012 (4) - 22.06.2024 07:50 [15:17:44]1206 (1) - 0 [15:17:44]OFD Sender: Remove packet 112266 [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00112266 [15:17:44]NVStorageDeleteData [15:17:44]Write to MH i2c: 01 00 00 5A 3D 97 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 5A 3D 00 00 00 00 00 D9 0C 83 [15:17:44]RasterBufferAndPrint [15:17:44]line [15:17:44]line [15:17:44]line [15:17:44]line [15:17:44]line [15:17:44]written 0, free lines is 3296 [15:17:44]MH_Cut [15:17:44]Write to MH i2c: D1 01 00 61 3D 01 70 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: D1 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: D1 01 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: D1 01 00 61 3D 00 6F [15:17:44]Write to MH i2c: 01 00 00 62 3D 9F [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]OFD Sender: No OFD packet to send [15:17:45]*** Cut start [15:17:45]*** Partial cut [15:17:45]*** CUTSNS_PIN = 1 [15:17:45]*** CUTSNS_PIN = 0 [15:17:45]*** Brake cut motor [15:17:45]Read from MH i2c: 01 [15:17:45]MH_I2C_Read... [15:17:45]*** Stop cut motor [15:17:45]*** Cut end [15:17:45]Read from MH i2c: 01 07 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 07 00 62 3D 00 00 00 00 00 FF 0F B4 [15:17:45]process_action close_receipt done [15:17:45]requested_data is exist [15:17:45]produce_requested_data [15:17:45]requested_item fm.sn is exist - process it [15:17:45]wFMCommunicate request_size=4 [15:17:45]MH_SAM_APDU [15:17:45]CAPDU: 80 11 00 00 [15:17:45]Write to MH i2c: E2 08 00 63 3D 80 11 00 00 00 00 00 00 1A [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:45]Read from MH i2c: E2 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 17 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 17 00 63 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [15:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:17:45]wFMCommunicate OK [15:17:45]requested_item fd.num is exist - process it [15:17:45]SAM_PROTO_GetFieldsCounters [15:17:45]wFMCommunicate request_size=4 [15:17:45]MH_SAM_APDU [15:17:45]CAPDU: 80 13 00 00 [15:17:45]Write to MH i2c: E2 08 00 64 3D 80 13 00 00 00 00 00 00 1D [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 62 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 62 00 64 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:17:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:46]wFMCommunicate OK [15:17:46]SAM_PROTO_GetFieldsCounters done [15:17:46]requested_item shift.num is exist - process it [15:17:46]requested_item shift.opened is exist - process it [15:17:46]req_shift_opened [15:17:46]FM_GetShiftState [15:17:46]SAM_PROTO_GetShiftState [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 13 01 00 [15:17:46]Write to MH i2c: E2 08 00 65 3D 80 13 01 00 00 00 00 00 1F [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 65 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 54 [15:17:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:17:46]wFMCommunicate OK [15:17:46]SAM_PROTO_GetShiftState done [15:17:46]FM_GetShiftState done [15:17:46]req_shift_opened done [15:17:46]requested_item shift.open_date is exist - process it [15:17:46]req_shift_open_date [15:17:46]req_shift_open_date done [15:17:46]produce_requested_data done [15:17:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112266,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:17:46]process_action_free close_receipt [15:17:46]json_value_free [15:17:46]json_value_free done [15:17:46]process_json_proto returns [15:17:46]Send response to host [15:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112266,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:17:46]free response buf [15:17:46]execute_script done [15:17:46]execute_script returns [15:17:46]free content buf [15:17:46]Sock 7.Close socket [15:17:46]Sock 7.Thread stoped [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:51]accept exits with 9 [15:18:51]New connection [15:18:51]New thread 3066813796 created [15:18:51]Thread 3066957156 joined [15:18:51]Waiting for new connection... [15:18:51] Sock 9.Parse request [15:18:51]Sock 9.Check first char [15:18:51]Sock 9.First char is OK [15:18:51]request: POST /json_proto HTTP/1.0 [15:18:51]Method: POST [15:18:51]URL: /json_proto [15:18:51]Method is POST - this is cgi request [15:18:51]url: /json_proto [15:18:51]query_string will be loaded in cgi processing [15:18:51]execute_cgi json_proto POST (null) [15:18:51]execute_cgi path=json_proto method=POST [15:18:51]POST find Content-Length [15:18:51]Host: 172.17.59.68:8080 [15:18:51]Content-Length: 682 [15:18:51]Content-Type: application/json [15:18:51] [15:18:51]POST finish read [15:18:51]Found Content-Length = 682 [15:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320944", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:51]execute_script... [15:18: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)320944", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:51]POST & json_proto [15:18:51]process_json_proto [15:18:51]json parsed OK: [15:18:51]protocol is kg_v1.0 [15:18:51]action value=close_receipt [15:18:51]process_action close_receipt [15:18:51]cmd_close_receipt [15:18:51]MH_GetDate [15:18:51]Write to MH i2c: F0 00 00 66 3D 92 [15:18:51]Write i2c OK [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: F0 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: F0 09 00 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: F0 09 00 66 3D 00 75 EB 76 66 BC EC 60 65 44 [15:18:51]GetLastDocTimeStamp 1719069488 [15:18:51]current date 1719069557 [15:18:51]FM_GetShiftState [15:18:51]SAM_PROTO_GetShiftState [15:18:51]wFMCommunicate request_size=4 [15:18:51]MH_SAM_APDU [15:18:51]CAPDU: 80 13 01 00 [15:18:51]Write to MH i2c: E2 08 00 67 3D 80 13 01 00 00 00 00 00 21 [15:18:51]Write i2c OK [15:18:51]MH_I2C_Read... [15:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:51]Read from MH i2c: E2 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: E2 0E 00 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: E2 0E 00 67 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 56 [15:18:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:18:51]wFMCommunicate OK [15:18:51]SAM_PROTO_GetShiftState done [15:18:51]FM_GetShiftState done [15:18:51]opened in 1719020067 [15:18:51]opened+sec_in_day 1719106467 [15:18:51]quantity*price = 100064 [15:18:51]sum+1 = 100066 [15:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 133 22.06.2024 15:19 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112267 ФПД: 171571124477598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112267&fm=171571124477598&tin=02508201610067®Number=0000000000092771&sum=100000 [15:18:52]StoreToDocumentArchive [15:18:52]shift 391 fd 112267 [15:18:52]save to /storage/0391/doc_00112267 [15:18:52]save last doc name /storage/0391/doc_00112267 to /storage/kkm_last_doc_name [15:18:52]save OK [15:18:52]Clear old archive folders... [15:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:52]tlvbuf is 01233F20 [15:18:52]SAM_PROTO_ClearQueue [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 09 00 00 [15:18:52]Write to MH i2c: E2 08 00 74 3D 80 09 00 00 00 00 00 00 23 [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 74 3D 00 90 00 25 [15:18:52]RAPDU: 90 00 [15:18:52]wFMCommunicate OK [15:18:52]SAM_PROTO_ClearQueue done [15:18:52]KKMCreateOFDPacket [15:18:52]OFDProtocolAddRootSTLVToBuf [15:18:52]FM_MakeSignedData [15:18:52]FM_MakeSignedData [15:18:52]SAM_PROTO_SignData [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 0D 01 02 [15:18:52]Write to MH i2c: E2 08 00 75 3D 80 0D 01 02 00 00 00 00 2B [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 75 3D 00 90 00 26 [15:18:52]RAPDU: 90 00 [15:18:52]wFMCommunicate OK [15:18:52]wFMCommunicate request_size=255 [15:18:52]MH_SAM_APDU [15:18: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 75 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B6 01 00 35 04 06 00 9C [15:18:52]Write to MH i2c: E2 02 01 76 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 75 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B6 01 00 35 04 06 00 9C 00 00 56 [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 76 3D 00 90 00 27 [15:18:52]RAPDU: 90 00 [15:18:52]wFMCommunicate OK [15:18:52]wFMCommunicate request_size=10 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 0D 02 02 05 0B 03 ED 9E 9E [15:18:52]Write to MH i2c: E2 0D 00 77 3D 80 0D 02 02 05 00 0B 03 ED 9E 9E 00 00 6F [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 03 00 77 3D 00 90 00 28 [15:18:52]RAPDU: 90 00 [15:18:52]wFMCommunicate OK [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 0D 03 02 [15:18:52]Write to MH i2c: E2 08 00 78 3D 80 0D 03 02 00 00 00 00 30 [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 0B 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 0B 00 78 3D 00 8E 2E FE 90 C6 8D 00 3F 90 00 0D [15:18:52]RAPDU: 8E 2E FE 90 C6 8D 00 3F 90 00 [15:18:52]wFMCommunicate OK [15:18:52]SAM_PROTO_SignData done [15:18:52]FM_MakeSignedData done [15:18:52]CreateOFDProtocolMessage [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 11 00 00 [15:18:52]Write to MH i2c: E2 08 00 79 3D 80 11 00 00 00 00 00 00 30 [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 17 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 17 00 79 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 82 [15:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:18:52]wFMCommunicate OK [15:18:52]CreateOFDProtocolMessage done [15:18:52]OFDSenderStorePacket 112267 [15:18:52]StoreOFDPacket docnum=112267 [15:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FF 97 07 01 36 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 75 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B6 01 00 35 04 06 00 9C 0B 03 ED 9E 9E 8E 2E FE 90 C6 8D 00 3F [15:18:52]CheckFolder [15:18:52]dirname=/storage/ofd_packets [15:18:52]CheckFolder done [15:18:52]ProducePacketName [15:18:52]name=ofd_packets/00112267 [15:18:52]NVStorageSaveData ofd_packets/00112267 [15:18:52]File name is /storage/ofd_packets/00112267 [15:18:52]Write 301 bytes [15:18:52]NVStorageSaveData done [15:18:52]OFDSenderStorePacket done [15:18:52]KKMCreateOFDPacket done [15:18:52]NVStorageSaveData kkm_last_timestamp [15:18:52]File name is /storage/kkm_last_timestamp [15:18:52]Write 4 bytes [15:18:52]NVStorageSaveData done [15:18:52]ExternCall_PrintAddStr [15:18:52]wPrintStart [15:18:52]Write to MH i2c: 01 00 00 7A 3D B7 [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: 01 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: 01 07 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: 01 07 00 7A 3D 00 00 00 00 00 FF 0F CC [15:18:52]RasterBufferAndPrint [15:18:52]line Счет N : (1)320944 [15:18:52]line ИНН: 02508201610067 [15:18:52]line Контрольно-Кассовый Чек [15:18:52]line ПРОДАЖА [15:18:52]line ТРК (МРК, ГНК) : 11 [15:18:52]line Товар: 2710124130 [15:18:52]line Аи-92-К-5 [15:18:52]line 15.070 * 66.40 [15:18:52]line = 1000.65 [15:18:52]line НДС 12% НСП 1% [15:18:52]line > о реализуемом товаре [15:18:52]line ОКРУГЛЕНИЕ: -0.65 [15:18:52]line ИТОГО: 1000.00 [15:18:52]line Внесено: 1000.00 [15:18:52]line СДАЧА: 0.00 [15:18:52]line НСП 1% : 8.85 [15:18:52]line НДС 12% : 106.26 [15:18:52]line Наличными: 1000.00 [15:18:52]line Безнал.: 0.00 [15:18:52]line Место: АЗС № 65 "Партнер Нефть" [15:18:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:18:52]line СНО: Общий режим [15:18:52]line Чек 133 22.06.2024 15:19 [15:18:52]line Смена: 391 ФФД: 1.0 [15:18:52]line ЗНМ: 0300000198 [15:18:52]line РНМ: 0000000000092771 [15:18:52]line Версия ККМ: 001 [15:18:52]line ФМ: 0000000000875083 [15:18:52]line ФД: 112267 [15:18:52]line ФПД: 171571124477598 [15:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112267&fm=171571124477598&tin=02508201610067®Number=0000000000092771&sum=100000 [15:18:53]OFD Sender: Processing packet 112267 [packets to send 38, broken 37] [15:18:53]ProducePacketName [15:18:53]name=ofd_packets/00112267 [15:18:53]OFD Sender: To server: pG, [15:18:53]CommunicateWithHost lk.salyk.kg:30040 [15:18:53]ConnectInit lk.salyk.kg [15:18:53]written 0, free lines is 4095 [15:18:53]Connected sock=10 [15:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FF 97 07 01 36 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 75 EB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B6 01 00 35 04 06 00 9C 0B 03 ED 9E 9E 8E 2E FE 90 C6 8D 00 3F [15:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DF AA 47 00 C5 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B6 01 00 F4 03 04 00 7E 82 76 66 B6 04 01 00 00 97 2C 9C 69 1B C8 63 3C [15:18:53]CommunicateWithHost err = 0 [15:18:53]CheckOFDResponse [15:18:53]1017 (14) - 77093643461234 [15:18:53]1041 (16) - 0000000000875083 [15:18:53]1040 (4) - 112267 [15:18:53]1012 (4) - 22.06.2024 07:51 [15:18:53]1206 (1) - 0 [15:18:53]OFD Sender: Remove packet 112267 [15:18:53]ProducePacketName [15:18:53]name=ofd_packets/00112267 [15:18:53]NVStorageDeleteData [15:18:53]Write to MH i2c: 01 00 00 A5 3D E2 [15:18:53]Write i2c OK [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: 01 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: 01 07 00 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: 01 07 00 A5 3D 00 00 00 00 00 D4 0C C9 [15:18:53]RasterBufferAndPrint [15:18:53]line [15:18:53]line [15:18:53]line [15:18:53]line [15:18:53]line [15:18:53]written 0, free lines is 3292 [15:18:53]MH_Cut [15:18:53]Write to MH i2c: D1 01 00 AC 3D 01 BB [15:18:53]Write i2c OK [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: D1 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: D1 01 00 [15:18:53]MH_I2C_Read... [15:18:53]Read from MH i2c: D1 01 00 AC 3D 00 BA [15:18:53]Write to MH i2c: 01 00 00 AD 3D EA [15:18:53]Write i2c OK [15:18:53]MH_I2C_Read... [15:18:53]OFD Sender: No OFD packet to send [15:18:54]*** Cut start [15:18:54]*** Partial cut [15:18:54]*** CUTSNS_PIN = 1 [15:18:54]*** CUTSNS_PIN = 0 [15:18:54]*** Brake cut motor [15:18:54]Read from MH i2c: 01 [15:18:54]MH_I2C_Read... [15:18:54]*** Stop cut motor [15:18:54]*** Cut end [15:18:54]Read from MH i2c: 01 07 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: 01 07 00 AD 3D 00 00 00 00 00 FF 0F FF [15:18:54]process_action close_receipt done [15:18:54]requested_data is exist [15:18:54]produce_requested_data [15:18:54]requested_item fm.sn is exist - process it [15:18:54]wFMCommunicate request_size=4 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 11 00 00 [15:18:54]Write to MH i2c: E2 08 00 AE 3D 80 11 00 00 00 00 00 00 65 [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:54]Read from MH i2c: E2 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 17 00 [15:18:54]MH_I2C_Read... [15:18:54]Read from MH i2c: E2 17 00 AE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [15:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:18:54]wFMCommunicate OK [15:18:54]requested_item fd.num is exist - process it [15:18:54]SAM_PROTO_GetFieldsCounters [15:18:54]wFMCommunicate request_size=4 [15:18:54]MH_SAM_APDU [15:18:54]CAPDU: 80 13 00 00 [15:18:54]Write to MH i2c: E2 08 00 AF 3D 80 13 00 00 00 00 00 00 68 [15:18:54]Write i2c OK [15:18:54]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 62 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 62 00 AF 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [15:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:55]wFMCommunicate OK [15:18:55]SAM_PROTO_GetFieldsCounters done [15:18:55]requested_item shift.num is exist - process it [15:18:55]requested_item shift.opened is exist - process it [15:18:55]req_shift_opened [15:18:55]FM_GetShiftState [15:18:55]SAM_PROTO_GetShiftState [15:18:55]wFMCommunicate request_size=4 [15:18:55]MH_SAM_APDU [15:18:55]CAPDU: 80 13 01 00 [15:18:55]Write to MH i2c: E2 08 00 B0 3D 80 13 01 00 00 00 00 00 6A [15:18:55]Write i2c OK [15:18:55]MH_I2C_Read... [15:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:55]Read from MH i2c: E2 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 0E 00 [15:18:55]MH_I2C_Read... [15:18:55]Read from MH i2c: E2 0E 00 B0 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9F [15:18:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:18:55]wFMCommunicate OK [15:18:55]SAM_PROTO_GetShiftState done [15:18:55]FM_GetShiftState done [15:18:55]req_shift_opened done [15:18:55]requested_item shift.open_date is exist - process it [15:18:55]req_shift_open_date [15:18:55]req_shift_open_date done [15:18:55]produce_requested_data done [15:18:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112267,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:18:55]process_action_free close_receipt [15:18:55]json_value_free [15:18:55]json_value_free done [15:18:55]process_json_proto returns [15:18:55]Send response to host [15:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112267,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:18:55]free response buf [15:18:55]execute_script done [15:18:55]execute_script returns [15:18:55]free content buf [15:18:55]Sock 9.Close socket [15:18:55]Sock 9.Thread stoped [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20: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:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:40]accept exits with 7 [15:24:40]New connection [15:24:40]New thread 3066957156 created [15:24:40]Thread 3066813796 joined [15:24:40]Waiting for new connection... [15:24:40] Sock 7.Parse request [15:24:40]Sock 7.Check first char [15:24:40]Sock 7.First char is OK [15:24:40]request: POST /json_proto HTTP/1.0 [15:24:40]Method: POST [15:24:40]URL: /json_proto [15:24:40]Method is POST - this is cgi request [15:24:40]url: /json_proto [15:24:40]query_string will be loaded in cgi processing [15:24:40]execute_cgi json_proto POST (null) [15:24:40]execute_cgi path=json_proto method=POST [15:24:40]POST find Content-Length [15:24:40]Host: 172.17.59.68:8080 [15:24:40]Content-Length: 805 [15:24:40]Content-Type: application/json [15:24:40] [15:24:40]POST finish read [15:24:40]Found Content-Length = 805 [15:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320945", "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.40, "quantity" : 5.260, "sum" : 349.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 349.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:40]execute_script... [15:24: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)320945", "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.40, "quantity" : 5.260, "sum" : 349.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 349.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:40]POST & json_proto [15:24:40]process_json_proto [15:24:40]json parsed OK: [15:24:40]protocol is kg_v1.0 [15:24:40]action value=close_receipt [15:24:40]process_action close_receipt [15:24:40]cmd_close_receipt [15:24:40]MH_GetDate [15:24:40]Write to MH i2c: F0 00 00 B1 3D DD [15:24:40]Write i2c OK [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: F0 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: F0 09 00 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: F0 09 00 B1 3D 00 D3 EC 76 66 BC EC 60 65 EE [15:24:40]GetLastDocTimeStamp 1719069557 [15:24:40]current date 1719069907 [15:24:40]FM_GetShiftState [15:24:40]SAM_PROTO_GetShiftState [15:24:40]wFMCommunicate request_size=4 [15:24:40]MH_SAM_APDU [15:24:40]CAPDU: 80 13 01 00 [15:24:40]Write to MH i2c: E2 08 00 B2 3D 80 13 01 00 00 00 00 00 6C [15:24:40]Write i2c OK [15:24:40]MH_I2C_Read... [15:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:40]Read from MH i2c: E2 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: E2 0E 00 [15:24:40]MH_I2C_Read... [15:24:40]Read from MH i2c: E2 0E 00 B2 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A1 [15:24:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:24:40]wFMCommunicate OK [15:24:40]SAM_PROTO_GetShiftState done [15:24:40]FM_GetShiftState done [15:24:40]opened in 1719020067 [15:24:40]opened+sec_in_day 1719106467 [15:24:40]quantity*price = 34926 [15:24:40]sum+1 = 34927 [15:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 349.26 НСП 1% : 3.09 НДС 12% : 37.09 Наличными: 0.00 Безнал.: 349.26 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 134 22.06.2024 15:25 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112268 ФПД: 67239444086666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112268&fm=67239444086666&tin=02508201610067®Number=0000000000092771&sum=34926 [15:24:41]StoreToDocumentArchive [15:24:41]shift 391 fd 112268 [15:24:41]save to /storage/0391/doc_00112268 [15:24:41]save last doc name /storage/0391/doc_00112268 to /storage/kkm_last_doc_name [15:24:41]save OK [15:24:41]Clear old archive folders... [15:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:41]tlvbuf is 012014C0 [15:24:41]SAM_PROTO_ClearQueue [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 09 00 00 [15:24:41]Write to MH i2c: E2 08 00 BF 3D 80 09 00 00 00 00 00 00 6E [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 BF 3D 00 90 00 70 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]SAM_PROTO_ClearQueue done [15:24:41]KKMCreateOFDPacket [15:24:41]OFDProtocolAddRootSTLVToBuf [15:24:41]FM_MakeSignedData [15:24:41]FM_MakeSignedData [15:24:41]SAM_PROTO_SignData [15:24:41]wFMCommunicate request_size=4 [15:24:41]MH_SAM_APDU [15:24:41]CAPDU: 80 0D 01 02 [15:24:41]Write to MH i2c: E2 08 00 C0 3D 80 0D 01 02 00 00 00 00 76 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:41]Read from MH i2c: E2 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 [15:24:41]MH_I2C_Read... [15:24:41]Read from MH i2c: E2 03 00 C0 3D 00 90 00 71 [15:24:41]RAPDU: 90 00 [15:24:41]wFMCommunicate OK [15:24:41]wFMCommunicate request_size=255 [15:24:41]MH_SAM_APDU [15:24: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 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D3 EC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B6 01 00 35 04 06 00 3D [15:24:41]Write to MH i2c: E2 02 01 C1 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D3 EC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B6 01 00 35 04 06 00 3D 00 00 F5 [15:24:41]Write i2c OK [15:24:41]MH_I2C_Read... [15:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:42]Read from MH i2c: E2 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 03 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 03 00 C1 3D 00 90 00 72 [15:24:42]RAPDU: 90 00 [15:24:42]wFMCommunicate OK [15:24:42]wFMCommunicate request_size=10 [15:24:42]MH_SAM_APDU [15:24:42]CAPDU: 80 0D 02 02 05 27 67 2D FF 8A [15:24:42]Write to MH i2c: E2 0D 00 C2 3D 80 0D 02 02 05 00 27 67 2D FF 8A 00 00 C7 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:42]Read from MH i2c: E2 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 03 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 03 00 C2 3D 00 90 00 73 [15:24:42]RAPDU: 90 00 [15:24:42]wFMCommunicate OK [15:24:42]wFMCommunicate request_size=4 [15:24:42]MH_SAM_APDU [15:24:42]CAPDU: 80 0D 03 02 [15:24:42]Write to MH i2c: E2 08 00 C3 3D 80 0D 03 02 00 00 00 00 7B [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:42]Read from MH i2c: E2 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 0B 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 0B 00 C3 3D 00 EC 33 DC 2F 2C B6 D7 0A 90 00 69 [15:24:42]RAPDU: EC 33 DC 2F 2C B6 D7 0A 90 00 [15:24:42]wFMCommunicate OK [15:24:42]SAM_PROTO_SignData done [15:24:42]FM_MakeSignedData done [15:24:42]CreateOFDProtocolMessage [15:24:42]wFMCommunicate request_size=4 [15:24:42]MH_SAM_APDU [15:24:42]CAPDU: 80 11 00 00 [15:24:42]Write to MH i2c: E2 08 00 C4 3D 80 11 00 00 00 00 00 00 7B [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:42]Read from MH i2c: E2 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 17 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: E2 17 00 C4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CD [15:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:24:42]wFMCommunicate OK [15:24:42]CreateOFDProtocolMessage done [15:24:42]OFDSenderStorePacket 112268 [15:24:42]StoreOFDPacket docnum=112268 [15:24:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 F2 07 01 29 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 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D3 EC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B6 01 00 35 04 06 00 3D 27 67 2D FF 8A EC 33 DC 2F 2C B6 D7 0A [15:24:42]CheckFolder [15:24:42]dirname=/storage/ofd_packets [15:24:42]CheckFolder done [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00112268 [15:24:42]NVStorageSaveData ofd_packets/00112268 [15:24:42]File name is /storage/ofd_packets/00112268 [15:24:42]Write 301 bytes [15:24:42]NVStorageSaveData done [15:24:42]OFDSenderStorePacket done [15:24:42]KKMCreateOFDPacket done [15:24:42]NVStorageSaveData kkm_last_timestamp [15:24:42]File name is /storage/kkm_last_timestamp [15:24:42]Write 4 bytes [15:24:42]NVStorageSaveData done [15:24:42]ExternCall_PrintAddStr [15:24:42]wPrintStart [15:24:42]Write to MH i2c: 01 00 00 C5 3D 02 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 C5 3D 00 00 00 00 00 FF 0F 17 [15:24:42]RasterBufferAndPrint [15:24:42]line Счет N : (1)320945 [15:24:42]line ИНН: 02508201610067 [15:24:42]line Контрольно-Кассовый Чек [15:24:42]line ПРОДАЖА [15:24:42]line ТРК (МРК, ГНК) : 11 [15:24:42]line Товар: 2710124130 [15:24:42]line Аи-92-К-5 [15:24:42]line 5.260 * 66.40 [15:24:42]line = 349.26 [15:24:42]line НДС 12% НСП 1% [15:24:42]line > о реализуемом товаре [15:24:42]line ИТОГО: 349.26 [15:24:42]line НСП 1% : 3.09 [15:24:42]line НДС 12% : 37.09 [15:24:42]line Наличными: 0.00 [15:24:42]line Безнал.: 349.26 [15:24:42]line Место: АЗС № 65 "Партнер Нефть" [15:24:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:24:42]line СНО: Общий режим [15:24:42]line Чек 134 22.06.2024 15:25 [15:24:42]line Смена: 391 ФФД: 1.0 [15:24:42]line ЗНМ: 0300000198 [15:24:42]line РНМ: 0000000000092771 [15:24:42]line Версия ККМ: 001 [15:24:42]line Платежная система: О! деньги [15:24:42]line ФМ: 0000000000875083 [15:24:42]line ФД: 112268 [15:24:42]line ФПД: 67239444086666 [15:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152507&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112268&fm=67239444086666&tin=02508201610067®Number=0000000000092771&sum=34926 [15:24:42]written 0, free lines is 4095 [15:24:42]OFD Sender: Processing packet 112268 [packets to send 38, broken 37] [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00112268 [15:24:42]OFD Sender: To server: pG, [15:24:42]CommunicateWithHost lk.salyk.kg:30040 [15:24:42]ConnectInit lk.salyk.kg [15:24:42]Connected sock=10 [15:24:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 F2 07 01 29 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 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D3 EC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B6 01 00 35 04 06 00 3D 27 67 2D FF 8A EC 33 DC 2F 2C B6 D7 0A [15:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CE 95 47 00 94 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B6 01 00 F4 03 04 00 DC 83 76 66 B6 04 01 00 00 C3 37 60 3F 8A B2 DD 95 [15:24:42]CommunicateWithHost err = 0 [15:24:42]CheckOFDResponse [15:24:42]1017 (14) - 77093643461234 [15:24:42]1041 (16) - 0000000000875083 [15:24:42]1040 (4) - 112268 [15:24:42]1012 (4) - 22.06.2024 07:57 [15:24:42]1206 (1) - 0 [15:24:42]OFD Sender: Remove packet 112268 [15:24:42]ProducePacketName [15:24:42]name=ofd_packets/00112268 [15:24:42]NVStorageDeleteData [15:24:42]Write to MH i2c: 01 00 00 EF 3D 2C [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: 01 07 00 EF 3D 00 00 00 00 00 E4 0C 23 [15:24:42]RasterBufferAndPrint [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]line [15:24:42]written 0, free lines is 3307 [15:24:42]MH_Cut [15:24:42]Write to MH i2c: D1 01 00 F6 3D 01 05 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 01 00 [15:24:42]MH_I2C_Read... [15:24:42]Read from MH i2c: D1 01 00 F6 3D 00 04 [15:24:42]Write to MH i2c: 01 00 00 F7 3D 34 [15:24:42]Write i2c OK [15:24:42]MH_I2C_Read... [15:24:43]OFD Sender: No OFD packet to send [15:24:43]*** Cut start [15:24:43]*** Partial cut [15:24:43]*** CUTSNS_PIN = 1 [15:24:43]*** CUTSNS_PIN = 0 [15:24:43]*** Brake cut motor [15:24:44]Read from MH i2c: 01 [15:24:44]MH_I2C_Read... [15:24:44]*** Stop cut motor [15:24:44]*** Cut end [15:24:44]Read from MH i2c: 01 07 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: 01 07 00 F7 3D 00 00 00 00 00 FF 0F 49 [15:24:44]process_action close_receipt done [15:24:44]requested_data is exist [15:24:44]produce_requested_data [15:24:44]requested_item fm.sn is exist - process it [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 11 00 00 [15:24:44]Write to MH i2c: E2 08 00 F8 3D 80 11 00 00 00 00 00 00 AF [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 17 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 17 00 F8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [15:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:24:44]wFMCommunicate OK [15:24:44]requested_item fd.num is exist - process it [15:24:44]SAM_PROTO_GetFieldsCounters [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 13 00 00 [15:24:44]Write to MH i2c: E2 08 00 F9 3D 80 13 00 00 00 00 00 00 B2 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 62 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 62 00 F9 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [15:24:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:44]wFMCommunicate OK [15:24:44]SAM_PROTO_GetFieldsCounters done [15:24:44]requested_item shift.num is exist - process it [15:24:44]requested_item shift.opened is exist - process it [15:24:44]req_shift_opened [15:24:44]FM_GetShiftState [15:24:44]SAM_PROTO_GetShiftState [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 13 01 00 [15:24:44]Write to MH i2c: E2 08 00 FA 3D 80 13 01 00 00 00 00 00 B4 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 0E 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 0E 00 FA 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E9 [15:24:44]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:24:44]wFMCommunicate OK [15:24:44]SAM_PROTO_GetShiftState done [15:24:44]FM_GetShiftState done [15:24:44]req_shift_opened done [15:24:44]requested_item shift.open_date is exist - process it [15:24:44]req_shift_open_date [15:24:44]req_shift_open_date done [15:24:44]produce_requested_data done [15:24:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112268,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:24:44]process_action_free close_receipt [15:24:44]json_value_free [15:24:44]json_value_free done [15:24:44]process_json_proto returns [15:24:44]Send response to host [15:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112268,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:24:44]free response buf [15:24:44]execute_script done [15:24:44]execute_script returns [15:24:44]free content buf [15:24:44]Sock 7.Close socket [15:24:44]Sock 7.Thread stoped [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:34]accept exits with 9 [15:27:34]New connection [15:27:34]New thread 3066813796 created [15:27:34]Thread 3066957156 joined [15:27:34]Waiting for new connection... [15:27:34] Sock 9.Parse request [15:27:34]Sock 9.Check first char [15:27:34]Sock 9.First char is OK [15:27:34]request: POST /json_proto HTTP/1.0 [15:27:34]Method: POST [15:27:34]URL: /json_proto [15:27:34]Method is POST - this is cgi request [15:27:34]url: /json_proto [15:27:34]query_string will be loaded in cgi processing [15:27:34]execute_cgi json_proto POST (null) [15:27:34]execute_cgi path=json_proto method=POST [15:27:34]POST find Content-Length [15:27:34]Host: 172.17.59.68:8080 [15:27:34]Content-Length: 677 [15:27:34]Content-Type: application/json [15:27:34] [15:27:34]POST finish read [15:27:34]Found Content-Length = 677 [15:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320946", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:27:34]execute_script... [15:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320946", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:27:34]POST & json_proto [15:27:34]process_json_proto [15:27:34]json parsed OK: [15:27:34]protocol is kg_v1.0 [15:27:34]action value=close_receipt [15:27:34]process_action close_receipt [15:27:34]cmd_close_receipt [15:27:34]MH_GetDate [15:27:34]Write to MH i2c: F0 00 00 FB 3D 27 [15:27:34]Write i2c OK [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: F0 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: F0 09 00 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: F0 09 00 FB 3D 00 81 ED 76 66 BC EC 60 65 E7 [15:27:34]GetLastDocTimeStamp 1719069907 [15:27:34]current date 1719070081 [15:27:34]FM_GetShiftState [15:27:34]SAM_PROTO_GetShiftState [15:27:34]wFMCommunicate request_size=4 [15:27:34]MH_SAM_APDU [15:27:34]CAPDU: 80 13 01 00 [15:27:34]Write to MH i2c: E2 08 00 FC 3D 80 13 01 00 00 00 00 00 B6 [15:27:34]Write i2c OK [15:27:34]MH_I2C_Read... [15:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:34]Read from MH i2c: E2 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 0E 00 [15:27:34]MH_I2C_Read... [15:27:34]Read from MH i2c: E2 0E 00 FC 3D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EB [15:27:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:27:34]wFMCommunicate OK [15:27:34]SAM_PROTO_GetShiftState done [15:27:34]FM_GetShiftState done [15:27:34]opened in 1719020067 [15:27:34]opened+sec_in_day 1719106467 [15:27:34]quantity*price = 30012 [15:27:34]sum+1 = 30014 [15:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 135 22.06.2024 15:28 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112269 ФПД: 122949944215602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152801&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112269&fm=122949944215602&tin=02508201610067®Number=0000000000092771&sum=30000 [15:27:35]StoreToDocumentArchive [15:27:35]shift 391 fd 112269 [15:27:35]save to /storage/0391/doc_00112269 [15:27:35]save last doc name /storage/0391/doc_00112269 to /storage/kkm_last_doc_name [15:27:35]save OK [15:27:35]Clear old archive folders... [15:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:35]tlvbuf is 0126F5B0 [15:27:35]SAM_PROTO_ClearQueue [15:27:35]wFMCommunicate request_size=4 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 09 00 00 [15:27:35]Write to MH i2c: E2 08 00 09 3E 80 09 00 00 00 00 00 00 B9 [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 09 3E 00 90 00 BB [15:27:35]RAPDU: 90 00 [15:27:35]wFMCommunicate OK [15:27:35]SAM_PROTO_ClearQueue done [15:27:35]KKMCreateOFDPacket [15:27:35]OFDProtocolAddRootSTLVToBuf [15:27:35]FM_MakeSignedData [15:27:35]FM_MakeSignedData [15:27:35]SAM_PROTO_SignData [15:27:35]wFMCommunicate request_size=4 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 0D 01 02 [15:27:35]Write to MH i2c: E2 08 00 0A 3E 80 0D 01 02 00 00 00 00 C1 [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 0A 3E 00 90 00 BC [15:27:35]RAPDU: 90 00 [15:27:35]wFMCommunicate OK [15:27:35]wFMCommunicate request_size=255 [15:27:35]MH_SAM_APDU [15:27: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 ED 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B6 01 00 35 04 06 00 6F [15:27:35]Write to MH i2c: E2 02 01 0B 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 ED 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B6 01 00 35 04 06 00 6F 00 00 1F [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 0B 3E 00 90 00 BD [15:27:35]RAPDU: 90 00 [15:27:35]wFMCommunicate OK [15:27:35]wFMCommunicate request_size=10 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 0D 02 02 05 D2 83 C0 08 32 [15:27:35]Write to MH i2c: E2 0D 00 0C 3E 80 0D 02 02 05 00 D2 83 C0 08 32 00 00 1D [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 03 00 0C 3E 00 90 00 BE [15:27:35]RAPDU: 90 00 [15:27:35]wFMCommunicate OK [15:27:35]wFMCommunicate request_size=4 [15:27:35]MH_SAM_APDU [15:27:35]CAPDU: 80 0D 03 02 [15:27:35]Write to MH i2c: E2 08 00 0D 3E 80 0D 03 02 00 00 00 00 C6 [15:27:35]Write i2c OK [15:27:35]MH_I2C_Read... [15:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:35]Read from MH i2c: E2 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 0B 00 [15:27:35]MH_I2C_Read... [15:27:35]Read from MH i2c: E2 0B 00 0D 3E 00 B2 D0 A6 F8 F9 D1 C4 1B 90 00 90 [15:27:35]RAPDU: B2 D0 A6 F8 F9 D1 C4 1B 90 00 [15:27:36]wFMCommunicate OK [15:27:36]SAM_PROTO_SignData done [15:27:36]FM_MakeSignedData done [15:27:36]CreateOFDProtocolMessage [15:27:36]wFMCommunicate request_size=4 [15:27:36]MH_SAM_APDU [15:27:36]CAPDU: 80 11 00 00 [15:27:36]Write to MH i2c: E2 08 00 0E 3E 80 11 00 00 00 00 00 00 C6 [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:36]Read from MH i2c: E2 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 17 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: E2 17 00 0E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [15:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:27:36]wFMCommunicate OK [15:27:36]CreateOFDProtocolMessage done [15:27:36]OFDSenderStorePacket 112269 [15:27:36]StoreOFDPacket docnum=112269 [15:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C D1 07 01 DB E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 ED 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B6 01 00 35 04 06 00 6F D2 83 C0 08 32 B2 D0 A6 F8 F9 D1 C4 1B [15:27:36]CheckFolder [15:27:36]dirname=/storage/ofd_packets [15:27:36]CheckFolder done [15:27:36]ProducePacketName [15:27:36]name=ofd_packets/00112269 [15:27:36]NVStorageSaveData ofd_packets/00112269 [15:27:36]File name is /storage/ofd_packets/00112269 [15:27:36]Write 301 bytes [15:27:36]NVStorageSaveData done [15:27:36]OFDSenderStorePacket done [15:27:36]KKMCreateOFDPacket done [15:27:36]NVStorageSaveData kkm_last_timestamp [15:27:36]File name is /storage/kkm_last_timestamp [15:27:36]Write 4 bytes [15:27:36]NVStorageSaveData done [15:27:36]ExternCall_PrintAddStr [15:27:36]wPrintStart [15:27:36]Write to MH i2c: 01 00 00 0F 3E 4D [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: 01 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: 01 07 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: 01 07 00 0F 3E 00 00 00 00 00 FF 0F 62 [15:27:36]RasterBufferAndPrint [15:27:36]line Счет N : (1)320946 [15:27:36]line ИНН: 02508201610067 [15:27:36]line Контрольно-Кассовый Чек [15:27:36]line ПРОДАЖА [15:27:36]line ТРК (МРК, ГНК) : 11 [15:27:36]line Товар: 2710124130 [15:27:36]line Аи-92-К-5 [15:27:36]line 4.520 * 66.40 [15:27:36]line = 300.13 [15:27:36]line НДС 12% НСП 1% [15:27:36]line > о реализуемом товаре [15:27:36]line ОКРУГЛЕНИЕ: -0.13 [15:27:36]line ИТОГО: 300.00 [15:27:36]line Внесено: 300.00 [15:27:36]line СДАЧА: 0.00 [15:27:36]line НСП 1% : 2.66 [15:27:36]line НДС 12% : 31.87 [15:27:36]line Наличными: 300.00 [15:27:36]line Безнал.: 0.00 [15:27:36]line Место: АЗС № 65 "Партнер Нефть" [15:27:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:27:36]line СНО: Общий режим [15:27:36]line Чек 135 22.06.2024 15:28 [15:27:36]line Смена: 391 ФФД: 1.0 [15:27:36]line ЗНМ: 0300000198 [15:27:36]line РНМ: 0000000000092771 [15:27:36]line Версия ККМ: 001 [15:27:36]line ФМ: 0000000000875083 [15:27:36]line ФД: 112269 [15:27:36]line ФПД: 122949944215602 [15:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152801&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112269&fm=122949944215602&tin=02508201610067®Number=0000000000092771&sum=30000 [15:27:36]OFD Sender: Processing packet 112269 [packets to send 38, broken 37] [15:27:36]ProducePacketName [15:27:36]name=ofd_packets/00112269 [15:27:36]OFD Sender: To server: pG, [15:27:36]CommunicateWithHost lk.salyk.kg:30040 [15:27:36]ConnectInit lk.salyk.kg [15:27:36]written 0, free lines is 4095 [15:27:36]Connected sock=10 [15:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C D1 07 01 DB E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 ED 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B6 01 00 35 04 06 00 6F D2 83 C0 08 32 B2 D0 A6 F8 F9 D1 C4 1B [15:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 65 20 47 00 9B 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B6 01 00 F4 03 04 00 8A 84 76 66 B6 04 01 00 00 65 82 0B 19 73 EC B5 D0 [15:27:36]CommunicateWithHost err = 0 [15:27:36]CheckOFDResponse [15:27:36]1017 (14) - 77093643461234 [15:27:36]1041 (16) - 0000000000875083 [15:27:36]1040 (4) - 112269 [15:27:36]1012 (4) - 22.06.2024 08:00 [15:27:36]1206 (1) - 0 [15:27:36]OFD Sender: Remove packet 112269 [15:27:36]ProducePacketName [15:27:36]name=ofd_packets/00112269 [15:27:36]NVStorageDeleteData [15:27:36]Write to MH i2c: 01 00 00 3A 3E 78 [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: 01 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: 01 07 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: 01 07 00 3A 3E 00 00 00 00 00 D4 0C 5F [15:27:36]RasterBufferAndPrint [15:27:36]line [15:27:36]line [15:27:36]line [15:27:36]line [15:27:36]line [15:27:36]written 0, free lines is 3288 [15:27:36]MH_Cut [15:27:36]Write to MH i2c: D1 01 00 41 3E 01 51 [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: D1 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: D1 01 00 [15:27:36]MH_I2C_Read... [15:27:36]Read from MH i2c: D1 01 00 41 3E 00 50 [15:27:36]Write to MH i2c: 01 00 00 42 3E 80 [15:27:36]Write i2c OK [15:27:36]MH_I2C_Read... [15:27:37]OFD Sender: No OFD packet to send [15:27:37]*** Cut start [15:27:37]*** Partial cut [15:27:37]*** CUTSNS_PIN = 1 [15:27:37]*** CUTSNS_PIN = 0 [15:27:37]*** Brake cut motor [15:27:38]Read from MH i2c: 01 [15:27:38]MH_I2C_Read... [15:27:38]*** Stop cut motor [15:27:38]*** Cut end [15:27:38]Read from MH i2c: 01 07 00 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: 01 07 00 42 3E 00 00 00 00 00 FF 0F 95 [15:27:38]process_action close_receipt done [15:27:38]requested_data is exist [15:27:38]produce_requested_data [15:27:38]requested_item fm.sn is exist - process it [15:27:38]wFMCommunicate request_size=4 [15:27:38]MH_SAM_APDU [15:27:38]CAPDU: 80 11 00 00 [15:27:38]Write to MH i2c: E2 08 00 43 3E 80 11 00 00 00 00 00 00 FB [15:27:38]Write i2c OK [15:27:38]MH_I2C_Read... [15:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:38]Read from MH i2c: E2 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 17 00 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 17 00 43 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [15:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:27:38]wFMCommunicate OK [15:27:38]requested_item fd.num is exist - process it [15:27:38]SAM_PROTO_GetFieldsCounters [15:27:38]wFMCommunicate request_size=4 [15:27:38]MH_SAM_APDU [15:27:38]CAPDU: 80 13 00 00 [15:27:38]Write to MH i2c: E2 08 00 44 3E 80 13 00 00 00 00 00 00 FE [15:27:38]Write i2c OK [15:27:38]MH_I2C_Read... [15:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:38]Read from MH i2c: E2 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 62 00 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 62 00 44 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:38]wFMCommunicate OK [15:27:38]SAM_PROTO_GetFieldsCounters done [15:27:38]requested_item shift.num is exist - process it [15:27:38]requested_item shift.opened is exist - process it [15:27:38]req_shift_opened [15:27:38]FM_GetShiftState [15:27:38]SAM_PROTO_GetShiftState [15:27:38]wFMCommunicate request_size=4 [15:27:38]MH_SAM_APDU [15:27:38]CAPDU: 80 13 01 00 [15:27:38]Write to MH i2c: E2 08 00 45 3E 80 13 01 00 00 00 00 00 00 [15:27:38]Write i2c OK [15:27:38]MH_I2C_Read... [15:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:38]Read from MH i2c: E2 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 0E 00 [15:27:38]MH_I2C_Read... [15:27:38]Read from MH i2c: E2 0E 00 45 3E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 35 [15:27:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:27:38]wFMCommunicate OK [15:27:38]SAM_PROTO_GetShiftState done [15:27:38]FM_GetShiftState done [15:27:38]req_shift_opened done [15:27:38]requested_item shift.open_date is exist - process it [15:27:38]req_shift_open_date [15:27:38]req_shift_open_date done [15:27:38]produce_requested_data done [15:27:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112269,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:27:38]process_action_free close_receipt [15:27:38]json_value_free [15:27:38]json_value_free done [15:27:38]process_json_proto returns [15:27:38]Send response to host [15:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112269,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:27:38]free response buf [15:27:38]execute_script done [15:27:38]execute_script returns [15:27:38]free content buf [15:27:38]Sock 9.Close socket [15:27:38]Sock 9.Thread stoped [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:25]accept exits with 7 [15:30:25]New connection [15:30:25]New thread 3066957156 created [15:30:25]Thread 3066813796 joined [15:30:25]Waiting for new connection... [15:30:25] Sock 7.Parse request [15:30:25]Sock 7.Check first char [15:30:25]Sock 7.First char is OK [15:30:25]request: POST /json_proto HTTP/1.0 [15:30:25]Method: POST [15:30:25]URL: /json_proto [15:30:25]Method is POST - this is cgi request [15:30:25]url: /json_proto [15:30:25]query_string will be loaded in cgi processing [15:30:25]execute_cgi json_proto POST (null) [15:30:25]execute_cgi path=json_proto method=POST [15:30:25]POST find Content-Length [15:30:25]Host: 172.17.59.68:8080 [15:30:25]Content-Length: 677 [15:30:25]Content-Type: application/json [15:30:25] [15:30:25]POST finish read [15:30:25]Found Content-Length = 677 [15:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320947", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:25]execute_script... [15:30: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)320947", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:25]POST & json_proto [15:30:25]process_json_proto [15:30:25]json parsed OK: [15:30:25]protocol is kg_v1.0 [15:30:25]action value=close_receipt [15:30:25]process_action close_receipt [15:30:25]cmd_close_receipt [15:30:25]MH_GetDate [15:30:25]Write to MH i2c: F0 00 00 46 3E 73 [15:30:25]Write i2c OK [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: F0 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: F0 09 00 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: F0 09 00 46 3E 00 2C EE 76 66 BC EC 60 65 DF [15:30:25]GetLastDocTimeStamp 1719070081 [15:30:25]current date 1719070252 [15:30:25]FM_GetShiftState [15:30:25]SAM_PROTO_GetShiftState [15:30:25]wFMCommunicate request_size=4 [15:30:25]MH_SAM_APDU [15:30:25]CAPDU: 80 13 01 00 [15:30:25]Write to MH i2c: E2 08 00 47 3E 80 13 01 00 00 00 00 00 02 [15:30:25]Write i2c OK [15:30:25]MH_I2C_Read... [15:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:25]Read from MH i2c: E2 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: E2 0E 00 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: E2 0E 00 47 3E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 37 [15:30:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:30:25]wFMCommunicate OK [15:30:25]SAM_PROTO_GetShiftState done [15:30:25]FM_GetShiftState done [15:30:25]opened in 1719020067 [15:30:25]opened+sec_in_day 1719106467 [15:30:25]quantity*price = 60025 [15:30:25]sum+1 = 60027 [15:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 136 22.06.2024 15:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112270 ФПД: 16387752240108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153052&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112270&fm=16387752240108&tin=02508201610067®Number=0000000000092771&sum=60000 [15:30:27]StoreToDocumentArchive [15:30:27]shift 391 fd 112270 [15:30:27]save to /storage/0391/doc_00112270 [15:30:27]save last doc name /storage/0391/doc_00112270 to /storage/kkm_last_doc_name [15:30:27]save OK [15:30:27]Clear old archive folders... [15:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:27]tlvbuf is 011EBB70 [15:30:27]SAM_PROTO_ClearQueue [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 09 00 00 [15:30:27]Write to MH i2c: E2 08 00 54 3E 80 09 00 00 00 00 00 00 04 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 54 3E 00 90 00 06 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]SAM_PROTO_ClearQueue done [15:30:27]KKMCreateOFDPacket [15:30:27]OFDProtocolAddRootSTLVToBuf [15:30:27]FM_MakeSignedData [15:30:27]FM_MakeSignedData [15:30:27]SAM_PROTO_SignData [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 01 02 [15:30:27]Write to MH i2c: E2 08 00 55 3E 80 0D 01 02 00 00 00 00 0C [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 55 3E 00 90 00 07 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]wFMCommunicate request_size=255 [15:30:27]MH_SAM_APDU [15:30: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2C EE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B6 01 00 35 04 06 00 0E [15:30:27]Write to MH i2c: E2 02 01 56 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2C EE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B6 01 00 35 04 06 00 0E 00 00 F6 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]OFD Sender: No OFD packet to send [15:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 56 3E 00 90 00 08 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]wFMCommunicate request_size=10 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 02 02 05 E7 92 26 A3 EC [15:30:27]Write to MH i2c: E2 0D 00 57 3E 80 0D 02 02 05 00 E7 92 26 A3 EC 00 00 47 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 57 3E 00 90 00 09 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 03 02 [15:30:27]Write to MH i2c: E2 08 00 58 3E 80 0D 03 02 00 00 00 00 11 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0B 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0B 00 58 3E 00 B6 7E D0 A6 8F F3 B0 CA 90 00 B8 [15:30:27]RAPDU: B6 7E D0 A6 8F F3 B0 CA 90 00 [15:30:27]wFMCommunicate OK [15:30:27]SAM_PROTO_SignData done [15:30:27]FM_MakeSignedData done [15:30:27]CreateOFDProtocolMessage [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 11 00 00 [15:30:27]Write to MH i2c: E2 08 00 59 3E 80 11 00 00 00 00 00 00 11 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 17 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 17 00 59 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [15:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:30:27]wFMCommunicate OK [15:30:27]CreateOFDProtocolMessage done [15:30:27]OFDSenderStorePacket 112270 [15:30:27]StoreOFDPacket docnum=112270 [15:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA EB 07 01 2A A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2C EE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B6 01 00 35 04 06 00 0E E7 92 26 A3 EC B6 7E D0 A6 8F F3 B0 CA [15:30:27]CheckFolder [15:30:27]dirname=/storage/ofd_packets [15:30:27]CheckFolder done [15:30:27]ProducePacketName [15:30:27]name=ofd_packets/00112270 [15:30:27]NVStorageSaveData ofd_packets/00112270 [15:30:27]File name is /storage/ofd_packets/00112270 [15:30:27]Write 301 bytes [15:30:27]NVStorageSaveData done [15:30:27]OFDSenderStorePacket done [15:30:27]KKMCreateOFDPacket done [15:30:27]NVStorageSaveData kkm_last_timestamp [15:30:27]File name is /storage/kkm_last_timestamp [15:30:27]Write 4 bytes [15:30:27]NVStorageSaveData done [15:30:27]ExternCall_PrintAddStr [15:30:27]wPrintStart [15:30:27]Write to MH i2c: 01 00 00 5A 3E 98 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: 01 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: 01 07 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: 01 07 00 5A 3E 00 00 00 00 00 FF 0F AD [15:30:27]RasterBufferAndPrint [15:30:27]line Счет N : (1)320947 [15:30:27]line ИНН: 02508201610067 [15:30:27]line Контрольно-Кассовый Чек [15:30:27]line ПРОДАЖА [15:30:27]line ТРК (МРК, ГНК) : 11 [15:30:27]line Товар: 2710124130 [15:30:27]line Аи-92-К-5 [15:30:27]line 9.040 * 66.40 [15:30:27]line = 600.26 [15:30:27]line НДС 12% НСП 1% [15:30:27]line > о реализуемом товаре [15:30:27]line ОКРУГЛЕНИЕ: -0.26 [15:30:27]line ИТОГО: 600.00 [15:30:27]line Внесено: 600.00 [15:30:27]line СДАЧА: 0.00 [15:30:27]line НСП 1% : 5.31 [15:30:27]line НДС 12% : 63.74 [15:30:27]line Наличными: 600.00 [15:30:27]line Безнал.: 0.00 [15:30:27]line Место: АЗС № 65 "Партнер Нефть" [15:30:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:30:27]line СНО: Общий режим [15:30:27]line Чек 136 22.06.2024 15:30 [15:30:27]line Смена: 391 ФФД: 1.0 [15:30:27]line ЗНМ: 0300000198 [15:30:27]line РНМ: 0000000000092771 [15:30:27]line Версия ККМ: 001 [15:30:27]line ФМ: 0000000000875083 [15:30:27]line ФД: 112270 [15:30:27]line ФПД: 16387752240108 [15:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153052&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112270&fm=16387752240108&tin=02508201610067®Number=0000000000092771&sum=60000 [15:30:27]OFD Sender: Processing packet 112270 [packets to send 38, broken 37] [15:30:27]ProducePacketName [15:30:27]name=ofd_packets/00112270 [15:30:27]OFD Sender: To server: pG, [15:30:27]CommunicateWithHost lk.salyk.kg:30040 [15:30:27]ConnectInit lk.salyk.kg [15:30:27]written 0, free lines is 4095 [15:30:28]Connected sock=10 [15:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA EB 07 01 2A A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2C EE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B6 01 00 35 04 06 00 0E E7 92 26 A3 EC B6 7E D0 A6 8F F3 B0 CA [15:30:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D AD 47 00 39 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 35 30 38 33 10 04 04 00 8E B6 01 00 F4 03 04 00 35 85 76 66 B6 04 01 00 00 EC 29 5A 7C 4B 50 57 CD [15:30:28]CommunicateWithHost err = 0 [15:30:28]CheckOFDResponse [15:30:28]1017 (14) - 77093643461234 [15:30:28]1041 (16) - 0000000000875083 [15:30:28]1040 (4) - 112270 [15:30:28]1012 (4) - 22.06.2024 08:03 [15:30:28]1206 (1) - 0 [15:30:28]OFD Sender: Remove packet 112270 [15:30:28]ProducePacketName [15:30:28]name=ofd_packets/00112270 [15:30:28]NVStorageDeleteData [15:30:28]Write to MH i2c: 01 00 00 85 3E C3 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 85 3E 00 00 00 00 00 DC 0C B2 [15:30:28]RasterBufferAndPrint [15:30:28]line [15:30:28]line [15:30:28]line [15:30:28]line [15:30:28]line [15:30:28]written 0, free lines is 3298 [15:30:28]MH_Cut [15:30:28]Write to MH i2c: D1 01 00 8C 3E 01 9C [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: D1 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: D1 01 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: D1 01 00 8C 3E 00 9B [15:30:28]Write to MH i2c: 01 00 00 8D 3E CB [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]OFD Sender: No OFD packet to send [15:30:29]*** Cut start [15:30:29]*** Partial cut [15:30:29]*** CUTSNS_PIN = 1 [15:30:29]*** CUTSNS_PIN = 0 [15:30:29]*** Brake cut motor [15:30:29]Read from MH i2c: 01 [15:30:29]MH_I2C_Read... [15:30:29]*** Stop cut motor [15:30:29]*** Cut end [15:30:29]Read from MH i2c: 01 07 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 07 00 8D 3E 00 00 00 00 00 FF 0F E0 [15:30:29]process_action close_receipt done [15:30:29]requested_data is exist [15:30:29]produce_requested_data [15:30:29]requested_item fm.sn is exist - process it [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 11 00 00 [15:30:29]Write to MH i2c: E2 08 00 8E 3E 80 11 00 00 00 00 00 00 46 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 17 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 17 00 8E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 98 [15:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:30:29]wFMCommunicate OK [15:30:29]requested_item fd.num is exist - process it [15:30:29]SAM_PROTO_GetFieldsCounters [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 13 00 00 [15:30:29]Write to MH i2c: E2 08 00 8F 3E 80 13 00 00 00 00 00 00 49 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 62 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 62 00 8F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [15:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:29]wFMCommunicate OK [15:30:29]SAM_PROTO_GetFieldsCounters done [15:30:29]requested_item shift.num is exist - process it [15:30:29]requested_item shift.opened is exist - process it [15:30:29]req_shift_opened [15:30:29]FM_GetShiftState [15:30:29]SAM_PROTO_GetShiftState [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 13 01 00 [15:30:29]Write to MH i2c: E2 08 00 90 3E 80 13 01 00 00 00 00 00 4B [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 0E 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 0E 00 90 3E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 80 [15:30:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:30:29]wFMCommunicate OK [15:30:29]SAM_PROTO_GetShiftState done [15:30:29]FM_GetShiftState done [15:30:29]req_shift_opened done [15:30:29]requested_item shift.open_date is exist - process it [15:30:29]req_shift_open_date [15:30:29]req_shift_open_date done [15:30:29]produce_requested_data done [15:30:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112270,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:30:29]process_action_free close_receipt [15:30:29]json_value_free [15:30:29]json_value_free done [15:30:29]process_json_proto returns [15:30:29]Send response to host [15:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112270,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:30:29]free response buf [15:30:29]execute_script done [15:30:29]execute_script returns [15:30:29]free content buf [15:30:29]Sock 7.Close socket [15:30:29]Sock 7.Thread stoped [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:00]accept exits with 9 [15:35:00]New connection [15:35:00]New thread 3066813796 created [15:35:00]Thread 3066957156 joined [15:35:00]Waiting for new connection... [15:35:00] Sock 9.Parse request [15:35:00]Sock 9.Check first char [15:35:00]Sock 9.First char is OK [15:35:00]request: POST /json_proto HTTP/1.0 [15:35:00]Method: POST [15:35:00]URL: /json_proto [15:35:00]Method is POST - this is cgi request [15:35:00]url: /json_proto [15:35:00]query_string will be loaded in cgi processing [15:35:00]execute_cgi json_proto POST (null) [15:35:00]execute_cgi path=json_proto method=POST [15:35:00]POST find Content-Length [15:35:00]Host: 172.17.59.68:8080 [15:35:00]Content-Length: 678 [15:35:00]Content-Type: application/json [15:35:00] [15:35:00]POST finish read [15:35:00]Found Content-Length = 678 [15:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320948", "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.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:00]execute_script... [15:35:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320948", "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.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:00]POST & json_proto [15:35:00]process_json_proto [15:35:00]json parsed OK: [15:35:00]protocol is kg_v1.0 [15:35:00]action value=close_receipt [15:35:00]process_action close_receipt [15:35:00]cmd_close_receipt [15:35:00]MH_GetDate [15:35:00]Write to MH i2c: F0 00 00 91 3E BE [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 09 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 09 00 91 3E 00 3F EF 76 66 BC EC 60 65 3E [15:35:00]GetLastDocTimeStamp 1719070252 [15:35:00]current date 1719070527 [15:35:00]FM_GetShiftState [15:35:00]SAM_PROTO_GetShiftState [15:35:00]wFMCommunicate request_size=4 [15:35:00]MH_SAM_APDU [15:35:00]CAPDU: 80 13 01 00 [15:35:00]Write to MH i2c: E2 08 00 92 3E 80 13 01 00 00 00 00 00 4D [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:00]Read from MH i2c: E2 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 92 3E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 82 [15:35:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:35:00]wFMCommunicate OK [15:35:00]SAM_PROTO_GetShiftState done [15:35:00]FM_GetShiftState done [15:35:00]opened in 1719020067 [15:35:00]opened+sec_in_day 1719106467 [15:35:00]quantity*price = 67064 [15:35:00]sum+1 = 67065 [15:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 137 22.06.2024 15:35 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112271 ФПД: 187266922431031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153527&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112271&fm=187266922431031&tin=02508201610067®Number=0000000000092771&sum=67000 [15:35:01]StoreToDocumentArchive [15:35:01]shift 391 fd 112271 [15:35:01]save to /storage/0391/doc_00112271 [15:35:01]save last doc name /storage/0391/doc_00112271 to /storage/kkm_last_doc_name [15:35:01]save OK [15:35:01]Clear old archive folders... [15:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:01]tlvbuf is 011857A0 [15:35:01]SAM_PROTO_ClearQueue [15:35:01]wFMCommunicate request_size=4 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 09 00 00 [15:35:01]Write to MH i2c: E2 08 00 9F 3E 80 09 00 00 00 00 00 00 4F [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:01]Read from MH i2c: E2 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 [15:35:01]MH_I2C_Read... [15:35:01]Read from MH i2c: E2 03 00 9F 3E 00 90 00 51 [15:35:01]RAPDU: 90 00 [15:35:01]wFMCommunicate OK [15:35:01]SAM_PROTO_ClearQueue done [15:35:01]KKMCreateOFDPacket [15:35:01]OFDProtocolAddRootSTLVToBuf [15:35:01]FM_MakeSignedData [15:35:01]FM_MakeSignedData [15:35:01]SAM_PROTO_SignData [15:35:01]wFMCommunicate request_size=4 [15:35:01]MH_SAM_APDU [15:35:01]CAPDU: 80 0D 01 02 [15:35:01]Write to MH i2c: E2 08 00 A0 3E 80 0D 01 02 00 00 00 00 57 [15:35:01]Write i2c OK [15:35:01]MH_I2C_Read... [15:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 A0 3E 00 90 00 52 [15:35:02]RAPDU: 90 00 [15:35:02]wFMCommunicate OK [15:35:02]wFMCommunicate request_size=255 [15:35:02]MH_SAM_APDU [15:35: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3F EF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B6 01 00 35 04 06 00 AA [15:35:02]Write to MH i2c: E2 02 01 A1 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3F EF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B6 01 00 35 04 06 00 AA 00 00 CA [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 A1 3E 00 90 00 53 [15:35:02]RAPDU: 90 00 [15:35:02]wFMCommunicate OK [15:35:02]wFMCommunicate request_size=10 [15:35:02]MH_SAM_APDU [15:35:02]CAPDU: 80 0D 02 02 05 51 7A 63 C2 37 [15:35:02]Write to MH i2c: E2 0D 00 A2 3E 80 0D 02 02 05 00 51 7A 63 C2 37 00 00 8B [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 A2 3E 00 90 00 54 [15:35:02]RAPDU: 90 00 [15:35:02]wFMCommunicate OK [15:35:02]wFMCommunicate request_size=4 [15:35:02]MH_SAM_APDU [15:35:02]CAPDU: 80 0D 03 02 [15:35:02]Write to MH i2c: E2 08 00 A3 3E 80 0D 03 02 00 00 00 00 5C [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 0B 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 0B 00 A3 3E 00 C1 4A 3A 29 10 10 39 26 90 00 4A [15:35:02]RAPDU: C1 4A 3A 29 10 10 39 26 90 00 [15:35:02]wFMCommunicate OK [15:35:02]SAM_PROTO_SignData done [15:35:02]FM_MakeSignedData done [15:35:02]CreateOFDProtocolMessage [15:35:02]wFMCommunicate request_size=4 [15:35:02]MH_SAM_APDU [15:35:02]CAPDU: 80 11 00 00 [15:35:02]Write to MH i2c: E2 08 00 A4 3E 80 11 00 00 00 00 00 00 5C [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 17 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 17 00 A4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [15:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:35:02]wFMCommunicate OK [15:35:02]CreateOFDProtocolMessage done [15:35:02]OFDSenderStorePacket 112271 [15:35:02]StoreOFDPacket docnum=112271 [15:35:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B5 CA 07 01 83 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3F EF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B6 01 00 35 04 06 00 AA 51 7A 63 C2 37 C1 4A 3A 29 10 10 39 26 [15:35:02]CheckFolder [15:35:02]dirname=/storage/ofd_packets [15:35:02]CheckFolder done [15:35:02]ProducePacketName [15:35:02]name=ofd_packets/00112271 [15:35:02]NVStorageSaveData ofd_packets/00112271 [15:35:02]File name is /storage/ofd_packets/00112271 [15:35:02]Write 301 bytes [15:35:02]NVStorageSaveData done [15:35:02]OFDSenderStorePacket done [15:35:02]KKMCreateOFDPacket done [15:35:02]NVStorageSaveData kkm_last_timestamp [15:35:02]File name is /storage/kkm_last_timestamp [15:35:02]Write 4 bytes [15:35:02]NVStorageSaveData done [15:35:02]ExternCall_PrintAddStr [15:35:02]wPrintStart [15:35:02]Write to MH i2c: 01 00 00 A5 3E E3 [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: 01 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: 01 07 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: 01 07 00 A5 3E 00 00 00 00 00 FF 0F F8 [15:35:02]RasterBufferAndPrint [15:35:02]line Счет N : (1)320948 [15:35:02]line ИНН: 02508201610067 [15:35:02]line Контрольно-Кассовый Чек [15:35:02]line ПРОДАЖА [15:35:02]line ТРК (МРК, ГНК) : 11 [15:35:02]line Товар: 2710124130 [15:35:02]line Аи-92-К-5 [15:35:02]line 10.100 * 66.40 [15:35:02]line = 670.64 [15:35:02]line НДС 12% НСП 1% [15:35:02]line > о реализуемом товаре [15:35:02]line ОКРУГЛЕНИЕ: -0.64 [15:35:02]line ИТОГО: 670.00 [15:35:02]line Внесено: 670.00 [15:35:02]line СДАЧА: 0.00 [15:35:02]line НСП 1% : 5.93 [15:35:02]line НДС 12% : 71.22 [15:35:02]line Наличными: 670.00 [15:35:02]line Безнал.: 0.00 [15:35:02]line Место: АЗС № 65 "Партнер Нефть" [15:35:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:35:02]line СНО: Общий режим [15:35:02]line Чек 137 22.06.2024 15:35 [15:35:02]line Смена: 391 ФФД: 1.0 [15:35:02]line ЗНМ: 0300000198 [15:35:02]line РНМ: 0000000000092771 [15:35:02]line Версия ККМ: 001 [15:35:02]line ФМ: 0000000000875083 [15:35:02]line ФД: 112271 [15:35:02]line ФПД: 187266922431031 [15:35:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153527&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112271&fm=187266922431031&tin=02508201610067®Number=0000000000092771&sum=67000 [15:35:02]OFD Sender: Processing packet 112271 [packets to send 38, broken 37] [15:35:02]ProducePacketName [15:35:02]name=ofd_packets/00112271 [15:35:02]OFD Sender: To server: pG, [15:35:02]CommunicateWithHost lk.salyk.kg:30040 [15:35:02]ConnectInit lk.salyk.kg [15:35:02]written 0, free lines is 4095 [15:35:02]Connected sock=10 [15:35:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B5 CA 07 01 83 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3F EF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B6 01 00 35 04 06 00 AA 51 7A 63 C2 37 C1 4A 3A 29 10 10 39 26 [15:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B0 0C 47 00 EE C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B6 01 00 F4 03 04 00 48 86 76 66 B6 04 01 00 00 71 A6 EF 13 82 22 4E 4F [15:35:03]CommunicateWithHost err = 0 [15:35:03]CheckOFDResponse [15:35:03]1017 (14) - 77093643461234 [15:35:03]1041 (16) - 0000000000875083 [15:35:03]1040 (4) - 112271 [15:35:03]1012 (4) - 22.06.2024 08:07 [15:35:03]1206 (1) - 0 [15:35:03]OFD Sender: Remove packet 112271 [15:35:03]ProducePacketName [15:35:03]name=ofd_packets/00112271 [15:35:03]NVStorageDeleteData [15:35:03]Write to MH i2c: 01 00 00 D0 3E 0E [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 D0 3E 00 00 00 00 00 D4 0C F5 [15:35:03]RasterBufferAndPrint [15:35:03]line [15:35:03]line [15:35:03]line [15:35:03]line [15:35:03]line [15:35:03]written 0, free lines is 3292 [15:35:03]MH_Cut [15:35:03]Write to MH i2c: D1 01 00 D7 3E 01 E7 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: D1 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: D1 01 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: D1 01 00 D7 3E 00 E6 [15:35:03]Write to MH i2c: 01 00 00 D8 3E 16 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]OFD Sender: No OFD packet to send [15:35:03]*** Cut start [15:35:03]*** Partial cut [15:35:03]*** CUTSNS_PIN = 1 [15:35:04]*** CUTSNS_PIN = 0 [15:35:04]*** Brake cut motor [15:35:04]Read from MH i2c: 01 [15:35:04]MH_I2C_Read... [15:35:04]*** Stop cut motor [15:35:04]*** Cut end [15:35:04]Read from MH i2c: 01 07 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: 01 07 00 D8 3E 00 00 00 00 00 FF 0F 2B [15:35:04]process_action close_receipt done [15:35:04]requested_data is exist [15:35:04]produce_requested_data [15:35:04]requested_item fm.sn is exist - process it [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 11 00 00 [15:35:04]Write to MH i2c: E2 08 00 D9 3E 80 11 00 00 00 00 00 00 91 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 17 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 17 00 D9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [15:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:35:04]wFMCommunicate OK [15:35:04]requested_item fd.num is exist - process it [15:35:04]SAM_PROTO_GetFieldsCounters [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 13 00 00 [15:35:04]Write to MH i2c: E2 08 00 DA 3E 80 13 00 00 00 00 00 00 94 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 62 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 62 00 DA 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [15:35:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:04]wFMCommunicate OK [15:35:04]SAM_PROTO_GetFieldsCounters done [15:35:04]requested_item shift.num is exist - process it [15:35:04]requested_item shift.opened is exist - process it [15:35:04]req_shift_opened [15:35:04]FM_GetShiftState [15:35:04]SAM_PROTO_GetShiftState [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 13 01 00 [15:35:04]Write to MH i2c: E2 08 00 DB 3E 80 13 01 00 00 00 00 00 96 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 0E 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 0E 00 DB 3E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CB [15:35:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:35:04]wFMCommunicate OK [15:35:04]SAM_PROTO_GetShiftState done [15:35:04]FM_GetShiftState done [15:35:04]req_shift_opened done [15:35:04]requested_item shift.open_date is exist - process it [15:35:04]req_shift_open_date [15:35:04]req_shift_open_date done [15:35:04]produce_requested_data done [15:35:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112271,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:35:04]process_action_free close_receipt [15:35:04]json_value_free [15:35:04]json_value_free done [15:35:04]process_json_proto returns [15:35:04]Send response to host [15:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112271,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:35:04]free response buf [15:35:04]execute_script done [15:35:04]execute_script returns [15:35:04]free content buf [15:35:04]Sock 9.Close socket [15:35:04]Sock 9.Thread stoped [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]accept exits with 7 [15:38:18]New connection [15:38:18]New thread 3066957156 created [15:38:18]Thread 3066813796 joined [15:38:18]Waiting for new connection... [15:38:18] Sock 7.Parse request [15:38:18]Sock 7.Check first char [15:38:18]Sock 7.First char is OK [15:38:18]request: POST /json_proto HTTP/1.0 [15:38:18]Method: POST [15:38:18]URL: /json_proto [15:38:18]Method is POST - this is cgi request [15:38:18]url: /json_proto [15:38:18]query_string will be loaded in cgi processing [15:38:18]execute_cgi json_proto POST (null) [15:38:18]execute_cgi path=json_proto method=POST [15:38:18]POST find Content-Length [15:38:18]Host: 172.17.59.68:8080 [15:38:18]Content-Length: 677 [15:38:18]Content-Type: application/json [15:38:18] [15:38:18]POST finish read [15:38:18]Found Content-Length = 677 [15:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320949", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:18]execute_script... [15:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320949", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:18]POST & json_proto [15:38:18]process_json_proto [15:38:18]json parsed OK: [15:38:18]protocol is kg_v1.0 [15:38:18]action value=close_receipt [15:38:18]process_action close_receipt [15:38:18]cmd_close_receipt [15:38:18]MH_GetDate [15:38:18]Write to MH i2c: F0 00 00 DC 3E 09 [15:38:18]Write i2c OK [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: F0 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: F0 09 00 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: F0 09 00 DC 3E 00 05 F0 76 66 BC EC 60 65 50 [15:38:18]GetLastDocTimeStamp 1719070527 [15:38:18]current date 1719070725 [15:38:18]FM_GetShiftState [15:38:18]SAM_PROTO_GetShiftState [15:38:18]wFMCommunicate request_size=4 [15:38:18]MH_SAM_APDU [15:38:18]CAPDU: 80 13 01 00 [15:38:18]Write to MH i2c: E2 08 00 DD 3E 80 13 01 00 00 00 00 00 98 [15:38:18]Write i2c OK [15:38:18]MH_I2C_Read... [15:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:18]Read from MH i2c: E2 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 0E 00 [15:38:18]MH_I2C_Read... [15:38:18]Read from MH i2c: E2 0E 00 DD 3E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CD [15:38:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:38:18]wFMCommunicate OK [15:38:18]SAM_PROTO_GetShiftState done [15:38:18]FM_GetShiftState done [15:38:18]opened in 1719020067 [15:38:18]opened+sec_in_day 1719106467 [15:38:18]quantity*price = 60025 [15:38:18]sum+1 = 60027 [15:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 138 22.06.2024 15:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112272 ФПД: 194620951670418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112272&fm=194620951670418&tin=02508201610067®Number=0000000000092771&sum=60000 [15:38:19]StoreToDocumentArchive [15:38:19]shift 391 fd 112272 [15:38:19]save to /storage/0391/doc_00112272 [15:38:19]save last doc name /storage/0391/doc_00112272 to /storage/kkm_last_doc_name [15:38:19]save OK [15:38:19]Clear old archive folders... [15:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:19]tlvbuf is 01180410 [15:38:19]SAM_PROTO_ClearQueue [15:38:19]wFMCommunicate request_size=4 [15:38:19]MH_SAM_APDU [15:38:19]CAPDU: 80 09 00 00 [15:38:19]Write to MH i2c: E2 08 00 EA 3E 80 09 00 00 00 00 00 00 9A [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:19]Read from MH i2c: E2 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 EA 3E 00 90 00 9C [15:38:19]RAPDU: 90 00 [15:38:19]wFMCommunicate OK [15:38:19]SAM_PROTO_ClearQueue done [15:38:19]KKMCreateOFDPacket [15:38:19]OFDProtocolAddRootSTLVToBuf [15:38:19]FM_MakeSignedData [15:38:19]FM_MakeSignedData [15:38:19]SAM_PROTO_SignData [15:38:19]wFMCommunicate request_size=4 [15:38:19]MH_SAM_APDU [15:38:19]CAPDU: 80 0D 01 02 [15:38:19]Write to MH i2c: E2 08 00 EB 3E 80 0D 01 02 00 00 00 00 A2 [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:19]Read from MH i2c: E2 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 EB 3E 00 90 00 9D [15:38:19]RAPDU: 90 00 [15:38:19]wFMCommunicate OK [15:38:19]wFMCommunicate request_size=255 [15:38:19]MH_SAM_APDU [15:38:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 05 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B6 01 00 35 04 06 00 B1 [15:38:19]Write to MH i2c: E2 02 01 EC 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 05 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B6 01 00 35 04 06 00 B1 00 00 0E [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:19]Read from MH i2c: E2 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 EC 3E 00 90 00 9E [15:38:19]RAPDU: 90 00 [15:38:19]wFMCommunicate OK [15:38:19]wFMCommunicate request_size=10 [15:38:19]MH_SAM_APDU [15:38:19]CAPDU: 80 0D 02 02 05 01 B8 B0 AE 92 [15:38:19]Write to MH i2c: E2 0D 00 ED 3E 80 0D 02 02 05 00 01 B8 B0 AE 92 00 00 58 [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:19]Read from MH i2c: E2 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 03 00 ED 3E 00 90 00 9F [15:38:19]RAPDU: 90 00 [15:38:19]wFMCommunicate OK [15:38:19]wFMCommunicate request_size=4 [15:38:19]MH_SAM_APDU [15:38:19]CAPDU: 80 0D 03 02 [15:38:19]Write to MH i2c: E2 08 00 EE 3E 80 0D 03 02 00 00 00 00 A7 [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:19]Read from MH i2c: E2 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 0B 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 0B 00 EE 3E 00 81 BC FA DD 7D B7 A8 2E 90 00 C6 [15:38:19]RAPDU: 81 BC FA DD 7D B7 A8 2E 90 00 [15:38:19]wFMCommunicate OK [15:38:19]SAM_PROTO_SignData done [15:38:19]FM_MakeSignedData done [15:38:19]CreateOFDProtocolMessage [15:38:19]wFMCommunicate request_size=4 [15:38:19]MH_SAM_APDU [15:38:19]CAPDU: 80 11 00 00 [15:38:19]Write to MH i2c: E2 08 00 EF 3E 80 11 00 00 00 00 00 00 A7 [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:19]Read from MH i2c: E2 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 17 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: E2 17 00 EF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F9 [15:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:38:19]wFMCommunicate OK [15:38:19]CreateOFDProtocolMessage done [15:38:19]OFDSenderStorePacket 112272 [15:38:19]StoreOFDPacket docnum=112272 [15:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CE 0F 07 01 33 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 05 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B6 01 00 35 04 06 00 B1 01 B8 B0 AE 92 81 BC FA DD 7D B7 A8 2E [15:38:19]CheckFolder [15:38:19]dirname=/storage/ofd_packets [15:38:19]CheckFolder done [15:38:19]ProducePacketName [15:38:19]name=ofd_packets/00112272 [15:38:19]NVStorageSaveData ofd_packets/00112272 [15:38:19]File name is /storage/ofd_packets/00112272 [15:38:19]Write 301 bytes [15:38:19]NVStorageSaveData done [15:38:19]OFDSenderStorePacket done [15:38:19]KKMCreateOFDPacket done [15:38:19]NVStorageSaveData kkm_last_timestamp [15:38:19]File name is /storage/kkm_last_timestamp [15:38:19]Write 4 bytes [15:38:19]NVStorageSaveData done [15:38:19]ExternCall_PrintAddStr [15:38:19]wPrintStart [15:38:19]Write to MH i2c: 01 00 00 F0 3E 2E [15:38:19]Write i2c OK [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: 01 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: 01 07 00 [15:38:19]MH_I2C_Read... [15:38:19]Read from MH i2c: 01 07 00 F0 3E 00 00 00 00 00 FF 0F 43 [15:38:19]RasterBufferAndPrint [15:38:19]line Счет N : (1)320949 [15:38:19]line ИНН: 02508201610067 [15:38:19]line Контрольно-Кассовый Чек [15:38:19]line ПРОДАЖА [15:38:19]line ТРК (МРК, ГНК) : 11 [15:38:19]line Товар: 2710124130 [15:38:19]line Аи-92-К-5 [15:38:19]line 9.040 * 66.40 [15:38:19]line = 600.26 [15:38:19]line НДС 12% НСП 1% [15:38:19]line > о реализуемом товаре [15:38:19]line ОКРУГЛЕНИЕ: -0.26 [15:38:19]line ИТОГО: 600.00 [15:38:19]line Внесено: 600.00 [15:38:19]line СДАЧА: 0.00 [15:38:19]line НСП 1% : 5.31 [15:38:19]line НДС 12% : 63.74 [15:38:19]line Наличными: 600.00 [15:38:19]line Безнал.: 0.00 [15:38:19]line Место: АЗС № 65 "Партнер Нефть" [15:38:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:38:19]line СНО: Общий режим [15:38:19]line Чек 138 22.06.2024 15:38 [15:38:19]line Смена: 391 ФФД: 1.0 [15:38:19]line ЗНМ: 0300000198 [15:38:19]line РНМ: 0000000000092771 [15:38:19]line Версия ККМ: 001 [15:38:19]line ФМ: 0000000000875083 [15:38:19]line ФД: 112272 [15:38:19]line ФПД: 194620951670418 [15:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112272&fm=194620951670418&tin=02508201610067®Number=0000000000092771&sum=60000 [15:38:20]OFD Sender: Processing packet 112272 [packets to send 38, broken 37] [15:38:20]ProducePacketName [15:38:20]name=ofd_packets/00112272 [15:38:20]OFD Sender: To server: pG, [15:38:20]CommunicateWithHost lk.salyk.kg:30040 [15:38:20]ConnectInit lk.salyk.kg [15:38:20]written 0, free lines is 4095 [15:38:20]Connected sock=10 [15:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CE 0F 07 01 33 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 05 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B6 01 00 35 04 06 00 B1 01 B8 B0 AE 92 81 BC FA DD 7D B7 A8 2E [15:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B5 C0 47 00 CC 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B6 01 00 F4 03 04 00 0D 87 76 66 B6 04 01 00 00 01 6B DB 2B 64 0A 56 1A [15:38:20]CommunicateWithHost err = 0 [15:38:20]CheckOFDResponse [15:38:20]1017 (14) - 77093643461234 [15:38:20]1041 (16) - 0000000000875083 [15:38:20]1040 (4) - 112272 [15:38:20]1012 (4) - 22.06.2024 08:10 [15:38:20]1206 (1) - 0 [15:38:20]OFD Sender: Remove packet 112272 [15:38:20]ProducePacketName [15:38:20]name=ofd_packets/00112272 [15:38:20]NVStorageDeleteData [15:38:20]Write to MH i2c: 01 00 00 1B 3F 5A [15:38:20]Write i2c OK [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: 01 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: 01 07 00 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: 01 07 00 1B 3F 00 00 00 00 00 DA 0C 47 [15:38:20]RasterBufferAndPrint [15:38:20]line [15:38:20]line [15:38:20]line [15:38:20]line [15:38:20]line [15:38:20]written 0, free lines is 3297 [15:38:20]MH_Cut [15:38:20]Write to MH i2c: D1 01 00 22 3F 01 33 [15:38:20]Write i2c OK [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: D1 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: D1 01 00 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: D1 01 00 22 3F 00 32 [15:38:20]Write to MH i2c: 01 00 00 23 3F 62 [15:38:20]Write i2c OK [15:38:20]MH_I2C_Read... [15:38:20]OFD Sender: No OFD packet to send [15:38:21]*** Cut start [15:38:21]*** Partial cut [15:38:21]*** CUTSNS_PIN = 1 [15:38:21]*** CUTSNS_PIN = 0 [15:38:21]*** Brake cut motor [15:38:21]Read from MH i2c: 01 [15:38:21]MH_I2C_Read... [15:38:21]*** Stop cut motor [15:38:21]*** Cut end [15:38:21]Read from MH i2c: 01 07 00 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: 01 07 00 23 3F 00 00 00 00 00 FF 0F 77 [15:38:21]process_action close_receipt done [15:38:21]requested_data is exist [15:38:21]produce_requested_data [15:38:21]requested_item fm.sn is exist - process it [15:38:21]wFMCommunicate request_size=4 [15:38:21]MH_SAM_APDU [15:38:21]CAPDU: 80 11 00 00 [15:38:21]Write to MH i2c: E2 08 00 24 3F 80 11 00 00 00 00 00 00 DD [15:38:21]Write i2c OK [15:38:21]MH_I2C_Read... [15:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:21]Read from MH i2c: E2 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 17 00 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 17 00 24 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [15:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:38:21]wFMCommunicate OK [15:38:21]requested_item fd.num is exist - process it [15:38:21]SAM_PROTO_GetFieldsCounters [15:38:21]wFMCommunicate request_size=4 [15:38:21]MH_SAM_APDU [15:38:21]CAPDU: 80 13 00 00 [15:38:21]Write to MH i2c: E2 08 00 25 3F 80 13 00 00 00 00 00 00 E0 [15:38:21]Write i2c OK [15:38:21]MH_I2C_Read... [15:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:22]Read from MH i2c: E2 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 62 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 62 00 25 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:22]wFMCommunicate OK [15:38:22]SAM_PROTO_GetFieldsCounters done [15:38:22]requested_item shift.num is exist - process it [15:38:22]requested_item shift.opened is exist - process it [15:38:22]req_shift_opened [15:38:22]FM_GetShiftState [15:38:22]SAM_PROTO_GetShiftState [15:38:22]wFMCommunicate request_size=4 [15:38:22]MH_SAM_APDU [15:38:22]CAPDU: 80 13 01 00 [15:38:22]Write to MH i2c: E2 08 00 26 3F 80 13 01 00 00 00 00 00 E2 [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:22]Read from MH i2c: E2 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 0E 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 0E 00 26 3F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 17 [15:38:22]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:38:22]wFMCommunicate OK [15:38:22]SAM_PROTO_GetShiftState done [15:38:22]FM_GetShiftState done [15:38:22]req_shift_opened done [15:38:22]requested_item shift.open_date is exist - process it [15:38:22]req_shift_open_date [15:38:22]req_shift_open_date done [15:38:22]produce_requested_data done [15:38:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112272,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:38:22]process_action_free close_receipt [15:38:22]json_value_free [15:38:22]json_value_free done [15:38:22]process_json_proto returns [15:38:22]Send response to host [15:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112272,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:38:22]free response buf [15:38:22]execute_script done [15:38:22]execute_script returns [15:38:22]free content buf [15:38:22]Sock 7.Close socket [15:38:22]Sock 7.Thread stoped [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [15:41:06]New connection [15:41:06]New thread 3066813796 created [15:41:06]Thread 3066957156 joined [15:41:06]Waiting for new connection... [15:41:06] Sock 9.Parse request [15:41:06]Sock 9.Check first char [15:41:06]Sock 9.First char is OK [15:41:06]request: POST /json_proto HTTP/1.0 [15:41:06]Method: POST [15:41:06]URL: /json_proto [15:41:06]Method is POST - this is cgi request [15:41:06]url: /json_proto [15:41:06]query_string will be loaded in cgi processing [15:41:06]execute_cgi json_proto POST (null) [15:41:06]execute_cgi path=json_proto method=POST [15:41:06]POST find Content-Length [15:41:06]Host: 172.17.59.68:8080 [15:41:06]Content-Length: 677 [15:41:06]Content-Type: application/json [15:41:06] [15:41:06]POST finish read [15:41:06]Found Content-Length = 677 [15:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320950", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:06]execute_script... [15: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)320950", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:06]POST & json_proto [15:41:06]process_json_proto [15:41:06]json parsed OK: [15:41:06]protocol is kg_v1.0 [15:41:06]action value=close_receipt [15:41:06]process_action close_receipt [15:41:06]cmd_close_receipt [15:41:06]MH_GetDate [15:41:06]Write to MH i2c: F0 00 00 27 3F 55 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: F0 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: F0 09 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: F0 09 00 27 3F 00 AD F0 76 66 BC EC 60 65 44 [15:41:06]GetLastDocTimeStamp 1719070725 [15:41:06]current date 1719070893 [15:41:06]FM_GetShiftState [15:41:06]SAM_PROTO_GetShiftState [15:41:06]wFMCommunicate request_size=4 [15:41:06]MH_SAM_APDU [15:41:06]CAPDU: 80 13 01 00 [15:41:06]Write to MH i2c: E2 08 00 28 3F 80 13 01 00 00 00 00 00 E4 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:06]Read from MH i2c: E2 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 0E 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 0E 00 28 3F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 19 [15:41:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:41:06]wFMCommunicate OK [15:41:06]SAM_PROTO_GetShiftState done [15:41:06]FM_GetShiftState done [15:41:06]opened in 1719020067 [15:41:06]opened+sec_in_day 1719106467 [15:41:06]quantity*price = 50065 [15:41:06]sum+1 = 50067 [15:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 139 22.06.2024 15:41 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112273 ФПД: 45189865429757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154133&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112273&fm=45189865429757&tin=02508201610067®Number=0000000000092771&sum=50000 [15:41:07]StoreToDocumentArchive [15:41:07]shift 391 fd 112273 [15:41:07]save to /storage/0391/doc_00112273 [15:41:07]save last doc name /storage/0391/doc_00112273 to /storage/kkm_last_doc_name [15:41:07]save OK [15:41:07]Clear old archive folders... [15:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:07]tlvbuf is 011B0740 [15:41:07]SAM_PROTO_ClearQueue [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 09 00 00 [15:41:07]Write to MH i2c: E2 08 00 35 3F 80 09 00 00 00 00 00 00 E6 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 35 3F 00 90 00 E8 [15:41:07]RAPDU: 90 00 [15:41:07]wFMCommunicate OK [15:41:07]SAM_PROTO_ClearQueue done [15:41:07]KKMCreateOFDPacket [15:41:07]OFDProtocolAddRootSTLVToBuf [15:41:07]FM_MakeSignedData [15:41:07]FM_MakeSignedData [15:41:07]SAM_PROTO_SignData [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 0D 01 02 [15:41:07]Write to MH i2c: E2 08 00 36 3F 80 0D 01 02 00 00 00 00 EE [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 36 3F 00 90 00 E9 [15:41:07]RAPDU: 90 00 [15:41:07]wFMCommunicate OK [15:41:07]wFMCommunicate request_size=255 [15:41:07]MH_SAM_APDU [15: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AD F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B6 01 00 35 04 06 00 29 [15:41:07]Write to MH i2c: E2 02 01 37 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AD F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B6 01 00 35 04 06 00 29 00 00 9F [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 37 3F 00 90 00 EA [15:41:07]RAPDU: 90 00 [15:41:07]wFMCommunicate OK [15:41:07]wFMCommunicate request_size=10 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 0D 02 02 05 19 95 E0 5A FD [15:41:07]Write to MH i2c: E2 0D 00 38 3F 80 0D 02 02 05 00 19 95 E0 5A FD 00 00 E0 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 03 00 38 3F 00 90 00 EB [15:41:07]RAPDU: 90 00 [15:41:07]wFMCommunicate OK [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 0D 03 02 [15:41:07]Write to MH i2c: E2 08 00 39 3F 80 0D 03 02 00 00 00 00 F3 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 0B 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 0B 00 39 3F 00 19 DA D3 BC 82 EE 78 1D 90 00 7B [15:41:07]RAPDU: 19 DA D3 BC 82 EE 78 1D 90 00 [15:41:07]wFMCommunicate OK [15:41:07]SAM_PROTO_SignData done [15:41:07]FM_MakeSignedData done [15:41:07]CreateOFDProtocolMessage [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 11 00 00 [15:41:07]Write to MH i2c: E2 08 00 3A 3F 80 11 00 00 00 00 00 00 F3 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 17 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 17 00 3A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [15:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:07]wFMCommunicate OK [15:41:07]CreateOFDProtocolMessage done [15:41:07]OFDSenderStorePacket 112273 [15:41:07]StoreOFDPacket docnum=112273 [15:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 E0 07 01 1E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AD F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B6 01 00 35 04 06 00 29 19 95 E0 5A FD 19 DA D3 BC 82 EE 78 1D [15:41:07]CheckFolder [15:41:07]dirname=/storage/ofd_packets [15:41:07]CheckFolder done [15:41:07]ProducePacketName [15:41:07]name=ofd_packets/00112273 [15:41:07]NVStorageSaveData ofd_packets/00112273 [15:41:07]File name is /storage/ofd_packets/00112273 [15:41:07]Write 301 bytes [15:41:07]NVStorageSaveData done [15:41:07]OFDSenderStorePacket done [15:41:07]KKMCreateOFDPacket done [15:41:07]NVStorageSaveData kkm_last_timestamp [15:41:07]File name is /storage/kkm_last_timestamp [15:41:07]Write 4 bytes [15:41:07]NVStorageSaveData done [15:41:07]ExternCall_PrintAddStr [15:41:07]wPrintStart [15:41:07]Write to MH i2c: 01 00 00 3B 3F 7A [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: 01 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: 01 07 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: 01 07 00 3B 3F 00 00 00 00 00 FF 0F 8F [15:41:07]RasterBufferAndPrint [15:41:07]line Счет N : (1)320950 [15:41:07]line ИНН: 02508201610067 [15:41:07]line Контрольно-Кассовый Чек [15:41:07]line ПРОДАЖА [15:41:07]line ТРК (МРК, ГНК) : 11 [15:41:07]line Товар: 2710124130 [15:41:07]line Аи-92-К-5 [15:41:07]line 7.540 * 66.40 [15:41:07]line = 500.66 [15:41:07]line НДС 12% НСП 1% [15:41:07]line > о реализуемом товаре [15:41:07]line ОКРУГЛЕНИЕ: -0.66 [15:41:07]line ИТОГО: 500.00 [15:41:07]line Внесено: 500.00 [15:41:07]line СДАЧА: 0.00 [15:41:07]line НСП 1% : 4.43 [15:41:07]line НДС 12% : 53.17 [15:41:07]line Наличными: 500.00 [15:41:07]line Безнал.: 0.00 [15:41:07]line Место: АЗС № 65 "Партнер Нефть" [15:41:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:41:07]line СНО: Общий режим [15:41:07]line Чек 139 22.06.2024 15:41 [15:41:07]line Смена: 391 ФФД: 1.0 [15:41:07]line ЗНМ: 0300000198 [15:41:07]line РНМ: 0000000000092771 [15:41:07]line Версия ККМ: 001 [15:41:07]line ФМ: 0000000000875083 [15:41:08]line ФД: 112273 [15:41:08]line ФПД: 45189865429757 [15:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154133&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112273&fm=45189865429757&tin=02508201610067®Number=0000000000092771&sum=50000 [15:41:08]OFD Sender: Processing packet 112273 [packets to send 38, broken 37] [15:41:08]ProducePacketName [15:41:08]name=ofd_packets/00112273 [15:41:08]OFD Sender: To server: pG, [15:41:08]CommunicateWithHost lk.salyk.kg:30040 [15:41:08]ConnectInit lk.salyk.kg [15:41:08]written 0, free lines is 4095 [15:41:08]Connected sock=10 [15: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 35 30 38 33 0F 01 00 00 53 E0 07 01 1E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 AD F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B6 01 00 35 04 06 00 29 19 95 E0 5A FD 19 DA D3 BC 82 EE 78 1D [15:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6F 5B 47 00 3D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B6 01 00 F4 03 04 00 B5 87 76 66 B6 04 01 00 00 25 66 E5 AC CC 87 2F B5 [15:41:08]CommunicateWithHost err = 0 [15:41:08]CheckOFDResponse [15:41:08]1017 (14) - 77093643461234 [15:41:08]1041 (16) - 0000000000875083 [15:41:08]1040 (4) - 112273 [15:41:08]1012 (4) - 22.06.2024 08:13 [15:41:08]1206 (1) - 0 [15:41:08]OFD Sender: Remove packet 112273 [15:41:08]ProducePacketName [15:41:08]name=ofd_packets/00112273 [15:41:08]NVStorageDeleteData [15:41:08]Write to MH i2c: 01 00 00 66 3F A5 [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: 01 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: 01 07 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: 01 07 00 66 3F 00 00 00 00 00 DC 0C 94 [15:41:08]RasterBufferAndPrint [15:41:08]line [15:41:08]line [15:41:08]line [15:41:08]line [15:41:08]line [15:41:08]written 0, free lines is 3298 [15:41:08]MH_Cut [15:41:08]Write to MH i2c: D1 01 00 6D 3F 01 7E [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: D1 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: D1 01 00 [15:41:08]MH_I2C_Read... [15:41:08]Read from MH i2c: D1 01 00 6D 3F 00 7D [15:41:08]Write to MH i2c: 01 00 00 6E 3F AD [15:41:08]Write i2c OK [15:41:08]MH_I2C_Read... [15:41:08]OFD Sender: No OFD packet to send [15:41:09]*** Cut start [15:41:09]*** Partial cut [15:41:09]*** CUTSNS_PIN = 1 [15:41:09]*** CUTSNS_PIN = 0 [15:41:09]*** Brake cut motor [15:41:09]Read from MH i2c: 01 [15:41:09]MH_I2C_Read... [15:41:09]*** Stop cut motor [15:41:09]*** Cut end [15:41:09]Read from MH i2c: 01 07 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: 01 07 00 6E 3F 00 00 00 00 00 FF 0F C2 [15:41:09]process_action close_receipt done [15:41:09]requested_data is exist [15:41:09]produce_requested_data [15:41:09]requested_item fm.sn is exist - process it [15:41:09]wFMCommunicate request_size=4 [15:41:09]MH_SAM_APDU [15:41:09]CAPDU: 80 11 00 00 [15:41:09]Write to MH i2c: E2 08 00 6F 3F 80 11 00 00 00 00 00 00 28 [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:09]Read from MH i2c: E2 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 17 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 17 00 6F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7A [15:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:09]wFMCommunicate OK [15:41:09]requested_item fd.num is exist - process it [15:41:09]SAM_PROTO_GetFieldsCounters [15:41:09]wFMCommunicate request_size=4 [15:41:09]MH_SAM_APDU [15:41:09]CAPDU: 80 13 00 00 [15:41:09]Write to MH i2c: E2 08 00 70 3F 80 13 00 00 00 00 00 00 2B [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 62 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 62 00 70 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [15: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:10]wFMCommunicate OK [15:41:10]SAM_PROTO_GetFieldsCounters done [15:41:10]requested_item shift.num is exist - process it [15:41:10]requested_item shift.opened is exist - process it [15:41:10]req_shift_opened [15:41:10]FM_GetShiftState [15:41:10]SAM_PROTO_GetShiftState [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 13 01 00 [15:41:10]Write to MH i2c: E2 08 00 71 3F 80 13 01 00 00 00 00 00 2D [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:10]Read from MH i2c: E2 0E 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 0E 00 71 3F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 62 [15:41:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:41:10]wFMCommunicate OK [15:41:10]SAM_PROTO_GetShiftState done [15:41:10]FM_GetShiftState done [15:41:10]req_shift_opened done [15:41:10]requested_item shift.open_date is exist - process it [15:41:10]req_shift_open_date [15:41:10]req_shift_open_date done [15:41:10]produce_requested_data done [15:41:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112273,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:41:10]process_action_free close_receipt [15:41:10]json_value_free [15:41:10]json_value_free done [15:41:10]process_json_proto returns [15:41:10]Send response to host [15:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112273,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:41:10]free response buf [15:41:10]execute_script done [15:41:10]execute_script returns [15:41:10]free content buf [15:41:10]Sock 9.Close socket [15:41:10]Sock 9.Thread stoped [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:02]accept exits with 7 [15:42:02]New connection [15:42:02]New thread 3066957156 created [15:42:02]Thread 3066813796 joined [15:42:02]Waiting for new connection... [15:42:02] Sock 7.Parse request [15:42:02]Sock 7.Check first char [15:42:02]Sock 7.First char is OK [15:42:02]request: POST /json_proto HTTP/1.0 [15:42:02]Method: POST [15:42:02]URL: /json_proto [15:42:02]Method is POST - this is cgi request [15:42:02]url: /json_proto [15:42:02]query_string will be loaded in cgi processing [15:42:02]execute_cgi json_proto POST (null) [15:42:02]execute_cgi path=json_proto method=POST [15:42:02]POST find Content-Length [15:42:02]Host: 172.17.59.68:8080 [15:42:02]Content-Length: 682 [15:42:02]Content-Type: application/json [15:42:02] [15:42:02]POST finish read [15:42:02]Found Content-Length = 682 [15:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320951", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:02]execute_script... [15:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320951", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:02]POST & json_proto [15:42:02]process_json_proto [15:42:02]json parsed OK: [15:42:02]protocol is kg_v1.0 [15:42:02]action value=close_receipt [15:42:02]process_action close_receipt [15:42:02]cmd_close_receipt [15:42:02]MH_GetDate [15:42:02]Write to MH i2c: F0 00 00 72 3F A0 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 09 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 09 00 72 3F 00 E5 F0 76 66 BC EC 60 65 C7 [15:42:02]GetLastDocTimeStamp 1719070893 [15:42:02]current date 1719070949 [15:42:02]FM_GetShiftState [15:42:02]SAM_PROTO_GetShiftState [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 01 00 [15:42:02]Write to MH i2c: E2 08 00 73 3F 80 13 01 00 00 00 00 00 2F [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 73 3F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 64 [15:42:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetShiftState done [15:42:02]FM_GetShiftState done [15:42:02]opened in 1719020067 [15:42:02]opened+sec_in_day 1719106467 [15:42:02]quantity*price = 100064 [15:42:02]sum+1 = 100066 [15:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 140 22.06.2024 15:42 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112274 ФПД: 125180721317206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112274&fm=125180721317206&tin=02508201610067®Number=0000000000092771&sum=100000 [15:42:03]StoreToDocumentArchive [15:42:03]shift 391 fd 112274 [15:42:03]save to /storage/0391/doc_00112274 [15:42:03]save last doc name /storage/0391/doc_00112274 to /storage/kkm_last_doc_name [15:42:03]save OK [15:42:03]Clear old archive folders... [15:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:03]tlvbuf is 011C7400 [15:42:03]SAM_PROTO_ClearQueue [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 09 00 00 [15:42:03]Write to MH i2c: E2 08 00 80 3F 80 09 00 00 00 00 00 00 31 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 80 3F 00 90 00 33 [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]SAM_PROTO_ClearQueue done [15:42:03]KKMCreateOFDPacket [15:42:03]OFDProtocolAddRootSTLVToBuf [15:42:03]FM_MakeSignedData [15:42:03]FM_MakeSignedData [15:42:03]SAM_PROTO_SignData [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 0D 01 02 [15:42:03]Write to MH i2c: E2 08 00 81 3F 80 0D 01 02 00 00 00 00 39 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 81 3F 00 90 00 34 [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]wFMCommunicate request_size=255 [15:42:03]MH_SAM_APDU [15:42: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E5 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B6 01 00 35 04 06 00 71 [15:42:03]Write to MH i2c: E2 02 01 82 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E5 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B6 01 00 35 04 06 00 71 00 00 BC [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]OFD Sender: No OFD packet to send [15:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 82 3F 00 90 00 35 [15:42:04]RAPDU: 90 00 [15:42:04]wFMCommunicate OK [15:42:04]wFMCommunicate request_size=10 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 0D 02 02 05 D9 E8 6D 45 56 [15:42:04]Write to MH i2c: E2 0D 00 83 3F 80 0D 02 02 05 00 D9 E8 6D 45 56 00 00 0F [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 83 3F 00 90 00 36 [15:42:04]RAPDU: 90 00 [15:42:04]wFMCommunicate OK [15:42:04]wFMCommunicate request_size=4 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 0D 03 02 [15:42:04]Write to MH i2c: E2 08 00 84 3F 80 0D 03 02 00 00 00 00 3E [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 0B 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 0B 00 84 3F 00 D4 7D B5 2F 69 9D 4E 5B 90 00 23 [15:42:04]RAPDU: D4 7D B5 2F 69 9D 4E 5B 90 00 [15:42:04]wFMCommunicate OK [15:42:04]SAM_PROTO_SignData done [15:42:04]FM_MakeSignedData done [15:42:04]CreateOFDProtocolMessage [15:42:04]wFMCommunicate request_size=4 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 11 00 00 [15:42:04]Write to MH i2c: E2 08 00 85 3F 80 11 00 00 00 00 00 00 3E [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 17 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 17 00 85 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [15:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:04]wFMCommunicate OK [15:42:04]CreateOFDProtocolMessage done [15:42:04]OFDSenderStorePacket 112274 [15:42:04]StoreOFDPacket docnum=112274 [15:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 16 6F 07 01 5B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E5 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B6 01 00 35 04 06 00 71 D9 E8 6D 45 56 D4 7D B5 2F 69 9D 4E 5B [15:42:04]CheckFolder [15:42:04]dirname=/storage/ofd_packets [15:42:04]CheckFolder done [15:42:04]ProducePacketName [15:42:04]name=ofd_packets/00112274 [15:42:04]NVStorageSaveData ofd_packets/00112274 [15:42:04]File name is /storage/ofd_packets/00112274 [15:42:04]Write 301 bytes [15:42:04]NVStorageSaveData done [15:42:04]OFDSenderStorePacket done [15:42:04]KKMCreateOFDPacket done [15:42:04]NVStorageSaveData kkm_last_timestamp [15:42:04]File name is /storage/kkm_last_timestamp [15:42:04]Write 4 bytes [15:42:04]NVStorageSaveData done [15:42:04]ExternCall_PrintAddStr [15:42:04]wPrintStart [15:42:04]Write to MH i2c: 01 00 00 86 3F C5 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 86 3F 00 00 00 00 00 FF 0F DA [15:42:04]RasterBufferAndPrint [15:42:04]line Счет N : (1)320951 [15:42:04]line ИНН: 02508201610067 [15:42:04]line Контрольно-Кассовый Чек [15:42:04]line ПРОДАЖА [15:42:04]line ТРК (МРК, ГНК) : 11 [15:42:04]line Товар: 2710124130 [15:42:04]line Аи-92-К-5 [15:42:04]line 15.070 * 66.40 [15:42:04]line = 1000.65 [15:42:04]line НДС 12% НСП 1% [15:42:04]line > о реализуемом товаре [15:42:04]line ОКРУГЛЕНИЕ: -0.65 [15:42:04]line ИТОГО: 1000.00 [15:42:04]line Внесено: 1000.00 [15:42:04]line СДАЧА: 0.00 [15:42:04]line НСП 1% : 8.85 [15:42:04]line НДС 12% : 106.26 [15:42:04]line Наличными: 1000.00 [15:42:04]line Безнал.: 0.00 [15:42:04]line Место: АЗС № 65 "Партнер Нефть" [15:42:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:42:04]line СНО: Общий режим [15:42:04]line Чек 140 22.06.2024 15:42 [15:42:04]line Смена: 391 ФФД: 1.0 [15:42:04]line ЗНМ: 0300000198 [15:42:04]line РНМ: 0000000000092771 [15:42:04]line Версия ККМ: 001 [15:42:04]line ФМ: 0000000000875083 [15:42:04]line ФД: 112274 [15:42:04]line ФПД: 125180721317206 [15:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112274&fm=125180721317206&tin=02508201610067®Number=0000000000092771&sum=100000 [15:42:04]OFD Sender: Processing packet 112274 [packets to send 38, broken 37] [15:42:04]ProducePacketName [15:42:04]name=ofd_packets/00112274 [15:42:04]OFD Sender: To server: pG, [15:42:04]CommunicateWithHost lk.salyk.kg:30040 [15:42:04]ConnectInit lk.salyk.kg [15:42:04]written 0, free lines is 4095 [15:42:05]Write to MH i2c: 01 00 00 B1 3F F0 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 B1 3F 00 00 00 00 00 CD 0C D0 [15:42:05]RasterBufferAndPrint [15:42:05]line [15:42:05]line [15:42:05]line [15:42:05]line [15:42:05]line [15:42:05]written 0, free lines is 3281 [15:42:05]MH_Cut [15:42:05]Write to MH i2c: D1 01 00 B8 3F 01 C9 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: D1 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: D1 01 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: D1 01 00 B8 3F 00 C8 [15:42:05]Write to MH i2c: 01 00 00 B9 3F F8 [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]*** Cut start [15:42:05]*** Partial cut [15:42:05]*** CUTSNS_PIN = 1 [15:42:05]*** CUTSNS_PIN = 0 [15:42:06]*** Brake cut motor [15:42:06]Read from MH i2c: 01 [15:42:06]MH_I2C_Read... [15:42:06]*** Stop cut motor [15:42:06]*** Cut end [15:42:06]Read from MH i2c: 01 07 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: 01 07 00 B9 3F 00 00 00 00 00 FF 0F 0D [15:42:06]process_action close_receipt done [15:42:06]requested_data is exist [15:42:06]produce_requested_data [15:42:06]requested_item fm.sn is exist - process it [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 11 00 00 [15:42:06]Write to MH i2c: E2 08 00 BA 3F 80 11 00 00 00 00 00 00 73 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 17 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 17 00 BA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [15:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:42:06]wFMCommunicate OK [15:42:06]requested_item fd.num is exist - process it [15:42:06]SAM_PROTO_GetFieldsCounters [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 13 00 00 [15:42:06]Write to MH i2c: E2 08 00 BB 3F 80 13 00 00 00 00 00 00 76 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 62 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 62 00 BB 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [15:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_GetFieldsCounters done [15:42:06]requested_item shift.num is exist - process it [15:42:06]requested_item shift.opened is exist - process it [15:42:06]req_shift_opened [15:42:06]FM_GetShiftState [15:42:06]SAM_PROTO_GetShiftState [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 13 01 00 [15:42:06]Write to MH i2c: E2 08 00 BC 3F 80 13 01 00 00 00 00 00 78 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0E 00 BC 3F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AD [15:42:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_GetShiftState done [15:42:06]FM_GetShiftState done [15:42:06]req_shift_opened done [15:42:06]requested_item shift.open_date is exist - process it [15:42:06]req_shift_open_date [15:42:06]req_shift_open_date done [15:42:06]produce_requested_data done [15:42:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112274,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:42:06]process_action_free close_receipt [15:42:06]json_value_free [15:42:06]json_value_free done [15:42:06]process_json_proto returns [15:42:06]Send response to host [15:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112274,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:42:06]free response buf [15:42:06]execute_script done [15:42:06]execute_script returns [15:42:06]free content buf [15:42:06]Sock 7.Close socket [15:42:06]Sock 7.Thread stoped [15:44:14]ConnectInit Can't connect to host [15:44:14]CommunicateWithHost connect error [15:44:14]CommunicateWithHost err = -1 [15:44:14]OFD Sender: Server communicate error [15:44:19]OFD Sender: Processing packet 112274 [packets to send 38, broken 37] [15:44:19]ProducePacketName [15:44:19]name=ofd_packets/00112274 [15:44:19]OFD Sender: To server: pG, [15:44:19]CommunicateWithHost lk.salyk.kg:30040 [15:44:19]ConnectInit lk.salyk.kg [15:44:19]Connected sock=7 [15:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 16 6F 07 01 5B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E5 F0 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B6 01 00 35 04 06 00 71 D9 E8 6D 45 56 D4 7D B5 2F 69 9D 4E 5B [15:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F2 9A 47 00 97 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B6 01 00 F4 03 04 00 74 88 76 66 B6 04 01 00 00 78 50 BF 0F FF 4B 3D 06 [15:44:19]CommunicateWithHost err = 0 [15:44:19]CheckOFDResponse [15:44:19]1017 (14) - 77093643461234 [15:44:19]1041 (16) - 0000000000875083 [15:44:19]1040 (4) - 112274 [15:44:19]1012 (4) - 22.06.2024 08:16 [15:44:19]1206 (1) - 0 [15:44:19]OFD Sender: Remove packet 112274 [15:44:19]ProducePacketName [15:44:19]name=ofd_packets/00112274 [15:44:19]NVStorageDeleteData [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:20]accept exits with 9 [15:45:20]New connection [15:45:20]New thread 3066813796 created [15:45:20]Thread 3066957156 joined [15:45:20]Waiting for new connection... [15:45:20] Sock 9.Parse request [15:45:20]Sock 9.Check first char [15:45:20]Sock 9.First char is OK [15:45:20]request: POST /json_proto HTTP/1.0 [15:45:20]Method: POST [15:45:20]URL: /json_proto [15:45:20]Method is POST - this is cgi request [15:45:20]url: /json_proto [15:45:20]query_string will be loaded in cgi processing [15:45:20]execute_cgi json_proto POST (null) [15:45:20]execute_cgi path=json_proto method=POST [15:45:20]POST find Content-Length [15:45:20]Host: 172.17.59.68:8080 [15:45:20]Content-Length: 677 [15:45:20]Content-Type: application/json [15:45:20] [15:45:20]POST finish read [15:45:20]Found Content-Length = 677 [15:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320952", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:20]execute_script... [15:45: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)320952", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:20]POST & json_proto [15:45:20]process_json_proto [15:45:20]json parsed OK: [15:45:20]protocol is kg_v1.0 [15:45:20]action value=close_receipt [15:45:20]process_action close_receipt [15:45:20]cmd_close_receipt [15:45:20]MH_GetDate [15:45:20]Write to MH i2c: F0 00 00 BD 3F EB [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: F0 [15:45:20]MH_I2C_Read... [15:45:21]Read from MH i2c: F0 09 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: F0 09 00 BD 3F 00 AC F1 76 66 BC EC 60 65 DA [15:45:21]GetLastDocTimeStamp 1719070949 [15:45:21]current date 1719071148 [15:45:21]FM_GetShiftState [15:45:21]SAM_PROTO_GetShiftState [15:45:21]wFMCommunicate request_size=4 [15:45:21]MH_SAM_APDU [15:45:21]CAPDU: 80 13 01 00 [15:45:21]Write to MH i2c: E2 08 00 BE 3F 80 13 01 00 00 00 00 00 7A [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 0E 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 0E 00 BE 3F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AF [15:45:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:45:21]wFMCommunicate OK [15:45:21]SAM_PROTO_GetShiftState done [15:45:21]FM_GetShiftState done [15:45:21]opened in 1719020067 [15:45:21]opened+sec_in_day 1719106467 [15:45:21]quantity*price = 50065 [15:45:21]sum+1 = 50067 [15:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 141 22.06.2024 15:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112275 ФПД: 131997855866408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112275&fm=131997855866408&tin=02508201610067®Number=0000000000092771&sum=50000 [15:45:22]StoreToDocumentArchive [15:45:22]shift 391 fd 112275 [15:45:22]save to /storage/0391/doc_00112275 [15:45:22]save last doc name /storage/0391/doc_00112275 to /storage/kkm_last_doc_name [15:45:22]save OK [15:45:22]Clear old archive folders... [15:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:22]tlvbuf is B6DA9170 [15:45:22]SAM_PROTO_ClearQueue [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 09 00 00 [15:45:22]Write to MH i2c: E2 08 00 CB 3F 80 09 00 00 00 00 00 00 7C [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 CB 3F 00 90 00 7E [15:45:22]RAPDU: 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_ClearQueue done [15:45:22]KKMCreateOFDPacket [15:45:22]OFDProtocolAddRootSTLVToBuf [15:45:22]FM_MakeSignedData [15:45:22]FM_MakeSignedData [15:45:22]SAM_PROTO_SignData [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 0D 01 02 [15:45:22]Write to MH i2c: E2 08 00 CC 3F 80 0D 01 02 00 00 00 00 84 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 CC 3F 00 90 00 7F [15:45:22]RAPDU: 90 00 [15:45:22]wFMCommunicate OK [15:45:22]wFMCommunicate request_size=255 [15:45:22]MH_SAM_APDU [15:45: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC F1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B6 01 00 35 04 06 00 78 [15:45:22]Write to MH i2c: E2 02 01 CD 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC F1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B6 01 00 35 04 06 00 78 00 00 88 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 CD 3F 00 90 00 80 [15:45:22]RAPDU: 90 00 [15:45:22]wFMCommunicate OK [15:45:22]wFMCommunicate request_size=10 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 0D 02 02 05 0D 25 4F 5E 28 [15:45:22]Write to MH i2c: E2 0D 00 CE 3F 80 0D 02 02 05 00 0D 25 4F 5E 28 00 00 98 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 03 00 CE 3F 00 90 00 81 [15:45:22]RAPDU: 90 00 [15:45:22]wFMCommunicate OK [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 0D 03 02 [15:45:22]Write to MH i2c: E2 08 00 CF 3F 80 0D 03 02 00 00 00 00 89 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0B 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0B 00 CF 3F 00 22 43 4E B9 63 95 CD 33 90 00 EE [15:45:22]RAPDU: 22 43 4E B9 63 95 CD 33 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_SignData done [15:45:22]FM_MakeSignedData done [15:45:22]CreateOFDProtocolMessage [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 11 00 00 [15:45:22]Write to MH i2c: E2 08 00 D0 3F 80 11 00 00 00 00 00 00 89 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 17 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 17 00 D0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [15:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:45:22]wFMCommunicate OK [15:45:22]CreateOFDProtocolMessage done [15:45:22]OFDSenderStorePacket 112275 [15:45:22]StoreOFDPacket docnum=112275 [15:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE DF 07 01 6A 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC F1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B6 01 00 35 04 06 00 78 0D 25 4F 5E 28 22 43 4E B9 63 95 CD 33 [15:45:22]CheckFolder [15:45:22]dirname=/storage/ofd_packets [15:45:22]CheckFolder done [15:45:22]ProducePacketName [15:45:22]name=ofd_packets/00112275 [15:45:22]NVStorageSaveData ofd_packets/00112275 [15:45:22]File name is /storage/ofd_packets/00112275 [15:45:22]Write 301 bytes [15:45:22]NVStorageSaveData done [15:45:22]OFDSenderStorePacket done [15:45:22]KKMCreateOFDPacket done [15:45:22]NVStorageSaveData kkm_last_timestamp [15:45:22]File name is /storage/kkm_last_timestamp [15:45:22]Write 4 bytes [15:45:22]NVStorageSaveData done [15:45:22]ExternCall_PrintAddStr [15:45:22]wPrintStart [15:45:22]Write to MH i2c: 01 00 00 D1 3F 10 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 07 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 07 00 D1 3F 00 00 00 00 00 FF 0F 25 [15:45:22]RasterBufferAndPrint [15:45:22]line Счет N : (1)320952 [15:45:22]line ИНН: 02508201610067 [15:45:22]line Контрольно-Кассовый Чек [15:45:22]line ПРОДАЖА [15:45:22]line ТРК (МРК, ГНК) : 11 [15:45:22]line Товар: 2710124130 [15:45:22]line Аи-92-К-5 [15:45:22]line 7.540 * 66.40 [15:45:22]line = 500.66 [15:45:22]line НДС 12% НСП 1% [15:45:22]line > о реализуемом товаре [15:45:22]line ОКРУГЛЕНИЕ: -0.66 [15:45:22]line ИТОГО: 500.00 [15:45:22]line Внесено: 500.00 [15:45:22]line СДАЧА: 0.00 [15:45:22]line НСП 1% : 4.43 [15:45:22]line НДС 12% : 53.17 [15:45:22]line Наличными: 500.00 [15:45:22]line Безнал.: 0.00 [15:45:22]line Место: АЗС № 65 "Партнер Нефть" [15:45:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:45:22]line СНО: Общий режим [15:45:22]line Чек 141 22.06.2024 15:45 [15:45:22]line Смена: 391 ФФД: 1.0 [15:45:22]line ЗНМ: 0300000198 [15:45:22]line РНМ: 0000000000092771 [15:45:22]line Версия ККМ: 001 [15:45:22]line ФМ: 0000000000875083 [15:45:22]line ФД: 112275 [15:45:22]line ФПД: 131997855866408 [15:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112275&fm=131997855866408&tin=02508201610067®Number=0000000000092771&sum=50000 [15:45:23]OFD Sender: Processing packet 112275 [packets to send 38, broken 37] [15:45:23]ProducePacketName [15:45:23]name=ofd_packets/00112275 [15:45:23]OFD Sender: To server: pG, [15:45:23]CommunicateWithHost lk.salyk.kg:30040 [15:45:23]ConnectInit lk.salyk.kg [15:45:23]written 0, free lines is 4095 [15:45:23]Connected sock=10 [15:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE DF 07 01 6A 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 AC F1 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B6 01 00 35 04 06 00 78 0D 25 4F 5E 28 22 43 4E B9 63 95 CD 33 [15:45:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 59 CD 47 00 A2 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B6 01 00 F4 03 04 00 B4 88 76 66 B6 04 01 00 00 CD B9 93 AE 91 01 59 30 [15:45:23]CommunicateWithHost err = 0 [15:45:23]CheckOFDResponse [15:45:23]1017 (14) - 77093643461234 [15:45:23]1041 (16) - 0000000000875083 [15:45:23]1040 (4) - 112275 [15:45:23]1012 (4) - 22.06.2024 08:17 [15:45:23]1206 (1) - 0 [15:45:23]OFD Sender: Remove packet 112275 [15:45:23]ProducePacketName [15:45:23]name=ofd_packets/00112275 [15:45:23]NVStorageDeleteData [15:45:23]Write to MH i2c: 01 00 00 FC 3F 3B [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 FC 3F 00 00 00 00 00 DE 0C 2C [15:45:23]RasterBufferAndPrint [15:45:23]line [15:45:23]line [15:45:23]line [15:45:23]line [15:45:23]line [15:45:23]written 0, free lines is 3303 [15:45:23]MH_Cut [15:45:23]Write to MH i2c: D1 01 00 03 40 01 15 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: D1 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: D1 01 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: D1 01 00 03 40 00 14 [15:45:23]Write to MH i2c: 01 00 00 04 40 44 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]OFD Sender: No OFD packet to send [15:45:24]*** Cut start [15:45:24]*** Partial cut [15:45:24]*** CUTSNS_PIN = 1 [15:45:24]*** CUTSNS_PIN = 0 [15:45:24]*** Brake cut motor [15:45:24]Read from MH i2c: 01 [15:45:24]MH_I2C_Read... [15:45:24]*** Stop cut motor [15:45:24]*** Cut end [15:45:24]Read from MH i2c: 01 07 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 07 00 04 40 00 00 00 00 00 FF 0F 59 [15:45:24]process_action close_receipt done [15:45:24]requested_data is exist [15:45:24]produce_requested_data [15:45:24]requested_item fm.sn is exist - process it [15:45:24]wFMCommunicate request_size=4 [15:45:24]MH_SAM_APDU [15:45:24]CAPDU: 80 11 00 00 [15:45:24]Write to MH i2c: E2 08 00 05 40 80 11 00 00 00 00 00 00 BF [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:24]Read from MH i2c: E2 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: E2 17 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: E2 17 00 05 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [15:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:45:24]wFMCommunicate OK [15:45:24]requested_item fd.num is exist - process it [15:45:24]SAM_PROTO_GetFieldsCounters [15:45:24]wFMCommunicate request_size=4 [15:45:24]MH_SAM_APDU [15:45:24]CAPDU: 80 13 00 00 [15:45:24]Write to MH i2c: E2 08 00 06 40 80 13 00 00 00 00 00 00 C2 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 62 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 62 00 06 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [15:45:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:25]wFMCommunicate OK [15:45:25]SAM_PROTO_GetFieldsCounters done [15:45:25]requested_item shift.num is exist - process it [15:45:25]requested_item shift.opened is exist - process it [15:45:25]req_shift_opened [15:45:25]FM_GetShiftState [15:45:25]SAM_PROTO_GetShiftState [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 13 01 00 [15:45:25]Write to MH i2c: E2 08 00 07 40 80 13 01 00 00 00 00 00 C4 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 0E 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 0E 00 07 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F9 [15:45:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:45:25]wFMCommunicate OK [15:45:25]SAM_PROTO_GetShiftState done [15:45:25]FM_GetShiftState done [15:45:25]req_shift_opened done [15:45:25]requested_item shift.open_date is exist - process it [15:45:25]req_shift_open_date [15:45:25]req_shift_open_date done [15:45:25]produce_requested_data done [15:45:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112275,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:45:25]process_action_free close_receipt [15:45:25]json_value_free [15:45:25]json_value_free done [15:45:25]process_json_proto returns [15:45:25]Send response to host [15:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112275,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:45:25]free response buf [15:45:25]execute_script done [15:45:25]execute_script returns [15:45:25]free content buf [15:45:25]Sock 9.Close socket [15:45:25]Sock 9.Thread stoped [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]accept exits with 7 [15:46:58]New connection [15:46:58]New thread 3066957156 created [15:46:58]Thread 3066813796 joined [15:46:58]Waiting for new connection... [15:46:58] Sock 7.Parse request [15:46:58]Sock 7.Check first char [15:46:58]Sock 7.First char is OK [15:46:58]request: POST /json_proto HTTP/1.0 [15:46:58]Method: POST [15:46:58]URL: /json_proto [15:46:58]Method is POST - this is cgi request [15:46:58]url: /json_proto [15:46:58]query_string will be loaded in cgi processing [15:46:58]execute_cgi json_proto POST (null) [15:46:58]execute_cgi path=json_proto method=POST [15:46:58]POST find Content-Length [15:46:58]Host: 172.17.59.68:8080 [15:46:58]Content-Length: 682 [15:46:58]Content-Type: application/json [15:46:58] [15:46:58]POST finish read [15:46:58]Found Content-Length = 682 [15:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320953", "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.40, "quantity" : 22.600, "sum" : 1500.64, "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:46:58]execute_script... [15:46: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)320953", "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.40, "quantity" : 22.600, "sum" : 1500.64, "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:46:58]POST & json_proto [15:46:58]process_json_proto [15:46:58]json parsed OK: [15:46:58]protocol is kg_v1.0 [15:46:58]action value=close_receipt [15:46:58]process_action close_receipt [15:46:58]cmd_close_receipt [15:46:58]MH_GetDate [15:46:58]Write to MH i2c: F0 00 00 08 40 37 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: F0 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: F0 09 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: F0 09 00 08 40 00 0E F2 76 66 BC EC 60 65 89 [15:46:58]GetLastDocTimeStamp 1719071148 [15:46:58]current date 1719071246 [15:46:58]FM_GetShiftState [15:46:58]SAM_PROTO_GetShiftState [15:46:58]wFMCommunicate request_size=4 [15:46:58]MH_SAM_APDU [15:46:58]CAPDU: 80 13 01 00 [15:46:58]Write to MH i2c: E2 08 00 09 40 80 13 01 00 00 00 00 00 C6 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:58]Read from MH i2c: E2 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0E 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: E2 0E 00 09 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FB [15:46:58]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:46:58]wFMCommunicate OK [15:46:58]SAM_PROTO_GetShiftState done [15:46:58]FM_GetShiftState done [15:46:58]opened in 1719020067 [15:46:58]opened+sec_in_day 1719106467 [15:46:58]quantity*price = 150064 [15:46:58]sum+1 = 150065 [15:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 142 22.06.2024 15:47 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112276 ФПД: 96334864430982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154726&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112276&fm=96334864430982&tin=02508201610067®Number=0000000000092771&sum=150000 [15:46:59]StoreToDocumentArchive [15:46:59]shift 391 fd 112276 [15:46:59]save to /storage/0391/doc_00112276 [15:46:59]save last doc name /storage/0391/doc_00112276 to /storage/kkm_last_doc_name [15:46:59]save OK [15:46:59]Clear old archive folders... [15:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:59]tlvbuf is 0117FC80 [15:46:59]SAM_PROTO_ClearQueue [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 09 00 00 [15:46:59]Write to MH i2c: E2 08 00 16 40 80 09 00 00 00 00 00 00 C8 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 16 40 00 90 00 CA [15:46:59]RAPDU: 90 00 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_ClearQueue done [15:46:59]KKMCreateOFDPacket [15:46:59]OFDProtocolAddRootSTLVToBuf [15:46:59]FM_MakeSignedData [15:46:59]FM_MakeSignedData [15:46:59]SAM_PROTO_SignData [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 0D 01 02 [15:46:59]Write to MH i2c: E2 08 00 17 40 80 0D 01 02 00 00 00 00 D0 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 03 00 17 40 00 90 00 CB [15:46:59]RAPDU: 90 00 [15:46:59]wFMCommunicate OK [15:46:59]wFMCommunicate request_size=255 [15:46:59]MH_SAM_APDU [15:46: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 8E 00 00 00 F4 03 04 00 0E F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B6 01 00 35 04 06 00 57 [15:46:59]Write to MH i2c: E2 02 01 18 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 8E 00 00 00 F4 03 04 00 0E F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B6 01 00 35 04 06 00 57 00 00 BC [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:00]Read from MH i2c: E2 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 03 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 03 00 18 40 00 90 00 CC [15:47:00]RAPDU: 90 00 [15:47:00]wFMCommunicate OK [15:47:00]wFMCommunicate request_size=10 [15:47:00]MH_SAM_APDU [15:47:00]CAPDU: 80 0D 02 02 05 9D B5 5F B7 86 [15:47:00]Write to MH i2c: E2 0D 00 19 40 80 0D 02 02 05 00 9D B5 5F B7 86 00 00 CB [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:00]Read from MH i2c: E2 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 03 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 03 00 19 40 00 90 00 CD [15:47:00]RAPDU: 90 00 [15:47:00]wFMCommunicate OK [15:47:00]wFMCommunicate request_size=4 [15:47:00]MH_SAM_APDU [15:47:00]CAPDU: 80 0D 03 02 [15:47:00]Write to MH i2c: E2 08 00 1A 40 80 0D 03 02 00 00 00 00 D5 [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:00]Read from MH i2c: E2 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 0B 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 0B 00 1A 40 00 C0 03 9A 81 F3 2A 23 6A 90 00 5E [15:47:00]RAPDU: C0 03 9A 81 F3 2A 23 6A 90 00 [15:47:00]wFMCommunicate OK [15:47:00]SAM_PROTO_SignData done [15:47:00]FM_MakeSignedData done [15:47:00]CreateOFDProtocolMessage [15:47:00]wFMCommunicate request_size=4 [15:47:00]MH_SAM_APDU [15:47:00]CAPDU: 80 11 00 00 [15:47:00]Write to MH i2c: E2 08 00 1B 40 80 11 00 00 00 00 00 00 D5 [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:00]Read from MH i2c: E2 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 17 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: E2 17 00 1B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [15:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:47:00]wFMCommunicate OK [15:47:00]CreateOFDProtocolMessage done [15:47:00]OFDSenderStorePacket 112276 [15:47:00]StoreOFDPacket docnum=112276 [15:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 E7 07 01 8F 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 8E 00 00 00 F4 03 04 00 0E F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B6 01 00 35 04 06 00 57 9D B5 5F B7 86 C0 03 9A 81 F3 2A 23 6A [15:47:00]CheckFolder [15:47:00]dirname=/storage/ofd_packets [15:47:00]CheckFolder done [15:47:00]ProducePacketName [15:47:00]name=ofd_packets/00112276 [15:47:00]NVStorageSaveData ofd_packets/00112276 [15:47:00]File name is /storage/ofd_packets/00112276 [15:47:00]Write 301 bytes [15:47:00]NVStorageSaveData done [15:47:00]OFDSenderStorePacket done [15:47:00]KKMCreateOFDPacket done [15:47:00]NVStorageSaveData kkm_last_timestamp [15:47:00]File name is /storage/kkm_last_timestamp [15:47:00]Write 4 bytes [15:47:00]NVStorageSaveData done [15:47:00]ExternCall_PrintAddStr [15:47:00]wPrintStart [15:47:00]Write to MH i2c: 01 00 00 1C 40 5C [15:47:00]Write i2c OK [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 07 00 [15:47:00]MH_I2C_Read... [15:47:00]Read from MH i2c: 01 07 00 1C 40 00 00 00 00 00 FF 0F 71 [15:47:00]RasterBufferAndPrint [15:47:00]line Счет N : (1)320953 [15:47:00]line ИНН: 02508201610067 [15:47:00]line Контрольно-Кассовый Чек [15:47:00]line ПРОДАЖА [15:47:00]line ТРК (МРК, ГНК) : 11 [15:47:00]line Товар: 2710124130 [15:47:00]line Аи-92-К-5 [15:47:00]line 22.600 * 66.40 [15:47:00]line = 1500.64 [15:47:00]line НДС 12% НСП 1% [15:47:00]line > о реализуемом товаре [15:47:00]line ОКРУГЛЕНИЕ: -0.64 [15:47:00]line ИТОГО: 1500.00 [15:47:00]line Внесено: 1500.00 [15:47:00]line СДАЧА: 0.00 [15:47:00]line НСП 1% : 13.28 [15:47:00]line НДС 12% : 159.36 [15:47:00]line Наличными: 1500.00 [15:47:00]line Безнал.: 0.00 [15:47:00]line Место: АЗС № 65 "Партнер Нефть" [15:47:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:47:00]line СНО: Общий режим [15:47:00]line Чек 142 22.06.2024 15:47 [15:47:00]line Смена: 391 ФФД: 1.0 [15:47:00]line ЗНМ: 0300000198 [15:47:00]line РНМ: 0000000000092771 [15:47:00]line Версия ККМ: 001 [15:47:00]line ФМ: 0000000000875083 [15:47:00]line ФД: 112276 [15:47:00]line ФПД: 96334864430982 [15:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T154726&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112276&fm=96334864430982&tin=02508201610067®Number=0000000000092771&sum=150000 [15:47:00]OFD Sender: Processing packet 112276 [packets to send 38, broken 37] [15:47:00]ProducePacketName [15:47:00]name=ofd_packets/00112276 [15:47:00]OFD Sender: To server: pG, [15:47:00]CommunicateWithHost lk.salyk.kg:30040 [15:47:00]ConnectInit lk.salyk.kg [15:47:00]written 0, free lines is 4095 [15:47:00]Connected sock=9 [15:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 E7 07 01 8F 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 8E 00 00 00 F4 03 04 00 0E F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B6 01 00 35 04 06 00 57 9D B5 5F B7 86 C0 03 9A 81 F3 2A 23 6A [15:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 98 F3 47 00 2C A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B6 01 00 F4 03 04 00 16 89 76 66 B6 04 01 00 00 11 16 8A 76 52 C9 69 3F [15:47:00]CommunicateWithHost err = 0 [15:47:00]CheckOFDResponse [15:47:00]1017 (14) - 77093643461234 [15:47:00]1041 (16) - 0000000000875083 [15:47:00]1040 (4) - 112276 [15:47:00]1012 (4) - 22.06.2024 08:19 [15:47:00]1206 (1) - 0 [15:47:00]OFD Sender: Remove packet 112276 [15:47:00]ProducePacketName [15:47:00]name=ofd_packets/00112276 [15:47:00]NVStorageDeleteData [15:47:01]Write to MH i2c: 01 00 00 47 40 87 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: 01 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: 01 07 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: 01 07 00 47 40 00 00 00 00 00 18 0D B3 [15:47:01]RasterBufferAndPrint [15:47:01]line [15:47:01]line [15:47:01]line [15:47:01]line [15:47:01]line [15:47:01]written 0, free lines is 3358 [15:47:01]MH_Cut [15:47:01]Write to MH i2c: D1 01 00 4E 40 01 60 [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: D1 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: D1 01 00 [15:47:01]MH_I2C_Read... [15:47:01]Read from MH i2c: D1 01 00 4E 40 00 5F [15:47:01]Write to MH i2c: 01 00 00 4F 40 8F [15:47:01]Write i2c OK [15:47:01]MH_I2C_Read... [15:47:01]OFD Sender: No OFD packet to send [15:47:01]*** Cut start [15:47:01]*** Partial cut [15:47:01]*** CUTSNS_PIN = 1 [15:47:01]*** CUTSNS_PIN = 0 [15:47:02]*** Brake cut motor [15:47:02]Read from MH i2c: 01 [15:47:02]MH_I2C_Read... [15:47:02]*** Stop cut motor [15:47:02]*** Cut end [15:47:02]Read from MH i2c: 01 07 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: 01 07 00 4F 40 00 00 00 00 00 FF 0F A4 [15:47:02]process_action close_receipt done [15:47:02]requested_data is exist [15:47:02]produce_requested_data [15:47:02]requested_item fm.sn is exist - process it [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 11 00 00 [15:47:02]Write to MH i2c: E2 08 00 50 40 80 11 00 00 00 00 00 00 0A [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 17 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 17 00 50 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [15:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:47:02]wFMCommunicate OK [15:47:02]requested_item fd.num is exist - process it [15:47:02]SAM_PROTO_GetFieldsCounters [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 13 00 00 [15:47:02]Write to MH i2c: E2 08 00 51 40 80 13 00 00 00 00 00 00 0D [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 62 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 62 00 51 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [15:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:02]wFMCommunicate OK [15:47:02]SAM_PROTO_GetFieldsCounters done [15:47:02]requested_item shift.num is exist - process it [15:47:02]requested_item shift.opened is exist - process it [15:47:02]req_shift_opened [15:47:02]FM_GetShiftState [15:47:02]SAM_PROTO_GetShiftState [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 13 01 00 [15:47:02]Write to MH i2c: E2 08 00 52 40 80 13 01 00 00 00 00 00 0F [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 0E 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 0E 00 52 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 44 [15:47:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:47:02]wFMCommunicate OK [15:47:02]SAM_PROTO_GetShiftState done [15:47:02]FM_GetShiftState done [15:47:02]req_shift_opened done [15:47:02]requested_item shift.open_date is exist - process it [15:47:02]req_shift_open_date [15:47:02]req_shift_open_date done [15:47:02]produce_requested_data done [15:47:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112276,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:47:02]process_action_free close_receipt [15:47:02]json_value_free [15:47:02]json_value_free done [15:47:02]process_json_proto returns [15:47:02]Send response to host [15:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112276,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:47:02]free response buf [15:47:02]execute_script done [15:47:02]execute_script returns [15:47:02]free content buf [15:47:02]Sock 7.Close socket [15:47:02]Sock 7.Thread stoped [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:04]accept exits with 10 [15:50:04]New connection [15:50:04]New thread 3066813796 created [15:50:04]Thread 3066957156 joined [15:50:04]Waiting for new connection... [15:50:04] Sock 10.Parse request [15:50:04]Sock 10.Check first char [15:50:04]Sock 10.First char is OK [15:50:04]request: POST /json_proto HTTP/1.0 [15:50:04]Method: POST [15:50:04]URL: /json_proto [15:50:04]Method is POST - this is cgi request [15:50:04]url: /json_proto [15:50:04]query_string will be loaded in cgi processing [15:50:04]execute_cgi json_proto POST (null) [15:50:04]execute_cgi path=json_proto method=POST [15:50:04]POST find Content-Length [15:50:04]Host: 172.17.59.68:8080 [15:50:04]Content-Length: 679 [15:50:04]Content-Type: application/json [15:50:04] [15:50:04]POST finish read [15:50:04]Found Content-Length = 679 [15:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:04]execute_script... [15:50: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)320954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:04]POST & json_proto [15:50:04]process_json_proto [15:50:04]json parsed OK: [15:50:04]protocol is kg_v1.0 [15:50:04]action value=close_receipt [15:50:04]process_action close_receipt [15:50:04]cmd_close_receipt [15:50:04]MH_GetDate [15:50:04]Write to MH i2c: F0 00 00 53 40 82 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: F0 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: F0 09 00 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: F0 09 00 53 40 00 C8 F2 76 66 BC EC 60 65 8E [15:50:04]GetLastDocTimeStamp 1719071246 [15:50:04]current date 1719071432 [15:50:04]FM_GetShiftState [15:50:04]SAM_PROTO_GetShiftState [15:50:04]wFMCommunicate request_size=4 [15:50:04]MH_SAM_APDU [15:50:04]CAPDU: 80 13 01 00 [15:50:04]Write to MH i2c: E2 08 00 54 40 80 13 01 00 00 00 00 00 11 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:04]Read from MH i2c: E2 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: E2 0E 00 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: E2 0E 00 54 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 46 [15:50:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:50:04]wFMCommunicate OK [15:50:04]SAM_PROTO_GetShiftState done [15:50:04]FM_GetShiftState done [15:50:04]opened in 1719020067 [15:50:04]opened+sec_in_day 1719106467 [15:50:04]quantity*price = 300056 [15:50:04]sum+1 = 300057 [15:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 143 22.06.2024 15:50 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112277 ФПД: 275522529433807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155032&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112277&fm=275522529433807&tin=02508201610067®Number=0000000000092771&sum=300000 [15:50:06]StoreToDocumentArchive [15:50:06]shift 391 fd 112277 [15:50:06]save to /storage/0391/doc_00112277 [15:50:06]save last doc name /storage/0391/doc_00112277 to /storage/kkm_last_doc_name [15:50:06]save OK [15:50:06]Clear old archive folders... [15:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:06]tlvbuf is B6DA9100 [15:50:06]SAM_PROTO_ClearQueue [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 09 00 00 [15:50:06]Write to MH i2c: E2 08 00 61 40 80 09 00 00 00 00 00 00 13 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 61 40 00 90 00 15 [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]SAM_PROTO_ClearQueue done [15:50:06]KKMCreateOFDPacket [15:50:06]OFDProtocolAddRootSTLVToBuf [15:50:06]FM_MakeSignedData [15:50:06]FM_MakeSignedData [15:50:06]SAM_PROTO_SignData [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 01 02 [15:50:06]Write to MH i2c: E2 08 00 62 40 80 0D 01 02 00 00 00 00 1B [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 62 40 00 90 00 16 [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]wFMCommunicate request_size=255 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B6 01 00 35 04 06 00 FA 96 16 7E [15:50:06]Write to MH i2c: E2 02 01 63 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B6 01 00 35 04 06 00 FA 96 16 7E 00 00 8E [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 63 40 00 90 00 17 [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]wFMCommunicate request_size=7 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 02 02 02 98 CF [15:50:06]Write to MH i2c: E2 0A 00 64 40 80 0D 02 02 02 00 98 CF 00 00 89 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 64 40 00 90 00 18 [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 03 02 [15:50:06]Write to MH i2c: E2 08 00 65 40 80 0D 03 02 00 00 00 00 20 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 0B 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 0B 00 65 40 00 26 67 66 D4 DC 79 03 34 90 00 74 [15:50:06]RAPDU: 26 67 66 D4 DC 79 03 34 90 00 [15:50:06]wFMCommunicate OK [15:50:06]SAM_PROTO_SignData done [15:50:06]FM_MakeSignedData done [15:50:06]CreateOFDProtocolMessage [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 11 00 00 [15:50:06]Write to MH i2c: E2 08 00 66 40 80 11 00 00 00 00 00 00 20 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 17 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 17 00 66 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [15:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:50:06]wFMCommunicate OK [15:50:06]CreateOFDProtocolMessage done [15:50:06]OFDSenderStorePacket 112277 [15:50:06]StoreOFDPacket docnum=112277 [15:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 47 04 04 01 63 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B6 01 00 35 04 06 00 FA 96 16 7E 98 CF 26 67 66 D4 DC 79 03 34 [15:50:06]CheckFolder [15:50:06]dirname=/storage/ofd_packets [15:50:06]CheckFolder done [15:50:06]ProducePacketName [15:50:06]name=ofd_packets/00112277 [15:50:06]NVStorageSaveData ofd_packets/00112277 [15:50:06]File name is /storage/ofd_packets/00112277 [15:50:06]Write 298 bytes [15:50:06]NVStorageSaveData done [15:50:06]OFDSenderStorePacket done [15:50:06]KKMCreateOFDPacket done [15:50:06]NVStorageSaveData kkm_last_timestamp [15:50:06]File name is /storage/kkm_last_timestamp [15:50:06]Write 4 bytes [15:50:06]NVStorageSaveData done [15:50:06]ExternCall_PrintAddStr [15:50:06]wPrintStart [15:50:06]Write to MH i2c: 01 00 00 67 40 A7 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: 01 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: 01 07 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: 01 07 00 67 40 00 00 00 00 00 FF 0F BC [15:50:06]RasterBufferAndPrint [15:50:06]line Счет N : (1)320954 [15:50:06]line ИНН: 02508201610067 [15:50:06]line Контрольно-Кассовый Чек [15:50:06]line ПРОДАЖА [15:50:06]line ТРК (МРК, ГНК) : 22 [15:50:06]line Товар: 2710194210 [15:50:06]line ДТ-К-5 [15:50:06]line 41.160 * 72.90 [15:50:06]line = 3000.56 [15:50:06]line НДС 12% НСП 1% [15:50:06]line > о реализуемом товаре [15:50:06]line ОКРУГЛЕНИЕ: -0.56 [15:50:06]line ИТОГО: 3000.00 [15:50:06]line Внесено: 3000.00 [15:50:06]line СДАЧА: 0.00 [15:50:06]line НСП 1% : 26.55 [15:50:06]line НДС 12% : 318.64 [15:50:06]line Наличными: 3000.00 [15:50:06]line Безнал.: 0.00 [15:50:06]line Место: АЗС № 65 "Партнер Нефть" [15:50:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:50:06]line СНО: Общий режим [15:50:06]line Чек 143 22.06.2024 15:50 [15:50:06]line Смена: 391 ФФД: 1.0 [15:50:06]line ЗНМ: 0300000198 [15:50:06]line РНМ: 0000000000092771 [15:50:06]line Версия ККМ: 001 [15:50:06]line ФМ: 0000000000875083 [15:50:06]line ФД: 112277 [15:50:06]line ФПД: 275522529433807 [15:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155032&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112277&fm=275522529433807&tin=02508201610067®Number=0000000000092771&sum=300000 [15:50:06]OFD Sender: Processing packet 112277 [packets to send 38, broken 37] [15:50:06]ProducePacketName [15:50:06]name=ofd_packets/00112277 [15:50:06]OFD Sender: To server: pG, [15:50:06]CommunicateWithHost lk.salyk.kg:30040 [15:50:06]ConnectInit lk.salyk.kg [15:50:06]written 0, free lines is 4095 [15:50:06]Connected sock=9 [15:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 47 04 04 01 63 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 C8 F2 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B6 01 00 35 04 06 00 FA 96 16 7E 98 CF 26 67 66 D4 DC 79 03 34 [15:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8B FD 47 00 85 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B6 01 00 F4 03 04 00 D0 89 76 66 B6 04 01 00 00 B4 98 35 11 DF 51 42 1B [15:50:07]CommunicateWithHost err = 0 [15:50:07]CheckOFDResponse [15:50:07]1017 (14) - 77093643461234 [15:50:07]1041 (16) - 0000000000875083 [15:50:07]1040 (4) - 112277 [15:50:07]1012 (4) - 22.06.2024 08:22 [15:50:07]1206 (1) - 0 [15:50:07]OFD Sender: Remove packet 112277 [15:50:07]ProducePacketName [15:50:07]name=ofd_packets/00112277 [15:50:07]NVStorageDeleteData [15:50:07]Write to MH i2c: 01 00 00 92 40 D2 [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: 01 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: 01 07 00 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: 01 07 00 92 40 00 00 00 00 00 ED 0C D2 [15:50:07]RasterBufferAndPrint [15:50:07]line [15:50:07]line [15:50:07]line [15:50:07]line [15:50:07]line [15:50:07]written 0, free lines is 3315 [15:50:07]MH_Cut [15:50:07]Write to MH i2c: D1 01 00 99 40 01 AB [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: D1 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: D1 01 00 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: D1 01 00 99 40 00 AA [15:50:07]Write to MH i2c: 01 00 00 9A 40 DA [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]OFD Sender: No OFD packet to send [15:50:08]*** Cut start [15:50:08]*** Partial cut [15:50:08]*** CUTSNS_PIN = 1 [15:50:08]*** CUTSNS_PIN = 0 [15:50:08]*** Brake cut motor [15:50:08]Read from MH i2c: 01 [15:50:08]MH_I2C_Read... [15:50:08]*** Stop cut motor [15:50:08]*** Cut end [15:50:08]Read from MH i2c: 01 07 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: 01 07 00 9A 40 00 00 00 00 00 FF 0F EF [15:50:08]process_action close_receipt done [15:50:08]requested_data is exist [15:50:08]produce_requested_data [15:50:08]requested_item fm.sn is exist - process it [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 11 00 00 [15:50:08]Write to MH i2c: E2 08 00 9B 40 80 11 00 00 00 00 00 00 55 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 17 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 17 00 9B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [15:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:50:08]wFMCommunicate OK [15:50:08]requested_item fd.num is exist - process it [15:50:08]SAM_PROTO_GetFieldsCounters [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 13 00 00 [15:50:08]Write to MH i2c: E2 08 00 9C 40 80 13 00 00 00 00 00 00 58 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 62 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 62 00 9C 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 95 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 95 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:08]wFMCommunicate OK [15:50:08]SAM_PROTO_GetFieldsCounters done [15:50:08]requested_item shift.num is exist - process it [15:50:08]requested_item shift.opened is exist - process it [15:50:08]req_shift_opened [15:50:08]FM_GetShiftState [15:50:08]SAM_PROTO_GetShiftState [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 13 01 00 [15:50:08]Write to MH i2c: E2 08 00 9D 40 80 13 01 00 00 00 00 00 5A [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 0E 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 0E 00 9D 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8F [15:50:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:50:08]wFMCommunicate OK [15:50:08]SAM_PROTO_GetShiftState done [15:50:08]FM_GetShiftState done [15:50:08]req_shift_opened done [15:50:08]requested_item shift.open_date is exist - process it [15:50:08]req_shift_open_date [15:50:08]req_shift_open_date done [15:50:08]produce_requested_data done [15:50:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112277,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:50:08]process_action_free close_receipt [15:50:08]json_value_free [15:50:08]json_value_free done [15:50:08]process_json_proto returns [15:50:08]Send response to host [15:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112277,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:50:08]free response buf [15:50:08]execute_script done [15:50:08]execute_script returns [15:50:08]free content buf [15:50:08]Sock 10.Close socket [15:50:08]Sock 10.Thread stoped [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:04]accept exits with 7 [15:51:04]New connection [15:51:04]New thread 3066957156 created [15:51:04]Thread 3066813796 joined [15:51:04]Waiting for new connection... [15:51:04] Sock 7.Parse request [15:51:04]Sock 7.Check first char [15:51:04]Sock 7.First char is OK [15:51:04]request: POST /json_proto HTTP/1.0 [15:51:04]Method: POST [15:51:04]URL: /json_proto [15:51:04]Method is POST - this is cgi request [15:51:04]url: /json_proto [15:51:04]query_string will be loaded in cgi processing [15:51:04]execute_cgi json_proto POST (null) [15:51:04]execute_cgi path=json_proto method=POST [15:51:04]POST find Content-Length [15:51:04]Host: 172.17.59.68:8080 [15:51:04]Content-Length: 805 [15:51:04]Content-Type: application/json [15:51:04] [15:51:04]POST finish read [15:51:04]Found Content-Length = 805 [15:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320955", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:04]execute_script... [15:51: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)320955", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:04]POST & json_proto [15:51:04]process_json_proto [15:51:04]json parsed OK: [15:51:04]protocol is kg_v1.0 [15:51:04]action value=close_receipt [15:51:04]process_action close_receipt [15:51:04]cmd_close_receipt [15:51:04]MH_GetDate [15:51:04]Write to MH i2c: F0 00 00 9E 40 CD [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: F0 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: F0 09 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: F0 09 00 9E 40 00 04 F3 76 66 BC EC 60 65 16 [15:51:04]GetLastDocTimeStamp 1719071432 [15:51:04]current date 1719071492 [15:51:04]FM_GetShiftState [15:51:04]SAM_PROTO_GetShiftState [15:51:04]wFMCommunicate request_size=4 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 13 01 00 [15:51:04]Write to MH i2c: E2 08 00 9F 40 80 13 01 00 00 00 00 00 5C [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 0E 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 0E 00 9F 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 91 [15:51:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:51:04]wFMCommunicate OK [15:51:04]SAM_PROTO_GetShiftState done [15:51:04]FM_GetShiftState done [15:51:04]opened in 1719020067 [15:51:04]opened+sec_in_day 1719106467 [15:51:04]quantity*price = 50065 [15:51:04]sum+1 = 50067 [15:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 144 22.06.2024 15:51 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112278 ФПД: 56367960718871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112278&fm=56367960718871&tin=02508201610067®Number=0000000000092771&sum=50066 [15:51:06]StoreToDocumentArchive [15:51:06]shift 391 fd 112278 [15:51:06]save to /storage/0391/doc_00112278 [15:51:06]save last doc name /storage/0391/doc_00112278 to /storage/kkm_last_doc_name [15:51:06]save OK [15:51:06]Clear old archive folders... [15:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:06]tlvbuf is 01153280 [15:51:06]SAM_PROTO_ClearQueue [15:51:06]wFMCommunicate request_size=4 [15:51:06]MH_SAM_APDU [15:51:06]CAPDU: 80 09 00 00 [15:51:06]Write to MH i2c: E2 08 00 AC 40 80 09 00 00 00 00 00 00 5E [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:06]Read from MH i2c: E2 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 AC 40 00 90 00 60 [15:51:06]RAPDU: 90 00 [15:51:06]wFMCommunicate OK [15:51:06]SAM_PROTO_ClearQueue done [15:51:06]KKMCreateOFDPacket [15:51:06]OFDProtocolAddRootSTLVToBuf [15:51:06]FM_MakeSignedData [15:51:06]FM_MakeSignedData [15:51:06]SAM_PROTO_SignData [15:51:06]wFMCommunicate request_size=4 [15:51:06]MH_SAM_APDU [15:51:06]CAPDU: 80 0D 01 02 [15:51:06]Write to MH i2c: E2 08 00 AD 40 80 0D 01 02 00 00 00 00 66 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:06]Read from MH i2c: E2 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 AD 40 00 90 00 61 [15:51:06]RAPDU: 90 00 [15:51:06]wFMCommunicate OK [15:51:06]wFMCommunicate request_size=255 [15:51:06]MH_SAM_APDU [15:51: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 04 F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B6 01 00 35 04 06 00 33 [15:51:06]Write to MH i2c: E2 02 01 AE 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 04 F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B6 01 00 35 04 06 00 33 00 00 09 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:06]Read from MH i2c: E2 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 AE 40 00 90 00 62 [15:51:06]RAPDU: 90 00 [15:51:06]wFMCommunicate OK [15:51:06]wFMCommunicate request_size=10 [15:51:06]MH_SAM_APDU [15:51:06]CAPDU: 80 0D 02 02 05 44 30 46 7E 17 [15:51:06]Write to MH i2c: E2 0D 00 AF 40 80 0D 02 02 05 00 44 30 46 7E 17 00 00 C2 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:06]Read from MH i2c: E2 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 03 00 AF 40 00 90 00 63 [15:51:06]RAPDU: 90 00 [15:51:06]wFMCommunicate OK [15:51:06]wFMCommunicate request_size=4 [15:51:06]MH_SAM_APDU [15:51:06]CAPDU: 80 0D 03 02 [15:51:06]Write to MH i2c: E2 08 00 B0 40 80 0D 03 02 00 00 00 00 6B [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:06]Read from MH i2c: E2 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 0B 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 0B 00 B0 40 00 B9 6A 37 75 8A 2D A9 AC 90 00 47 [15:51:06]RAPDU: B9 6A 37 75 8A 2D A9 AC 90 00 [15:51:06]wFMCommunicate OK [15:51:06]SAM_PROTO_SignData done [15:51:06]FM_MakeSignedData done [15:51:06]CreateOFDProtocolMessage [15:51:06]wFMCommunicate request_size=4 [15:51:06]MH_SAM_APDU [15:51:06]CAPDU: 80 11 00 00 [15:51:06]Write to MH i2c: E2 08 00 B1 40 80 11 00 00 00 00 00 00 6B [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:06]Read from MH i2c: E2 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 17 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: E2 17 00 B1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [15:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:51:06]wFMCommunicate OK [15:51:06]CreateOFDProtocolMessage done [15:51:06]OFDSenderStorePacket 112278 [15:51:06]StoreOFDPacket docnum=112278 [15:51:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 98 07 01 DF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 04 F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B6 01 00 35 04 06 00 33 44 30 46 7E 17 B9 6A 37 75 8A 2D A9 AC [15:51:06]CheckFolder [15:51:06]dirname=/storage/ofd_packets [15:51:06]CheckFolder done [15:51:06]ProducePacketName [15:51:06]name=ofd_packets/00112278 [15:51:06]NVStorageSaveData ofd_packets/00112278 [15:51:06]File name is /storage/ofd_packets/00112278 [15:51:06]Write 301 bytes [15:51:06]NVStorageSaveData done [15:51:06]OFDSenderStorePacket done [15:51:06]KKMCreateOFDPacket done [15:51:06]NVStorageSaveData kkm_last_timestamp [15:51:06]File name is /storage/kkm_last_timestamp [15:51:06]Write 4 bytes [15:51:06]NVStorageSaveData done [15:51:06]ExternCall_PrintAddStr [15:51:06]wPrintStart [15:51:06]Write to MH i2c: 01 00 00 B2 40 F2 [15:51:06]Write i2c OK [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: 01 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: 01 07 00 [15:51:06]MH_I2C_Read... [15:51:06]Read from MH i2c: 01 07 00 B2 40 00 00 00 00 00 FF 0F 07 [15:51:06]RasterBufferAndPrint [15:51:06]line Счет N : (1)320955 [15:51:06]line ИНН: 02508201610067 [15:51:06]line Контрольно-Кассовый Чек [15:51:06]line ПРОДАЖА [15:51:06]line ТРК (МРК, ГНК) : 11 [15:51:06]line Товар: 2710124130 [15:51:06]line Аи-92-К-5 [15:51:06]line 7.540 * 66.40 [15:51:06]line = 500.66 [15:51:06]line НДС 12% НСП 1% [15:51:06]line > о реализуемом товаре [15:51:06]line ИТОГО: 500.66 [15:51:06]line НСП 1% : 4.43 [15:51:06]line НДС 12% : 53.17 [15:51:06]line Наличными: 0.00 [15:51:06]line Безнал.: 500.66 [15:51:06]line Место: АЗС № 65 "Партнер Нефть" [15:51:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:51:06]line СНО: Общий режим [15:51:06]line Чек 144 22.06.2024 15:51 [15:51:06]line Смена: 391 ФФД: 1.0 [15:51:06]line ЗНМ: 0300000198 [15:51:06]line РНМ: 0000000000092771 [15:51:06]line Версия ККМ: 001 [15:51:06]line Платежная система: О! деньги [15:51:06]line ФМ: 0000000000875083 [15:51:06]line ФД: 112278 [15:51:06]line ФПД: 56367960718871 [15:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112278&fm=56367960718871&tin=02508201610067®Number=0000000000092771&sum=50066 [15:51:06]OFD Sender: Processing packet 112278 [packets to send 38, broken 37] [15:51:06]ProducePacketName [15:51:06]name=ofd_packets/00112278 [15:51:06]OFD Sender: To server: pG, [15:51:06]CommunicateWithHost lk.salyk.kg:30040 [15:51:06]ConnectInit lk.salyk.kg [15:51:06]written 0, free lines is 4095 [15:51:07]Connected sock=10 [15:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 98 07 01 DF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 04 F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B6 01 00 35 04 06 00 33 44 30 46 7E 17 B9 6A 37 75 8A 2D A9 AC [15:51:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 C2 47 00 95 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B6 01 00 F4 03 04 00 0C 8A 76 66 B6 04 01 00 00 DF DA 56 E9 3A 92 E0 EF [15:51:07]CommunicateWithHost err = 0 [15:51:07]CheckOFDResponse [15:51:07]1017 (14) - 77093643461234 [15:51:07]1041 (16) - 0000000000875083 [15:51:07]1040 (4) - 112278 [15:51:07]1012 (4) - 22.06.2024 08:23 [15:51:07]1206 (1) - 0 [15:51:07]OFD Sender: Remove packet 112278 [15:51:07]ProducePacketName [15:51:07]name=ofd_packets/00112278 [15:51:07]NVStorageDeleteData [15:51:07]Write to MH i2c: 01 00 00 DC 40 1C [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: 01 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: 01 07 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: 01 07 00 DC 40 00 00 00 00 00 EA 0C 19 [15:51:07]RasterBufferAndPrint [15:51:07]line [15:51:07]line [15:51:07]line [15:51:07]line [15:51:07]line [15:51:07]written 0, free lines is 3312 [15:51:07]MH_Cut [15:51:07]Write to MH i2c: D1 01 00 E3 40 01 F5 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: D1 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: D1 01 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: D1 01 00 E3 40 00 F4 [15:51:07]Write to MH i2c: 01 00 00 E4 40 24 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]OFD Sender: No OFD packet to send [15:51:08]*** Cut start [15:51:08]*** Partial cut [15:51:08]*** CUTSNS_PIN = 1 [15:51:08]*** CUTSNS_PIN = 0 [15:51:08]*** Brake cut motor [15:51:08]Read from MH i2c: 01 [15:51:08]MH_I2C_Read... [15:51:08]*** Stop cut motor [15:51:08]*** Cut end [15:51:08]Read from MH i2c: 01 07 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 E4 40 00 00 00 00 00 FF 0F 39 [15:51:08]process_action close_receipt done [15:51:08]requested_data is exist [15:51:08]produce_requested_data [15:51:08]requested_item fm.sn is exist - process it [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 11 00 00 [15:51:08]Write to MH i2c: E2 08 00 E5 40 80 11 00 00 00 00 00 00 9F [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 E5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F1 [15:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:51:08]wFMCommunicate OK [15:51:08]requested_item fd.num is exist - process it [15:51:08]SAM_PROTO_GetFieldsCounters [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 13 00 00 [15:51:08]Write to MH i2c: E2 08 00 E6 40 80 13 00 00 00 00 00 00 A2 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 62 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 62 00 E6 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [15: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_GetFieldsCounters done [15:51:08]requested_item shift.num is exist - process it [15:51:08]requested_item shift.opened is exist - process it [15:51:08]req_shift_opened [15:51:08]FM_GetShiftState [15:51:08]SAM_PROTO_GetShiftState [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 13 01 00 [15:51:08]Write to MH i2c: E2 08 00 E7 40 80 13 01 00 00 00 00 00 A4 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:08]Read from MH i2c: E2 0E 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0E 00 E7 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D9 [15:51:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_GetShiftState done [15:51:08]FM_GetShiftState done [15:51:08]req_shift_opened done [15:51:08]requested_item shift.open_date is exist - process it [15:51:08]req_shift_open_date [15:51:08]req_shift_open_date done [15:51:08]produce_requested_data done [15:51:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112278,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:51:08]process_action_free close_receipt [15:51:08]json_value_free [15:51:08]json_value_free done [15:51:08]process_json_proto returns [15:51:08]Send response to host [15:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112278,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:51:08]free response buf [15:51:08]execute_script done [15:51:08]execute_script returns [15:51:08]free content buf [15:51:08]Sock 7.Close socket [15:51:08]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:05]accept exits with 9 [15:53:05]New connection [15:53:05]New thread 3066813796 created [15:53:05]Thread 3066957156 joined [15:53:05]Waiting for new connection... [15:53:05] Sock 9.Parse request [15:53:05]Sock 9.Check first char [15:53:05]Sock 9.First char is OK [15:53:05]request: POST /json_proto HTTP/1.0 [15:53:05]Method: POST [15:53:05]URL: /json_proto [15:53:05]Method is POST - this is cgi request [15:53:05]url: /json_proto [15:53:05]query_string will be loaded in cgi processing [15:53:05]execute_cgi json_proto POST (null) [15:53:05]execute_cgi path=json_proto method=POST [15:53:05]POST find Content-Length [15:53:05]Host: 172.17.59.68:8080 [15:53:05]Content-Length: 677 [15:53:05]Content-Type: application/json [15:53:05] [15:53:05]POST finish read [15:53:05]Found Content-Length = 677 [15:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320956", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:05]execute_script... [15:53: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)320956", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:05]POST & json_proto [15:53:05]process_json_proto [15:53:05]json parsed OK: [15:53:05]protocol is kg_v1.0 [15:53:05]action value=close_receipt [15:53:05]process_action close_receipt [15:53:05]cmd_close_receipt [15:53:05]MH_GetDate [15:53:05]Write to MH i2c: F0 00 00 E8 40 17 [15:53:05]Write i2c OK [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: F0 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: F0 09 00 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: F0 09 00 E8 40 00 7D F3 76 66 BC EC 60 65 D9 [15:53:05]GetLastDocTimeStamp 1719071492 [15:53:05]current date 1719071613 [15:53:05]FM_GetShiftState [15:53:05]SAM_PROTO_GetShiftState [15:53:05]wFMCommunicate request_size=4 [15:53:05]MH_SAM_APDU [15:53:05]CAPDU: 80 13 01 00 [15:53:05]Write to MH i2c: E2 08 00 E9 40 80 13 01 00 00 00 00 00 A6 [15:53:05]Write i2c OK [15:53:05]MH_I2C_Read... [15:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:05]Read from MH i2c: E2 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: E2 0E 00 [15:53:05]MH_I2C_Read... [15:53:05]Read from MH i2c: E2 0E 00 E9 40 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DB [15:53:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:53:05]wFMCommunicate OK [15:53:05]SAM_PROTO_GetShiftState done [15:53:05]FM_GetShiftState done [15:53:05]opened in 1719020067 [15:53:05]opened+sec_in_day 1719106467 [15:53:05]quantity*price = 20052 [15:53:05]sum+1 = 20054 [15:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 145 22.06.2024 15:53 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112279 ФПД: 257985314233975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112279&fm=257985314233975&tin=02508201610067®Number=0000000000092771&sum=20000 [15:53:07]StoreToDocumentArchive [15:53:07]shift 391 fd 112279 [15:53:07]save to /storage/0391/doc_00112279 [15:53:07]save last doc name /storage/0391/doc_00112279 to /storage/kkm_last_doc_name [15:53:07]save OK [15:53:07]Clear old archive folders... [15:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:07]tlvbuf is 011247C0 [15:53:07]SAM_PROTO_ClearQueue [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 09 00 00 [15:53:07]Write to MH i2c: E2 08 00 F6 40 80 09 00 00 00 00 00 00 A8 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 F6 40 00 90 00 AA [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]SAM_PROTO_ClearQueue done [15:53:07]KKMCreateOFDPacket [15:53:07]OFDProtocolAddRootSTLVToBuf [15:53:07]FM_MakeSignedData [15:53:07]FM_MakeSignedData [15:53:07]SAM_PROTO_SignData [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 0D 01 02 [15:53:07]Write to MH i2c: E2 08 00 F7 40 80 0D 01 02 00 00 00 00 B0 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 F7 40 00 90 00 AB [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]wFMCommunicate request_size=255 [15:53:07]MH_SAM_APDU [15: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7D F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B6 01 00 35 04 06 00 EA [15:53:07]Write to MH i2c: E2 02 01 F8 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7D F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B6 01 00 35 04 06 00 EA 00 00 C0 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 F8 40 00 90 00 AC [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]wFMCommunicate request_size=10 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 0D 02 02 05 A2 E3 03 1E 77 [15:53:07]Write to MH i2c: E2 0D 00 F9 40 80 0D 02 02 05 00 A2 E3 03 1E 77 00 00 DA [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 F9 40 00 90 00 AD [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 0D 03 02 [15:53:07]Write to MH i2c: E2 08 00 FA 40 80 0D 03 02 00 00 00 00 B5 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 0B 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 0B 00 FA 40 00 D9 F4 D0 A8 3C 20 A5 A7 90 00 A3 [15:53:07]RAPDU: D9 F4 D0 A8 3C 20 A5 A7 90 00 [15:53:07]wFMCommunicate OK [15:53:07]SAM_PROTO_SignData done [15:53:07]FM_MakeSignedData done [15:53:07]CreateOFDProtocolMessage [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 11 00 00 [15:53:07]Write to MH i2c: E2 08 00 FB 40 80 11 00 00 00 00 00 00 B5 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 17 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 17 00 FB 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [15:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:53:07]wFMCommunicate OK [15:53:07]CreateOFDProtocolMessage done [15:53:07]OFDSenderStorePacket 112279 [15:53:07]StoreOFDPacket docnum=112279 [15:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 C4 07 01 00 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7D F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B6 01 00 35 04 06 00 EA A2 E3 03 1E 77 D9 F4 D0 A8 3C 20 A5 A7 [15:53:07]CheckFolder [15:53:07]dirname=/storage/ofd_packets [15:53:07]CheckFolder done [15:53:07]ProducePacketName [15:53:07]name=ofd_packets/00112279 [15:53:07]NVStorageSaveData ofd_packets/00112279 [15:53:07]File name is /storage/ofd_packets/00112279 [15:53:07]Write 301 bytes [15:53:07]NVStorageSaveData done [15:53:07]OFDSenderStorePacket done [15:53:07]KKMCreateOFDPacket done [15:53:07]NVStorageSaveData kkm_last_timestamp [15:53:07]File name is /storage/kkm_last_timestamp [15:53:07]Write 4 bytes [15:53:07]NVStorageSaveData done [15:53:07]ExternCall_PrintAddStr [15:53:07]wPrintStart [15:53:07]Write to MH i2c: 01 00 00 FC 40 3C [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 FC 40 00 00 00 00 00 FF 0F 51 [15:53:07]RasterBufferAndPrint [15:53:07]line Счет N : (1)320956 [15:53:07]line ИНН: 02508201610067 [15:53:07]line Контрольно-Кассовый Чек [15:53:07]line ПРОДАЖА [15:53:07]line ТРК (МРК, ГНК) : 11 [15:53:07]line Товар: 2710124130 [15:53:07]line Аи-92-К-5 [15:53:07]line 3.020 * 66.40 [15:53:07]line = 200.53 [15:53:07]line НДС 12% НСП 1% [15:53:07]line > о реализуемом товаре [15:53:07]line ОКРУГЛЕНИЕ: -0.53 [15:53:07]line ИТОГО: 200.00 [15:53:07]line Внесено: 200.00 [15:53:07]line СДАЧА: 0.00 [15:53:07]line НСП 1% : 1.77 [15:53:07]line НДС 12% : 21.29 [15:53:07]line Наличными: 200.00 [15:53:07]line Безнал.: 0.00 [15:53:07]line Место: АЗС № 65 "Партнер Нефть" [15:53:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:53:07]line СНО: Общий режим [15:53:07]line Чек 145 22.06.2024 15:53 [15:53:07]line Смена: 391 ФФД: 1.0 [15:53:07]line ЗНМ: 0300000198 [15:53:07]line РНМ: 0000000000092771 [15:53:07]line Версия ККМ: 001 [15:53:07]line ФМ: 0000000000875083 [15:53:07]line ФД: 112279 [15:53:07]line ФПД: 257985314233975 [15:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112279&fm=257985314233975&tin=02508201610067®Number=0000000000092771&sum=20000 [15:53:07]OFD Sender: Processing packet 112279 [packets to send 38, broken 37] [15:53:07]ProducePacketName [15:53:07]name=ofd_packets/00112279 [15:53:07]OFD Sender: To server: pG, [15:53:07]CommunicateWithHost lk.salyk.kg:30040 [15:53:07]ConnectInit lk.salyk.kg [15:53:07]written 0, free lines is 4095 [15:53:07]Connected sock=10 [15:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 C4 07 01 00 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7D F3 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B6 01 00 35 04 06 00 EA A2 E3 03 1E 77 D9 F4 D0 A8 3C 20 A5 A7 [15:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 6A 47 00 24 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B6 01 00 F4 03 04 00 85 8A 76 66 B6 04 01 00 00 60 E4 B2 C7 38 44 09 BC [15:53:08]CommunicateWithHost err = 0 [15:53:08]CheckOFDResponse [15:53:08]1017 (14) - 77093643461234 [15:53:08]1041 (16) - 0000000000875083 [15:53:08]1040 (4) - 112279 [15:53:08]1012 (4) - 22.06.2024 08:25 [15:53:08]1206 (1) - 0 [15:53:08]OFD Sender: Remove packet 112279 [15:53:08]ProducePacketName [15:53:08]name=ofd_packets/00112279 [15:53:08]NVStorageDeleteData [15:53:08]Write to MH i2c: 01 00 00 27 41 68 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 27 41 00 00 00 00 00 E1 0C 5C [15:53:08]RasterBufferAndPrint [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]written 0, free lines is 3303 [15:53:08]MH_Cut [15:53:08]Write to MH i2c: D1 01 00 2E 41 01 41 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 01 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 01 00 2E 41 00 40 [15:53:08]Write to MH i2c: 01 00 00 2F 41 70 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]OFD Sender: No OFD packet to send [15:53:09]*** Cut start [15:53:09]*** Partial cut [15:53:09]*** CUTSNS_PIN = 1 [15:53:09]*** CUTSNS_PIN = 0 [15:53:09]*** Brake cut motor [15:53:09]Read from MH i2c: 01 [15:53:09]MH_I2C_Read... [15:53:09]*** Stop cut motor [15:53:09]*** Cut end [15:53:09]Read from MH i2c: 01 07 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: 01 07 00 2F 41 00 00 00 00 00 FF 0F 85 [15:53:09]process_action close_receipt done [15:53:09]requested_data is exist [15:53:09]produce_requested_data [15:53:09]requested_item fm.sn is exist - process it [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 11 00 00 [15:53:09]Write to MH i2c: E2 08 00 30 41 80 11 00 00 00 00 00 00 EB [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 30 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [15:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:53:09]wFMCommunicate OK [15:53:09]requested_item fd.num is exist - process it [15:53:09]SAM_PROTO_GetFieldsCounters [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 13 00 00 [15:53:09]Write to MH i2c: E2 08 00 31 41 80 13 00 00 00 00 00 00 EE [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 62 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 62 00 31 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [15:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:09]wFMCommunicate OK [15:53:09]SAM_PROTO_GetFieldsCounters done [15:53:09]requested_item shift.num is exist - process it [15:53:09]requested_item shift.opened is exist - process it [15:53:09]req_shift_opened [15:53:09]FM_GetShiftState [15:53:09]SAM_PROTO_GetShiftState [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 13 01 00 [15:53:09]Write to MH i2c: E2 08 00 32 41 80 13 01 00 00 00 00 00 F0 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 0E 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 0E 00 32 41 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 25 [15:53:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [15:53:09]wFMCommunicate OK [15:53:09]SAM_PROTO_GetShiftState done [15:53:09]FM_GetShiftState done [15:53:09]req_shift_opened done [15:53:09]requested_item shift.open_date is exist - process it [15:53:09]req_shift_open_date [15:53:09]req_shift_open_date done [15:53:09]produce_requested_data done [15:53:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112279,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [15:53:09]process_action_free close_receipt [15:53:09]json_value_free [15:53:09]json_value_free done [15:53:09]process_json_proto returns [15:53:09]Send response to host [15:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112279,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [15:53:09]free response buf [15:53:09]execute_script done [15:53:09]execute_script returns [15:53:09]free content buf [15:53:09]Sock 9.Close socket [15:53:09]Sock 9.Thread stoped [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:48]accept exits with 7 [16:04:48]New connection [16:04:48]New thread 3066957156 created [16:04:48]Thread 3066813796 joined [16:04:48]Waiting for new connection... [16:04:48] Sock 7.Parse request [16:04:48]Sock 7.Check first char [16:04:48]Sock 7.First char is OK [16:04:48]request: POST /json_proto HTTP/1.0 [16:04:48]Method: POST [16:04:48]URL: /json_proto [16:04:48]Method is POST - this is cgi request [16:04:48]url: /json_proto [16:04:48]query_string will be loaded in cgi processing [16:04:48]execute_cgi json_proto POST (null) [16:04:48]execute_cgi path=json_proto method=POST [16:04:48]POST find Content-Length [16:04:48]Host: 172.17.59.68:8080 [16:04:48]Content-Length: 682 [16:04:48]Content-Type: application/json [16:04:48] [16:04:48]POST finish read [16:04:48]Found Content-Length = 682 [16:04:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320957", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [16:04:48]execute_script... [16:04: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)320957", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [16:04:48]POST & json_proto [16:04:48]process_json_proto [16:04:48]json parsed OK: [16:04:48]protocol is kg_v1.0 [16:04:48]action value=close_receipt [16:04:48]process_action close_receipt [16:04:48]cmd_close_receipt [16:04:48]MH_GetDate [16:04:48]Write to MH i2c: F0 00 00 33 41 63 [16:04:48]Write i2c OK [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: F0 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: F0 09 00 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: F0 09 00 33 41 00 3C F6 76 66 BC EC 60 65 E7 [16:04:48]GetLastDocTimeStamp 1719071613 [16:04:48]current date 1719072316 [16:04:48]FM_GetShiftState [16:04:48]SAM_PROTO_GetShiftState [16:04:48]wFMCommunicate request_size=4 [16:04:48]MH_SAM_APDU [16:04:48]CAPDU: 80 13 01 00 [16:04:48]Write to MH i2c: E2 08 00 34 41 80 13 01 00 00 00 00 00 F2 [16:04:48]Write i2c OK [16:04:48]MH_I2C_Read... [16:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:48]Read from MH i2c: E2 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: E2 0E 00 [16:04:48]MH_I2C_Read... [16:04:48]Read from MH i2c: E2 0E 00 34 41 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 27 [16:04:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:04:48]wFMCommunicate OK [16:04:48]SAM_PROTO_GetShiftState done [16:04:48]FM_GetShiftState done [16:04:48]opened in 1719020067 [16:04:48]opened+sec_in_day 1719106467 [16:04:48]quantity*price = 200063 [16:04:48]sum+1 = 200064 [16:04:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 146 22.06.2024 16:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112280 ФПД: 20055663941512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160516&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112280&fm=20055663941512&tin=02508201610067®Number=0000000000092771&sum=200000 [16:04:49]StoreToDocumentArchive [16:04:49]shift 391 fd 112280 [16:04:49]save to /storage/0391/doc_00112280 [16:04:49]save last doc name /storage/0391/doc_00112280 to /storage/kkm_last_doc_name [16:04:49]save OK [16:04:49]Clear old archive folders... [16:04:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:49]tlvbuf is 0114B650 [16:04:49]SAM_PROTO_ClearQueue [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 09 00 00 [16:04:49]Write to MH i2c: E2 08 00 41 41 80 09 00 00 00 00 00 00 F4 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 41 41 00 90 00 F6 [16:04:49]RAPDU: 90 00 [16:04:49]wFMCommunicate OK [16:04:49]SAM_PROTO_ClearQueue done [16:04:49]KKMCreateOFDPacket [16:04:49]OFDProtocolAddRootSTLVToBuf [16:04:49]FM_MakeSignedData [16:04:49]FM_MakeSignedData [16:04:49]SAM_PROTO_SignData [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 0D 01 02 [16:04:49]Write to MH i2c: E2 08 00 42 41 80 0D 01 02 00 00 00 00 FC [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 42 41 00 90 00 F7 [16:04:49]RAPDU: 90 00 [16:04:49]wFMCommunicate OK [16:04:49]wFMCommunicate request_size=255 [16:04:49]MH_SAM_APDU [16:04: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 92 00 00 00 F4 03 04 00 3C F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B6 01 00 35 04 06 00 12 [16:04:49]Write to MH i2c: E2 02 01 43 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 92 00 00 00 F4 03 04 00 3C F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B6 01 00 35 04 06 00 12 00 00 2E [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 43 41 00 90 00 F8 [16:04:49]RAPDU: 90 00 [16:04:49]wFMCommunicate OK [16:04:49]wFMCommunicate request_size=10 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 0D 02 02 05 3D 92 B9 97 88 [16:04:49]Write to MH i2c: E2 0D 00 44 41 80 0D 02 02 05 00 3D 92 B9 97 88 00 00 B0 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 03 00 44 41 00 90 00 F9 [16:04:49]RAPDU: 90 00 [16:04:49]wFMCommunicate OK [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 0D 03 02 [16:04:49]Write to MH i2c: E2 08 00 45 41 80 0D 03 02 00 00 00 00 01 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 0B 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 0B 00 45 41 00 48 0F 07 63 B3 B6 65 FB 90 00 8C [16:04:49]RAPDU: 48 0F 07 63 B3 B6 65 FB 90 00 [16:04:49]wFMCommunicate OK [16:04:49]SAM_PROTO_SignData done [16:04:49]FM_MakeSignedData done [16:04:49]CreateOFDProtocolMessage [16:04:49]wFMCommunicate request_size=4 [16:04:49]MH_SAM_APDU [16:04:49]CAPDU: 80 11 00 00 [16:04:49]Write to MH i2c: E2 08 00 46 41 80 11 00 00 00 00 00 00 01 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:49]Read from MH i2c: E2 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 17 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: E2 17 00 46 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [16:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:04:49]wFMCommunicate OK [16:04:49]CreateOFDProtocolMessage done [16:04:49]OFDSenderStorePacket 112280 [16:04:49]StoreOFDPacket docnum=112280 [16:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 C5 07 01 73 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 92 00 00 00 F4 03 04 00 3C F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B6 01 00 35 04 06 00 12 3D 92 B9 97 88 48 0F 07 63 B3 B6 65 FB [16:04:49]CheckFolder [16:04:49]dirname=/storage/ofd_packets [16:04:49]CheckFolder done [16:04:49]ProducePacketName [16:04:49]name=ofd_packets/00112280 [16:04:49]NVStorageSaveData ofd_packets/00112280 [16:04:49]File name is /storage/ofd_packets/00112280 [16:04:49]Write 301 bytes [16:04:49]NVStorageSaveData done [16:04:49]OFDSenderStorePacket done [16:04:49]KKMCreateOFDPacket done [16:04:49]NVStorageSaveData kkm_last_timestamp [16:04:49]File name is /storage/kkm_last_timestamp [16:04:49]Write 4 bytes [16:04:49]NVStorageSaveData done [16:04:49]ExternCall_PrintAddStr [16:04:49]wPrintStart [16:04:49]Write to MH i2c: 01 00 00 47 41 88 [16:04:49]Write i2c OK [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: 01 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: 01 07 00 [16:04:49]MH_I2C_Read... [16:04:49]Read from MH i2c: 01 07 00 47 41 00 00 00 00 00 FF 0F 9D [16:04:49]RasterBufferAndPrint [16:04:49]line Счет N : (1)320957 [16:04:49]line ИНН: 02508201610067 [16:04:49]line Контрольно-Кассовый Чек [16:04:49]line ПРОДАЖА [16:04:49]line ТРК (МРК, ГНК) : 11 [16:04:49]line Товар: 2710124130 [16:04:49]line Аи-92-К-5 [16:04:49]line 30.130 * 66.40 [16:04:49]line = 2000.63 [16:04:49]line НДС 12% НСП 1% [16:04:49]line > о реализуемом товаре [16:04:49]line ОКРУГЛЕНИЕ: -0.63 [16:04:49]line ИТОГО: 2000.00 [16:04:49]line Внесено: 2000.00 [16:04:49]line СДАЧА: 0.00 [16:04:49]line НСП 1% : 17.70 [16:04:49]line НДС 12% : 212.46 [16:04:49]line Наличными: 2000.00 [16:04:49]line Безнал.: 0.00 [16:04:49]line Место: АЗС № 65 "Партнер Нефть" [16:04:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:04:49]line СНО: Общий режим [16:04:49]line Чек 146 22.06.2024 16:05 [16:04:49]line Смена: 391 ФФД: 1.0 [16:04:49]line ЗНМ: 0300000198 [16:04:49]line РНМ: 0000000000092771 [16:04:49]line Версия ККМ: 001 [16:04:49]line ФМ: 0000000000875083 [16:04:49]line ФД: 112280 [16:04:49]line ФПД: 20055663941512 [16:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160516&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112280&fm=20055663941512&tin=02508201610067®Number=0000000000092771&sum=200000 [16:04:50]OFD Sender: Processing packet 112280 [packets to send 38, broken 37] [16:04:50]ProducePacketName [16:04:50]name=ofd_packets/00112280 [16:04:50]OFD Sender: To server: pG, [16:04:50]CommunicateWithHost lk.salyk.kg:30040 [16:04:50]ConnectInit lk.salyk.kg [16:04:50]written 0, free lines is 4095 [16:04:50]Connected sock=10 [16:04:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 C5 07 01 73 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 92 00 00 00 F4 03 04 00 3C F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B6 01 00 35 04 06 00 12 3D 92 B9 97 88 48 0F 07 63 B3 B6 65 FB [16:04:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 38 03 47 00 70 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B6 01 00 F4 03 04 00 43 8D 76 66 B6 04 01 00 00 A0 66 98 E3 FC E5 FA E5 [16:04:50]CommunicateWithHost err = 0 [16:04:50]CheckOFDResponse [16:04:50]1017 (14) - 77093643461234 [16:04:50]1041 (16) - 0000000000875083 [16:04:50]1040 (4) - 112280 [16:04:50]1012 (4) - 22.06.2024 08:37 [16:04:50]1206 (1) - 0 [16:04:50]OFD Sender: Remove packet 112280 [16:04:50]ProducePacketName [16:04:50]name=ofd_packets/00112280 [16:04:50]NVStorageDeleteData [16:04:50]Write to MH i2c: 01 00 00 72 41 B3 [16:04:50]Write i2c OK [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: 01 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: 01 07 00 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: 01 07 00 72 41 00 00 00 00 00 ED 0C B3 [16:04:50]RasterBufferAndPrint [16:04:50]line [16:04:50]line [16:04:50]line [16:04:50]line [16:04:50]line [16:04:50]written 0, free lines is 3315 [16:04:50]MH_Cut [16:04:50]Write to MH i2c: D1 01 00 79 41 01 8C [16:04:50]Write i2c OK [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: D1 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: D1 01 00 [16:04:50]MH_I2C_Read... [16:04:50]Read from MH i2c: D1 01 00 79 41 00 8B [16:04:50]Write to MH i2c: 01 00 00 7A 41 BB [16:04:50]Write i2c OK [16:04:50]MH_I2C_Read... [16:04:51]OFD Sender: No OFD packet to send [16:04:51]*** Cut start [16:04:51]*** Partial cut [16:04:51]*** CUTSNS_PIN = 1 [16:04:51]*** CUTSNS_PIN = 0 [16:04:51]*** Brake cut motor [16:04:52]Read from MH i2c: 01 [16:04:52]MH_I2C_Read... [16:04:52]*** Stop cut motor [16:04:52]*** Cut end [16:04:52]Read from MH i2c: 01 07 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: 01 07 00 7A 41 00 00 00 00 00 FF 0F D0 [16:04:52]process_action close_receipt done [16:04:52]requested_data is exist [16:04:52]produce_requested_data [16:04:52]requested_item fm.sn is exist - process it [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 11 00 00 [16:04:52]Write to MH i2c: E2 08 00 7B 41 80 11 00 00 00 00 00 00 36 [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 17 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 17 00 7B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [16:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:04:52]wFMCommunicate OK [16:04:52]requested_item fd.num is exist - process it [16:04:52]SAM_PROTO_GetFieldsCounters [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 13 00 00 [16:04:52]Write to MH i2c: E2 08 00 7C 41 80 13 00 00 00 00 00 00 39 [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 62 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 62 00 7C 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16:04:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:52]wFMCommunicate OK [16:04:52]SAM_PROTO_GetFieldsCounters done [16:04:52]requested_item shift.num is exist - process it [16:04:52]requested_item shift.opened is exist - process it [16:04:52]req_shift_opened [16:04:52]FM_GetShiftState [16:04:52]SAM_PROTO_GetShiftState [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 13 01 00 [16:04:52]Write to MH i2c: E2 08 00 7D 41 80 13 01 00 00 00 00 00 3B [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 0E 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 0E 00 7D 41 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 70 [16:04:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:04:52]wFMCommunicate OK [16:04:52]SAM_PROTO_GetShiftState done [16:04:52]FM_GetShiftState done [16:04:52]req_shift_opened done [16:04:52]requested_item shift.open_date is exist - process it [16:04:52]req_shift_open_date [16:04:52]req_shift_open_date done [16:04:52]produce_requested_data done [16:04:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112280,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:04:52]process_action_free close_receipt [16:04:52]json_value_free [16:04:52]json_value_free done [16:04:52]process_json_proto returns [16:04:52]Send response to host [16:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112280,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:04:52]free response buf [16:04:52]execute_script done [16:04:52]execute_script returns [16:04:52]free content buf [16:04:52]Sock 7.Close socket [16:04:52]Sock 7.Thread stoped [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:23]accept exits with 9 [16:05:23]New connection [16:05:23]New thread 3066813796 created [16:05:23]Thread 3066957156 joined [16:05:23]Waiting for new connection... [16:05:23] Sock 9.Parse request [16:05:23]Sock 9.Check first char [16:05:23]Sock 9.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.59.68:8080 [16:05:23]Content-Length: 678 [16:05:23]Content-Type: application/json [16:05:23] [16:05:23]POST finish read [16:05:23]Found Content-Length = 678 [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)320958", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)320958", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 7E 41 AE [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 7E 41 00 5F F6 76 66 BC EC 60 65 55 [16:05:23]GetLastDocTimeStamp 1719072316 [16:05:23]current date 1719072351 [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 7F 41 80 13 01 00 00 00 00 00 3D [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 7F 41 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 72 [16:05:23]RAPDU: 09 00 01 23 2A 76 66 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 1719020067 [16:05:23]opened+sec_in_day 1719106467 [16:05:23]quantity*price = 70052 [16:05:23]sum+1 = 70053 [16:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 147 22.06.2024 16:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112281 ФПД: 56416619957466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160551&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112281&fm=56416619957466&tin=02508201610067®Number=0000000000092771&sum=70000 [16:05:24]StoreToDocumentArchive [16:05:24]shift 391 fd 112281 [16:05:24]save to /storage/0391/doc_00112281 [16:05:24]save last doc name /storage/0391/doc_00112281 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 0114B810 [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 8C 41 80 09 00 00 00 00 00 00 3F [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 8C 41 00 90 00 41 [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 8D 41 80 0D 01 02 00 00 00 00 47 [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 8D 41 00 90 00 42 [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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5F F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B6 01 00 35 04 06 00 33 [16:05:24]Write to MH i2c: E2 02 01 8E 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5F F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B6 01 00 35 04 06 00 33 00 00 DC [16:05:25]Write i2c OK [16:05:25]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 8E 41 00 90 00 43 [16:05:25]RAPDU: 90 00 [16:05:25]wFMCommunicate OK [16:05:25]wFMCommunicate request_size=10 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 0D 02 02 05 4F 84 97 8C DA [16:05:25]Write to MH i2c: E2 0D 00 8F 41 80 0D 02 02 05 00 4F 84 97 8C DA 00 00 24 [16:05:25]Write i2c OK [16:05:25]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 8F 41 00 90 00 44 [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 90 41 80 0D 03 02 00 00 00 00 4C [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 90 41 00 F6 77 34 12 38 FB 93 CD 90 00 93 [16:05:25]RAPDU: F6 77 34 12 38 FB 93 CD 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 91 41 80 11 00 00 00 00 00 00 4C [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 91 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [16:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:05:25]wFMCommunicate OK [16:05:25]CreateOFDProtocolMessage done [16:05:25]OFDSenderStorePacket 112281 [16:05:25]StoreOFDPacket docnum=112281 [16:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 3D 07 01 6E 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5F F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B6 01 00 35 04 06 00 33 4F 84 97 8C DA F6 77 34 12 38 FB 93 CD [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/00112281 [16:05:25]NVStorageSaveData ofd_packets/00112281 [16:05:25]File name is /storage/ofd_packets/00112281 [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 92 41 D3 [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 92 41 00 00 00 00 00 FF 0F E8 [16:05:25]RasterBufferAndPrint [16:05:25]line Счет N : (1)320958 [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 10.550 * 66.40 [16:05:25]line = 700.52 [16:05:25]line НДС 12% НСП 1% [16:05:25]line > о реализуемом товаре [16:05:25]line ОКРУГЛЕНИЕ: -0.52 [16:05:25]line ИТОГО: 700.00 [16:05:25]line Внесено: 700.00 [16:05:25]line СДАЧА: 0.00 [16:05:25]line НСП 1% : 6.20 [16:05:25]line НДС 12% : 74.39 [16:05:25]line Наличными: 700.00 [16:05:25]line Безнал.: 0.00 [16:05:25]line Место: АЗС № 65 "Партнер Нефть" [16:05:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:05:25]line СНО: Общий режим [16:05:25]line Чек 147 22.06.2024 16:05 [16:05:25]line Смена: 391 ФФД: 1.0 [16:05:25]line ЗНМ: 0300000198 [16:05:25]line РНМ: 0000000000092771 [16:05:25]line Версия ККМ: 001 [16:05:25]line ФМ: 0000000000875083 [16:05:25]line ФД: 112281 [16:05:25]line ФПД: 56416619957466 [16:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160551&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112281&fm=56416619957466&tin=02508201610067®Number=0000000000092771&sum=70000 [16:05:25]OFD Sender: Processing packet 112281 [packets to send 38, broken 37] [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00112281 [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 35 30 38 33 0F 01 00 00 78 3D 07 01 6E 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5F F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B6 01 00 35 04 06 00 33 4F 84 97 8C DA F6 77 34 12 38 FB 93 CD [16:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B5 2E 47 00 CE BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B6 01 00 F4 03 04 00 67 8D 76 66 B6 04 01 00 00 5D 50 5A 50 74 01 49 CE [16:05:26]CommunicateWithHost err = 0 [16:05:26]CheckOFDResponse [16:05:26]1017 (14) - 77093643461234 [16:05:26]1041 (16) - 0000000000875083 [16:05:26]1040 (4) - 112281 [16:05:26]1012 (4) - 22.06.2024 08:37 [16:05:26]1206 (1) - 0 [16:05:26]OFD Sender: Remove packet 112281 [16:05:26]ProducePacketName [16:05:26]name=ofd_packets/00112281 [16:05:26]NVStorageDeleteData [16:05:26]Write to MH i2c: 01 00 00 BD 41 FE [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 07 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 07 00 BD 41 00 00 00 00 00 E9 0C FA [16:05:26]RasterBufferAndPrint [16:05:26]line [16:05:26]line [16:05:26]line [16:05:26]line [16:05:26]line [16:05:26]written 0, free lines is 3312 [16:05:26]MH_Cut [16:05:26]Write to MH i2c: D1 01 00 C4 41 01 D7 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: D1 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: D1 01 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: D1 01 00 C4 41 00 D6 [16:05:26]Write to MH i2c: 01 00 00 C5 41 06 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]OFD Sender: No OFD packet to send [16:05:26]*** Cut start [16:05:26]*** Partial cut [16:05:26]*** CUTSNS_PIN = 1 [16:05:27]*** CUTSNS_PIN = 0 [16:05:27]*** Brake cut motor [16:05:27]Read from MH i2c: 01 [16:05:27]MH_I2C_Read... [16:05:27]*** Stop cut motor [16:05:27]*** Cut end [16:05:27]Read from MH i2c: 01 07 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 C5 41 00 00 00 00 00 FF 0F 1B [16:05:27]process_action close_receipt done [16:05:27]requested_data is exist [16:05:27]produce_requested_data [16:05:27]requested_item fm.sn is exist - process it [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 11 00 00 [16:05:27]Write to MH i2c: E2 08 00 C6 41 80 11 00 00 00 00 00 00 81 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 C6 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [16:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:05:27]wFMCommunicate OK [16:05:27]requested_item fd.num is exist - process it [16:05:27]SAM_PROTO_GetFieldsCounters [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 13 00 00 [16:05:27]Write to MH i2c: E2 08 00 C7 41 80 13 00 00 00 00 00 00 84 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 62 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 62 00 C7 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [16:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_GetFieldsCounters done [16:05:27]requested_item shift.num is exist - process it [16:05:27]requested_item shift.opened is exist - process it [16:05:27]req_shift_opened [16:05:27]FM_GetShiftState [16:05:27]SAM_PROTO_GetShiftState [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 13 01 00 [16:05:27]Write to MH i2c: E2 08 00 C8 41 80 13 01 00 00 00 00 00 86 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0E 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0E 00 C8 41 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BB [16:05:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_GetShiftState done [16:05:27]FM_GetShiftState done [16:05:27]req_shift_opened done [16:05:27]requested_item shift.open_date is exist - process it [16:05:27]req_shift_open_date [16:05:27]req_shift_open_date done [16:05:27]produce_requested_data done [16:05:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112281,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:05:27]process_action_free close_receipt [16:05:27]json_value_free [16:05:27]json_value_free done [16:05:27]process_json_proto returns [16:05:27]Send response to host [16:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112281,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:05:27]free response buf [16:05:27]execute_script done [16:05:27]execute_script returns [16:05:27]free content buf [16:05:27]Sock 9.Close socket [16:05:27]Sock 9.Thread stoped [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:23]accept exits with 7 [16:07:23]New connection [16:07:23]New thread 3066957156 created [16:07:23]Thread 3066813796 joined [16:07:23]Waiting for new connection... [16:07:23] Sock 7.Parse request [16:07:23]Sock 7.Check first char [16:07:23]Sock 7.First char is OK [16:07:23]request: POST /json_proto HTTP/1.0 [16:07:23]Method: POST [16:07:23]URL: /json_proto [16:07:23]Method is POST - this is cgi request [16:07:23]url: /json_proto [16:07:23]query_string will be loaded in cgi processing [16:07:23]execute_cgi json_proto POST (null) [16:07:23]execute_cgi path=json_proto method=POST [16:07:23]POST find Content-Length [16:07:23]Host: 172.17.59.68:8080 [16:07:23]Content-Length: 677 [16:07:23]Content-Type: application/json [16:07:23] [16:07:23]POST finish read [16:07:23]Found Content-Length = 677 [16:07:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320959", "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.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:23]execute_script... [16:07: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)320959", "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.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:23]POST & json_proto [16:07:23]process_json_proto [16:07:23]json parsed OK: [16:07:23]protocol is kg_v1.0 [16:07:23]action value=close_receipt [16:07:23]process_action close_receipt [16:07:23]cmd_close_receipt [16:07:23]MH_GetDate [16:07:23]Write to MH i2c: F0 00 00 C9 41 F9 [16:07:23]Write i2c OK [16:07:23]MH_I2C_Read... [16:07:23]Read from MH i2c: F0 [16:07:23]MH_I2C_Read... [16:07:23]Read from MH i2c: F0 09 00 [16:07:23]MH_I2C_Read... [16:07:23]Read from MH i2c: F0 09 00 C9 41 00 D7 F6 76 66 BC EC 60 65 18 [16:07:23]GetLastDocTimeStamp 1719072351 [16:07:23]current date 1719072471 [16:07:23]FM_GetShiftState [16:07:23]SAM_PROTO_GetShiftState [16:07:23]wFMCommunicate request_size=4 [16:07:23]MH_SAM_APDU [16:07:23]CAPDU: 80 13 01 00 [16:07:23]Write to MH i2c: E2 08 00 CA 41 80 13 01 00 00 00 00 00 88 [16:07:23]Write i2c OK [16:07:23]MH_I2C_Read... [16:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:23]Read from MH i2c: E2 [16:07:23]MH_I2C_Read... [16:07:23]Read from MH i2c: E2 0E 00 [16:07:23]MH_I2C_Read... [16:07:23]Read from MH i2c: E2 0E 00 CA 41 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BD [16:07:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:07:23]wFMCommunicate OK [16:07:23]SAM_PROTO_GetShiftState done [16:07:23]FM_GetShiftState done [16:07:23]opened in 1719020067 [16:07:23]opened+sec_in_day 1719106467 [16:07:23]quantity*price = 40039 [16:07:23]sum+1 = 40040 [16:07:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 148 22.06.2024 16:07 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112282 ФПД: 23522927032900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160751&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112282&fm=23522927032900&tin=02508201610067®Number=0000000000092771&sum=40000 [16:07:24]StoreToDocumentArchive [16:07:24]shift 391 fd 112282 [16:07:24]save to /storage/0391/doc_00112282 [16:07:24]save last doc name /storage/0391/doc_00112282 to /storage/kkm_last_doc_name [16:07:24]save OK [16:07:24]Clear old archive folders... [16:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:24]tlvbuf is 0117DF50 [16:07:24]SAM_PROTO_ClearQueue [16:07:24]wFMCommunicate request_size=4 [16:07:24]MH_SAM_APDU [16:07:24]CAPDU: 80 09 00 00 [16:07:24]Write to MH i2c: E2 08 00 D7 41 80 09 00 00 00 00 00 00 8A [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:24]Read from MH i2c: E2 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 D7 41 00 90 00 8C [16:07:24]RAPDU: 90 00 [16:07:24]wFMCommunicate OK [16:07:24]SAM_PROTO_ClearQueue done [16:07:24]KKMCreateOFDPacket [16:07:24]OFDProtocolAddRootSTLVToBuf [16:07:24]FM_MakeSignedData [16:07:24]FM_MakeSignedData [16:07:24]SAM_PROTO_SignData [16:07:24]wFMCommunicate request_size=4 [16:07:24]MH_SAM_APDU [16:07:24]CAPDU: 80 0D 01 02 [16:07:24]Write to MH i2c: E2 08 00 D8 41 80 0D 01 02 00 00 00 00 92 [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:24]Read from MH i2c: E2 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 D8 41 00 90 00 8D [16:07:24]RAPDU: 90 00 [16:07:24]wFMCommunicate OK [16:07:24]wFMCommunicate request_size=255 [16:07:24]MH_SAM_APDU [16:07: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 94 00 00 00 F4 03 04 00 D7 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B6 01 00 35 04 06 00 15 [16:07:24]Write to MH i2c: E2 02 01 D9 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 94 00 00 00 F4 03 04 00 D7 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B6 01 00 35 04 06 00 15 00 00 3F [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:24]Read from MH i2c: E2 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 D9 41 00 90 00 8E [16:07:24]RAPDU: 90 00 [16:07:24]wFMCommunicate OK [16:07:24]wFMCommunicate request_size=10 [16:07:24]MH_SAM_APDU [16:07:24]CAPDU: 80 0D 02 02 05 64 DB B5 BA 44 [16:07:24]Write to MH i2c: E2 0D 00 DA 41 80 0D 02 02 05 00 64 DB B5 BA 44 00 00 91 [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:24]Read from MH i2c: E2 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 03 00 DA 41 00 90 00 8F [16:07:24]RAPDU: 90 00 [16:07:24]wFMCommunicate OK [16:07:24]wFMCommunicate request_size=4 [16:07:24]MH_SAM_APDU [16:07:24]CAPDU: 80 0D 03 02 [16:07:24]Write to MH i2c: E2 08 00 DB 41 80 0D 03 02 00 00 00 00 97 [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:24]Read from MH i2c: E2 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 0B 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 0B 00 DB 41 00 02 0F 68 D5 BD 29 EF C7 90 00 82 [16:07:24]RAPDU: 02 0F 68 D5 BD 29 EF C7 90 00 [16:07:24]wFMCommunicate OK [16:07:24]SAM_PROTO_SignData done [16:07:24]FM_MakeSignedData done [16:07:24]CreateOFDProtocolMessage [16:07:24]wFMCommunicate request_size=4 [16:07:24]MH_SAM_APDU [16:07:24]CAPDU: 80 11 00 00 [16:07:24]Write to MH i2c: E2 08 00 DC 41 80 11 00 00 00 00 00 00 97 [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:24]Read from MH i2c: E2 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 17 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: E2 17 00 DC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [16:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:24]wFMCommunicate OK [16:07:24]CreateOFDProtocolMessage done [16:07:24]OFDSenderStorePacket 112282 [16:07:24]StoreOFDPacket docnum=112282 [16:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 61 96 07 01 33 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 94 00 00 00 F4 03 04 00 D7 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B6 01 00 35 04 06 00 15 64 DB B5 BA 44 02 0F 68 D5 BD 29 EF C7 [16:07:24]CheckFolder [16:07:24]dirname=/storage/ofd_packets [16:07:24]CheckFolder done [16:07:24]ProducePacketName [16:07:24]name=ofd_packets/00112282 [16:07:24]NVStorageSaveData ofd_packets/00112282 [16:07:24]File name is /storage/ofd_packets/00112282 [16:07:24]Write 301 bytes [16:07:24]NVStorageSaveData done [16:07:24]OFDSenderStorePacket done [16:07:24]KKMCreateOFDPacket done [16:07:24]NVStorageSaveData kkm_last_timestamp [16:07:24]File name is /storage/kkm_last_timestamp [16:07:24]Write 4 bytes [16:07:24]NVStorageSaveData done [16:07:24]ExternCall_PrintAddStr [16:07:24]wPrintStart [16:07:24]Write to MH i2c: 01 00 00 DD 41 1E [16:07:24]Write i2c OK [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: 01 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: 01 07 00 [16:07:24]MH_I2C_Read... [16:07:24]Read from MH i2c: 01 07 00 DD 41 00 00 00 00 00 FF 0F 33 [16:07:24]RasterBufferAndPrint [16:07:24]line Счет N : (1)320959 [16:07:24]line ИНН: 02508201610067 [16:07:24]line Контрольно-Кассовый Чек [16:07:24]line ПРОДАЖА [16:07:24]line ТРК (МРК, ГНК) : 11 [16:07:24]line Товар: 2710124130 [16:07:24]line Аи-92-К-5 [16:07:24]line 6.030 * 66.40 [16:07:24]line = 400.39 [16:07:24]line НДС 12% НСП 1% [16:07:24]line > о реализуемом товаре [16:07:24]line ОКРУГЛЕНИЕ: -0.39 [16:07:24]line ИТОГО: 400.00 [16:07:24]line Внесено: 400.00 [16:07:24]line СДАЧА: 0.00 [16:07:24]line НСП 1% : 3.54 [16:07:24]line НДС 12% : 42.52 [16:07:24]line Наличными: 400.00 [16:07:24]line Безнал.: 0.00 [16:07:24]line Место: АЗС № 65 "Партнер Нефть" [16:07:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:07:24]line СНО: Общий режим [16:07:24]line Чек 148 22.06.2024 16:07 [16:07:24]line Смена: 391 ФФД: 1.0 [16:07:24]line ЗНМ: 0300000198 [16:07:24]line РНМ: 0000000000092771 [16:07:24]line Версия ККМ: 001 [16:07:24]line ФМ: 0000000000875083 [16:07:25]line ФД: 112282 [16:07:25]line ФПД: 23522927032900 [16:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160751&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112282&fm=23522927032900&tin=02508201610067®Number=0000000000092771&sum=40000 [16:07:25]OFD Sender: Processing packet 112282 [packets to send 38, broken 37] [16:07:25]ProducePacketName [16:07:25]name=ofd_packets/00112282 [16:07:25]OFD Sender: To server: pG, [16:07:25]CommunicateWithHost lk.salyk.kg:30040 [16:07:25]ConnectInit lk.salyk.kg [16:07:25]written 0, free lines is 4095 [16:07:25]Connected sock=10 [16:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 61 96 07 01 33 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 94 00 00 00 F4 03 04 00 D7 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B6 01 00 35 04 06 00 15 64 DB B5 BA 44 02 0F 68 D5 BD 29 EF C7 [16:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6F AE 47 00 98 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B6 01 00 F4 03 04 00 DE 8D 76 66 B6 04 01 00 00 DE 65 52 8C 43 49 C1 F2 [16:07:25]CommunicateWithHost err = 0 [16:07:25]CheckOFDResponse [16:07:25]1017 (14) - 77093643461234 [16:07:25]1041 (16) - 0000000000875083 [16:07:25]1040 (4) - 112282 [16:07:25]1012 (4) - 22.06.2024 08:39 [16:07:25]1206 (1) - 0 [16:07:25]OFD Sender: Remove packet 112282 [16:07:25]ProducePacketName [16:07:25]name=ofd_packets/00112282 [16:07:25]NVStorageDeleteData [16:07:25]Write to MH i2c: 01 00 00 08 42 4A [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: 01 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: 01 07 00 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: 01 07 00 08 42 00 00 00 00 00 D8 0C 35 [16:07:25]RasterBufferAndPrint [16:07:25]line [16:07:25]line [16:07:25]line [16:07:25]line [16:07:25]line [16:07:25]written 0, free lines is 3297 [16:07:25]MH_Cut [16:07:25]Write to MH i2c: D1 01 00 0F 42 01 23 [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: D1 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: D1 01 00 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: D1 01 00 0F 42 00 22 [16:07:25]Write to MH i2c: 01 00 00 10 42 52 [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]OFD Sender: No OFD packet to send [16:07:26]*** Cut start [16:07:26]*** Partial cut [16:07:26]*** CUTSNS_PIN = 1 [16:07:26]*** CUTSNS_PIN = 0 [16:07:26]*** Brake cut motor [16:07:26]Read from MH i2c: 01 [16:07:26]MH_I2C_Read... [16:07:26]*** Stop cut motor [16:07:26]*** Cut end [16:07:26]Read from MH i2c: 01 07 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: 01 07 00 10 42 00 00 00 00 00 FF 0F 67 [16:07:26]process_action close_receipt done [16:07:26]requested_data is exist [16:07:26]produce_requested_data [16:07:26]requested_item fm.sn is exist - process it [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 11 00 00 [16:07:26]Write to MH i2c: E2 08 00 11 42 80 11 00 00 00 00 00 00 CD [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 17 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 17 00 11 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [16:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:27]wFMCommunicate OK [16:07:27]requested_item fd.num is exist - process it [16:07:27]SAM_PROTO_GetFieldsCounters [16:07:27]wFMCommunicate request_size=4 [16:07:27]MH_SAM_APDU [16:07:27]CAPDU: 80 13 00 00 [16:07:27]Write to MH i2c: E2 08 00 12 42 80 13 00 00 00 00 00 00 D0 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 62 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 62 00 12 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:07:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:27]wFMCommunicate OK [16:07:27]SAM_PROTO_GetFieldsCounters done [16:07:27]requested_item shift.num is exist - process it [16:07:27]requested_item shift.opened is exist - process it [16:07:27]req_shift_opened [16:07:27]FM_GetShiftState [16:07:27]SAM_PROTO_GetShiftState [16:07:27]wFMCommunicate request_size=4 [16:07:27]MH_SAM_APDU [16:07:27]CAPDU: 80 13 01 00 [16:07:27]Write to MH i2c: E2 08 00 13 42 80 13 01 00 00 00 00 00 D2 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 0E 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 0E 00 13 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 07 [16:07:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:07:27]wFMCommunicate OK [16:07:27]SAM_PROTO_GetShiftState done [16:07:27]FM_GetShiftState done [16:07:27]req_shift_opened done [16:07:27]requested_item shift.open_date is exist - process it [16:07:27]req_shift_open_date [16:07:27]req_shift_open_date done [16:07:27]produce_requested_data done [16:07:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112282,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:07:27]process_action_free close_receipt [16:07:27]json_value_free [16:07:27]json_value_free done [16:07:27]process_json_proto returns [16:07:27]Send response to host [16:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112282,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:07:27]free response buf [16:07:27]execute_script done [16:07:27]execute_script returns [16:07:27]free content buf [16:07:27]Sock 7.Close socket [16:07:27]Sock 7.Thread stoped [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:52]accept exits with 9 [16:07:52]New connection [16:07:52]New thread 3066813796 created [16:07:52]Thread 3066957156 joined [16:07:52]Waiting for new connection... [16:07:52] Sock 9.Parse request [16:07:52]Sock 9.Check first char [16:07:52]Sock 9.First char is OK [16:07:52]request: POST /json_proto HTTP/1.0 [16:07:52]Method: POST [16:07:52]URL: /json_proto [16:07:52]Method is POST - this is cgi request [16:07:52]url: /json_proto [16:07:52]query_string will be loaded in cgi processing [16:07:52]execute_cgi json_proto POST (null) [16:07:52]execute_cgi path=json_proto method=POST [16:07:52]POST find Content-Length [16:07:52]Host: 172.17.59.68:8080 [16:07:52]Content-Length: 805 [16:07:52]Content-Type: application/json [16:07:52] [16:07:52]POST finish read [16:07:52]Found Content-Length = 805 [16:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320960", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:52]execute_script... [16:07: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)320960", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:52]POST & json_proto [16:07:52]process_json_proto [16:07:52]json parsed OK: [16:07:52]protocol is kg_v1.0 [16:07:52]action value=close_receipt [16:07:52]process_action close_receipt [16:07:52]cmd_close_receipt [16:07:52]MH_GetDate [16:07:52]Write to MH i2c: F0 00 00 14 42 45 [16:07:52]Write i2c OK [16:07:52]MH_I2C_Read... [16:07:52]Read from MH i2c: F0 [16:07:52]MH_I2C_Read... [16:07:52]Read from MH i2c: F0 09 00 [16:07:52]MH_I2C_Read... [16:07:52]Read from MH i2c: F0 09 00 14 42 00 F4 F6 76 66 BC EC 60 65 81 [16:07:52]GetLastDocTimeStamp 1719072471 [16:07:52]current date 1719072500 [16:07:52]FM_GetShiftState [16:07:52]SAM_PROTO_GetShiftState [16:07:52]wFMCommunicate request_size=4 [16:07:52]MH_SAM_APDU [16:07:52]CAPDU: 80 13 01 00 [16:07:52]Write to MH i2c: E2 08 00 15 42 80 13 01 00 00 00 00 00 D4 [16:07:52]Write i2c OK [16:07:52]MH_I2C_Read... [16:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:52]Read from MH i2c: E2 [16:07:52]MH_I2C_Read... [16:07:52]Read from MH i2c: E2 0E 00 [16:07:52]MH_I2C_Read... [16:07:52]Read from MH i2c: E2 0E 00 15 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 09 [16:07:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:07:52]wFMCommunicate OK [16:07:52]SAM_PROTO_GetShiftState done [16:07:52]FM_GetShiftState done [16:07:52]opened in 1719020067 [16:07:52]opened+sec_in_day 1719106467 [16:07:52]quantity*price = 50065 [16:07:52]sum+1 = 50067 [16:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 149 22.06.2024 16:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112283 ФПД: 108485456801649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160820&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112283&fm=108485456801649&tin=02508201610067®Number=0000000000092771&sum=50066 [16:07:53]StoreToDocumentArchive [16:07:53]shift 391 fd 112283 [16:07:53]save to /storage/0391/doc_00112283 [16:07:53]save last doc name /storage/0391/doc_00112283 to /storage/kkm_last_doc_name [16:07:53]save OK [16:07:53]Clear old archive folders... [16:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:53]tlvbuf is 01124210 [16:07:53]SAM_PROTO_ClearQueue [16:07:53]wFMCommunicate request_size=4 [16:07:53]MH_SAM_APDU [16:07:53]CAPDU: 80 09 00 00 [16:07:53]Write to MH i2c: E2 08 00 22 42 80 09 00 00 00 00 00 00 D6 [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 22 42 00 90 00 D8 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]SAM_PROTO_ClearQueue done [16:07:54]KKMCreateOFDPacket [16:07:54]OFDProtocolAddRootSTLVToBuf [16:07:54]FM_MakeSignedData [16:07:54]FM_MakeSignedData [16:07:54]SAM_PROTO_SignData [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 01 02 [16:07:54]Write to MH i2c: E2 08 00 23 42 80 0D 01 02 00 00 00 00 DE [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 23 42 00 90 00 D9 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=255 [16:07:54]MH_SAM_APDU [16:07: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F4 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B6 01 00 35 04 06 00 62 [16:07:54]Write to MH i2c: E2 02 01 24 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F4 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B6 01 00 35 04 06 00 62 00 00 AD [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 24 42 00 90 00 DA [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=10 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 02 02 05 AA BD 1D AF 71 [16:07:54]Write to MH i2c: E2 0D 00 25 42 80 0D 02 02 05 00 AA BD 1D AF 71 00 00 8F [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 25 42 00 90 00 DB [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 03 02 [16:07:54]Write to MH i2c: E2 08 00 26 42 80 0D 03 02 00 00 00 00 E3 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 0B 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 0B 00 26 42 00 9A 24 BD 86 FC 59 59 4A 90 00 DD [16:07:54]RAPDU: 9A 24 BD 86 FC 59 59 4A 90 00 [16:07:54]wFMCommunicate OK [16:07:54]SAM_PROTO_SignData done [16:07:54]FM_MakeSignedData done [16:07:54]CreateOFDProtocolMessage [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 11 00 00 [16:07:54]Write to MH i2c: E2 08 00 27 42 80 11 00 00 00 00 00 00 E3 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 17 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 17 00 27 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [16:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:54]wFMCommunicate OK [16:07:54]CreateOFDProtocolMessage done [16:07:54]OFDSenderStorePacket 112283 [16:07:54]StoreOFDPacket docnum=112283 [16:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 CB 07 01 6B D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F4 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B6 01 00 35 04 06 00 62 AA BD 1D AF 71 9A 24 BD 86 FC 59 59 4A [16:07:54]CheckFolder [16:07:54]dirname=/storage/ofd_packets [16:07:54]CheckFolder done [16:07:54]ProducePacketName [16:07:54]name=ofd_packets/00112283 [16:07:54]NVStorageSaveData ofd_packets/00112283 [16:07:54]File name is /storage/ofd_packets/00112283 [16:07:54]Write 301 bytes [16:07:54]NVStorageSaveData done [16:07:54]OFDSenderStorePacket done [16:07:54]KKMCreateOFDPacket done [16:07:54]NVStorageSaveData kkm_last_timestamp [16:07:54]File name is /storage/kkm_last_timestamp [16:07:54]Write 4 bytes [16:07:54]NVStorageSaveData done [16:07:54]ExternCall_PrintAddStr [16:07:54]wPrintStart [16:07:54]Write to MH i2c: 01 00 00 28 42 6A [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: 01 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: 01 07 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: 01 07 00 28 42 00 00 00 00 00 FF 0F 7F [16:07:54]RasterBufferAndPrint [16:07:54]line Счет N : (1)320960 [16:07:54]line ИНН: 02508201610067 [16:07:54]line Контрольно-Кассовый Чек [16:07:54]line ПРОДАЖА [16:07:54]line ТРК (МРК, ГНК) : 11 [16:07:54]line Товар: 2710124130 [16:07:54]line Аи-92-К-5 [16:07:54]line 7.540 * 66.40 [16:07:54]line = 500.66 [16:07:54]line НДС 12% НСП 1% [16:07:54]line > о реализуемом товаре [16:07:54]line ИТОГО: 500.66 [16:07:54]line НСП 1% : 4.43 [16:07:54]line НДС 12% : 53.17 [16:07:54]line Наличными: 0.00 [16:07:54]line Безнал.: 500.66 [16:07:54]line Место: АЗС № 65 "Партнер Нефть" [16:07:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:07:54]line СНО: Общий режим [16:07:54]line Чек 149 22.06.2024 16:08 [16:07:54]line Смена: 391 ФФД: 1.0 [16:07:54]line ЗНМ: 0300000198 [16:07:54]line РНМ: 0000000000092771 [16:07:54]line Версия ККМ: 001 [16:07:54]line Платежная система: О! деньги [16:07:54]line ФМ: 0000000000875083 [16:07:54]line ФД: 112283 [16:07:54]line ФПД: 108485456801649 [16:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160820&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112283&fm=108485456801649&tin=02508201610067®Number=0000000000092771&sum=50066 [16:07:54]written 0, free lines is 4095 [16:07:54]OFD Sender: Processing packet 112283 [packets to send 38, broken 37] [16:07:54]ProducePacketName [16:07:54]name=ofd_packets/00112283 [16:07:54]OFD Sender: To server: pG, [16:07:54]CommunicateWithHost lk.salyk.kg:30040 [16:07:54]ConnectInit lk.salyk.kg [16:07:54]Connected sock=10 [16:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 CB 07 01 6B D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 F4 F6 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B6 01 00 35 04 06 00 62 AA BD 1D AF 71 9A 24 BD 86 FC 59 59 4A [16:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 55 47 00 4A BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B6 01 00 F4 03 04 00 FC 8D 76 66 B6 04 01 00 00 35 90 82 1C 33 B5 E1 82 [16:07:55]CommunicateWithHost err = 0 [16:07:55]CheckOFDResponse [16:07:55]1017 (14) - 77093643461234 [16:07:55]1041 (16) - 0000000000875083 [16:07:55]1040 (4) - 112283 [16:07:55]1012 (4) - 22.06.2024 08:40 [16:07:55]1206 (1) - 0 [16:07:55]OFD Sender: Remove packet 112283 [16:07:55]ProducePacketName [16:07:55]name=ofd_packets/00112283 [16:07:55]NVStorageDeleteData [16:07:55]Write to MH i2c: 01 00 00 52 42 94 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 52 42 00 00 00 00 00 00 0D A8 [16:07:55]RasterBufferAndPrint [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]written 0, free lines is 3333 [16:07:55]MH_Cut [16:07:55]Write to MH i2c: D1 01 00 59 42 01 6D [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 01 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 01 00 59 42 00 6C [16:07:55]Write to MH i2c: 01 00 00 5A 42 9C [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]OFD Sender: No OFD packet to send [16:07:56]*** Cut start [16:07:56]*** Partial cut [16:07:56]*** CUTSNS_PIN = 1 [16:07:56]*** CUTSNS_PIN = 0 [16:07:56]*** Brake cut motor [16:07:56]Read from MH i2c: 01 [16:07:56]MH_I2C_Read... [16:07:56]*** Stop cut motor [16:07:56]*** Cut end [16:07:56]Read from MH i2c: 01 07 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: 01 07 00 5A 42 00 00 00 00 00 FF 0F B1 [16:07:56]process_action close_receipt done [16:07:56]requested_data is exist [16:07:56]produce_requested_data [16:07:56]requested_item fm.sn is exist - process it [16:07:56]wFMCommunicate request_size=4 [16:07:56]MH_SAM_APDU [16:07:56]CAPDU: 80 11 00 00 [16:07:56]Write to MH i2c: E2 08 00 5B 42 80 11 00 00 00 00 00 00 17 [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:56]Read from MH i2c: E2 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 17 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 17 00 5B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [16:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:56]wFMCommunicate OK [16:07:56]requested_item fd.num is exist - process it [16:07:56]SAM_PROTO_GetFieldsCounters [16:07:56]wFMCommunicate request_size=4 [16:07:56]MH_SAM_APDU [16:07:56]CAPDU: 80 13 00 00 [16:07:56]Write to MH i2c: E2 08 00 5C 42 80 13 00 00 00 00 00 00 1A [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:56]Read from MH i2c: E2 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 62 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 62 00 5C 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [16:07:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:56]wFMCommunicate OK [16:07:56]SAM_PROTO_GetFieldsCounters done [16:07:56]requested_item shift.num is exist - process it [16:07:56]requested_item shift.opened is exist - process it [16:07:56]req_shift_opened [16:07:56]FM_GetShiftState [16:07:56]SAM_PROTO_GetShiftState [16:07:56]wFMCommunicate request_size=4 [16:07:56]MH_SAM_APDU [16:07:56]CAPDU: 80 13 01 00 [16:07:56]Write to MH i2c: E2 08 00 5D 42 80 13 01 00 00 00 00 00 1C [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:56]Read from MH i2c: E2 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 0E 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 0E 00 5D 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 51 [16:07:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:07:56]wFMCommunicate OK [16:07:56]SAM_PROTO_GetShiftState done [16:07:56]FM_GetShiftState done [16:07:56]req_shift_opened done [16:07:56]requested_item shift.open_date is exist - process it [16:07:56]req_shift_open_date [16:07:56]req_shift_open_date done [16:07:56]produce_requested_data done [16:07:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112283,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:07:56]process_action_free close_receipt [16:07:56]json_value_free [16:07:56]json_value_free done [16:07:56]process_json_proto returns [16:07:56]Send response to host [16:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112283,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:07:56]free response buf [16:07:56]execute_script done [16:07:56]execute_script returns [16:07:56]free content buf [16:07:56]Sock 9.Close socket [16:07:56]Sock 9.Thread stoped [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:19]accept exits with 7 [16:09:19]New connection [16:09:19]New thread 3066957156 created [16:09:19]Thread 3066813796 joined [16:09:19]Waiting for new connection... [16:09:19] Sock 7.Parse request [16:09:19]Sock 7.Check first char [16:09:19]Sock 7.First char is OK [16:09:19]request: POST /json_proto HTTP/1.0 [16:09:19]Method: POST [16:09:19]URL: /json_proto [16:09:19]Method is POST - this is cgi request [16:09:19]url: /json_proto [16:09:19]query_string will be loaded in cgi processing [16:09:19]execute_cgi json_proto POST (null) [16:09:19]execute_cgi path=json_proto method=POST [16:09:19]POST find Content-Length [16:09:19]Host: 172.17.59.68:8080 [16:09:19]Content-Length: 805 [16:09:19]Content-Type: application/json [16:09:19] [16:09:19]POST finish read [16:09:19]Found Content-Length = 805 [16:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320961", "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.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:19]execute_script... [16:09:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320961", "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.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:19]POST & json_proto [16:09:19]process_json_proto [16:09:19]json parsed OK: [16:09:19]protocol is kg_v1.0 [16:09:19]action value=close_receipt [16:09:19]process_action close_receipt [16:09:19]cmd_close_receipt [16:09:19]MH_GetDate [16:09:19]Write to MH i2c: F0 00 00 5E 42 8F [16:09:19]Write i2c OK [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: F0 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: F0 09 00 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: F0 09 00 5E 42 00 4B F7 76 66 BC EC 60 65 23 [16:09:19]GetLastDocTimeStamp 1719072500 [16:09:19]current date 1719072587 [16:09:19]FM_GetShiftState [16:09:19]SAM_PROTO_GetShiftState [16:09:19]wFMCommunicate request_size=4 [16:09:19]MH_SAM_APDU [16:09:19]CAPDU: 80 13 01 00 [16:09:19]Write to MH i2c: E2 08 00 5F 42 80 13 01 00 00 00 00 00 1E [16:09:19]Write i2c OK [16:09:19]MH_I2C_Read... [16:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:19]Read from MH i2c: E2 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 0E 00 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 0E 00 5F 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 53 [16:09:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:09:19]wFMCommunicate OK [16:09:19]SAM_PROTO_GetShiftState done [16:09:19]FM_GetShiftState done [16:09:19]opened in 1719020067 [16:09:19]opened+sec_in_day 1719106467 [16:09:19]quantity*price = 30012 [16:09:19]sum+1 = 30014 [16:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 150 22.06.2024 16:09 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112284 ФПД: 237855664548032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160947&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112284&fm=237855664548032&tin=02508201610067®Number=0000000000092771&sum=30013 [16:09:20]StoreToDocumentArchive [16:09:20]shift 391 fd 112284 [16:09:20]save to /storage/0391/doc_00112284 [16:09:20]save last doc name /storage/0391/doc_00112284 to /storage/kkm_last_doc_name [16:09:20]save OK [16:09:20]Clear old archive folders... [16:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:20]tlvbuf is B6EDB490 [16:09:20]SAM_PROTO_ClearQueue [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 09 00 00 [16:09:20]Write to MH i2c: E2 08 00 6C 42 80 09 00 00 00 00 00 00 20 [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 6C 42 00 90 00 22 [16:09:20]RAPDU: 90 00 [16:09:20]wFMCommunicate OK [16:09:20]SAM_PROTO_ClearQueue done [16:09:20]KKMCreateOFDPacket [16:09:20]OFDProtocolAddRootSTLVToBuf [16:09:20]FM_MakeSignedData [16:09:20]FM_MakeSignedData [16:09:20]SAM_PROTO_SignData [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 0D 01 02 [16:09:20]Write to MH i2c: E2 08 00 6D 42 80 0D 01 02 00 00 00 00 28 [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 6D 42 00 90 00 23 [16:09:20]RAPDU: 90 00 [16:09:20]wFMCommunicate OK [16:09:20]wFMCommunicate request_size=255 [16:09:20]MH_SAM_APDU [16:09: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 4B F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B6 01 00 35 04 06 00 D8 [16:09:20]Write to MH i2c: E2 02 01 6E 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 4B F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B6 01 00 35 04 06 00 D8 00 00 FB [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]OFD Sender: No OFD packet to send [16:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 6E 42 00 90 00 24 [16:09:20]RAPDU: 90 00 [16:09:20]wFMCommunicate OK [16:09:20]wFMCommunicate request_size=10 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 0D 02 02 05 54 16 64 A8 C0 [16:09:20]Write to MH i2c: E2 0D 00 6F 42 80 0D 02 02 05 00 54 16 64 A8 C0 00 00 6B [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 03 00 6F 42 00 90 00 25 [16:09:20]RAPDU: 90 00 [16:09:20]wFMCommunicate OK [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 0D 03 02 [16:09:20]Write to MH i2c: E2 08 00 70 42 80 0D 03 02 00 00 00 00 2D [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 0B 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 0B 00 70 42 00 FB 96 31 B4 D6 8E AB 32 90 00 E5 [16:09:20]RAPDU: FB 96 31 B4 D6 8E AB 32 90 00 [16:09:20]wFMCommunicate OK [16:09:20]SAM_PROTO_SignData done [16:09:20]FM_MakeSignedData done [16:09:20]CreateOFDProtocolMessage [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 11 00 00 [16:09:20]Write to MH i2c: E2 08 00 71 42 80 11 00 00 00 00 00 00 2D [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 17 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 17 00 71 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [16:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:09:20]wFMCommunicate OK [16:09:20]CreateOFDProtocolMessage done [16:09:20]OFDSenderStorePacket 112284 [16:09:20]StoreOFDPacket docnum=112284 [16:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 D8 07 01 F2 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 4B F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B6 01 00 35 04 06 00 D8 54 16 64 A8 C0 FB 96 31 B4 D6 8E AB 32 [16:09:20]CheckFolder [16:09:20]dirname=/storage/ofd_packets [16:09:20]CheckFolder done [16:09:20]ProducePacketName [16:09:20]name=ofd_packets/00112284 [16:09:20]NVStorageSaveData ofd_packets/00112284 [16:09:20]File name is /storage/ofd_packets/00112284 [16:09:20]Write 301 bytes [16:09:20]NVStorageSaveData done [16:09:20]OFDSenderStorePacket done [16:09:21]KKMCreateOFDPacket done [16:09:21]NVStorageSaveData kkm_last_timestamp [16:09:21]File name is /storage/kkm_last_timestamp [16:09:21]Write 4 bytes [16:09:21]NVStorageSaveData done [16:09:21]ExternCall_PrintAddStr [16:09:21]wPrintStart [16:09:21]Write to MH i2c: 01 00 00 72 42 B4 [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: 01 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: 01 07 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: 01 07 00 72 42 00 00 00 00 00 FF 0F C9 [16:09:21]RasterBufferAndPrint [16:09:21]line Счет N : (1)320961 [16:09:21]line ИНН: 02508201610067 [16:09:21]line Контрольно-Кассовый Чек [16:09:21]line ПРОДАЖА [16:09:21]line ТРК (МРК, ГНК) : 11 [16:09:21]line Товар: 2710124130 [16:09:21]line Аи-92-К-5 [16:09:21]line 4.520 * 66.40 [16:09:21]line = 300.13 [16:09:21]line НДС 12% НСП 1% [16:09:21]line > о реализуемом товаре [16:09:21]line ИТОГО: 300.13 [16:09:21]line НСП 1% : 2.66 [16:09:21]line НДС 12% : 31.87 [16:09:21]line Наличными: 0.00 [16:09:21]line Безнал.: 300.13 [16:09:21]line Место: АЗС № 65 "Партнер Нефть" [16:09:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:09:21]line СНО: Общий режим [16:09:21]line Чек 150 22.06.2024 16:09 [16:09:21]line Смена: 391 ФФД: 1.0 [16:09:21]line ЗНМ: 0300000198 [16:09:21]line РНМ: 0000000000092771 [16:09:21]line Версия ККМ: 001 [16:09:21]line Платежная система: О! деньги [16:09:21]line ФМ: 0000000000875083 [16:09:21]line ФД: 112284 [16:09:21]line ФПД: 237855664548032 [16:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T160947&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112284&fm=237855664548032&tin=02508201610067®Number=0000000000092771&sum=30013 [16:09:21]OFD Sender: Processing packet 112284 [packets to send 38, broken 37] [16:09:21]ProducePacketName [16:09:21]name=ofd_packets/00112284 [16:09:21]OFD Sender: To server: pG, [16:09:21]CommunicateWithHost lk.salyk.kg:30040 [16:09:21]ConnectInit lk.salyk.kg [16:09:21]written 0, free lines is 4095 [16:09:21]Connected sock=10 [16:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 D8 07 01 F2 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 4B F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B6 01 00 35 04 06 00 D8 54 16 64 A8 C0 FB 96 31 B4 D6 8E AB 32 [16:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 F7 47 00 F1 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B6 01 00 F4 03 04 00 53 8E 76 66 B6 04 01 00 00 63 12 50 FF 7F C3 CB 32 [16:09:21]CommunicateWithHost err = 0 [16:09:21]CheckOFDResponse [16:09:21]1017 (14) - 77093643461234 [16:09:21]1041 (16) - 0000000000875083 [16:09:21]1040 (4) - 112284 [16:09:21]1012 (4) - 22.06.2024 08:41 [16:09:21]1206 (1) - 0 [16:09:21]OFD Sender: Remove packet 112284 [16:09:21]ProducePacketName [16:09:21]name=ofd_packets/00112284 [16:09:21]NVStorageDeleteData [16:09:21]Write to MH i2c: 01 00 00 9C 42 DE [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: 01 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: 01 07 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: 01 07 00 9C 42 00 00 00 00 00 F9 0C EA [16:09:21]RasterBufferAndPrint [16:09:21]line [16:09:21]line [16:09:21]line [16:09:21]line [16:09:21]line [16:09:21]written 0, free lines is 3330 [16:09:21]MH_Cut [16:09:21]Write to MH i2c: D1 01 00 A3 42 01 B7 [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: D1 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: D1 01 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: D1 01 00 A3 42 00 B6 [16:09:21]Write to MH i2c: 01 00 00 A4 42 E6 [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:22]OFD Sender: No OFD packet to send [16:09:22]*** Cut start [16:09:22]*** Partial cut [16:09:22]*** CUTSNS_PIN = 1 [16:09:22]*** CUTSNS_PIN = 0 [16:09:22]*** Brake cut motor [16:09:23]Read from MH i2c: 01 [16:09:23]MH_I2C_Read... [16:09:23]*** Stop cut motor [16:09:23]*** Cut end [16:09:23]Read from MH i2c: 01 07 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 A4 42 00 00 00 00 00 FF 0F FB [16:09:23]process_action close_receipt done [16:09:23]requested_data is exist [16:09:23]produce_requested_data [16:09:23]requested_item fm.sn is exist - process it [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 11 00 00 [16:09:23]Write to MH i2c: E2 08 00 A5 42 80 11 00 00 00 00 00 00 61 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 17 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 17 00 A5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [16:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:09:23]wFMCommunicate OK [16:09:23]requested_item fd.num is exist - process it [16:09:23]SAM_PROTO_GetFieldsCounters [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 13 00 00 [16:09:23]Write to MH i2c: E2 08 00 A6 42 80 13 00 00 00 00 00 00 64 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 62 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 62 00 A6 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [16:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:23]wFMCommunicate OK [16:09:23]SAM_PROTO_GetFieldsCounters done [16:09:23]requested_item shift.num is exist - process it [16:09:23]requested_item shift.opened is exist - process it [16:09:23]req_shift_opened [16:09:23]FM_GetShiftState [16:09:23]SAM_PROTO_GetShiftState [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 13 01 00 [16:09:23]Write to MH i2c: E2 08 00 A7 42 80 13 01 00 00 00 00 00 66 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 0E 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 0E 00 A7 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9B [16:09:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:09:23]wFMCommunicate OK [16:09:23]SAM_PROTO_GetShiftState done [16:09:23]FM_GetShiftState done [16:09:23]req_shift_opened done [16:09:23]requested_item shift.open_date is exist - process it [16:09:23]req_shift_open_date [16:09:23]req_shift_open_date done [16:09:23]produce_requested_data done [16:09:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112284,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:09:23]process_action_free close_receipt [16:09:23]json_value_free [16:09:23]json_value_free done [16:09:23]process_json_proto returns [16:09:23]Send response to host [16:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112284,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:09:23]free response buf [16:09:23]execute_script done [16:09:23]execute_script returns [16:09:23]free content buf [16:09:23]Sock 7.Close socket [16:09:23]Sock 7.Thread stoped [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:47]accept exits with 9 [16:09:47]New connection [16:09:47]New thread 3066813796 created [16:09:47]Thread 3066957156 joined [16:09:47]Waiting for new connection... [16:09:47] Sock 9.Parse request [16:09:47]Sock 9.Check first char [16:09:47]Sock 9.First char is OK [16:09:47]request: POST /json_proto HTTP/1.0 [16:09:47]Method: POST [16:09:47]URL: /json_proto [16:09:47]Method is POST - this is cgi request [16:09:47]url: /json_proto [16:09:47]query_string will be loaded in cgi processing [16:09:47]execute_cgi json_proto POST (null) [16:09:47]execute_cgi path=json_proto method=POST [16:09:47]POST find Content-Length [16:09:47]Host: 172.17.59.68:8080 [16:09:47]Content-Length: 677 [16:09:47]Content-Type: application/json [16:09:47] [16:09:47]POST finish read [16:09:47]Found Content-Length = 677 [16:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320962", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:47]execute_script... [16: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)320962", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:47]POST & json_proto [16:09:47]process_json_proto [16:09:47]json parsed OK: [16:09:47]protocol is kg_v1.0 [16:09:47]action value=close_receipt [16:09:47]process_action close_receipt [16:09:47]cmd_close_receipt [16:09:47]MH_GetDate [16:09:47]Write to MH i2c: F0 00 00 A8 42 D9 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: F0 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: F0 09 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: F0 09 00 A8 42 00 67 F7 76 66 BC EC 60 65 89 [16:09:47]GetLastDocTimeStamp 1719072587 [16:09:47]current date 1719072615 [16:09:47]FM_GetShiftState [16:09:47]SAM_PROTO_GetShiftState [16:09:47]wFMCommunicate request_size=4 [16:09:47]MH_SAM_APDU [16:09:47]CAPDU: 80 13 01 00 [16:09:47]Write to MH i2c: E2 08 00 A9 42 80 13 01 00 00 00 00 00 68 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:47]Read from MH i2c: E2 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 0E 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 0E 00 A9 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9D [16:09:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:09:47]wFMCommunicate OK [16:09:47]SAM_PROTO_GetShiftState done [16:09:47]FM_GetShiftState done [16:09:47]opened in 1719020067 [16:09:47]opened+sec_in_day 1719106467 [16:09:47]quantity*price = 50065 [16:09:47]sum+1 = 50067 [16:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 151 22.06.2024 16:10 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112285 ФПД: 230664881842660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161015&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112285&fm=230664881842660&tin=02508201610067®Number=0000000000092771&sum=50000 [16:09:48]StoreToDocumentArchive [16:09:48]shift 391 fd 112285 [16:09:48]save to /storage/0391/doc_00112285 [16:09:48]save last doc name /storage/0391/doc_00112285 to /storage/kkm_last_doc_name [16:09:48]save OK [16:09:48]Clear old archive folders... [16:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:48]tlvbuf is B6DA9A80 [16:09:48]SAM_PROTO_ClearQueue [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 09 00 00 [16:09:48]Write to MH i2c: E2 08 00 B6 42 80 09 00 00 00 00 00 00 6A [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 B6 42 00 90 00 6C [16:09:48]RAPDU: 90 00 [16:09:48]wFMCommunicate OK [16:09:48]SAM_PROTO_ClearQueue done [16:09:48]KKMCreateOFDPacket [16:09:48]OFDProtocolAddRootSTLVToBuf [16:09:48]FM_MakeSignedData [16:09:48]FM_MakeSignedData [16:09:48]SAM_PROTO_SignData [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 0D 01 02 [16:09:48]Write to MH i2c: E2 08 00 B7 42 80 0D 01 02 00 00 00 00 72 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 B7 42 00 90 00 6D [16:09:48]RAPDU: 90 00 [16:09:48]wFMCommunicate OK [16:09:48]wFMCommunicate request_size=255 [16:09:48]MH_SAM_APDU [16:09: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 67 F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B6 01 00 35 04 06 00 D1 [16:09:48]Write to MH i2c: E2 02 01 B8 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 67 F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B6 01 00 35 04 06 00 D1 00 00 A4 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 B8 42 00 90 00 6E [16:09:48]RAPDU: 90 00 [16:09:48]wFMCommunicate OK [16:09:48]wFMCommunicate request_size=10 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 0D 02 02 05 C9 DA 58 29 E4 [16:09:48]Write to MH i2c: E2 0D 00 B9 42 80 0D 02 02 05 00 C9 DA 58 29 E4 00 00 87 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 03 00 B9 42 00 90 00 6F [16:09:48]RAPDU: 90 00 [16:09:48]wFMCommunicate OK [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 0D 03 02 [16:09:48]Write to MH i2c: E2 08 00 BA 42 80 0D 03 02 00 00 00 00 77 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 0B 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 0B 00 BA 42 00 14 A8 62 BD 5A E1 F5 C9 90 00 4C [16:09:48]RAPDU: 14 A8 62 BD 5A E1 F5 C9 90 00 [16:09:48]wFMCommunicate OK [16:09:48]SAM_PROTO_SignData done [16:09:48]FM_MakeSignedData done [16:09:48]CreateOFDProtocolMessage [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 11 00 00 [16:09:48]Write to MH i2c: E2 08 00 BB 42 80 11 00 00 00 00 00 00 77 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 17 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 17 00 BB 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [16:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:09:48]wFMCommunicate OK [16:09:48]CreateOFDProtocolMessage done [16:09:48]OFDSenderStorePacket 112285 [16:09:48]StoreOFDPacket docnum=112285 [16:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 CF 07 01 7C 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 67 F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B6 01 00 35 04 06 00 D1 C9 DA 58 29 E4 14 A8 62 BD 5A E1 F5 C9 [16:09:48]CheckFolder [16:09:48]dirname=/storage/ofd_packets [16:09:48]CheckFolder done [16:09:48]ProducePacketName [16:09:48]name=ofd_packets/00112285 [16:09:48]NVStorageSaveData ofd_packets/00112285 [16:09:48]File name is /storage/ofd_packets/00112285 [16:09:48]Write 301 bytes [16:09:48]NVStorageSaveData done [16:09:48]OFDSenderStorePacket done [16:09:48]KKMCreateOFDPacket done [16:09:48]NVStorageSaveData kkm_last_timestamp [16:09:48]File name is /storage/kkm_last_timestamp [16:09:48]Write 4 bytes [16:09:48]NVStorageSaveData done [16:09:48]ExternCall_PrintAddStr [16:09:48]wPrintStart [16:09:48]Write to MH i2c: 01 00 00 BC 42 FE [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: 01 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: 01 07 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: 01 07 00 BC 42 00 00 00 00 00 FF 0F 13 [16:09:48]RasterBufferAndPrint [16:09:48]line Счет N : (1)320962 [16:09:48]line ИНН: 02508201610067 [16:09:48]line Контрольно-Кассовый Чек [16:09:48]line ПРОДАЖА [16:09:48]line ТРК (МРК, ГНК) : 11 [16:09:48]line Товар: 2710124130 [16:09:48]line Аи-92-К-5 [16:09:48]line 7.540 * 66.40 [16:09:48]line = 500.66 [16:09:48]line НДС 12% НСП 1% [16:09:48]line > о реализуемом товаре [16:09:48]line ОКРУГЛЕНИЕ: -0.66 [16:09:48]line ИТОГО: 500.00 [16:09:48]line Внесено: 500.00 [16:09:48]line СДАЧА: 0.00 [16:09:48]line НСП 1% : 4.43 [16:09:48]line НДС 12% : 53.17 [16:09:48]line Наличными: 500.00 [16:09:48]line Безнал.: 0.00 [16:09:48]line Место: АЗС № 65 "Партнер Нефть" [16:09:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:09:48]line СНО: Общий режим [16:09:48]line Чек 151 22.06.2024 16:10 [16:09:48]line Смена: 391 ФФД: 1.0 [16:09:48]line ЗНМ: 0300000198 [16:09:48]line РНМ: 0000000000092771 [16:09:48]line Версия ККМ: 001 [16:09:48]line ФМ: 0000000000875083 [16:09:48]line ФД: 112285 [16:09:48]line ФПД: 230664881842660 [16:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161015&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112285&fm=230664881842660&tin=02508201610067®Number=0000000000092771&sum=50000 [16:09:49]OFD Sender: Processing packet 112285 [packets to send 38, broken 37] [16:09:49]ProducePacketName [16:09:49]name=ofd_packets/00112285 [16:09:49]OFD Sender: To server: pG, [16:09:49]CommunicateWithHost lk.salyk.kg:30040 [16:09:49]ConnectInit lk.salyk.kg [16:09:49]written 0, free lines is 4095 [16:09:49]Connected sock=10 [16:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 CF 07 01 7C 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 67 F7 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B6 01 00 35 04 06 00 D1 C9 DA 58 29 E4 14 A8 62 BD 5A E1 F5 C9 [16:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 21 47 00 64 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B6 01 00 F4 03 04 00 6E 8E 76 66 B6 04 01 00 00 44 D5 AB 5E 46 11 41 39 [16:09:49]CommunicateWithHost err = 0 [16:09:49]CheckOFDResponse [16:09:49]1017 (14) - 77093643461234 [16:09:49]1041 (16) - 0000000000875083 [16:09:49]1040 (4) - 112285 [16:09:49]1012 (4) - 22.06.2024 08:42 [16:09:49]1206 (1) - 0 [16:09:49]OFD Sender: Remove packet 112285 [16:09:49]ProducePacketName [16:09:49]name=ofd_packets/00112285 [16:09:49]NVStorageDeleteData [16:09:49]Write to MH i2c: 01 00 00 E7 42 29 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 E7 42 00 00 00 00 00 EE 0C 2A [16:09:49]RasterBufferAndPrint [16:09:49]line [16:09:49]line [16:09:49]line [16:09:49]line [16:09:49]line [16:09:49]written 0, free lines is 3316 [16:09:49]MH_Cut [16:09:49]Write to MH i2c: D1 01 00 EE 42 01 02 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: D1 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: D1 01 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: D1 01 00 EE 42 00 01 [16:09:49]Write to MH i2c: 01 00 00 EF 42 31 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:50]OFD Sender: No OFD packet to send [16:09:50]*** Cut start [16:09:50]*** Partial cut [16:09:50]*** CUTSNS_PIN = 1 [16:09:50]*** CUTSNS_PIN = 0 [16:09:50]*** Brake cut motor [16:09:51]Read from MH i2c: 01 [16:09:51]MH_I2C_Read... [16:09:51]*** Stop cut motor [16:09:51]*** Cut end [16:09:51]Read from MH i2c: 01 07 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: 01 07 00 EF 42 00 00 00 00 00 FF 0F 46 [16:09:51]process_action close_receipt done [16:09:51]requested_data is exist [16:09:51]produce_requested_data [16:09:51]requested_item fm.sn is exist - process it [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 11 00 00 [16:09:51]Write to MH i2c: E2 08 00 F0 42 80 11 00 00 00 00 00 00 AC [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 17 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 17 00 F0 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [16:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:09:51]wFMCommunicate OK [16:09:51]requested_item fd.num is exist - process it [16:09:51]SAM_PROTO_GetFieldsCounters [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 13 00 00 [16:09:51]Write to MH i2c: E2 08 00 F1 42 80 13 00 00 00 00 00 00 AF [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 62 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 62 00 F1 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [16:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:51]wFMCommunicate OK [16:09:51]SAM_PROTO_GetFieldsCounters done [16:09:51]requested_item shift.num is exist - process it [16:09:51]requested_item shift.opened is exist - process it [16:09:51]req_shift_opened [16:09:51]FM_GetShiftState [16:09:51]SAM_PROTO_GetShiftState [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 13 01 00 [16:09:51]Write to MH i2c: E2 08 00 F2 42 80 13 01 00 00 00 00 00 B1 [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 0E 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 0E 00 F2 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E6 [16:09:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:09:51]wFMCommunicate OK [16:09:51]SAM_PROTO_GetShiftState done [16:09:51]FM_GetShiftState done [16:09:51]req_shift_opened done [16:09:51]requested_item shift.open_date is exist - process it [16:09:51]req_shift_open_date [16:09:51]req_shift_open_date done [16:09:51]produce_requested_data done [16:09:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112285,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:09:51]process_action_free close_receipt [16:09:51]json_value_free [16:09:51]json_value_free done [16:09:51]process_json_proto returns [16:09:51]Send response to host [16:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112285,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:09:51]free response buf [16:09:51]execute_script done [16:09:51]execute_script returns [16:09:51]free content buf [16:09:51]Sock 9.Close socket [16:09:51]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:06]accept exits with 7 [16:17:06]New connection [16:17:06]New thread 3066957156 created [16:17:06]Thread 3066813796 joined [16:17:06]Waiting for new connection... [16:17:06] Sock 7.Parse request [16:17:06]Sock 7.Check first char [16:17:06]Sock 7.First char is OK [16:17:06]request: POST /json_proto HTTP/1.0 [16:17:06]Method: POST [16:17:06]URL: /json_proto [16:17:06]Method is POST - this is cgi request [16:17:06]url: /json_proto [16:17:06]query_string will be loaded in cgi processing [16:17:06]execute_cgi json_proto POST (null) [16:17:06]execute_cgi path=json_proto method=POST [16:17:06]POST find Content-Length [16:17:06]Host: 172.17.59.68:8080 [16:17:06]Content-Length: 677 [16:17:06]Content-Type: application/json [16:17:06] [16:17:06]POST finish read [16:17:06]Found Content-Length = 677 [16:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320963", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:06]execute_script... [16:17: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)320963", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:06]POST & json_proto [16:17:06]process_json_proto [16:17:06]json parsed OK: [16:17:06]protocol is kg_v1.0 [16:17:06]action value=close_receipt [16:17:06]process_action close_receipt [16:17:06]cmd_close_receipt [16:17:06]MH_GetDate [16:17:06]Write to MH i2c: F0 00 00 F3 42 24 [16:17:06]Write i2c OK [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: F0 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: F0 09 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: F0 09 00 F3 42 00 1E F9 76 66 BC EC 60 65 8D [16:17:06]GetLastDocTimeStamp 1719072615 [16:17:06]current date 1719073054 [16:17:06]FM_GetShiftState [16:17:06]SAM_PROTO_GetShiftState [16:17:06]wFMCommunicate request_size=4 [16:17:06]MH_SAM_APDU [16:17:06]CAPDU: 80 13 01 00 [16:17:06]Write to MH i2c: E2 08 00 F4 42 80 13 01 00 00 00 00 00 B3 [16:17:06]Write i2c OK [16:17:06]MH_I2C_Read... [16:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:06]Read from MH i2c: E2 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 0E 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 0E 00 F4 42 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E8 [16:17:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:17:06]wFMCommunicate OK [16:17:06]SAM_PROTO_GetShiftState done [16:17:06]FM_GetShiftState done [16:17:06]opened in 1719020067 [16:17:06]opened+sec_in_day 1719106467 [16:17:06]quantity*price = 50065 [16:17:06]sum+1 = 50067 [16:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 152 22.06.2024 16:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112286 ФПД: 227534901465019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161734&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112286&fm=227534901465019&tin=02508201610067®Number=0000000000092771&sum=50000 [16:17:07]StoreToDocumentArchive [16:17:07]shift 391 fd 112286 [16:17:07]save to /storage/0391/doc_00112286 [16:17:07]save last doc name /storage/0391/doc_00112286 to /storage/kkm_last_doc_name [16:17:07]save OK [16:17:07]Clear old archive folders... [16:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:07]tlvbuf is 011EBA50 [16:17:07]SAM_PROTO_ClearQueue [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 09 00 00 [16:17:07]Write to MH i2c: E2 08 00 01 43 80 09 00 00 00 00 00 00 B6 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 01 43 00 90 00 B8 [16:17:07]RAPDU: 90 00 [16:17:07]wFMCommunicate OK [16:17:07]SAM_PROTO_ClearQueue done [16:17:07]KKMCreateOFDPacket [16:17:07]OFDProtocolAddRootSTLVToBuf [16:17:07]FM_MakeSignedData [16:17:07]FM_MakeSignedData [16:17:07]SAM_PROTO_SignData [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 0D 01 02 [16:17:07]Write to MH i2c: E2 08 00 02 43 80 0D 01 02 00 00 00 00 BE [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 02 43 00 90 00 B9 [16:17:07]RAPDU: 90 00 [16:17:07]wFMCommunicate OK [16:17:07]wFMCommunicate request_size=255 [16:17:07]MH_SAM_APDU [16:17: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1E F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B6 01 00 35 04 06 00 CE [16:17:07]Write to MH i2c: E2 02 01 03 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1E F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B6 01 00 35 04 06 00 CE 00 00 A8 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 03 43 00 90 00 BA [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=10 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 02 02 05 F1 18 F9 CF BB [16:17:08]Write to MH i2c: E2 0D 00 04 43 80 0D 02 02 05 00 F1 18 F9 CF BB 00 00 57 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 04 43 00 90 00 BB [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 03 02 [16:17:08]Write to MH i2c: E2 08 00 05 43 80 0D 03 02 00 00 00 00 C3 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 05 43 00 C7 7A D0 F8 7C 53 08 49 90 00 ED [16:17:08]RAPDU: C7 7A D0 F8 7C 53 08 49 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_SignData done [16:17:08]FM_MakeSignedData done [16:17:08]CreateOFDProtocolMessage [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 11 00 00 [16:17:08]Write to MH i2c: E2 08 00 06 43 80 11 00 00 00 00 00 00 C3 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 06 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [16:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:17:08]wFMCommunicate OK [16:17:08]CreateOFDProtocolMessage done [16:17:08]OFDSenderStorePacket 112286 [16:17:08]StoreOFDPacket docnum=112286 [16:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 23 07 01 EC 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1E F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B6 01 00 35 04 06 00 CE F1 18 F9 CF BB C7 7A D0 F8 7C 53 08 49 [16:17:08]CheckFolder [16:17:08]dirname=/storage/ofd_packets [16:17:08]CheckFolder done [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00112286 [16:17:08]NVStorageSaveData ofd_packets/00112286 [16:17:08]File name is /storage/ofd_packets/00112286 [16:17:08]Write 301 bytes [16:17:08]NVStorageSaveData done [16:17:08]OFDSenderStorePacket done [16:17:08]KKMCreateOFDPacket done [16:17:08]NVStorageSaveData kkm_last_timestamp [16:17:08]File name is /storage/kkm_last_timestamp [16:17:08]Write 4 bytes [16:17:08]NVStorageSaveData done [16:17:08]ExternCall_PrintAddStr [16:17:08]wPrintStart [16:17:08]Write to MH i2c: 01 00 00 07 43 4A [16:17:08]OFD Sender: Processing packet 112286 [packets to send 38, broken 37] [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00112286 [16:17:08]OFD Sender: To server: pG, [16:17:08]CommunicateWithHost lk.salyk.kg:30040 [16:17:08]ConnectInit lk.salyk.kg [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 07 43 00 00 00 00 00 FF 0F 5F [16:17:08]RasterBufferAndPrint [16:17:08]line Счет N : (1)320963 [16:17:08]line ИНН: 02508201610067 [16:17:08]line Контрольно-Кассовый Чек [16:17:08]line ПРОДАЖА [16:17:08]line ТРК (МРК, ГНК) : 11 [16:17:08]line Товар: 2710124130 [16:17:08]line Аи-92-К-5 [16:17:08]line 7.540 * 66.40 [16:17:08]line = 500.66 [16:17:08]line НДС 12% НСП 1% [16:17:08]line > о реализуемом товаре [16:17:08]line ОКРУГЛЕНИЕ: -0.66 [16:17:08]line ИТОГО: 500.00 [16:17:08]line Внесено: 500.00 [16:17:08]line СДАЧА: 0.00 [16:17:08]line НСП 1% : 4.43 [16:17:08]line НДС 12% : 53.17 [16:17:08]line Наличными: 500.00 [16:17:08]line Безнал.: 0.00 [16:17:08]line Место: АЗС № 65 "Партнер Нефть" [16:17:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:17:08]line СНО: Общий режим [16:17:08]line Чек 152 22.06.2024 16:17 [16:17:08]line Смена: 391 ФФД: 1.0 [16:17:08]line ЗНМ: 0300000198 [16:17:08]line РНМ: 0000000000092771 [16:17:08]line Версия ККМ: 001 [16:17:08]line ФМ: 0000000000875083 [16:17:08]line ФД: 112286 [16:17:08]line ФПД: 227534901465019 [16:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161734&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112286&fm=227534901465019&tin=02508201610067®Number=0000000000092771&sum=50000 [16:17:08]Connected sock=10 [16:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 23 07 01 EC 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1E F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B6 01 00 35 04 06 00 CE F1 18 F9 CF BB C7 7A D0 F8 7C 53 08 49 [16:17:08]written 0, free lines is 4095 [16:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E4 3B 47 00 76 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B6 01 00 F4 03 04 00 26 90 76 66 B6 04 01 00 00 CD D6 F2 59 D7 8C B9 F8 [16:17:08]CommunicateWithHost err = 0 [16:17:08]CheckOFDResponse [16:17:08]1017 (14) - 77093643461234 [16:17:08]1041 (16) - 0000000000875083 [16:17:08]1040 (4) - 112286 [16:17:08]1012 (4) - 22.06.2024 08:49 [16:17:08]1206 (1) - 0 [16:17:08]OFD Sender: Remove packet 112286 [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00112286 [16:17:08]NVStorageDeleteData [16:17:09]Write to MH i2c: 01 00 00 32 43 75 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 32 43 00 00 00 00 00 DA 0C 62 [16:17:09]RasterBufferAndPrint [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]written 0, free lines is 3298 [16:17:09]MH_Cut [16:17:09]Write to MH i2c: D1 01 00 39 43 01 4E [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 01 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 01 00 39 43 00 4D [16:17:09]Write to MH i2c: 01 00 00 3A 43 7D [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]OFD Sender: No OFD packet to send [16:17:09]*** Cut start [16:17:09]*** Partial cut [16:17:09]*** CUTSNS_PIN = 1 [16:17:09]*** CUTSNS_PIN = 0 [16:17:09]*** Brake cut motor [16:17:10]Read from MH i2c: 01 [16:17:10]MH_I2C_Read... [16:17:10]*** Stop cut motor [16:17:10]*** Cut end [16:17:10]Read from MH i2c: 01 07 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: 01 07 00 3A 43 00 00 00 00 00 FF 0F 92 [16:17:10]process_action close_receipt done [16:17:10]requested_data is exist [16:17:10]produce_requested_data [16:17:10]requested_item fm.sn is exist - process it [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 11 00 00 [16:17:10]Write to MH i2c: E2 08 00 3B 43 80 11 00 00 00 00 00 00 F8 [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 17 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 17 00 3B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4A [16:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:17:10]wFMCommunicate OK [16:17:10]requested_item fd.num is exist - process it [16:17:10]SAM_PROTO_GetFieldsCounters [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 13 00 00 [16:17:10]Write to MH i2c: E2 08 00 3C 43 80 13 00 00 00 00 00 00 FB [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 62 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 62 00 3C 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:10]wFMCommunicate OK [16:17:10]SAM_PROTO_GetFieldsCounters done [16:17:10]requested_item shift.num is exist - process it [16:17:10]requested_item shift.opened is exist - process it [16:17:10]req_shift_opened [16:17:10]FM_GetShiftState [16:17:10]SAM_PROTO_GetShiftState [16:17:10]wFMCommunicate request_size=4 [16:17:10]MH_SAM_APDU [16:17:10]CAPDU: 80 13 01 00 [16:17:10]Write to MH i2c: E2 08 00 3D 43 80 13 01 00 00 00 00 00 FD [16:17:10]Write i2c OK [16:17:10]MH_I2C_Read... [16:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:10]Read from MH i2c: E2 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 0E 00 [16:17:10]MH_I2C_Read... [16:17:10]Read from MH i2c: E2 0E 00 3D 43 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 32 [16:17:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:17:10]wFMCommunicate OK [16:17:10]SAM_PROTO_GetShiftState done [16:17:10]FM_GetShiftState done [16:17:10]req_shift_opened done [16:17:10]requested_item shift.open_date is exist - process it [16:17:10]req_shift_open_date [16:17:10]req_shift_open_date done [16:17:10]produce_requested_data done [16:17:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112286,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:17:10]process_action_free close_receipt [16:17:10]json_value_free [16:17:10]json_value_free done [16:17:10]process_json_proto returns [16:17:10]Send response to host [16:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112286,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:17:10]free response buf [16:17:10]execute_script done [16:17:10]execute_script returns [16:17:10]free content buf [16:17:10]Sock 7.Close socket [16:17:10]Sock 7.Thread stoped [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [16:18:48]New connection [16:18:48]New thread 3066813796 created [16:18:48]Thread 3066957156 joined [16:18:48]Waiting for new connection... [16:18:48] Sock 9.Parse request [16:18:48]Sock 9.Check first char [16:18:48]Sock 9.First char is OK [16:18:48]request: POST /json_proto HTTP/1.0 [16:18:48]Method: POST [16:18:48]URL: /json_proto [16:18:48]Method is POST - this is cgi request [16:18:48]url: /json_proto [16:18:48]query_string will be loaded in cgi processing [16:18:48]execute_cgi json_proto POST (null) [16:18:48]execute_cgi path=json_proto method=POST [16:18:48]POST find Content-Length [16:18:48]Host: 172.17.59.68:8080 [16:18:48]Content-Length: 682 [16:18:48]Content-Type: application/json [16:18:48] [16:18:48]POST finish read [16:18:48]Found Content-Length = 682 [16:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320964", "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.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [16:18:48]execute_script... [16:18: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)320964", "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.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [16:18:48]POST & json_proto [16:18:48]process_json_proto [16:18:48]json parsed OK: [16:18:48]protocol is kg_v1.0 [16:18:48]action value=close_receipt [16:18:48]process_action close_receipt [16:18:48]cmd_close_receipt [16:18:48]MH_GetDate [16:18:48]Write to MH i2c: F0 00 00 3E 43 70 [16:18:48]Write i2c OK [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: F0 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: F0 09 00 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: F0 09 00 3E 43 00 84 F9 76 66 BC EC 60 65 3F [16:18:48]GetLastDocTimeStamp 1719073054 [16:18:48]current date 1719073156 [16:18:48]FM_GetShiftState [16:18:48]SAM_PROTO_GetShiftState [16:18:48]wFMCommunicate request_size=4 [16:18:48]MH_SAM_APDU [16:18:48]CAPDU: 80 13 01 00 [16:18:48]Write to MH i2c: E2 08 00 3F 43 80 13 01 00 00 00 00 00 FF [16:18:48]Write i2c OK [16:18:48]MH_I2C_Read... [16:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:48]Read from MH i2c: E2 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 0E 00 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 0E 00 3F 43 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 34 [16:18:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:18:48]wFMCommunicate OK [16:18:48]SAM_PROTO_GetShiftState done [16:18:48]FM_GetShiftState done [16:18:48]opened in 1719020067 [16:18:48]opened+sec_in_day 1719106467 [16:18:48]quantity*price = 150064 [16:18:48]sum+1 = 150065 [16:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 153 22.06.2024 16:19 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112287 ФПД: 15656970564222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161916&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112287&fm=15656970564222&tin=02508201610067®Number=0000000000092771&sum=150000 [16:18:49]StoreToDocumentArchive [16:18:49]shift 391 fd 112287 [16:18:49]save to /storage/0391/doc_00112287 [16:18:49]save last doc name /storage/0391/doc_00112287 to /storage/kkm_last_doc_name [16:18:49]save OK [16:18:49]Clear old archive folders... [16:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:49]tlvbuf is B6F594F0 [16:18:49]SAM_PROTO_ClearQueue [16:18:49]wFMCommunicate request_size=4 [16:18:49]MH_SAM_APDU [16:18:49]CAPDU: 80 09 00 00 [16:18:49]Write to MH i2c: E2 08 00 4C 43 80 09 00 00 00 00 00 00 01 [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:49]Read from MH i2c: E2 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 4C 43 00 90 00 03 [16:18:49]RAPDU: 90 00 [16:18:49]wFMCommunicate OK [16:18:49]SAM_PROTO_ClearQueue done [16:18:49]KKMCreateOFDPacket [16:18:49]OFDProtocolAddRootSTLVToBuf [16:18:49]FM_MakeSignedData [16:18:49]FM_MakeSignedData [16:18:49]SAM_PROTO_SignData [16:18:49]wFMCommunicate request_size=4 [16:18:49]MH_SAM_APDU [16:18:49]CAPDU: 80 0D 01 02 [16:18:49]Write to MH i2c: E2 08 00 4D 43 80 0D 01 02 00 00 00 00 09 [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]OFD Sender: No OFD packet to send [16:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:49]Read from MH i2c: E2 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 4D 43 00 90 00 04 [16:18:49]RAPDU: 90 00 [16:18:49]wFMCommunicate OK [16:18:49]wFMCommunicate request_size=255 [16:18:49]MH_SAM_APDU [16:18: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 99 00 00 00 F4 03 04 00 84 F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B6 01 00 35 04 06 00 0E [16:18:49]Write to MH i2c: E2 02 01 4E 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 99 00 00 00 F4 03 04 00 84 F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B6 01 00 35 04 06 00 0E 00 00 3F [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:49]Read from MH i2c: E2 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 4E 43 00 90 00 05 [16:18:49]RAPDU: 90 00 [16:18:49]wFMCommunicate OK [16:18:49]wFMCommunicate request_size=10 [16:18:49]MH_SAM_APDU [16:18:49]CAPDU: 80 0D 02 02 05 3D 6C 2B 32 7E [16:18:49]Write to MH i2c: E2 0D 00 4F 43 80 0D 02 02 05 00 3D 6C 2B 32 7E 00 00 9A [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:49]Read from MH i2c: E2 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 03 00 4F 43 00 90 00 06 [16:18:49]RAPDU: 90 00 [16:18:49]wFMCommunicate OK [16:18:49]wFMCommunicate request_size=4 [16:18:49]MH_SAM_APDU [16:18:49]CAPDU: 80 0D 03 02 [16:18:49]Write to MH i2c: E2 08 00 50 43 80 0D 03 02 00 00 00 00 0E [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:49]Read from MH i2c: E2 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 0B 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 0B 00 50 43 00 43 8A 66 10 10 1E 3D CE 90 00 8B [16:18:49]RAPDU: 43 8A 66 10 10 1E 3D CE 90 00 [16:18:49]wFMCommunicate OK [16:18:49]SAM_PROTO_SignData done [16:18:49]FM_MakeSignedData done [16:18:49]CreateOFDProtocolMessage [16:18:49]wFMCommunicate request_size=4 [16:18:49]MH_SAM_APDU [16:18:49]CAPDU: 80 11 00 00 [16:18:49]Write to MH i2c: E2 08 00 51 43 80 11 00 00 00 00 00 00 0E [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:49]Read from MH i2c: E2 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 17 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: E2 17 00 51 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 60 [16:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:18:49]wFMCommunicate OK [16:18:49]CreateOFDProtocolMessage done [16:18:49]OFDSenderStorePacket 112287 [16:18:49]StoreOFDPacket docnum=112287 [16:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 38 07 01 F4 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 99 00 00 00 F4 03 04 00 84 F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B6 01 00 35 04 06 00 0E 3D 6C 2B 32 7E 43 8A 66 10 10 1E 3D CE [16:18:49]CheckFolder [16:18:49]dirname=/storage/ofd_packets [16:18:49]CheckFolder done [16:18:49]ProducePacketName [16:18:49]name=ofd_packets/00112287 [16:18:49]NVStorageSaveData ofd_packets/00112287 [16:18:49]File name is /storage/ofd_packets/00112287 [16:18:49]Write 301 bytes [16:18:49]NVStorageSaveData done [16:18:49]OFDSenderStorePacket done [16:18:49]KKMCreateOFDPacket done [16:18:49]NVStorageSaveData kkm_last_timestamp [16:18:49]File name is /storage/kkm_last_timestamp [16:18:49]Write 4 bytes [16:18:49]NVStorageSaveData done [16:18:49]ExternCall_PrintAddStr [16:18:49]wPrintStart [16:18:49]Write to MH i2c: 01 00 00 52 43 95 [16:18:49]Write i2c OK [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: 01 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: 01 07 00 [16:18:49]MH_I2C_Read... [16:18:49]Read from MH i2c: 01 07 00 52 43 00 00 00 00 00 FF 0F AA [16:18:49]RasterBufferAndPrint [16:18:49]line Счет N : (1)320964 [16:18:49]line ИНН: 02508201610067 [16:18:49]line Контрольно-Кассовый Чек [16:18:49]line ПРОДАЖА [16:18:49]line ТРК (МРК, ГНК) : 11 [16:18:49]line Товар: 2710124130 [16:18:49]line Аи-92-К-5 [16:18:49]line 22.600 * 66.40 [16:18:49]line = 1500.64 [16:18:49]line НДС 12% НСП 1% [16:18:49]line > о реализуемом товаре [16:18:49]line ОКРУГЛЕНИЕ: -0.64 [16:18:49]line ИТОГО: 1500.00 [16:18:49]line Внесено: 1500.00 [16:18:49]line СДАЧА: 0.00 [16:18:49]line НСП 1% : 13.28 [16:18:49]line НДС 12% : 159.36 [16:18:49]line Наличными: 1500.00 [16:18:49]line Безнал.: 0.00 [16:18:49]line Место: АЗС № 65 "Партнер Нефть" [16:18:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:18:49]line СНО: Общий режим [16:18:49]line Чек 153 22.06.2024 16:19 [16:18:49]line Смена: 391 ФФД: 1.0 [16:18:49]line ЗНМ: 0300000198 [16:18:49]line РНМ: 0000000000092771 [16:18:49]line Версия ККМ: 001 [16:18:49]line ФМ: 0000000000875083 [16:18:49]line ФД: 112287 [16:18:49]line ФПД: 15656970564222 [16:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T161916&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112287&fm=15656970564222&tin=02508201610067®Number=0000000000092771&sum=150000 [16:18:50]OFD Sender: Processing packet 112287 [packets to send 38, broken 37] [16:18:50]ProducePacketName [16:18:50]name=ofd_packets/00112287 [16:18:50]OFD Sender: To server: pG, [16:18:50]CommunicateWithHost lk.salyk.kg:30040 [16:18:50]ConnectInit lk.salyk.kg [16:18:50]written 0, free lines is 4095 [16:18:50]Connected sock=10 [16:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 38 07 01 F4 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 99 00 00 00 F4 03 04 00 84 F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B6 01 00 35 04 06 00 0E 3D 6C 2B 32 7E 43 8A 66 10 10 1E 3D CE [16:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F D3 47 00 B2 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B6 01 00 F4 03 04 00 8B 90 76 66 B6 04 01 00 00 72 1B 8E 33 C8 79 6E EF [16:18:50]CommunicateWithHost err = 0 [16:18:50]CheckOFDResponse [16:18:50]1017 (14) - 77093643461234 [16:18:50]1041 (16) - 0000000000875083 [16:18:50]1040 (4) - 112287 [16:18:50]1012 (4) - 22.06.2024 08:51 [16:18:50]1206 (1) - 0 [16:18:50]OFD Sender: Remove packet 112287 [16:18:50]ProducePacketName [16:18:50]name=ofd_packets/00112287 [16:18:50]NVStorageDeleteData [16:18:50]Write to MH i2c: 01 00 00 7D 43 C0 [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 7D 43 00 00 00 00 00 EB 0C BE [16:18:50]RasterBufferAndPrint [16:18:50]line [16:18:50]line [16:18:50]line [16:18:50]line [16:18:50]line [16:18:50]written 0, free lines is 3313 [16:18:50]MH_Cut [16:18:50]Write to MH i2c: D1 01 00 84 43 01 99 [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: D1 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: D1 01 00 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: D1 01 00 84 43 00 98 [16:18:50]Write to MH i2c: 01 00 00 85 43 C8 [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]OFD Sender: No OFD packet to send [16:18:51]*** Cut start [16:18:51]*** Partial cut [16:18:51]*** CUTSNS_PIN = 1 [16:18:51]*** CUTSNS_PIN = 0 [16:18:51]*** Brake cut motor [16:18:51]Read from MH i2c: 01 [16:18:51]MH_I2C_Read... [16:18:51]*** Stop cut motor [16:18:51]*** Cut end [16:18:51]Read from MH i2c: 01 07 00 [16:18:51]MH_I2C_Read... [16:18:51]Read from MH i2c: 01 07 00 85 43 00 00 00 00 00 FF 0F DD [16:18:51]process_action close_receipt done [16:18:51]requested_data is exist [16:18:51]produce_requested_data [16:18:51]requested_item fm.sn is exist - process it [16:18:51]wFMCommunicate request_size=4 [16:18:51]MH_SAM_APDU [16:18:51]CAPDU: 80 11 00 00 [16:18:51]Write to MH i2c: E2 08 00 86 43 80 11 00 00 00 00 00 00 43 [16:18:51]Write i2c OK [16:18:51]MH_I2C_Read... [16:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:51]Read from MH i2c: E2 [16:18:51]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 17 00 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 17 00 86 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [16:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:18:52]wFMCommunicate OK [16:18:52]requested_item fd.num is exist - process it [16:18:52]SAM_PROTO_GetFieldsCounters [16:18:52]wFMCommunicate request_size=4 [16:18:52]MH_SAM_APDU [16:18:52]CAPDU: 80 13 00 00 [16:18:52]Write to MH i2c: E2 08 00 87 43 80 13 00 00 00 00 00 00 46 [16:18:52]Write i2c OK [16:18:52]MH_I2C_Read... [16:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:52]Read from MH i2c: E2 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 62 00 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 62 00 87 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [16:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:52]wFMCommunicate OK [16:18:52]SAM_PROTO_GetFieldsCounters done [16:18:52]requested_item shift.num is exist - process it [16:18:52]requested_item shift.opened is exist - process it [16:18:52]req_shift_opened [16:18:52]FM_GetShiftState [16:18:52]SAM_PROTO_GetShiftState [16:18:52]wFMCommunicate request_size=4 [16:18:52]MH_SAM_APDU [16:18:52]CAPDU: 80 13 01 00 [16:18:52]Write to MH i2c: E2 08 00 88 43 80 13 01 00 00 00 00 00 48 [16:18:52]Write i2c OK [16:18:52]MH_I2C_Read... [16:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:52]Read from MH i2c: E2 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 0E 00 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 0E 00 88 43 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7D [16:18:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:18:52]wFMCommunicate OK [16:18:52]SAM_PROTO_GetShiftState done [16:18:52]FM_GetShiftState done [16:18:52]req_shift_opened done [16:18:52]requested_item shift.open_date is exist - process it [16:18:52]req_shift_open_date [16:18:52]req_shift_open_date done [16:18:52]produce_requested_data done [16:18:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112287,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:18:52]process_action_free close_receipt [16:18:52]json_value_free [16:18:52]json_value_free done [16:18:52]process_json_proto returns [16:18:52]Send response to host [16:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112287,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:18:52]free response buf [16:18:52]execute_script done [16:18:52]execute_script returns [16:18:52]free content buf [16:18:52]Sock 9.Close socket [16:18:52]Sock 9.Thread stoped [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:19:58]accept exits with 7 [16:19:58]New connection [16:19:58]New thread 3066957156 created [16:19:58]Thread 3066813796 joined [16:19:58]Waiting for new connection... [16:19:58] Sock 7.Parse request [16:19:58]Sock 7.Check first char [16:19:58]Sock 7.First char is OK [16:19:58]request: POST /json_proto HTTP/1.0 [16:19:58]Method: POST [16:19:58]URL: /json_proto [16:19:58]Method is POST - this is cgi request [16:19:58]url: /json_proto [16:19:58]query_string will be loaded in cgi processing [16:19:58]execute_cgi json_proto POST (null) [16:19:58]execute_cgi path=json_proto method=POST [16:19:58]POST find Content-Length [16:19:58]Host: 172.17.59.68:8080 [16:19:58]Content-Length: 677 [16:19:58]Content-Type: application/json [16:19:58] [16:19:58]POST finish read [16:19:58]Found Content-Length = 677 [16:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320965", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:19:58]execute_script... [16:19: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)320965", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:19:58]POST & json_proto [16:19:58]process_json_proto [16:19:58]json parsed OK: [16:19:58]protocol is kg_v1.0 [16:19:58]action value=close_receipt [16:19:58]process_action close_receipt [16:19:58]cmd_close_receipt [16:19:58]MH_GetDate [16:19:58]Write to MH i2c: F0 00 00 89 43 BB [16:19:58]Write i2c OK [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: F0 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: F0 09 00 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: F0 09 00 89 43 00 CB F9 76 66 BC EC 60 65 D1 [16:19:58]GetLastDocTimeStamp 1719073156 [16:19:58]current date 1719073227 [16:19:58]FM_GetShiftState [16:19:58]SAM_PROTO_GetShiftState [16:19:58]wFMCommunicate request_size=4 [16:19:58]MH_SAM_APDU [16:19:58]CAPDU: 80 13 01 00 [16:19:58]Write to MH i2c: E2 08 00 8A 43 80 13 01 00 00 00 00 00 4A [16:19:58]Write i2c OK [16:19:58]MH_I2C_Read... [16:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:58]Read from MH i2c: E2 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: E2 0E 00 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: E2 0E 00 8A 43 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7F [16:19:58]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:19:58]wFMCommunicate OK [16:19:58]SAM_PROTO_GetShiftState done [16:19:58]FM_GetShiftState done [16:19:58]opened in 1719020067 [16:19:58]opened+sec_in_day 1719106467 [16:19:58]quantity*price = 30012 [16:19:58]sum+1 = 30014 [16:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 154 22.06.2024 16:20 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112288 ФПД: 163972913153669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162027&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112288&fm=163972913153669&tin=02508201610067®Number=0000000000092771&sum=30000 [16:20:00]StoreToDocumentArchive [16:20:00]shift 391 fd 112288 [16:20:00]save to /storage/0391/doc_00112288 [16:20:00]save last doc name /storage/0391/doc_00112288 to /storage/kkm_last_doc_name [16:20:00]save OK [16:20:00]Clear old archive folders... [16:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:00]tlvbuf is B6F592E0 [16:20:00]SAM_PROTO_ClearQueue [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 09 00 00 [16:20:00]Write to MH i2c: E2 08 00 97 43 80 09 00 00 00 00 00 00 4C [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 97 43 00 90 00 4E [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]SAM_PROTO_ClearQueue done [16:20:00]KKMCreateOFDPacket [16:20:00]OFDProtocolAddRootSTLVToBuf [16:20:00]FM_MakeSignedData [16:20:00]FM_MakeSignedData [16:20:00]SAM_PROTO_SignData [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 0D 01 02 [16:20:00]Write to MH i2c: E2 08 00 98 43 80 0D 01 02 00 00 00 00 54 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 98 43 00 90 00 4F [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]wFMCommunicate request_size=255 [16:20:00]MH_SAM_APDU [16:20: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CB F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B6 01 00 35 04 06 00 95 [16:20:00]Write to MH i2c: E2 02 01 99 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CB F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B6 01 00 35 04 06 00 95 00 00 54 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 99 43 00 90 00 50 [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]wFMCommunicate request_size=10 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 0D 02 02 05 21 EB 3D C6 85 [16:20:00]Write to MH i2c: E2 0D 00 9A 43 80 0D 02 02 05 00 21 EB 3D C6 85 00 00 F5 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 9A 43 00 90 00 51 [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 0D 03 02 [16:20:00]Write to MH i2c: E2 08 00 9B 43 80 0D 03 02 00 00 00 00 59 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 0B 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 0B 00 9B 43 00 61 46 3D D5 71 9E D3 E1 90 00 D6 [16:20:00]RAPDU: 61 46 3D D5 71 9E D3 E1 90 00 [16:20:00]wFMCommunicate OK [16:20:00]SAM_PROTO_SignData done [16:20:00]FM_MakeSignedData done [16:20:00]CreateOFDProtocolMessage [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 11 00 00 [16:20:00]Write to MH i2c: E2 08 00 9C 43 80 11 00 00 00 00 00 00 59 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 17 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 17 00 9C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AB [16:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:20:00]wFMCommunicate OK [16:20:00]CreateOFDProtocolMessage done [16:20:00]OFDSenderStorePacket 112288 [16:20:00]StoreOFDPacket docnum=112288 [16:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB 7E 07 01 E0 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CB F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B6 01 00 35 04 06 00 95 21 EB 3D C6 85 61 46 3D D5 71 9E D3 E1 [16:20:00]CheckFolder [16:20:00]dirname=/storage/ofd_packets [16:20:00]CheckFolder done [16:20:00]ProducePacketName [16:20:00]name=ofd_packets/00112288 [16:20:00]NVStorageSaveData ofd_packets/00112288 [16:20:00]File name is /storage/ofd_packets/00112288 [16:20:00]Write 301 bytes [16:20:00]NVStorageSaveData done [16:20:00]OFDSenderStorePacket done [16:20:00]KKMCreateOFDPacket done [16:20:00]NVStorageSaveData kkm_last_timestamp [16:20:00]File name is /storage/kkm_last_timestamp [16:20:00]Write 4 bytes [16:20:00]NVStorageSaveData done [16:20:00]ExternCall_PrintAddStr [16:20:00]wPrintStart [16:20:00]Write to MH i2c: 01 00 00 9D 43 E0 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 9D 43 00 00 00 00 00 FF 0F F5 [16:20:00]RasterBufferAndPrint [16:20:00]line Счет N : (1)320965 [16:20:00]line ИНН: 02508201610067 [16:20:00]line Контрольно-Кассовый Чек [16:20:00]line ПРОДАЖА [16:20:00]line ТРК (МРК, ГНК) : 11 [16:20:00]line Товар: 2710124130 [16:20:00]line Аи-92-К-5 [16:20:00]line 4.520 * 66.40 [16:20:00]line = 300.13 [16:20:00]line НДС 12% НСП 1% [16:20:00]line > о реализуемом товаре [16:20:00]line ОКРУГЛЕНИЕ: -0.13 [16:20:00]line ИТОГО: 300.00 [16:20:00]line Внесено: 300.00 [16:20:00]line СДАЧА: 0.00 [16:20:00]line НСП 1% : 2.66 [16:20:00]line НДС 12% : 31.87 [16:20:00]line Наличными: 300.00 [16:20:00]line Безнал.: 0.00 [16:20:00]line Место: АЗС № 65 "Партнер Нефть" [16:20:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:20:00]line СНО: Общий режим [16:20:00]line Чек 154 22.06.2024 16:20 [16:20:00]line Смена: 391 ФФД: 1.0 [16:20:00]line ЗНМ: 0300000198 [16:20:00]line РНМ: 0000000000092771 [16:20:00]line Версия ККМ: 001 [16:20:00]line ФМ: 0000000000875083 [16:20:00]line ФД: 112288 [16:20:00]line ФПД: 163972913153669 [16:20:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162027&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112288&fm=163972913153669&tin=02508201610067®Number=0000000000092771&sum=30000 [16:20:00]OFD Sender: Processing packet 112288 [packets to send 38, broken 37] [16:20:00]ProducePacketName [16:20:00]name=ofd_packets/00112288 [16:20:00]OFD Sender: To server: pG, [16:20:00]CommunicateWithHost lk.salyk.kg:30040 [16:20:00]ConnectInit lk.salyk.kg [16:20:00]written 0, free lines is 4095 [16:20:01]Connected sock=10 [16:20:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB 7E 07 01 E0 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CB F9 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B6 01 00 35 04 06 00 95 21 EB 3D C6 85 61 46 3D D5 71 9E D3 E1 [16:20:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 05 80 47 00 2B 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B6 01 00 F4 03 04 00 D2 90 76 66 B6 04 01 00 00 29 C0 3F 08 3F 8B F4 E7 [16:20:01]CommunicateWithHost err = 0 [16:20:01]CheckOFDResponse [16:20:01]1017 (14) - 77093643461234 [16:20:01]1041 (16) - 0000000000875083 [16:20:01]1040 (4) - 112288 [16:20:01]1012 (4) - 22.06.2024 08:52 [16:20:01]1206 (1) - 0 [16:20:01]OFD Sender: Remove packet 112288 [16:20:01]ProducePacketName [16:20:01]name=ofd_packets/00112288 [16:20:01]NVStorageDeleteData [16:20:01]Write to MH i2c: 01 00 00 C8 43 0B [16:20:01]Write i2c OK [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: 01 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: 01 07 00 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: 01 07 00 C8 43 00 00 00 00 00 EE 0C 0C [16:20:01]RasterBufferAndPrint [16:20:01]line [16:20:01]line [16:20:01]line [16:20:01]line [16:20:01]line [16:20:01]written 0, free lines is 3316 [16:20:01]MH_Cut [16:20:01]Write to MH i2c: D1 01 00 CF 43 01 E4 [16:20:01]Write i2c OK [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: D1 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: D1 01 00 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: D1 01 00 CF 43 00 E3 [16:20:01]Write to MH i2c: 01 00 00 D0 43 13 [16:20:01]Write i2c OK [16:20:01]MH_I2C_Read... [16:20:01]OFD Sender: No OFD packet to send [16:20:02]*** Cut start [16:20:02]*** Partial cut [16:20:02]*** CUTSNS_PIN = 1 [16:20:02]*** CUTSNS_PIN = 0 [16:20:02]*** Brake cut motor [16:20:02]Read from MH i2c: 01 [16:20:02]MH_I2C_Read... [16:20:02]*** Stop cut motor [16:20:02]*** Cut end [16:20:02]Read from MH i2c: 01 07 00 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: 01 07 00 D0 43 00 00 00 00 00 FF 0F 28 [16:20:02]process_action close_receipt done [16:20:02]requested_data is exist [16:20:02]produce_requested_data [16:20:02]requested_item fm.sn is exist - process it [16:20:02]wFMCommunicate request_size=4 [16:20:02]MH_SAM_APDU [16:20:02]CAPDU: 80 11 00 00 [16:20:02]Write to MH i2c: E2 08 00 D1 43 80 11 00 00 00 00 00 00 8E [16:20:02]Write i2c OK [16:20:02]MH_I2C_Read... [16:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:02]Read from MH i2c: E2 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 17 00 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 17 00 D1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [16:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:20:02]wFMCommunicate OK [16:20:02]requested_item fd.num is exist - process it [16:20:02]SAM_PROTO_GetFieldsCounters [16:20:02]wFMCommunicate request_size=4 [16:20:02]MH_SAM_APDU [16:20:02]CAPDU: 80 13 00 00 [16:20:02]Write to MH i2c: E2 08 00 D2 43 80 13 00 00 00 00 00 00 91 [16:20:02]Write i2c OK [16:20:02]MH_I2C_Read... [16:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:02]Read from MH i2c: E2 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 62 00 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 62 00 D2 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [16:20:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:02]wFMCommunicate OK [16:20:02]SAM_PROTO_GetFieldsCounters done [16:20:02]requested_item shift.num is exist - process it [16:20:02]requested_item shift.opened is exist - process it [16:20:02]req_shift_opened [16:20:02]FM_GetShiftState [16:20:02]SAM_PROTO_GetShiftState [16:20:02]wFMCommunicate request_size=4 [16:20:02]MH_SAM_APDU [16:20:02]CAPDU: 80 13 01 00 [16:20:02]Write to MH i2c: E2 08 00 D3 43 80 13 01 00 00 00 00 00 93 [16:20:02]Write i2c OK [16:20:02]MH_I2C_Read... [16:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:02]Read from MH i2c: E2 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 0E 00 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 0E 00 D3 43 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C8 [16:20:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:20:02]wFMCommunicate OK [16:20:02]SAM_PROTO_GetShiftState done [16:20:02]FM_GetShiftState done [16:20:02]req_shift_opened done [16:20:02]requested_item shift.open_date is exist - process it [16:20:02]req_shift_open_date [16:20:02]req_shift_open_date done [16:20:02]produce_requested_data done [16:20:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112288,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:20:02]process_action_free close_receipt [16:20:02]json_value_free [16:20:02]json_value_free done [16:20:02]process_json_proto returns [16:20:02]Send response to host [16:20:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112288,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:20:02]free response buf [16:20:02]execute_script done [16:20:02]execute_script returns [16:20:02]free content buf [16:20:02]Sock 7.Close socket [16:20:02]Sock 7.Thread stoped [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:00]accept exits with 9 [16:21:00]New connection [16:21:00]New thread 3066813796 created [16:21:00]Thread 3066957156 joined [16:21:00]Waiting for new connection... [16:21:00] Sock 9.Parse request [16:21:00]Sock 9.Check first char [16:21:00]Sock 9.First char is OK [16:21:00]request: POST /json_proto HTTP/1.0 [16:21:00]Method: POST [16:21:00]URL: /json_proto [16:21:00]Method is POST - this is cgi request [16:21:00]url: /json_proto [16:21:00]query_string will be loaded in cgi processing [16:21:00]execute_cgi json_proto POST (null) [16:21:00]execute_cgi path=json_proto method=POST [16:21:00]POST find Content-Length [16:21:00]Host: 172.17.59.68:8080 [16:21:00]Content-Length: 677 [16:21:00]Content-Type: application/json [16:21:00] [16:21:00]POST finish read [16:21:00]Found Content-Length = 677 [16:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320966", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:21:00]execute_script... [16:21:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320966", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:21:00]POST & json_proto [16:21:00]process_json_proto [16:21:00]json parsed OK: [16:21:00]protocol is kg_v1.0 [16:21:00]action value=close_receipt [16:21:00]process_action close_receipt [16:21:00]cmd_close_receipt [16:21:00]MH_GetDate [16:21:00]Write to MH i2c: F0 00 00 D4 43 06 [16:21:00]Write i2c OK [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: F0 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: F0 09 00 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: F0 09 00 D4 43 00 08 FA 76 66 BC EC 60 65 5A [16:21:00]GetLastDocTimeStamp 1719073227 [16:21:00]current date 1719073288 [16:21:00]FM_GetShiftState [16:21:00]SAM_PROTO_GetShiftState [16:21:00]wFMCommunicate request_size=4 [16:21:00]MH_SAM_APDU [16:21:00]CAPDU: 80 13 01 00 [16:21:00]Write to MH i2c: E2 08 00 D5 43 80 13 01 00 00 00 00 00 95 [16:21:00]Write i2c OK [16:21:00]MH_I2C_Read... [16:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:00]Read from MH i2c: E2 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: E2 0E 00 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: E2 0E 00 D5 43 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CA [16:21:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:21:00]wFMCommunicate OK [16:21:00]SAM_PROTO_GetShiftState done [16:21:00]FM_GetShiftState done [16:21:00]opened in 1719020067 [16:21:00]opened+sec_in_day 1719106467 [16:21:00]quantity*price = 20052 [16:21:00]sum+1 = 20054 [16:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 155 22.06.2024 16:21 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112289 ФПД: 228379642922861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162128&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112289&fm=228379642922861&tin=02508201610067®Number=0000000000092771&sum=20000 [16:21:01]StoreToDocumentArchive [16:21:01]shift 391 fd 112289 [16:21:01]save to /storage/0391/doc_00112289 [16:21:01]save last doc name /storage/0391/doc_00112289 to /storage/kkm_last_doc_name [16:21:01]save OK [16:21:01]Clear old archive folders... [16:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:01]tlvbuf is 0119A380 [16:21:01]SAM_PROTO_ClearQueue [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 09 00 00 [16:21:01]Write to MH i2c: E2 08 00 E2 43 80 09 00 00 00 00 00 00 97 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 E2 43 00 90 00 99 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_ClearQueue done [16:21:01]KKMCreateOFDPacket [16:21:01]OFDProtocolAddRootSTLVToBuf [16:21:01]FM_MakeSignedData [16:21:01]FM_MakeSignedData [16:21:01]SAM_PROTO_SignData [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 01 02 [16:21:01]Write to MH i2c: E2 08 00 E3 43 80 0D 01 02 00 00 00 00 9F [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 E3 43 00 90 00 9A [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=255 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 FA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B6 01 00 35 04 06 00 CF [16:21:01]Write to MH i2c: E2 02 01 E4 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 FA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B6 01 00 35 04 06 00 CF 00 00 3A [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]OFD Sender: No OFD packet to send [16:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 E4 43 00 90 00 9B [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=10 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 02 02 05 B5 C7 7D 87 6D [16:21:01]Write to MH i2c: E2 0D 00 E5 43 80 0D 02 02 05 00 B5 C7 7D 87 6D 00 00 99 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:02]Read from MH i2c: E2 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: E2 03 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: E2 03 00 E5 43 00 90 00 9C [16:21:02]RAPDU: 90 00 [16:21:02]wFMCommunicate OK [16:21:02]wFMCommunicate request_size=4 [16:21:02]MH_SAM_APDU [16:21:02]CAPDU: 80 0D 03 02 [16:21:02]Write to MH i2c: E2 08 00 E6 43 80 0D 03 02 00 00 00 00 A4 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:02]Read from MH i2c: E2 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: E2 0B 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: E2 0B 00 E6 43 00 AF A3 59 4B EE 90 16 A5 90 00 D4 [16:21:02]RAPDU: AF A3 59 4B EE 90 16 A5 90 00 [16:21:02]wFMCommunicate OK [16:21:02]SAM_PROTO_SignData done [16:21:02]FM_MakeSignedData done [16:21:02]CreateOFDProtocolMessage [16:21:02]wFMCommunicate request_size=4 [16:21:02]MH_SAM_APDU [16:21:02]CAPDU: 80 11 00 00 [16:21:02]Write to MH i2c: E2 08 00 E7 43 80 11 00 00 00 00 00 00 A4 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:02]Read from MH i2c: E2 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: E2 17 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: E2 17 00 E7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [16:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:21:02]wFMCommunicate OK [16:21:02]CreateOFDProtocolMessage done [16:21:02]OFDSenderStorePacket 112289 [16:21:02]StoreOFDPacket docnum=112289 [16:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 95 E5 07 01 11 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 FA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B6 01 00 35 04 06 00 CF B5 C7 7D 87 6D AF A3 59 4B EE 90 16 A5 [16:21:02]CheckFolder [16:21:02]dirname=/storage/ofd_packets [16:21:02]CheckFolder done [16:21:02]ProducePacketName [16:21:02]name=ofd_packets/00112289 [16:21:02]NVStorageSaveData ofd_packets/00112289 [16:21:02]File name is /storage/ofd_packets/00112289 [16:21:02]Write 301 bytes [16:21:02]NVStorageSaveData done [16:21:02]OFDSenderStorePacket done [16:21:02]KKMCreateOFDPacket done [16:21:02]NVStorageSaveData kkm_last_timestamp [16:21:02]File name is /storage/kkm_last_timestamp [16:21:02]Write 4 bytes [16:21:02]NVStorageSaveData done [16:21:02]ExternCall_PrintAddStr [16:21:02]wPrintStart [16:21:02]Write to MH i2c: 01 00 00 E8 43 2B [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 E8 43 00 00 00 00 00 FF 0F 40 [16:21:02]RasterBufferAndPrint [16:21:02]line Счет N : (1)320966 [16:21:02]line ИНН: 02508201610067 [16:21:02]line Контрольно-Кассовый Чек [16:21:02]line ПРОДАЖА [16:21:02]line ТРК (МРК, ГНК) : 11 [16:21:02]line Товар: 2710124130 [16:21:02]line Аи-92-К-5 [16:21:02]line 3.020 * 66.40 [16:21:02]line = 200.53 [16:21:02]line НДС 12% НСП 1% [16:21:02]line > о реализуемом товаре [16:21:02]line ОКРУГЛЕНИЕ: -0.53 [16:21:02]line ИТОГО: 200.00 [16:21:02]line Внесено: 200.00 [16:21:02]line СДАЧА: 0.00 [16:21:02]line НСП 1% : 1.77 [16:21:02]line НДС 12% : 21.29 [16:21:02]line Наличными: 200.00 [16:21:02]line Безнал.: 0.00 [16:21:02]line Место: АЗС № 65 "Партнер Нефть" [16:21:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:21:02]line СНО: Общий режим [16:21:02]line Чек 155 22.06.2024 16:21 [16:21:02]line Смена: 391 ФФД: 1.0 [16:21:02]line ЗНМ: 0300000198 [16:21:02]line РНМ: 0000000000092771 [16:21:02]line Версия ККМ: 001 [16:21:02]line ФМ: 0000000000875083 [16:21:02]line ФД: 112289 [16:21:02]line ФПД: 228379642922861 [16:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162128&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112289&fm=228379642922861&tin=02508201610067®Number=0000000000092771&sum=20000 [16:21:02]written 0, free lines is 4095 [16:21:02]OFD Sender: Processing packet 112289 [packets to send 38, broken 37] [16:21:02]ProducePacketName [16:21:02]name=ofd_packets/00112289 [16:21:02]OFD Sender: To server: pG, [16:21:02]CommunicateWithHost lk.salyk.kg:30040 [16:21:02]ConnectInit lk.salyk.kg [16:21:02]Connected sock=10 [16:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 95 E5 07 01 11 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 08 FA 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B6 01 00 35 04 06 00 CF B5 C7 7D 87 6D AF A3 59 4B EE 90 16 A5 [16:21:02]Write to MH i2c: 01 00 00 13 44 57 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 13 44 00 00 00 00 00 EA 0C 54 [16:21:02]RasterBufferAndPrint [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]written 0, free lines is 3312 [16:21:02]MH_Cut [16:21:02]Write to MH i2c: D1 01 00 1A 44 01 30 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 01 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 01 00 1A 44 00 2F [16:21:02]Write to MH i2c: 01 00 00 1B 44 5F [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 29 DE 47 00 1B E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B6 01 00 F4 03 04 00 10 91 76 66 B6 04 01 00 00 D1 AF EB 08 89 69 A1 21 [16:21:02]CommunicateWithHost err = 0 [16:21:02]CheckOFDResponse [16:21:02]1017 (14) - 77093643461234 [16:21:02]1041 (16) - 0000000000875083 [16:21:02]1040 (4) - 112289 [16:21:02]1012 (4) - 22.06.2024 08:53 [16:21:02]1206 (1) - 0 [16:21:02]OFD Sender: Remove packet 112289 [16:21:02]ProducePacketName [16:21:02]name=ofd_packets/00112289 [16:21:02]NVStorageDeleteData [16:21:03]OFD Sender: No OFD packet to send [16:21:03]*** Cut start [16:21:03]*** Partial cut [16:21:03]*** CUTSNS_PIN = 1 [16:21:03]*** CUTSNS_PIN = 0 [16:21:03]*** Brake cut motor [16:21:03]Read from MH i2c: 01 [16:21:03]MH_I2C_Read... [16:21:03]*** Stop cut motor [16:21:03]*** Cut end [16:21:03]Read from MH i2c: 01 07 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: 01 07 00 1B 44 00 00 00 00 00 FF 0F 74 [16:21:03]process_action close_receipt done [16:21:03]requested_data is exist [16:21:03]produce_requested_data [16:21:03]requested_item fm.sn is exist - process it [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 11 00 00 [16:21:03]Write to MH i2c: E2 08 00 1C 44 80 11 00 00 00 00 00 00 DA [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 17 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 17 00 1C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [16:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:21:03]wFMCommunicate OK [16:21:03]requested_item fd.num is exist - process it [16:21:03]SAM_PROTO_GetFieldsCounters [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 13 00 00 [16:21:03]Write to MH i2c: E2 08 00 1D 44 80 13 00 00 00 00 00 00 DD [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 62 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 62 00 1D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [16:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:04]wFMCommunicate OK [16:21:04]SAM_PROTO_GetFieldsCounters done [16:21:04]requested_item shift.num is exist - process it [16:21:04]requested_item shift.opened is exist - process it [16:21:04]req_shift_opened [16:21:04]FM_GetShiftState [16:21:04]SAM_PROTO_GetShiftState [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 13 01 00 [16:21:04]Write to MH i2c: E2 08 00 1E 44 80 13 01 00 00 00 00 00 DF [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0E 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0E 00 1E 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 14 [16:21:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:21:04]wFMCommunicate OK [16:21:04]SAM_PROTO_GetShiftState done [16:21:04]FM_GetShiftState done [16:21:04]req_shift_opened done [16:21:04]requested_item shift.open_date is exist - process it [16:21:04]req_shift_open_date [16:21:04]req_shift_open_date done [16:21:04]produce_requested_data done [16:21:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112289,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:21:04]process_action_free close_receipt [16:21:04]json_value_free [16:21:04]json_value_free done [16:21:04]process_json_proto returns [16:21:04]Send response to host [16:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112289,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:21:04]free response buf [16:21:04]execute_script done [16:21:04]execute_script returns [16:21:04]free content buf [16:21:04]Sock 9.Close socket [16:21:04]Sock 9.Thread stoped [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:24]accept exits with 7 [16:25:24]New connection [16:25:24]New thread 3066957156 created [16:25:24]Thread 3066813796 joined [16:25:24]Waiting for new connection... [16:25:24] Sock 7.Parse request [16:25:24]Sock 7.Check first char [16:25:24]Sock 7.First char is OK [16:25:24]request: POST /json_proto HTTP/1.0 [16:25:24]Method: POST [16:25:24]URL: /json_proto [16:25:24]Method is POST - this is cgi request [16:25:24]url: /json_proto [16:25:24]query_string will be loaded in cgi processing [16:25:24]execute_cgi json_proto POST (null) [16:25:24]execute_cgi path=json_proto method=POST [16:25:24]POST find Content-Length [16:25:24]Host: 172.17.59.68:8080 [16:25:24]Content-Length: 677 [16:25:24]Content-Type: application/json [16:25:24] [16:25:24]POST finish read [16:25:24]Found Content-Length = 677 [16:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320967", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:25:24]execute_script... [16:25: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)320967", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:25:24]POST & json_proto [16:25:24]process_json_proto [16:25:24]json parsed OK: [16:25:24]protocol is kg_v1.0 [16:25:24]action value=close_receipt [16:25:24]process_action close_receipt [16:25:24]cmd_close_receipt [16:25:24]MH_GetDate [16:25:24]Write to MH i2c: F0 00 00 1F 44 52 [16:25:24]Write i2c OK [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: F0 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: F0 09 00 [16:25:24]MH_I2C_Read... [16:25:24]Read from MH i2c: F0 09 00 1F 44 00 11 FB 76 66 BC EC 60 65 B0 [16:25:24]GetLastDocTimeStamp 1719073288 [16:25:24]current date 1719073553 [16:25:24]FM_GetShiftState [16:25:24]SAM_PROTO_GetShiftState [16:25:24]wFMCommunicate request_size=4 [16:25:24]MH_SAM_APDU [16:25:24]CAPDU: 80 13 01 00 [16:25:24]Write to MH i2c: E2 08 00 20 44 80 13 01 00 00 00 00 00 E1 [16:25:24]Write i2c OK [16:25:24]MH_I2C_Read... [16:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:25]Read from MH i2c: E2 [16:25:25]MH_I2C_Read... [16:25:25]Read from MH i2c: E2 0E 00 [16:25:25]MH_I2C_Read... [16:25:25]Read from MH i2c: E2 0E 00 20 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 16 [16:25:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:25:25]wFMCommunicate OK [16:25:25]SAM_PROTO_GetShiftState done [16:25:25]FM_GetShiftState done [16:25:25]opened in 1719020067 [16:25:25]opened+sec_in_day 1719106467 [16:25:25]quantity*price = 20052 [16:25:25]sum+1 = 20054 [16:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 156 22.06.2024 16:25 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112290 ФПД: 237622143178414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162553&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112290&fm=237622143178414&tin=02508201610067®Number=0000000000092771&sum=20000 [16:25:26]StoreToDocumentArchive [16:25:26]shift 391 fd 112290 [16:25:26]save to /storage/0391/doc_00112290 [16:25:26]save last doc name /storage/0391/doc_00112290 to /storage/kkm_last_doc_name [16:25:26]save OK [16:25:26]Clear old archive folders... [16:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:26]tlvbuf is 011F16D0 [16:25:26]SAM_PROTO_ClearQueue [16:25:26]wFMCommunicate request_size=4 [16:25:26]MH_SAM_APDU [16:25:26]CAPDU: 80 09 00 00 [16:25:26]Write to MH i2c: E2 08 00 2D 44 80 09 00 00 00 00 00 00 E3 [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 2D 44 00 90 00 E5 [16:25:26]RAPDU: 90 00 [16:25:26]wFMCommunicate OK [16:25:26]SAM_PROTO_ClearQueue done [16:25:26]KKMCreateOFDPacket [16:25:26]OFDProtocolAddRootSTLVToBuf [16:25:26]FM_MakeSignedData [16:25:26]FM_MakeSignedData [16:25:26]SAM_PROTO_SignData [16:25:26]wFMCommunicate request_size=4 [16:25:26]MH_SAM_APDU [16:25:26]CAPDU: 80 0D 01 02 [16:25:26]Write to MH i2c: E2 08 00 2E 44 80 0D 01 02 00 00 00 00 EB [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 2E 44 00 90 00 E6 [16:25:26]RAPDU: 90 00 [16:25:26]wFMCommunicate OK [16:25:26]wFMCommunicate request_size=255 [16:25:26]MH_SAM_APDU [16:25: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 11 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B6 01 00 35 04 06 00 D8 [16:25:26]Write to MH i2c: E2 02 01 2F 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 11 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B6 01 00 35 04 06 00 D8 00 00 9B [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 2F 44 00 90 00 E7 [16:25:26]RAPDU: 90 00 [16:25:26]wFMCommunicate OK [16:25:26]wFMCommunicate request_size=10 [16:25:26]MH_SAM_APDU [16:25:26]CAPDU: 80 0D 02 02 05 1D B7 6F 56 AE [16:25:26]Write to MH i2c: E2 0D 00 30 44 80 0D 02 02 05 00 1D B7 6F 56 AE 00 00 3F [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 03 00 30 44 00 90 00 E8 [16:25:26]RAPDU: 90 00 [16:25:26]wFMCommunicate OK [16:25:26]wFMCommunicate request_size=4 [16:25:26]MH_SAM_APDU [16:25:26]CAPDU: 80 0D 03 02 [16:25:26]Write to MH i2c: E2 08 00 31 44 80 0D 03 02 00 00 00 00 F0 [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 0B 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 0B 00 31 44 00 C3 5B CB 99 E1 3E 8D EB 90 00 0A [16:25:26]RAPDU: C3 5B CB 99 E1 3E 8D EB 90 00 [16:25:26]wFMCommunicate OK [16:25:26]SAM_PROTO_SignData done [16:25:26]FM_MakeSignedData done [16:25:26]CreateOFDProtocolMessage [16:25:26]wFMCommunicate request_size=4 [16:25:26]MH_SAM_APDU [16:25:26]CAPDU: 80 11 00 00 [16:25:26]Write to MH i2c: E2 08 00 32 44 80 11 00 00 00 00 00 00 F0 [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 17 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 17 00 32 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [16:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:25:26]wFMCommunicate OK [16:25:26]CreateOFDProtocolMessage done [16:25:26]OFDSenderStorePacket 112290 [16:25:26]StoreOFDPacket docnum=112290 [16:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 3F 07 01 DE 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 11 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B6 01 00 35 04 06 00 D8 1D B7 6F 56 AE C3 5B CB 99 E1 3E 8D EB [16:25:26]CheckFolder [16:25:26]dirname=/storage/ofd_packets [16:25:26]CheckFolder done [16:25:26]ProducePacketName [16:25:26]name=ofd_packets/00112290 [16:25:26]NVStorageSaveData ofd_packets/00112290 [16:25:26]File name is /storage/ofd_packets/00112290 [16:25:26]Write 301 bytes [16:25:26]NVStorageSaveData done [16:25:26]OFDSenderStorePacket done [16:25:26]KKMCreateOFDPacket done [16:25:26]NVStorageSaveData kkm_last_timestamp [16:25:26]File name is /storage/kkm_last_timestamp [16:25:26]Write 4 bytes [16:25:26]NVStorageSaveData done [16:25:26]ExternCall_PrintAddStr [16:25:26]wPrintStart [16:25:26]Write to MH i2c: 01 00 00 33 44 77 [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: 01 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: 01 07 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: 01 07 00 33 44 00 00 00 00 00 FF 0F 8C [16:25:26]RasterBufferAndPrint [16:25:26]line Счет N : (1)320967 [16:25:26]line ИНН: 02508201610067 [16:25:26]line Контрольно-Кассовый Чек [16:25:26]line ПРОДАЖА [16:25:26]line ТРК (МРК, ГНК) : 11 [16:25:26]line Товар: 2710124130 [16:25:26]line Аи-92-К-5 [16:25:26]line 3.020 * 66.40 [16:25:26]line = 200.53 [16:25:26]line НДС 12% НСП 1% [16:25:26]line > о реализуемом товаре [16:25:26]line ОКРУГЛЕНИЕ: -0.53 [16:25:26]line ИТОГО: 200.00 [16:25:26]line Внесено: 200.00 [16:25:26]line СДАЧА: 0.00 [16:25:26]line НСП 1% : 1.77 [16:25:26]line НДС 12% : 21.29 [16:25:26]line Наличными: 200.00 [16:25:26]line Безнал.: 0.00 [16:25:26]line Место: АЗС № 65 "Партнер Нефть" [16:25:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:25:26]line СНО: Общий режим [16:25:26]line Чек 156 22.06.2024 16:25 [16:25:26]line Смена: 391 ФФД: 1.0 [16:25:26]line ЗНМ: 0300000198 [16:25:26]line РНМ: 0000000000092771 [16:25:26]line Версия ККМ: 001 [16:25:26]line ФМ: 0000000000875083 [16:25:26]line ФД: 112290 [16:25:26]line ФПД: 237622143178414 [16:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162553&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112290&fm=237622143178414&tin=02508201610067®Number=0000000000092771&sum=20000 [16:25:27]OFD Sender: Processing packet 112290 [packets to send 38, broken 37] [16:25:27]ProducePacketName [16:25:27]name=ofd_packets/00112290 [16:25:27]OFD Sender: To server: pG, [16:25:27]CommunicateWithHost lk.salyk.kg:30040 [16:25:27]ConnectInit lk.salyk.kg [16:25:27]written 0, free lines is 4095 [16:25:27]Connected sock=10 [16:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 3F 07 01 DE 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 11 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B6 01 00 35 04 06 00 D8 1D B7 6F 56 AE C3 5B CB 99 E1 3E 8D EB [16:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 D4 47 00 8D E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B6 01 00 F4 03 04 00 18 92 76 66 B6 04 01 00 00 EC 2B E5 BD 27 6C B4 21 [16:25:27]CommunicateWithHost err = 0 [16:25:27]CheckOFDResponse [16:25:27]1017 (14) - 77093643461234 [16:25:27]1041 (16) - 0000000000875083 [16:25:27]1040 (4) - 112290 [16:25:27]1012 (4) - 22.06.2024 08:58 [16:25:27]1206 (1) - 0 [16:25:27]OFD Sender: Remove packet 112290 [16:25:27]ProducePacketName [16:25:27]name=ofd_packets/00112290 [16:25:27]NVStorageDeleteData [16:25:27]Write to MH i2c: 01 00 00 5E 44 A2 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: 01 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: 01 07 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: 01 07 00 5E 44 00 00 00 00 00 EB 0C A0 [16:25:27]RasterBufferAndPrint [16:25:27]line [16:25:27]line [16:25:27]line [16:25:27]line [16:25:27]line [16:25:27]written 0, free lines is 3313 [16:25:27]MH_Cut [16:25:27]Write to MH i2c: D1 01 00 65 44 01 7B [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: D1 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: D1 01 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: D1 01 00 65 44 00 7A [16:25:27]Write to MH i2c: 01 00 00 66 44 AA [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]OFD Sender: No OFD packet to send [16:25:28]*** Cut start [16:25:28]*** Partial cut [16:25:28]*** CUTSNS_PIN = 1 [16:25:28]*** CUTSNS_PIN = 0 [16:25:28]*** Brake cut motor [16:25:28]Read from MH i2c: 01 [16:25:28]*** Stop cut motor [16:25:28]*** Cut end [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 07 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 07 00 66 44 00 00 00 00 00 FF 0F BF [16:25:28]process_action close_receipt done [16:25:28]requested_data is exist [16:25:28]produce_requested_data [16:25:28]requested_item fm.sn is exist - process it [16:25:28]wFMCommunicate request_size=4 [16:25:28]MH_SAM_APDU [16:25:28]CAPDU: 80 11 00 00 [16:25:28]Write to MH i2c: E2 08 00 67 44 80 11 00 00 00 00 00 00 25 [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:28]Read from MH i2c: E2 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 17 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 17 00 67 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [16:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:25:28]wFMCommunicate OK [16:25:28]requested_item fd.num is exist - process it [16:25:28]SAM_PROTO_GetFieldsCounters [16:25:28]wFMCommunicate request_size=4 [16:25:28]MH_SAM_APDU [16:25:28]CAPDU: 80 13 00 00 [16:25:28]Write to MH i2c: E2 08 00 68 44 80 13 00 00 00 00 00 00 28 [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:28]Read from MH i2c: E2 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 62 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 62 00 68 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [16:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:28]wFMCommunicate OK [16:25:28]SAM_PROTO_GetFieldsCounters done [16:25:28]requested_item shift.num is exist - process it [16:25:28]requested_item shift.opened is exist - process it [16:25:28]req_shift_opened [16:25:28]FM_GetShiftState [16:25:28]SAM_PROTO_GetShiftState [16:25:28]wFMCommunicate request_size=4 [16:25:28]MH_SAM_APDU [16:25:28]CAPDU: 80 13 01 00 [16:25:28]Write to MH i2c: E2 08 00 69 44 80 13 01 00 00 00 00 00 2A [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 0E 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 0E 00 69 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5F [16:25:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:25:29]wFMCommunicate OK [16:25:29]SAM_PROTO_GetShiftState done [16:25:29]FM_GetShiftState done [16:25:29]req_shift_opened done [16:25:29]requested_item shift.open_date is exist - process it [16:25:29]req_shift_open_date [16:25:29]req_shift_open_date done [16:25:29]produce_requested_data done [16:25:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112290,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:25:29]process_action_free close_receipt [16:25:29]json_value_free [16:25:29]json_value_free done [16:25:29]process_json_proto returns [16:25:29]Send response to host [16:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112290,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:25:29]free response buf [16:25:29]execute_script done [16:25:29]execute_script returns [16:25:29]free content buf [16:25:29]Sock 7.Close socket [16:25:29]Sock 7.Thread stoped [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:34]accept exits with 9 [16:27:34]New connection [16:27:34]New thread 3066813796 created [16:27:34]Thread 3066957156 joined [16:27:34]Waiting for new connection... [16:27:34] Sock 9.Parse request [16:27:34]Sock 9.Check first char [16:27:34]Sock 9.First char is OK [16:27:34]request: POST /json_proto HTTP/1.0 [16:27:34]Method: POST [16:27:34]URL: /json_proto [16:27:34]Method is POST - this is cgi request [16:27:34]url: /json_proto [16:27:34]query_string will be loaded in cgi processing [16:27:34]execute_cgi json_proto POST (null) [16:27:34]execute_cgi path=json_proto method=POST [16:27:34]POST find Content-Length [16:27:34]Host: 172.17.59.68:8080 [16:27:34]Content-Length: 677 [16:27:34]Content-Type: application/json [16:27:34] [16:27:34]POST finish read [16:27:34]Found Content-Length = 677 [16:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320968", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:27:34]execute_script... [16:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320968", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:27:34]POST & json_proto [16:27:34]process_json_proto [16:27:34]json parsed OK: [16:27:34]protocol is kg_v1.0 [16:27:34]action value=close_receipt [16:27:34]process_action close_receipt [16:27:34]cmd_close_receipt [16:27:34]MH_GetDate [16:27:34]Write to MH i2c: F0 00 00 6A 44 9D [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: F0 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: F0 09 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: F0 09 00 6A 44 00 92 FB 76 66 BC EC 60 65 7C [16:27:34]GetLastDocTimeStamp 1719073553 [16:27:34]current date 1719073682 [16:27:34]FM_GetShiftState [16:27:34]SAM_PROTO_GetShiftState [16:27:34]wFMCommunicate request_size=4 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 13 01 00 [16:27:34]Write to MH i2c: E2 08 00 6B 44 80 13 01 00 00 00 00 00 2C [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:34]Read from MH i2c: E2 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 0E 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 0E 00 6B 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 61 [16:27:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:27:34]wFMCommunicate OK [16:27:34]SAM_PROTO_GetShiftState done [16:27:34]FM_GetShiftState done [16:27:34]opened in 1719020067 [16:27:34]opened+sec_in_day 1719106467 [16:27:34]quantity*price = 20052 [16:27:34]sum+1 = 20054 [16:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 157 22.06.2024 16:28 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112291 ФПД: 53982142774632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162802&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112291&fm=53982142774632&tin=02508201610067®Number=0000000000092771&sum=20000 [16:27:35]StoreToDocumentArchive [16:27:35]shift 391 fd 112291 [16:27:35]save to /storage/0391/doc_00112291 [16:27:35]save last doc name /storage/0391/doc_00112291 to /storage/kkm_last_doc_name [16:27:35]save OK [16:27:35]Clear old archive folders... [16:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:35]tlvbuf is B6F59230 [16:27:35]SAM_PROTO_ClearQueue [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 09 00 00 [16:27:35]Write to MH i2c: E2 08 00 78 44 80 09 00 00 00 00 00 00 2E [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 78 44 00 90 00 30 [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]SAM_PROTO_ClearQueue done [16:27:35]KKMCreateOFDPacket [16:27:35]OFDProtocolAddRootSTLVToBuf [16:27:35]FM_MakeSignedData [16:27:35]FM_MakeSignedData [16:27:35]SAM_PROTO_SignData [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 0D 01 02 [16:27:35]Write to MH i2c: E2 08 00 79 44 80 0D 01 02 00 00 00 00 36 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 79 44 00 90 00 31 [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]wFMCommunicate request_size=255 [16:27:35]MH_SAM_APDU [16:27: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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 92 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B6 01 00 35 04 06 00 31 [16:27:35]Write to MH i2c: E2 02 01 7A 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 92 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B6 01 00 35 04 06 00 31 00 00 C2 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 7A 44 00 90 00 32 [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]wFMCommunicate request_size=10 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 0D 02 02 05 18 B2 71 BD 68 [16:27:35]Write to MH i2c: E2 0D 00 7B 44 80 0D 02 02 05 00 18 B2 71 BD 68 00 00 A3 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 7B 44 00 90 00 33 [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 0D 03 02 [16:27:35]Write to MH i2c: E2 08 00 7C 44 80 0D 03 02 00 00 00 00 3B [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 0B 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 0B 00 7C 44 00 7B 68 19 C9 30 B7 69 66 90 00 B7 [16:27:35]RAPDU: 7B 68 19 C9 30 B7 69 66 90 00 [16:27:35]wFMCommunicate OK [16:27:35]SAM_PROTO_SignData done [16:27:35]FM_MakeSignedData done [16:27:35]CreateOFDProtocolMessage [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 11 00 00 [16:27:35]Write to MH i2c: E2 08 00 7D 44 80 11 00 00 00 00 00 00 3B [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 7D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [16:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:27:36]wFMCommunicate OK [16:27:36]CreateOFDProtocolMessage done [16:27:36]OFDSenderStorePacket 112291 [16:27:36]StoreOFDPacket docnum=112291 [16:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF C7 07 01 63 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 92 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B6 01 00 35 04 06 00 31 18 B2 71 BD 68 7B 68 19 C9 30 B7 69 66 [16:27:36]CheckFolder [16:27:36]dirname=/storage/ofd_packets [16:27:36]CheckFolder done [16:27:36]ProducePacketName [16:27:36]name=ofd_packets/00112291 [16:27:36]NVStorageSaveData ofd_packets/00112291 [16:27:36]File name is /storage/ofd_packets/00112291 [16:27:36]Write 301 bytes [16:27:36]NVStorageSaveData done [16:27:36]OFDSenderStorePacket done [16:27:36]KKMCreateOFDPacket done [16:27:36]NVStorageSaveData kkm_last_timestamp [16:27:36]File name is /storage/kkm_last_timestamp [16:27:36]Write 4 bytes [16:27:36]NVStorageSaveData done [16:27:36]ExternCall_PrintAddStr [16:27:36]wPrintStart [16:27:36]Write to MH i2c: 01 00 00 7E 44 C2 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 7E 44 00 00 00 00 00 FF 0F D7 [16:27:36]RasterBufferAndPrint [16:27:36]line Счет N : (1)320968 [16:27:36]line ИНН: 02508201610067 [16:27:36]line Контрольно-Кассовый Чек [16:27:36]line ПРОДАЖА [16:27:36]line ТРК (МРК, ГНК) : 11 [16:27:36]line Товар: 2710124130 [16:27:36]line Аи-92-К-5 [16:27:36]line 3.020 * 66.40 [16:27:36]line = 200.53 [16:27:36]line НДС 12% НСП 1% [16:27:36]line > о реализуемом товаре [16:27:36]line ОКРУГЛЕНИЕ: -0.53 [16:27:36]line ИТОГО: 200.00 [16:27:36]line Внесено: 200.00 [16:27:36]line СДАЧА: 0.00 [16:27:36]line НСП 1% : 1.77 [16:27:36]line НДС 12% : 21.29 [16:27:36]line Наличными: 200.00 [16:27:36]line Безнал.: 0.00 [16:27:36]line Место: АЗС № 65 "Партнер Нефть" [16:27:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:27:36]line СНО: Общий режим [16:27:36]line Чек 157 22.06.2024 16:28 [16:27:36]line Смена: 391 ФФД: 1.0 [16:27:36]line ЗНМ: 0300000198 [16:27:36]line РНМ: 0000000000092771 [16:27:36]line Версия ККМ: 001 [16:27:36]line ФМ: 0000000000875083 [16:27:36]line ФД: 112291 [16:27:36]line ФПД: 53982142774632 [16:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162802&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112291&fm=53982142774632&tin=02508201610067®Number=0000000000092771&sum=20000 [16:27:36]OFD Sender: Processing packet 112291 [packets to send 38, broken 37] [16:27:36]ProducePacketName [16:27:36]name=ofd_packets/00112291 [16:27:36]OFD Sender: To server: pG, [16:27:36]CommunicateWithHost lk.salyk.kg:30040 [16:27:36]ConnectInit lk.salyk.kg [16:27:36]written 0, free lines is 4095 [16:27:36]Connected sock=7 [16:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF C7 07 01 63 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 92 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B6 01 00 35 04 06 00 31 18 B2 71 BD 68 7B 68 19 C9 30 B7 69 66 [16:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 39 D3 47 00 A4 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B6 01 00 F4 03 04 00 9A 92 76 66 B6 04 01 00 00 9E AE F6 BD CF B4 5E 07 [16:27:36]CommunicateWithHost err = 0 [16:27:36]CheckOFDResponse [16:27:36]1017 (14) - 77093643461234 [16:27:36]1041 (16) - 0000000000875083 [16:27:36]1040 (4) - 112291 [16:27:36]1012 (4) - 22.06.2024 09:00 [16:27:36]1206 (1) - 0 [16:27:36]OFD Sender: Remove packet 112291 [16:27:36]ProducePacketName [16:27:36]name=ofd_packets/00112291 [16:27:36]NVStorageDeleteData [16:27:36]Write to MH i2c: 01 00 00 A9 44 ED [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 A9 44 00 00 00 00 00 ED 0C ED [16:27:36]RasterBufferAndPrint [16:27:36]line [16:27:36]line [16:27:36]line [16:27:36]line [16:27:36]line [16:27:36]written 0, free lines is 3315 [16:27:36]MH_Cut [16:27:36]Write to MH i2c: D1 01 00 B0 44 01 C6 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: D1 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: D1 01 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: D1 01 00 B0 44 00 C5 [16:27:36]Write to MH i2c: 01 00 00 B1 44 F5 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:37]OFD Sender: No OFD packet to send [16:27:37]*** Cut start [16:27:37]*** Partial cut [16:27:37]*** CUTSNS_PIN = 1 [16:27:37]*** CUTSNS_PIN = 0 [16:27:37]*** Brake cut motor [16:27:38]Read from MH i2c: 01 [16:27:38]MH_I2C_Read... [16:27:38]*** Stop cut motor [16:27:38]*** Cut end [16:27:38]Read from MH i2c: 01 07 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: 01 07 00 B1 44 00 00 00 00 00 FF 0F 0A [16:27:38]process_action close_receipt done [16:27:38]requested_data is exist [16:27:38]produce_requested_data [16:27:38]requested_item fm.sn is exist - process it [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 11 00 00 [16:27:38]Write to MH i2c: E2 08 00 B2 44 80 11 00 00 00 00 00 00 70 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 17 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 17 00 B2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [16:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:27:38]wFMCommunicate OK [16:27:38]requested_item fd.num is exist - process it [16:27:38]SAM_PROTO_GetFieldsCounters [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 13 00 00 [16:27:38]Write to MH i2c: E2 08 00 B3 44 80 13 00 00 00 00 00 00 73 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 62 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 62 00 B3 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_GetFieldsCounters done [16:27:38]requested_item shift.num is exist - process it [16:27:38]requested_item shift.opened is exist - process it [16:27:38]req_shift_opened [16:27:38]FM_GetShiftState [16:27:38]SAM_PROTO_GetShiftState [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 13 01 00 [16:27:38]Write to MH i2c: E2 08 00 B4 44 80 13 01 00 00 00 00 00 75 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 0E 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 0E 00 B4 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AA [16:27:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_GetShiftState done [16:27:38]FM_GetShiftState done [16:27:38]req_shift_opened done [16:27:38]requested_item shift.open_date is exist - process it [16:27:38]req_shift_open_date [16:27:38]req_shift_open_date done [16:27:38]produce_requested_data done [16:27:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112291,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:27:38]process_action_free close_receipt [16:27:38]json_value_free [16:27:38]json_value_free done [16:27:38]process_json_proto returns [16:27:38]Send response to host [16:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112291,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:27:38]free response buf [16:27:38]execute_script done [16:27:38]execute_script returns [16:27:38]free content buf [16:27:38]Sock 9.Close socket [16:27:38]Sock 9.Thread stoped [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:16]accept exits with 10 [16:29:16]New connection [16:29:16]New thread 3066957156 created [16:29:16]Thread 3066813796 joined [16:29:16]Waiting for new connection... [16:29:16] Sock 10.Parse request [16:29:16]Sock 10.Check first char [16:29:16]Sock 10.First char is OK [16:29:16]request: POST /json_proto HTTP/1.0 [16:29:16]Method: POST [16:29:16]URL: /json_proto [16:29:16]Method is POST - this is cgi request [16:29:16]url: /json_proto [16:29:16]query_string will be loaded in cgi processing [16:29:16]execute_cgi json_proto POST (null) [16:29:16]execute_cgi path=json_proto method=POST [16:29:16]POST find Content-Length [16:29:16]Host: 172.17.59.68:8080 [16:29:16]Content-Length: 678 [16:29:16]Content-Type: application/json [16:29:16] [16:29:16]POST finish read [16:29:16]Found Content-Length = 678 [16:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320969", "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.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:16]execute_script... [16: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)320969", "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.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:16]POST & json_proto [16:29:16]process_json_proto [16:29:16]json parsed OK: [16:29:16]protocol is kg_v1.0 [16:29:16]action value=close_receipt [16:29:16]process_action close_receipt [16:29:16]cmd_close_receipt [16:29:16]MH_GetDate [16:29:16]Write to MH i2c: F0 00 00 B5 44 E8 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: F0 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: F0 09 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: F0 09 00 B5 44 00 F9 FB 76 66 BC EC 60 65 2E [16:29:16]GetLastDocTimeStamp 1719073682 [16:29:16]current date 1719073785 [16:29:16]FM_GetShiftState [16:29:16]SAM_PROTO_GetShiftState [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 13 01 00 [16:29:16]Write to MH i2c: E2 08 00 B6 44 80 13 01 00 00 00 00 00 77 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 0E 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 0E 00 B6 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AC [16:29:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:29:17]wFMCommunicate OK [16:29:17]SAM_PROTO_GetShiftState done [16:29:17]FM_GetShiftState done [16:29:17]opened in 1719020067 [16:29:17]opened+sec_in_day 1719106467 [16:29:17]quantity*price = 80012 [16:29:17]sum+1 = 80013 [16:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 158 22.06.2024 16:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112292 ФПД: 226137712247743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162945&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112292&fm=226137712247743&tin=02508201610067®Number=0000000000092771&sum=80000 [16:29:18]StoreToDocumentArchive [16:29:18]shift 391 fd 112292 [16:29:18]save to /storage/0391/doc_00112292 [16:29:18]save last doc name /storage/0391/doc_00112292 to /storage/kkm_last_doc_name [16:29:18]save OK [16:29:18]Clear old archive folders... [16:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:18]tlvbuf is B6F59350 [16:29:18]SAM_PROTO_ClearQueue [16:29:18]wFMCommunicate request_size=4 [16:29:18]MH_SAM_APDU [16:29:18]CAPDU: 80 09 00 00 [16:29:18]Write to MH i2c: E2 08 00 C3 44 80 09 00 00 00 00 00 00 79 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 C3 44 00 90 00 7B [16:29:18]RAPDU: 90 00 [16:29:18]wFMCommunicate OK [16:29:18]SAM_PROTO_ClearQueue done [16:29:18]KKMCreateOFDPacket [16:29:18]OFDProtocolAddRootSTLVToBuf [16:29:18]FM_MakeSignedData [16:29:18]FM_MakeSignedData [16:29:18]SAM_PROTO_SignData [16:29:18]wFMCommunicate request_size=4 [16:29:18]MH_SAM_APDU [16:29:18]CAPDU: 80 0D 01 02 [16:29:18]Write to MH i2c: E2 08 00 C4 44 80 0D 01 02 00 00 00 00 81 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 C4 44 00 90 00 7C [16:29:18]RAPDU: 90 00 [16:29:18]wFMCommunicate OK [16:29:18]wFMCommunicate request_size=255 [16:29:18]MH_SAM_APDU [16:29: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 9E 00 00 00 F4 03 04 00 F9 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B6 01 00 35 04 06 00 CD [16:29:18]Write to MH i2c: E2 02 01 C5 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 9E 00 00 00 F4 03 04 00 F9 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B6 01 00 35 04 06 00 CD 00 00 42 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 C5 44 00 90 00 7D [16:29:18]RAPDU: 90 00 [16:29:18]wFMCommunicate OK [16:29:18]wFMCommunicate request_size=10 [16:29:18]MH_SAM_APDU [16:29:18]CAPDU: 80 0D 02 02 05 AB CA 02 43 BF [16:29:18]Write to MH i2c: E2 0D 00 C6 44 80 0D 02 02 05 00 AB CA 02 43 BF 00 00 07 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 03 00 C6 44 00 90 00 7E [16:29:18]RAPDU: 90 00 [16:29:18]wFMCommunicate OK [16:29:18]wFMCommunicate request_size=4 [16:29:18]MH_SAM_APDU [16:29:18]CAPDU: 80 0D 03 02 [16:29:18]Write to MH i2c: E2 08 00 C7 44 80 0D 03 02 00 00 00 00 86 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 0B 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 0B 00 C7 44 00 12 1C A3 54 81 88 57 25 90 00 31 [16:29:18]RAPDU: 12 1C A3 54 81 88 57 25 90 00 [16:29:18]wFMCommunicate OK [16:29:18]SAM_PROTO_SignData done [16:29:18]FM_MakeSignedData done [16:29:18]CreateOFDProtocolMessage [16:29:18]wFMCommunicate request_size=4 [16:29:18]MH_SAM_APDU [16:29:18]CAPDU: 80 11 00 00 [16:29:18]Write to MH i2c: E2 08 00 C8 44 80 11 00 00 00 00 00 00 86 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:18]Read from MH i2c: E2 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 17 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: E2 17 00 C8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [16:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:29:18]wFMCommunicate OK [16:29:18]CreateOFDProtocolMessage done [16:29:18]OFDSenderStorePacket 112292 [16:29:18]StoreOFDPacket docnum=112292 [16:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 46 E8 07 01 D9 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 9E 00 00 00 F4 03 04 00 F9 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B6 01 00 35 04 06 00 CD AB CA 02 43 BF 12 1C A3 54 81 88 57 25 [16:29:18]CheckFolder [16:29:18]dirname=/storage/ofd_packets [16:29:18]CheckFolder done [16:29:18]ProducePacketName [16:29:18]name=ofd_packets/00112292 [16:29:18]NVStorageSaveData ofd_packets/00112292 [16:29:18]File name is /storage/ofd_packets/00112292 [16:29:18]Write 301 bytes [16:29:18]NVStorageSaveData done [16:29:18]OFDSenderStorePacket done [16:29:18]KKMCreateOFDPacket done [16:29:18]NVStorageSaveData kkm_last_timestamp [16:29:18]File name is /storage/kkm_last_timestamp [16:29:18]Write 4 bytes [16:29:18]NVStorageSaveData done [16:29:18]ExternCall_PrintAddStr [16:29:18]wPrintStart [16:29:18]Write to MH i2c: 01 00 00 C9 44 0D [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: 01 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: 01 07 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: 01 07 00 C9 44 00 00 00 00 00 FF 0F 22 [16:29:18]RasterBufferAndPrint [16:29:18]line Счет N : (1)320969 [16:29:18]line ИНН: 02508201610067 [16:29:18]line Контрольно-Кассовый Чек [16:29:18]line ПРОДАЖА [16:29:18]line ТРК (МРК, ГНК) : 11 [16:29:18]line Товар: 2710124130 [16:29:18]line Аи-92-К-5 [16:29:18]line 12.050 * 66.40 [16:29:18]line = 800.12 [16:29:18]line НДС 12% НСП 1% [16:29:18]line > о реализуемом товаре [16:29:18]line ОКРУГЛЕНИЕ: -0.12 [16:29:18]line ИТОГО: 800.00 [16:29:18]line Внесено: 800.00 [16:29:18]line СДАЧА: 0.00 [16:29:18]line НСП 1% : 7.08 [16:29:18]line НДС 12% : 84.97 [16:29:18]line Наличными: 800.00 [16:29:18]line Безнал.: 0.00 [16:29:18]line Место: АЗС № 65 "Партнер Нефть" [16:29:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:29:18]line СНО: Общий режим [16:29:18]line Чек 158 22.06.2024 16:29 [16:29:18]line Смена: 391 ФФД: 1.0 [16:29:18]line ЗНМ: 0300000198 [16:29:18]line РНМ: 0000000000092771 [16:29:18]line Версия ККМ: 001 [16:29:18]line ФМ: 0000000000875083 [16:29:18]line ФД: 112292 [16:29:18]line ФПД: 226137712247743 [16:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162945&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112292&fm=226137712247743&tin=02508201610067®Number=0000000000092771&sum=80000 [16:29:19]OFD Sender: Processing packet 112292 [packets to send 38, broken 37] [16:29:19]ProducePacketName [16:29:19]name=ofd_packets/00112292 [16:29:19]OFD Sender: To server: pG, [16:29:19]CommunicateWithHost lk.salyk.kg:30040 [16:29:19]ConnectInit lk.salyk.kg [16:29:19]written 0, free lines is 4095 [16:29:19]Connected sock=9 [16:29:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 46 E8 07 01 D9 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 9E 00 00 00 F4 03 04 00 F9 FB 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B6 01 00 35 04 06 00 CD AB CA 02 43 BF 12 1C A3 54 81 88 57 25 [16:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DB 8A 47 00 44 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B6 01 00 F4 03 04 00 00 93 76 66 B6 04 01 00 00 5D 00 2D 2B 17 29 37 12 [16:29:19]CommunicateWithHost err = 0 [16:29:19]CheckOFDResponse [16:29:19]1017 (14) - 77093643461234 [16:29:19]1041 (16) - 0000000000875083 [16:29:19]1040 (4) - 112292 [16:29:19]1012 (4) - 22.06.2024 09:01 [16:29:19]1206 (1) - 0 [16:29:19]OFD Sender: Remove packet 112292 [16:29:19]ProducePacketName [16:29:19]name=ofd_packets/00112292 [16:29:19]NVStorageDeleteData [16:29:19]Write to MH i2c: 01 00 00 F4 44 38 [16:29:19]Write i2c OK [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: 01 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: 01 07 00 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: 01 07 00 F4 44 00 00 00 00 00 EF 0C 3A [16:29:19]RasterBufferAndPrint [16:29:19]line [16:29:19]line [16:29:19]line [16:29:19]line [16:29:19]line [16:29:19]written 0, free lines is 3317 [16:29:19]MH_Cut [16:29:19]Write to MH i2c: D1 01 00 FB 44 01 11 [16:29:19]Write i2c OK [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: D1 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: D1 01 00 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: D1 01 00 FB 44 00 10 [16:29:19]Write to MH i2c: 01 00 00 FC 44 40 [16:29:19]Write i2c OK [16:29:19]MH_I2C_Read... [16:29:19]OFD Sender: No OFD packet to send [16:29:20]*** Cut start [16:29:20]*** Partial cut [16:29:20]*** CUTSNS_PIN = 1 [16:29:20]*** CUTSNS_PIN = 0 [16:29:20]*** Brake cut motor [16:29:20]Read from MH i2c: 01 [16:29:20]MH_I2C_Read... [16:29:20]*** Stop cut motor [16:29:20]*** Cut end [16:29:20]Read from MH i2c: 01 07 00 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: 01 07 00 FC 44 00 00 00 00 00 FF 0F 55 [16:29:20]process_action close_receipt done [16:29:20]requested_data is exist [16:29:20]produce_requested_data [16:29:20]requested_item fm.sn is exist - process it [16:29:20]wFMCommunicate request_size=4 [16:29:20]MH_SAM_APDU [16:29:20]CAPDU: 80 11 00 00 [16:29:20]Write to MH i2c: E2 08 00 FD 44 80 11 00 00 00 00 00 00 BB [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:20]Read from MH i2c: E2 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: E2 17 00 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: E2 17 00 FD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [16:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:29:20]wFMCommunicate OK [16:29:20]requested_item fd.num is exist - process it [16:29:20]SAM_PROTO_GetFieldsCounters [16:29:20]wFMCommunicate request_size=4 [16:29:20]MH_SAM_APDU [16:29:20]CAPDU: 80 13 00 00 [16:29:20]Write to MH i2c: E2 08 00 FE 44 80 13 00 00 00 00 00 00 BE [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 62 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 62 00 FE 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [16: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetFieldsCounters done [16:29:21]requested_item shift.num is exist - process it [16:29:21]requested_item shift.opened is exist - process it [16:29:21]req_shift_opened [16:29:21]FM_GetShiftState [16:29:21]SAM_PROTO_GetShiftState [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 01 00 [16:29:21]Write to MH i2c: E2 08 00 FF 44 80 13 01 00 00 00 00 00 C0 [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 FF 44 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F5 [16:29:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetShiftState done [16:29:21]FM_GetShiftState done [16:29:21]req_shift_opened done [16:29:21]requested_item shift.open_date is exist - process it [16:29:21]req_shift_open_date [16:29:21]req_shift_open_date done [16:29:21]produce_requested_data done [16:29:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112292,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:29:21]process_action_free close_receipt [16:29:21]json_value_free [16:29:21]json_value_free done [16:29:21]process_json_proto returns [16:29:21]Send response to host [16:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112292,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:29:21]free response buf [16:29:21]execute_script done [16:29:21]execute_script returns [16:29:21]free content buf [16:29:21]Sock 10.Close socket [16:29:21]Sock 10.Thread stoped [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:43]accept exits with 7 [16:31:43]New connection [16:31:43]New thread 3066813796 created [16:31:43]Thread 3066957156 joined [16:31:43]Waiting for new connection... [16:31:43] Sock 7.Parse request [16:31:43]Sock 7.Check first char [16:31:43]Sock 7.First char is OK [16:31:43]request: POST /json_proto HTTP/1.0 [16:31:43]Method: POST [16:31:43]URL: /json_proto [16:31:43]Method is POST - this is cgi request [16:31:43]url: /json_proto [16:31:43]query_string will be loaded in cgi processing [16:31:43]execute_cgi json_proto POST (null) [16:31:43]execute_cgi path=json_proto method=POST [16:31:43]POST find Content-Length [16:31:43]Host: 172.17.59.68:8080 [16:31:43]Content-Length: 682 [16:31:43]Content-Type: application/json [16:31:43] [16:31:43]POST finish read [16:31:43]Found Content-Length = 682 [16:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320970", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:43]execute_script... [16:31: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)320970", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:43]POST & json_proto [16:31:43]process_json_proto [16:31:43]json parsed OK: [16:31:43]protocol is kg_v1.0 [16:31:43]action value=close_receipt [16:31:43]process_action close_receipt [16:31:43]cmd_close_receipt [16:31:43]MH_GetDate [16:31:43]Write to MH i2c: F0 00 00 00 45 34 [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: F0 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: F0 09 00 [16:31:43]MH_I2C_Read... [16:31:43]Read from MH i2c: F0 09 00 00 45 00 8C FC 76 66 BC EC 60 65 0E [16:31:43]GetLastDocTimeStamp 1719073785 [16:31:43]current date 1719073932 [16:31:43]FM_GetShiftState [16:31:43]SAM_PROTO_GetShiftState [16:31:43]wFMCommunicate request_size=4 [16:31:43]MH_SAM_APDU [16:31:43]CAPDU: 80 13 01 00 [16:31:43]Write to MH i2c: E2 08 00 01 45 80 13 01 00 00 00 00 00 C3 [16:31:43]Write i2c OK [16:31:43]MH_I2C_Read... [16:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:44]Read from MH i2c: E2 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: E2 0E 00 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: E2 0E 00 01 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F8 [16:31:44]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:31:44]wFMCommunicate OK [16:31:44]SAM_PROTO_GetShiftState done [16:31:44]FM_GetShiftState done [16:31:44]opened in 1719020067 [16:31:44]opened+sec_in_day 1719106467 [16:31:44]quantity*price = 100064 [16:31:44]sum+1 = 100066 [16:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 159 22.06.2024 16:32 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112293 ФПД: 22676134775766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163212&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112293&fm=22676134775766&tin=02508201610067®Number=0000000000092771&sum=100000 [16:31:45]StoreToDocumentArchive [16:31:45]shift 391 fd 112293 [16:31:45]save to /storage/0391/doc_00112293 [16:31:45]save last doc name /storage/0391/doc_00112293 to /storage/kkm_last_doc_name [16:31:45]save OK [16:31:45]Clear old archive folders... [16:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:45]tlvbuf is 0114B650 [16:31:45]SAM_PROTO_ClearQueue [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 09 00 00 [16:31:45]Write to MH i2c: E2 08 00 0E 45 80 09 00 00 00 00 00 00 C5 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 0E 45 00 90 00 C7 [16:31:45]RAPDU: 90 00 [16:31:45]wFMCommunicate OK [16:31:45]SAM_PROTO_ClearQueue done [16:31:45]KKMCreateOFDPacket [16:31:45]OFDProtocolAddRootSTLVToBuf [16:31:45]FM_MakeSignedData [16:31:45]FM_MakeSignedData [16:31:45]SAM_PROTO_SignData [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 0D 01 02 [16:31:45]Write to MH i2c: E2 08 00 0F 45 80 0D 01 02 00 00 00 00 CD [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 0F 45 00 90 00 C8 [16:31:45]RAPDU: 90 00 [16:31:45]wFMCommunicate OK [16:31:45]wFMCommunicate request_size=255 [16:31:45]MH_SAM_APDU [16:31: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 8C FC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B6 01 00 35 04 06 00 14 [16:31:45]Write to MH i2c: E2 02 01 10 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 8C FC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B6 01 00 35 04 06 00 14 00 00 CC [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 10 45 00 90 00 C9 [16:31:45]RAPDU: 90 00 [16:31:45]wFMCommunicate OK [16:31:45]wFMCommunicate request_size=10 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 0D 02 02 05 9F B2 F5 4B D6 [16:31:45]Write to MH i2c: E2 0D 00 11 45 80 0D 02 02 05 00 9F B2 F5 4B D6 00 00 41 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 03 00 11 45 00 90 00 CA [16:31:45]RAPDU: 90 00 [16:31:45]wFMCommunicate OK [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 0D 03 02 [16:31:45]Write to MH i2c: E2 08 00 12 45 80 0D 03 02 00 00 00 00 D2 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 0B 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 0B 00 12 45 00 63 F9 0B 28 03 46 52 4C 90 00 49 [16:31:45]RAPDU: 63 F9 0B 28 03 46 52 4C 90 00 [16:31:45]wFMCommunicate OK [16:31:45]SAM_PROTO_SignData done [16:31:45]FM_MakeSignedData done [16:31:45]CreateOFDProtocolMessage [16:31:45]wFMCommunicate request_size=4 [16:31:45]MH_SAM_APDU [16:31:45]CAPDU: 80 11 00 00 [16:31:45]Write to MH i2c: E2 08 00 13 45 80 11 00 00 00 00 00 00 D2 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:45]Read from MH i2c: E2 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 17 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: E2 17 00 13 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [16:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:31:45]wFMCommunicate OK [16:31:45]CreateOFDProtocolMessage done [16:31:45]OFDSenderStorePacket 112293 [16:31:45]StoreOFDPacket docnum=112293 [16:31:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB DD 07 01 6B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 8C FC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B6 01 00 35 04 06 00 14 9F B2 F5 4B D6 63 F9 0B 28 03 46 52 4C [16:31:45]CheckFolder [16:31:45]dirname=/storage/ofd_packets [16:31:45]CheckFolder done [16:31:45]ProducePacketName [16:31:45]name=ofd_packets/00112293 [16:31:45]NVStorageSaveData ofd_packets/00112293 [16:31:45]File name is /storage/ofd_packets/00112293 [16:31:45]Write 301 bytes [16:31:45]NVStorageSaveData done [16:31:45]OFDSenderStorePacket done [16:31:45]KKMCreateOFDPacket done [16:31:45]NVStorageSaveData kkm_last_timestamp [16:31:45]File name is /storage/kkm_last_timestamp [16:31:45]Write 4 bytes [16:31:45]NVStorageSaveData done [16:31:45]ExternCall_PrintAddStr [16:31:45]wPrintStart [16:31:45]Write to MH i2c: 01 00 00 14 45 59 [16:31:45]Write i2c OK [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 07 00 [16:31:45]MH_I2C_Read... [16:31:45]Read from MH i2c: 01 07 00 14 45 00 00 00 00 00 FF 0F 6E [16:31:45]RasterBufferAndPrint [16:31:45]line Счет N : (1)320970 [16:31:45]line ИНН: 02508201610067 [16:31:45]line Контрольно-Кассовый Чек [16:31:45]line ПРОДАЖА [16:31:45]line ТРК (МРК, ГНК) : 11 [16:31:45]line Товар: 2710124130 [16:31:45]line Аи-92-К-5 [16:31:45]line 15.070 * 66.40 [16:31:45]line = 1000.65 [16:31:45]line НДС 12% НСП 1% [16:31:45]line > о реализуемом товаре [16:31:45]line ОКРУГЛЕНИЕ: -0.65 [16:31:45]line ИТОГО: 1000.00 [16:31:45]line Внесено: 1000.00 [16:31:45]line СДАЧА: 0.00 [16:31:45]line НСП 1% : 8.85 [16:31:45]line НДС 12% : 106.26 [16:31:45]line Наличными: 1000.00 [16:31:45]line Безнал.: 0.00 [16:31:45]line Место: АЗС № 65 "Партнер Нефть" [16:31:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:31:45]line СНО: Общий режим [16:31:45]line Чек 159 22.06.2024 16:32 [16:31:45]line Смена: 391 ФФД: 1.0 [16:31:45]line ЗНМ: 0300000198 [16:31:45]line РНМ: 0000000000092771 [16:31:45]line Версия ККМ: 001 [16:31:45]line ФМ: 0000000000875083 [16:31:45]line ФД: 112293 [16:31:45]line ФПД: 22676134775766 [16:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163212&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112293&fm=22676134775766&tin=02508201610067®Number=0000000000092771&sum=100000 [16:31:46]OFD Sender: Processing packet 112293 [packets to send 38, broken 37] [16:31:46]ProducePacketName [16:31:46]name=ofd_packets/00112293 [16:31:46]OFD Sender: To server: pG, [16:31:46]CommunicateWithHost lk.salyk.kg:30040 [16:31:46]ConnectInit lk.salyk.kg [16:31:46]written 0, free lines is 4095 [16:31:46]Connected sock=10 [16:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB DD 07 01 6B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 8C FC 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B6 01 00 35 04 06 00 14 9F B2 F5 4B D6 63 F9 0B 28 03 46 52 4C [16:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E 9B 47 00 47 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B6 01 00 F4 03 04 00 93 93 76 66 B6 04 01 00 00 12 8F AB F8 AC B5 DB 76 [16:31:46]CommunicateWithHost err = 0 [16:31:46]CheckOFDResponse [16:31:46]1017 (14) - 77093643461234 [16:31:46]1041 (16) - 0000000000875083 [16:31:46]1040 (4) - 112293 [16:31:46]1012 (4) - 22.06.2024 09:04 [16:31:46]1206 (1) - 0 [16:31:46]OFD Sender: Remove packet 112293 [16:31:46]ProducePacketName [16:31:46]name=ofd_packets/00112293 [16:31:46]NVStorageDeleteData [16:31:46]Write to MH i2c: 01 00 00 3F 45 84 [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: 01 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: 01 07 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: 01 07 00 3F 45 00 00 00 00 00 E4 0C 7B [16:31:46]RasterBufferAndPrint [16:31:46]line [16:31:46]line [16:31:46]line [16:31:46]line [16:31:46]line [16:31:46]written 0, free lines is 3306 [16:31:46]MH_Cut [16:31:46]Write to MH i2c: D1 01 00 46 45 01 5D [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: D1 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: D1 01 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: D1 01 00 46 45 00 5C [16:31:46]Write to MH i2c: 01 00 00 47 45 8C [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]OFD Sender: No OFD packet to send [16:31:47]*** Cut start [16:31:47]*** Partial cut [16:31:47]*** CUTSNS_PIN = 1 [16:31:47]*** CUTSNS_PIN = 0 [16:31:47]*** Brake cut motor [16:31:47]Read from MH i2c: 01 [16:31:47]MH_I2C_Read... [16:31:47]*** Stop cut motor [16:31:47]*** Cut end [16:31:47]Read from MH i2c: 01 07 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 07 00 47 45 00 00 00 00 00 FF 0F A1 [16:31:47]process_action close_receipt done [16:31:47]requested_data is exist [16:31:47]produce_requested_data [16:31:47]requested_item fm.sn is exist - process it [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 11 00 00 [16:31:47]Write to MH i2c: E2 08 00 48 45 80 11 00 00 00 00 00 00 07 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 48 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [16:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:31:47]wFMCommunicate OK [16:31:47]requested_item fd.num is exist - process it [16:31:47]SAM_PROTO_GetFieldsCounters [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 13 00 00 [16:31:47]Write to MH i2c: E2 08 00 49 45 80 13 00 00 00 00 00 00 0A [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 62 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 62 00 49 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_GetFieldsCounters done [16:31:47]requested_item shift.num is exist - process it [16:31:47]requested_item shift.opened is exist - process it [16:31:47]req_shift_opened [16:31:47]FM_GetShiftState [16:31:47]SAM_PROTO_GetShiftState [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 13 01 00 [16:31:47]Write to MH i2c: E2 08 00 4A 45 80 13 01 00 00 00 00 00 0C [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 0E 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 0E 00 4A 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 41 [16:31:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:31:48]wFMCommunicate OK [16:31:48]SAM_PROTO_GetShiftState done [16:31:48]FM_GetShiftState done [16:31:48]req_shift_opened done [16:31:48]requested_item shift.open_date is exist - process it [16:31:48]req_shift_open_date [16:31:48]req_shift_open_date done [16:31:48]produce_requested_data done [16:31:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112293,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:31:48]process_action_free close_receipt [16:31:48]json_value_free [16:31:48]json_value_free done [16:31:48]process_json_proto returns [16:31:48]Send response to host [16:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112293,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:31:48]free response buf [16:31:48]execute_script done [16:31:48]execute_script returns [16:31:48]free content buf [16:31:48]Sock 7.Close socket [16:31:48]Sock 7.Thread stoped [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:52]accept exits with 9 [16:33:52]New connection [16:33:52]New thread 3066957156 created [16:33:52]Thread 3066813796 joined [16:33:52]Waiting for new connection... [16:33:52] Sock 9.Parse request [16:33:52]Sock 9.Check first char [16:33:52]Sock 9.First char is OK [16:33:52]request: POST /json_proto HTTP/1.0 [16:33:52]Method: POST [16:33:52]URL: /json_proto [16:33:52]Method is POST - this is cgi request [16:33:52]url: /json_proto [16:33:52]query_string will be loaded in cgi processing [16:33:52]execute_cgi json_proto POST (null) [16:33:52]execute_cgi path=json_proto method=POST [16:33:52]POST find Content-Length [16:33:52]Host: 172.17.59.68:8080 [16:33:52]Content-Length: 677 [16:33:52]Content-Type: application/json [16:33:52] [16:33:52]POST finish read [16:33:52]Found Content-Length = 677 [16:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320971", "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.40, "quantity" : 5.280, "sum" : 350.59, "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:33:52]execute_script... [16:33: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)320971", "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.40, "quantity" : 5.280, "sum" : 350.59, "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:33:52]POST & json_proto [16:33:52]process_json_proto [16:33:52]json parsed OK: [16:33:52]protocol is kg_v1.0 [16:33:52]action value=close_receipt [16:33:52]process_action close_receipt [16:33:52]cmd_close_receipt [16:33:52]MH_GetDate [16:33:52]Write to MH i2c: F0 00 00 4B 45 7F [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: F0 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: F0 09 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: F0 09 00 4B 45 00 0D FD 76 66 BC EC 60 65 DB [16:33:52]GetLastDocTimeStamp 1719073932 [16:33:52]current date 1719074061 [16:33:52]FM_GetShiftState [16:33:52]SAM_PROTO_GetShiftState [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 13 01 00 [16:33:52]Write to MH i2c: E2 08 00 4C 45 80 13 01 00 00 00 00 00 0E [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0E 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0E 00 4C 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 43 [16:33:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:33:52]wFMCommunicate OK [16:33:52]SAM_PROTO_GetShiftState done [16:33:52]FM_GetShiftState done [16:33:52]opened in 1719020067 [16:33:52]opened+sec_in_day 1719106467 [16:33:52]quantity*price = 35059 [16:33:52]sum+1 = 35060 [16:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 160 22.06.2024 16:34 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112294 ФПД: 193646762917606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163421&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112294&fm=193646762917606&tin=02508201610067®Number=0000000000092771&sum=35000 [16:33:53]StoreToDocumentArchive [16:33:53]shift 391 fd 112294 [16:33:53]save to /storage/0391/doc_00112294 [16:33:53]save last doc name /storage/0391/doc_00112294 to /storage/kkm_last_doc_name [16:33:53]save OK [16:33:53]Clear old archive folders... [16:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:53]tlvbuf is B6DA97E0 [16:33:53]SAM_PROTO_ClearQueue [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 09 00 00 [16:33:53]Write to MH i2c: E2 08 00 59 45 80 09 00 00 00 00 00 00 10 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 59 45 00 90 00 12 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_ClearQueue done [16:33:53]KKMCreateOFDPacket [16:33:53]OFDProtocolAddRootSTLVToBuf [16:33:53]FM_MakeSignedData [16:33:53]FM_MakeSignedData [16:33:53]SAM_PROTO_SignData [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 01 02 [16:33:53]Write to MH i2c: E2 08 00 5A 45 80 0D 01 02 00 00 00 00 18 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 03 00 5A 45 00 90 00 13 [16:33:53]RAPDU: 90 00 [16:33:53]wFMCommunicate OK [16:33:53]wFMCommunicate request_size=255 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 A0 00 00 00 F4 03 04 00 0D FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B6 01 00 35 04 06 00 B0 [16:33:53]Write to MH i2c: E2 02 01 5B 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 A0 00 00 00 F4 03 04 00 0D FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B6 01 00 35 04 06 00 B0 00 00 C5 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 5B 45 00 90 00 14 [16:33:54]RAPDU: 90 00 [16:33:54]wFMCommunicate OK [16:33:54]wFMCommunicate request_size=10 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 0D 02 02 05 1E E6 83 FE E6 [16:33:54]Write to MH i2c: E2 0D 00 5C 45 80 0D 02 02 05 00 1E E6 83 FE E6 00 00 90 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 03 00 5C 45 00 90 00 15 [16:33:54]RAPDU: 90 00 [16:33:54]wFMCommunicate OK [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 0D 03 02 [16:33:54]Write to MH i2c: E2 08 00 5D 45 80 0D 03 02 00 00 00 00 1D [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 0B 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 0B 00 5D 45 00 D3 3B 38 1A 4E 0D 7F 88 90 00 E0 [16:33:54]RAPDU: D3 3B 38 1A 4E 0D 7F 88 90 00 [16:33:54]wFMCommunicate OK [16:33:54]SAM_PROTO_SignData done [16:33:54]FM_MakeSignedData done [16:33:54]CreateOFDProtocolMessage [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 11 00 00 [16:33:54]Write to MH i2c: E2 08 00 5E 45 80 11 00 00 00 00 00 00 1D [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 17 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 17 00 5E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [16:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:33:54]wFMCommunicate OK [16:33:54]CreateOFDProtocolMessage done [16:33:54]OFDSenderStorePacket 112294 [16:33:54]StoreOFDPacket docnum=112294 [16:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C C2 07 01 6F 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 A0 00 00 00 F4 03 04 00 0D FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B6 01 00 35 04 06 00 B0 1E E6 83 FE E6 D3 3B 38 1A 4E 0D 7F 88 [16:33:54]CheckFolder [16:33:54]dirname=/storage/ofd_packets [16:33:54]CheckFolder done [16:33:54]ProducePacketName [16:33:54]name=ofd_packets/00112294 [16:33:54]NVStorageSaveData ofd_packets/00112294 [16:33:54]File name is /storage/ofd_packets/00112294 [16:33:54]Write 301 bytes [16:33:54]NVStorageSaveData done [16:33:54]OFDSenderStorePacket done [16:33:54]KKMCreateOFDPacket done [16:33:54]NVStorageSaveData kkm_last_timestamp [16:33:54]File name is /storage/kkm_last_timestamp [16:33:54]Write 4 bytes [16:33:54]NVStorageSaveData done [16:33:54]OFD Sender: Processing packet 112294 [packets to send 38, broken 37] [16:33:54]ProducePacketName [16:33:54]name=ofd_packets/00112294 [16:33:54]OFD Sender: To server: pG, [16:33:54]CommunicateWithHost lk.salyk.kg:30040 [16:33:54]ConnectInit lk.salyk.kg [16:33:54]ExternCall_PrintAddStr [16:33:54]wPrintStart [16:33:54]Write to MH i2c: 01 00 00 5F 45 A4 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 5F 45 00 00 00 00 00 FF 0F B9 [16:33:54]RasterBufferAndPrint [16:33:54]line Счет N : (1)320971 [16:33:54]line ИНН: 02508201610067 [16:33:54]line Контрольно-Кассовый Чек [16:33:54]line ПРОДАЖА [16:33:54]line ТРК (МРК, ГНК) : 11 [16:33:54]line Товар: 2710124130 [16:33:54]line Аи-92-К-5 [16:33:54]line 5.280 * 66.40 [16:33:54]line = 350.59 [16:33:54]line НДС 12% НСП 1% [16:33:54]line > о реализуемом товаре [16:33:54]line ОКРУГЛЕНИЕ: -0.59 [16:33:54]line ИТОГО: 350.00 [16:33:54]line Внесено: 350.00 [16:33:54]line СДАЧА: 0.00 [16:33:54]line НСП 1% : 3.10 [16:33:54]line НДС 12% : 37.23 [16:33:54]line Наличными: 350.00 [16:33:54]line Безнал.: 0.00 [16:33:54]line Место: АЗС № 65 "Партнер Нефть" [16:33:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:33:54]line СНО: Общий режим [16:33:54]line Чек 160 22.06.2024 16:34 [16:33:54]line Смена: 391 ФФД: 1.0 [16:33:54]line ЗНМ: 0300000198 [16:33:54]line РНМ: 0000000000092771 [16:33:54]line Версия ККМ: 001 [16:33:54]line ФМ: 0000000000875083 [16:33:54]line ФД: 112294 [16:33:54]line ФПД: 193646762917606 [16:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163421&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112294&fm=193646762917606&tin=02508201610067®Number=0000000000092771&sum=35000 [16:33:54]Connected sock=11 [16: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 35 30 38 33 0F 01 00 00 6C C2 07 01 6F 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 A0 00 00 00 F4 03 04 00 0D FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B6 01 00 35 04 06 00 B0 1E E6 83 FE E6 D3 3B 38 1A 4E 0D 7F 88 [16:33:54]written 0, free lines is 4095 [16:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 47 83 47 00 0C 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B6 01 00 F4 03 04 00 14 94 76 66 B6 04 01 00 00 6A 84 96 B0 70 52 9C AD [16:33:54]CommunicateWithHost err = 0 [16:33:54]CheckOFDResponse [16:33:54]1017 (14) - 77093643461234 [16:33:54]1041 (16) - 0000000000875083 [16:33:54]1040 (4) - 112294 [16:33:54]1012 (4) - 22.06.2024 09:06 [16:33:54]1206 (1) - 0 [16:33:54]OFD Sender: Remove packet 112294 [16:33:54]ProducePacketName [16:33:54]name=ofd_packets/00112294 [16:33:54]NVStorageDeleteData [16:33:55]Write to MH i2c: 01 00 00 8A 45 CF [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: 01 07 00 8A 45 00 00 00 00 00 E0 0C C2 [16:33:55]RasterBufferAndPrint [16:33:55]line [16:33:55]line [16:33:55]line [16:33:55]line [16:33:55]line [16:33:55]written 0, free lines is 3305 [16:33:55]MH_Cut [16:33:55]Write to MH i2c: D1 01 00 91 45 01 A8 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: D1 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: D1 01 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: D1 01 00 91 45 00 A7 [16:33:55]Write to MH i2c: 01 00 00 92 45 D7 [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]OFD Sender: No OFD packet to send [16:33:55]*** Cut start [16:33:55]*** Partial cut [16:33:55]*** CUTSNS_PIN = 1 [16:33:55]*** CUTSNS_PIN = 0 [16:33:56]*** Brake cut motor [16:33:56]Read from MH i2c: 01 [16:33:56]MH_I2C_Read... [16:33:56]*** Stop cut motor [16:33:56]*** Cut end [16:33:56]Read from MH i2c: 01 07 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: 01 07 00 92 45 00 00 00 00 00 FF 0F EC [16:33:56]process_action close_receipt done [16:33:56]requested_data is exist [16:33:56]produce_requested_data [16:33:56]requested_item fm.sn is exist - process it [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 11 00 00 [16:33:56]Write to MH i2c: E2 08 00 93 45 80 11 00 00 00 00 00 00 52 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 17 00 93 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [16:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:33:56]wFMCommunicate OK [16:33:56]requested_item fd.num is exist - process it [16:33:56]SAM_PROTO_GetFieldsCounters [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 13 00 00 [16:33:56]Write to MH i2c: E2 08 00 94 45 80 13 00 00 00 00 00 00 55 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 62 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 62 00 94 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_GetFieldsCounters done [16:33:56]requested_item shift.num is exist - process it [16:33:56]requested_item shift.opened is exist - process it [16:33:56]req_shift_opened [16:33:56]FM_GetShiftState [16:33:56]SAM_PROTO_GetShiftState [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 13 01 00 [16:33:56]Write to MH i2c: E2 08 00 95 45 80 13 01 00 00 00 00 00 57 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 95 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8C [16:33:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_GetShiftState done [16:33:56]FM_GetShiftState done [16:33:56]req_shift_opened done [16:33:56]requested_item shift.open_date is exist - process it [16:33:56]req_shift_open_date [16:33:56]req_shift_open_date done [16:33:56]produce_requested_data done [16:33:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112294,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:33:56]process_action_free close_receipt [16:33:56]json_value_free [16:33:56]json_value_free done [16:33:56]process_json_proto returns [16:33:56]Send response to host [16:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112294,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:33:56]free response buf [16:33:56]execute_script done [16:33:56]execute_script returns [16:33:56]free content buf [16:33:56]Sock 9.Close socket [16:33:56]Sock 9.Thread stoped [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:36]accept exits with 7 [16:34:36]New connection [16:34:36]New thread 3066813796 created [16:34:36]Thread 3066957156 joined [16:34:36]Waiting for new connection... [16:34:36] Sock 7.Parse request [16:34:36]Sock 7.Check first char [16:34:36]Sock 7.First char is OK [16:34:36]request: POST /json_proto HTTP/1.0 [16:34:36]Method: POST [16:34:36]URL: /json_proto [16:34:36]Method is POST - this is cgi request [16:34:36]url: /json_proto [16:34:36]query_string will be loaded in cgi processing [16:34:36]execute_cgi json_proto POST (null) [16:34:36]execute_cgi path=json_proto method=POST [16:34:36]POST find Content-Length [16:34:36]Host: 172.17.59.68:8080 [16:34:36]Content-Length: 642 [16:34:36]Content-Type: application/json [16:34:36] [16:34:36]POST finish read [16:34:36]Found Content-Length = 642 [16:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320972", "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.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:36]execute_script... [16:34: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)320972", "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.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:36]POST & json_proto [16:34:36]process_json_proto [16:34:36]json parsed OK: [16:34:36]protocol is kg_v1.0 [16:34:36]action value=close_receipt [16:34:36]process_action close_receipt [16:34:36]cmd_close_receipt [16:34:36]MH_GetDate [16:34:36]Write to MH i2c: F0 00 00 96 45 CA [16:34:36]Write i2c OK [16:34:36]MH_I2C_Read... [16:34:36]Read from MH i2c: F0 [16:34:36]MH_I2C_Read... [16:34:36]Read from MH i2c: F0 09 00 [16:34:36]MH_I2C_Read... [16:34:36]Read from MH i2c: F0 09 00 96 45 00 39 FD 76 66 BC EC 60 65 52 [16:34:36]GetLastDocTimeStamp 1719074061 [16:34:36]current date 1719074105 [16:34:36]FM_GetShiftState [16:34:36]SAM_PROTO_GetShiftState [16:34:36]wFMCommunicate request_size=4 [16:34:36]MH_SAM_APDU [16:34:36]CAPDU: 80 13 01 00 [16:34:36]Write to MH i2c: E2 08 00 97 45 80 13 01 00 00 00 00 00 59 [16:34:36]Write i2c OK [16:34:36]MH_I2C_Read... [16:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:36]Read from MH i2c: E2 [16:34:36]MH_I2C_Read... [16:34:36]Read from MH i2c: E2 0E 00 [16:34:36]MH_I2C_Read... [16:34:36]Read from MH i2c: E2 0E 00 97 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8E [16:34:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:34:36]wFMCommunicate OK [16:34:36]SAM_PROTO_GetShiftState done [16:34:36]FM_GetShiftState done [16:34:36]opened in 1719020067 [16:34:36]opened+sec_in_day 1719106467 [16:34:36]quantity*price = 199200 [16:34:36]sum+1 = 199201 [16:34:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1992.00 НСП 1% : 17.63 НДС 12% : 211.54 Наличными: 1992.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 161 22.06.2024 16:35 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112295 ФПД: 259621428798975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163505&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112295&fm=259621428798975&tin=02508201610067®Number=0000000000092771&sum=199200 [16:34:37]StoreToDocumentArchive [16:34:37]shift 391 fd 112295 [16:34:37]save to /storage/0391/doc_00112295 [16:34:37]save last doc name /storage/0391/doc_00112295 to /storage/kkm_last_doc_name [16:34:37]save OK [16:34:37]Clear old archive folders... [16:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:37]tlvbuf is B6DA98A0 [16:34:37]SAM_PROTO_ClearQueue [16:34:37]wFMCommunicate request_size=4 [16:34:37]MH_SAM_APDU [16:34:37]CAPDU: 80 09 00 00 [16:34:37]Write to MH i2c: E2 08 00 A4 45 80 09 00 00 00 00 00 00 5B [16:34:37]Write i2c OK [16:34:37]MH_I2C_Read... [16:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:37]Read from MH i2c: E2 [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: E2 03 00 [16:34:37]MH_I2C_Read... [16:34:37]Read from MH i2c: E2 03 00 A4 45 00 90 00 5D [16:34:37]RAPDU: 90 00 [16:34:37]wFMCommunicate OK [16:34:37]SAM_PROTO_ClearQueue done [16:34:37]KKMCreateOFDPacket [16:34:37]OFDProtocolAddRootSTLVToBuf [16:34:37]FM_MakeSignedData [16:34:37]FM_MakeSignedData [16:34:37]SAM_PROTO_SignData [16:34:37]wFMCommunicate request_size=4 [16:34:37]MH_SAM_APDU [16:34:37]CAPDU: 80 0D 01 02 [16:34:37]Write to MH i2c: E2 08 00 A5 45 80 0D 01 02 00 00 00 00 63 [16:34:37]Write i2c OK [16:34:37]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 A5 45 00 90 00 5E [16:34:38]RAPDU: 90 00 [16:34:38]wFMCommunicate OK [16:34:38]wFMCommunicate request_size=255 [16:34:38]MH_SAM_APDU [16:34: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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 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 39 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B6 01 00 35 04 06 00 EC [16:34:38]Write to MH i2c: E2 02 01 A6 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 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 39 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B6 01 00 35 04 06 00 EC 00 00 04 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 A6 45 00 90 00 5F [16:34:38]RAPDU: 90 00 [16:34:38]wFMCommunicate OK [16:34:38]wFMCommunicate request_size=10 [16:34:38]MH_SAM_APDU [16:34:38]CAPDU: 80 0D 02 02 05 1F D3 0A 25 FF [16:34:38]Write to MH i2c: E2 0D 00 A7 45 80 0D 02 02 05 00 1F D3 0A 25 FF 00 00 90 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 03 00 A7 45 00 90 00 60 [16:34:38]RAPDU: 90 00 [16:34:38]wFMCommunicate OK [16:34:38]wFMCommunicate request_size=4 [16:34:38]MH_SAM_APDU [16:34:38]CAPDU: 80 0D 03 02 [16:34:38]Write to MH i2c: E2 08 00 A8 45 80 0D 03 02 00 00 00 00 68 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 0B 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 0B 00 A8 45 00 1C B1 6D 98 62 C8 29 12 90 00 A0 [16:34:38]RAPDU: 1C B1 6D 98 62 C8 29 12 90 00 [16:34:38]wFMCommunicate OK [16:34:38]SAM_PROTO_SignData done [16:34:38]FM_MakeSignedData done [16:34:38]CreateOFDProtocolMessage [16:34:38]wFMCommunicate request_size=4 [16:34:38]MH_SAM_APDU [16:34:38]CAPDU: 80 11 00 00 [16:34:38]Write to MH i2c: E2 08 00 A9 45 80 11 00 00 00 00 00 00 68 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:38]Read from MH i2c: E2 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 17 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: E2 17 00 A9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [16:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:34:38]wFMCommunicate OK [16:34:38]CreateOFDProtocolMessage done [16:34:38]OFDSenderStorePacket 112295 [16:34:38]StoreOFDPacket docnum=112295 [16:34:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4B E6 07 01 D0 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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 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 39 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B6 01 00 35 04 06 00 EC 1F D3 0A 25 FF 1C B1 6D 98 62 C8 29 12 [16:34:38]CheckFolder [16:34:38]dirname=/storage/ofd_packets [16:34:38]CheckFolder done [16:34:38]ProducePacketName [16:34:38]name=ofd_packets/00112295 [16:34:38]NVStorageSaveData ofd_packets/00112295 [16:34:38]File name is /storage/ofd_packets/00112295 [16:34:38]Write 301 bytes [16:34:38]NVStorageSaveData done [16:34:38]OFDSenderStorePacket done [16:34:38]KKMCreateOFDPacket done [16:34:38]NVStorageSaveData kkm_last_timestamp [16:34:38]File name is /storage/kkm_last_timestamp [16:34:38]Write 4 bytes [16:34:38]NVStorageSaveData done [16:34:38]ExternCall_PrintAddStr [16:34:38]wPrintStart [16:34:38]Write to MH i2c: 01 00 00 AA 45 EF [16:34:38]OFD Sender: Processing packet 112295 [packets to send 38, broken 37] [16:34:38]ProducePacketName [16:34:38]name=ofd_packets/00112295 [16:34:38]OFD Sender: To server: pG, [16:34:38]CommunicateWithHost lk.salyk.kg:30040 [16:34:38]ConnectInit lk.salyk.kg [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: 01 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: 01 07 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: 01 07 00 AA 45 00 00 00 00 00 FF 0F 04 [16:34:38]RasterBufferAndPrint [16:34:38]line Счет N : (1)320972 [16:34:38]line ИНН: 02508201610067 [16:34:38]line Контрольно-Кассовый Чек [16:34:38]line ПРОДАЖА [16:34:38]line ТРК (МРК, ГНК) : 11 [16:34:38]line Товар: 2710124130 [16:34:38]line Аи-92-К-5 [16:34:38]line 30.000 * 66.40 [16:34:38]line = 1992.00 [16:34:38]line НДС 12% НСП 1% [16:34:38]line > о реализуемом товаре [16:34:38]line ИТОГО: 1992.00 [16:34:38]line НСП 1% : 17.63 [16:34:38]line НДС 12% : 211.54 [16:34:38]line Наличными: 1992.00 [16:34:38]line Безнал.: 0.00 [16:34:38]line Место: АЗС № 65 "Партнер Нефть" [16:34:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:34:38]line СНО: Общий режим [16:34:38]line Чек 161 22.06.2024 16:35 [16:34:38]line Смена: 391 ФФД: 1.0 [16:34:38]line ЗНМ: 0300000198 [16:34:38]line РНМ: 0000000000092771 [16:34:38]line Версия ККМ: 001 [16:34:38]line ФМ: 0000000000875083 [16:34:38]line ФД: 112295 [16:34:38]line ФПД: 259621428798975 [16:34:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163505&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112295&fm=259621428798975&tin=02508201610067®Number=0000000000092771&sum=199200 [16:34:38]written 0, free lines is 4095 [16:34:38]Connected sock=10 [16:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4B E6 07 01 D0 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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 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 39 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B6 01 00 35 04 06 00 EC 1F D3 0A 25 FF 1C B1 6D 98 62 C8 29 12 [16:34:38]Write to MH i2c: 01 00 00 D2 45 17 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: 01 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: 01 07 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: 01 07 00 D2 45 00 00 00 00 00 16 0D 41 [16:34:38]RasterBufferAndPrint [16:34:38]line [16:34:38]line [16:34:38]line [16:34:38]line [16:34:38]line [16:34:38]written 0, free lines is 3358 [16:34:38]MH_Cut [16:34:38]Write to MH i2c: D1 01 00 D9 45 01 F0 [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: D1 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: D1 01 00 [16:34:38]MH_I2C_Read... [16:34:38]Read from MH i2c: D1 01 00 D9 45 00 EF [16:34:38]Write to MH i2c: 01 00 00 DA 45 1F [16:34:38]Write i2c OK [16:34:38]MH_I2C_Read... [16:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F A5 47 00 8F E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B6 01 00 F4 03 04 00 40 94 76 66 B6 04 01 00 00 27 F2 BB 4F 6D 94 6E B7 [16:34:39]CommunicateWithHost err = 0 [16:34:39]CheckOFDResponse [16:34:39]1017 (14) - 77093643461234 [16:34:39]1041 (16) - 0000000000875083 [16:34:39]1040 (4) - 112295 [16:34:39]1012 (4) - 22.06.2024 09:07 [16:34:39]1206 (1) - 0 [16:34:39]OFD Sender: Remove packet 112295 [16:34:39]ProducePacketName [16:34:39]name=ofd_packets/00112295 [16:34:39]NVStorageDeleteData [16:34:39]OFD Sender: No OFD packet to send [16:34:39]*** Cut start [16:34:39]*** Partial cut [16:34:39]*** CUTSNS_PIN = 1 [16:34:39]*** CUTSNS_PIN = 0 [16:34:39]*** Brake cut motor [16:34:40]Read from MH i2c: 01 [16:34:40]MH_I2C_Read... [16:34:40]*** Stop cut motor [16:34:40]*** Cut end [16:34:40]Read from MH i2c: 01 07 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: 01 07 00 DA 45 00 00 00 00 00 FF 0F 34 [16:34:40]process_action close_receipt done [16:34:40]requested_data is exist [16:34:40]produce_requested_data [16:34:40]requested_item fm.sn is exist - process it [16:34:40]wFMCommunicate request_size=4 [16:34:40]MH_SAM_APDU [16:34:40]CAPDU: 80 11 00 00 [16:34:40]Write to MH i2c: E2 08 00 DB 45 80 11 00 00 00 00 00 00 9A [16:34:40]Write i2c OK [16:34:40]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 17 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 17 00 DB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [16:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:34:40]wFMCommunicate OK [16:34:40]requested_item fd.num is exist - process it [16:34:40]SAM_PROTO_GetFieldsCounters [16:34:40]wFMCommunicate request_size=4 [16:34:40]MH_SAM_APDU [16:34:40]CAPDU: 80 13 00 00 [16:34:40]Write to MH i2c: E2 08 00 DC 45 80 13 00 00 00 00 00 00 9D [16:34:40]Write i2c OK [16:34:40]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 62 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 62 00 DC 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:40]wFMCommunicate OK [16:34:40]SAM_PROTO_GetFieldsCounters done [16:34:40]requested_item shift.num is exist - process it [16:34:40]requested_item shift.opened is exist - process it [16:34:40]req_shift_opened [16:34:40]FM_GetShiftState [16:34:40]SAM_PROTO_GetShiftState [16:34:40]wFMCommunicate request_size=4 [16:34:40]MH_SAM_APDU [16:34:40]CAPDU: 80 13 01 00 [16:34:40]Write to MH i2c: E2 08 00 DD 45 80 13 01 00 00 00 00 00 9F [16:34:40]Write i2c OK [16:34:40]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 0E 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 0E 00 DD 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D4 [16:34:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:34:40]wFMCommunicate OK [16:34:40]SAM_PROTO_GetShiftState done [16:34:40]FM_GetShiftState done [16:34:40]req_shift_opened done [16:34:40]requested_item shift.open_date is exist - process it [16:34:40]req_shift_open_date [16:34:40]req_shift_open_date done [16:34:40]produce_requested_data done [16:34:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112295,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:34:40]process_action_free close_receipt [16:34:40]json_value_free [16:34:40]json_value_free done [16:34:40]process_json_proto returns [16:34:40]Send response to host [16:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112295,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:34:40]free response buf [16:34:40]execute_script done [16:34:40]execute_script returns [16:34:40]free content buf [16:34:40]Sock 7.Close socket [16:34:40]Sock 7.Thread stoped [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:31]accept exits with 9 [16:37:31]New connection [16:37:31]New thread 3066957156 created [16:37:31]Thread 3066813796 joined [16:37:31]Waiting for new connection... [16:37:31] Sock 9.Parse request [16:37:31]Sock 9.Check first char [16:37:31]Sock 9.First char is OK [16:37:31]request: POST /json_proto HTTP/1.0 [16:37:31]Method: POST [16:37:31]URL: /json_proto [16:37:31]Method is POST - this is cgi request [16:37:31]url: /json_proto [16:37:31]query_string will be loaded in cgi processing [16:37:31]execute_cgi json_proto POST (null) [16:37:31]execute_cgi path=json_proto method=POST [16:37:31]POST find Content-Length [16:37:31]Host: 172.17.59.68:8080 [16:37:31]Content-Length: 679 [16:37:31]Content-Type: application/json [16:37:31] [16:37:31]POST finish read [16:37:31]Found Content-Length = 679 [16:37:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:31]execute_script... [16:37: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)320973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:31]POST & json_proto [16:37:31]process_json_proto [16:37:31]json parsed OK: [16:37:31]protocol is kg_v1.0 [16:37:31]action value=close_receipt [16:37:31]process_action close_receipt [16:37:31]cmd_close_receipt [16:37:31]MH_GetDate [16:37:31]Write to MH i2c: F0 00 00 DE 45 12 [16:37:31]Write i2c OK [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: F0 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: F0 09 00 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: F0 09 00 DE 45 00 E7 FD 76 66 BC EC 60 65 48 [16:37:31]GetLastDocTimeStamp 1719074105 [16:37:31]current date 1719074279 [16:37:31]FM_GetShiftState [16:37:31]SAM_PROTO_GetShiftState [16:37:31]wFMCommunicate request_size=4 [16:37:31]MH_SAM_APDU [16:37:31]CAPDU: 80 13 01 00 [16:37:31]Write to MH i2c: E2 08 00 DF 45 80 13 01 00 00 00 00 00 A1 [16:37:31]Write i2c OK [16:37:31]MH_I2C_Read... [16:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:31]Read from MH i2c: E2 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: E2 0E 00 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: E2 0E 00 DF 45 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D6 [16:37:31]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:37:31]wFMCommunicate OK [16:37:31]SAM_PROTO_GetShiftState done [16:37:31]FM_GetShiftState done [16:37:31]opened in 1719020067 [16:37:31]opened+sec_in_day 1719106467 [16:37:31]quantity*price = 100018 [16:37:31]sum+1 = 100020 [16:37:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 162 22.06.2024 16:37 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112296 ФПД: 91145887150836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163759&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112296&fm=91145887150836&tin=02508201610067®Number=0000000000092771&sum=100000 [16:37:32]StoreToDocumentArchive [16:37:32]shift 391 fd 112296 [16:37:32]save to /storage/0391/doc_00112296 [16:37:32]save last doc name /storage/0391/doc_00112296 to /storage/kkm_last_doc_name [16:37:32]save OK [16:37:32]Clear old archive folders... [16:37:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:32]tlvbuf is B6F56320 [16:37:32]SAM_PROTO_ClearQueue [16:37:32]wFMCommunicate request_size=4 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 09 00 00 [16:37:32]Write to MH i2c: E2 08 00 EC 45 80 09 00 00 00 00 00 00 A3 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 EC 45 00 90 00 A5 [16:37:32]RAPDU: 90 00 [16:37:32]wFMCommunicate OK [16:37:32]SAM_PROTO_ClearQueue done [16:37:32]KKMCreateOFDPacket [16:37:32]OFDProtocolAddRootSTLVToBuf [16:37:32]FM_MakeSignedData [16:37:32]FM_MakeSignedData [16:37:32]SAM_PROTO_SignData [16:37:32]wFMCommunicate request_size=4 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 0D 01 02 [16:37:32]Write to MH i2c: E2 08 00 ED 45 80 0D 01 02 00 00 00 00 AB [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 ED 45 00 90 00 A6 [16:37:32]RAPDU: 90 00 [16:37:32]wFMCommunicate OK [16:37:32]wFMCommunicate request_size=255 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E7 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B6 01 00 35 04 06 00 52 E5 8E 39 [16:37:32]Write to MH i2c: E2 02 01 EE 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E7 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B6 01 00 35 04 06 00 52 E5 8E 39 00 00 58 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 EE 45 00 90 00 A7 [16:37:32]RAPDU: 90 00 [16:37:32]wFMCommunicate OK [16:37:32]wFMCommunicate request_size=7 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 0D 02 02 02 F2 F4 [16:37:32]Write to MH i2c: E2 0A 00 EF 45 80 0D 02 02 02 00 F2 F4 00 00 98 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 EF 45 00 90 00 A8 [16:37:32]RAPDU: 90 00 [16:37:32]wFMCommunicate OK [16:37:32]wFMCommunicate request_size=4 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 0D 03 02 [16:37:32]Write to MH i2c: E2 08 00 F0 45 80 0D 03 02 00 00 00 00 B0 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 0B 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 0B 00 F0 45 00 58 88 9F FA 65 96 28 3F 90 00 8C [16:37:32]RAPDU: 58 88 9F FA 65 96 28 3F 90 00 [16:37:32]wFMCommunicate OK [16:37:32]SAM_PROTO_SignData done [16:37:32]FM_MakeSignedData done [16:37:32]CreateOFDProtocolMessage [16:37:32]wFMCommunicate request_size=4 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 11 00 00 [16:37:32]Write to MH i2c: E2 08 00 F1 45 80 11 00 00 00 00 00 00 B0 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 17 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 17 00 F1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [16:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:37:32]wFMCommunicate OK [16:37:32]CreateOFDProtocolMessage done [16:37:32]OFDSenderStorePacket 112296 [16:37:32]StoreOFDPacket docnum=112296 [16:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F8 6A 04 01 5F 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E7 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B6 01 00 35 04 06 00 52 E5 8E 39 F2 F4 58 88 9F FA 65 96 28 3F [16:37:32]CheckFolder [16:37:32]dirname=/storage/ofd_packets [16:37:32]CheckFolder done [16:37:32]ProducePacketName [16:37:32]name=ofd_packets/00112296 [16:37:32]NVStorageSaveData ofd_packets/00112296 [16:37:32]File name is /storage/ofd_packets/00112296 [16:37:32]Write 298 bytes [16:37:32]NVStorageSaveData done [16:37:32]OFDSenderStorePacket done [16:37:32]KKMCreateOFDPacket done [16:37:32]NVStorageSaveData kkm_last_timestamp [16:37:32]File name is /storage/kkm_last_timestamp [16:37:32]Write 4 bytes [16:37:32]NVStorageSaveData done [16:37:32]ExternCall_PrintAddStr [16:37:32]wPrintStart [16:37:32]Write to MH i2c: 01 00 00 F2 45 37 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: 01 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: 01 07 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: 01 07 00 F2 45 00 00 00 00 00 FF 0F 4C [16:37:32]RasterBufferAndPrint [16:37:32]line Счет N : (1)320973 [16:37:32]line ИНН: 02508201610067 [16:37:32]line Контрольно-Кассовый Чек [16:37:32]line ПРОДАЖА [16:37:32]line ТРК (МРК, ГНК) : 22 [16:37:32]line Товар: 2710194210 [16:37:32]line ДТ-К-5 [16:37:32]line 13.720 * 72.90 [16:37:32]line = 1000.19 [16:37:32]line НДС 12% НСП 1% [16:37:32]line > о реализуемом товаре [16:37:32]line ОКРУГЛЕНИЕ: -0.19 [16:37:32]line ИТОГО: 1000.00 [16:37:32]line Внесено: 1000.00 [16:37:32]line СДАЧА: 0.00 [16:37:32]line НСП 1% : 8.85 [16:37:32]line НДС 12% : 106.21 [16:37:32]line Наличными: 1000.00 [16:37:32]line Безнал.: 0.00 [16:37:32]line Место: АЗС № 65 "Партнер Нефть" [16:37:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:37:32]line СНО: Общий режим [16:37:32]line Чек 162 22.06.2024 16:37 [16:37:32]line Смена: 391 ФФД: 1.0 [16:37:32]line ЗНМ: 0300000198 [16:37:32]line РНМ: 0000000000092771 [16:37:32]line Версия ККМ: 001 [16:37:32]line ФМ: 0000000000875083 [16:37:32]line ФД: 112296 [16:37:32]line ФПД: 91145887150836 [16:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163759&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112296&fm=91145887150836&tin=02508201610067®Number=0000000000092771&sum=100000 [16:37:32]OFD Sender: Processing packet 112296 [packets to send 38, broken 37] [16:37:32]ProducePacketName [16:37:32]name=ofd_packets/00112296 [16:37:32]OFD Sender: To server: pG, [16:37:32]CommunicateWithHost lk.salyk.kg:30040 [16:37:32]ConnectInit lk.salyk.kg [16:37:32]written 0, free lines is 4095 [16:37:33]Connected sock=10 [16:37:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F8 6A 04 01 5F 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E7 FD 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B6 01 00 35 04 06 00 52 E5 8E 39 F2 F4 58 88 9F FA 65 96 28 3F [16:37:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 73 C6 47 00 34 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B6 01 00 F4 03 04 00 EE 94 76 66 B6 04 01 00 00 51 56 7F 37 B1 29 2A 1C [16:37:33]CommunicateWithHost err = 0 [16:37:33]CheckOFDResponse [16:37:33]1017 (14) - 77093643461234 [16:37:33]1041 (16) - 0000000000875083 [16:37:33]1040 (4) - 112296 [16:37:33]1012 (4) - 22.06.2024 09:10 [16:37:33]1206 (1) - 0 [16:37:33]OFD Sender: Remove packet 112296 [16:37:33]ProducePacketName [16:37:33]name=ofd_packets/00112296 [16:37:33]NVStorageDeleteData [16:37:33]Write to MH i2c: 01 00 00 1D 46 63 [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 07 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 07 00 1D 46 00 00 00 00 00 DD 0C 53 [16:37:33]RasterBufferAndPrint [16:37:33]line [16:37:33]line [16:37:33]line [16:37:33]line [16:37:33]line [16:37:33]written 0, free lines is 3302 [16:37:33]MH_Cut [16:37:33]Write to MH i2c: D1 01 00 24 46 01 3C [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: D1 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: D1 01 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: D1 01 00 24 46 00 3B [16:37:33]Write to MH i2c: 01 00 00 25 46 6B [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]OFD Sender: No OFD packet to send [16:37:34]*** Cut start [16:37:34]*** Partial cut [16:37:34]*** CUTSNS_PIN = 1 [16:37:34]*** CUTSNS_PIN = 0 [16:37:34]*** Brake cut motor [16:37:34]Read from MH i2c: 01 [16:37:34]MH_I2C_Read... [16:37:34]*** Stop cut motor [16:37:34]*** Cut end [16:37:34]Read from MH i2c: 01 07 00 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: 01 07 00 25 46 00 00 00 00 00 FF 0F 80 [16:37:34]process_action close_receipt done [16:37:34]requested_data is exist [16:37:34]produce_requested_data [16:37:34]requested_item fm.sn is exist - process it [16:37:34]wFMCommunicate request_size=4 [16:37:34]MH_SAM_APDU [16:37:34]CAPDU: 80 11 00 00 [16:37:34]Write to MH i2c: E2 08 00 26 46 80 11 00 00 00 00 00 00 E6 [16:37:34]Write i2c OK [16:37:34]MH_I2C_Read... [16:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:34]Read from MH i2c: E2 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: E2 17 00 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: E2 17 00 26 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [16:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:37:34]wFMCommunicate OK [16:37:34]requested_item fd.num is exist - process it [16:37:34]SAM_PROTO_GetFieldsCounters [16:37:34]wFMCommunicate request_size=4 [16:37:34]MH_SAM_APDU [16:37:34]CAPDU: 80 13 00 00 [16:37:34]Write to MH i2c: E2 08 00 27 46 80 13 00 00 00 00 00 00 E9 [16:37:34]Write i2c OK [16:37:34]MH_I2C_Read... [16:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:34]Read from MH i2c: E2 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: E2 62 00 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: E2 62 00 27 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:34]wFMCommunicate OK [16:37:34]SAM_PROTO_GetFieldsCounters done [16:37:34]requested_item shift.num is exist - process it [16:37:34]requested_item shift.opened is exist - process it [16:37:34]req_shift_opened [16:37:34]FM_GetShiftState [16:37:34]SAM_PROTO_GetShiftState [16:37:34]wFMCommunicate request_size=4 [16:37:34]MH_SAM_APDU [16:37:34]CAPDU: 80 13 01 00 [16:37:34]Write to MH i2c: E2 08 00 28 46 80 13 01 00 00 00 00 00 EB [16:37:34]Write i2c OK [16:37:34]MH_I2C_Read... [16:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:34]Read from MH i2c: E2 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: E2 0E 00 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: E2 0E 00 28 46 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 20 [16:37:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:37:34]wFMCommunicate OK [16:37:34]SAM_PROTO_GetShiftState done [16:37:34]FM_GetShiftState done [16:37:34]req_shift_opened done [16:37:34]requested_item shift.open_date is exist - process it [16:37:34]req_shift_open_date [16:37:34]req_shift_open_date done [16:37:34]produce_requested_data done [16:37:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112296,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:37:34]process_action_free close_receipt [16:37:34]json_value_free [16:37:34]json_value_free done [16:37:34]process_json_proto returns [16:37:34]Send response to host [16:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112296,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:37:34]free response buf [16:37:34]execute_script done [16:37:34]execute_script returns [16:37:34]free content buf [16:37:34]Sock 9.Close socket [16:37:34]Sock 9.Thread stoped [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:12]accept exits with 7 [16:39:12]New connection [16:39:12]New thread 3066813796 created [16:39:12]Thread 3066957156 joined [16:39:12]Waiting for new connection... [16:39:12] Sock 7.Parse request [16:39:12]Sock 7.Check first char [16:39:12]Sock 7.First char is OK [16:39:12]request: POST /json_proto HTTP/1.0 [16:39:12]Method: POST [16:39:12]URL: /json_proto [16:39:12]Method is POST - this is cgi request [16:39:12]url: /json_proto [16:39:12]query_string will be loaded in cgi processing [16:39:12]execute_cgi json_proto POST (null) [16:39:12]execute_cgi path=json_proto method=POST [16:39:12]POST find Content-Length [16:39:12]Host: 172.17.59.68:8080 [16:39:12]Content-Length: 678 [16:39:12]Content-Type: application/json [16:39:12] [16:39:12]POST finish read [16:39:12]Found Content-Length = 678 [16:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320974", "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.40, "quantity" : 13.560, "sum" : 900.38, "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" ] } } [16:39:12]execute_script... [16:39: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)320974", "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.40, "quantity" : 13.560, "sum" : 900.38, "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" ] } } [16:39:12]POST & json_proto [16:39:12]process_json_proto [16:39:12]json parsed OK: [16:39:12]protocol is kg_v1.0 [16:39:12]action value=close_receipt [16:39:12]process_action close_receipt [16:39:12]cmd_close_receipt [16:39:12]MH_GetDate [16:39:12]Write to MH i2c: F0 00 00 29 46 5E [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: F0 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: F0 09 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: F0 09 00 29 46 00 4C FE 76 66 BC EC 60 65 FA [16:39:12]GetLastDocTimeStamp 1719074279 [16:39:12]current date 1719074380 [16:39:12]FM_GetShiftState [16:39:12]SAM_PROTO_GetShiftState [16:39:12]wFMCommunicate request_size=4 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 13 01 00 [16:39:12]Write to MH i2c: E2 08 00 2A 46 80 13 01 00 00 00 00 00 ED [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 0E 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 0E 00 2A 46 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 22 [16:39:12]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:39:12]wFMCommunicate OK [16:39:12]SAM_PROTO_GetShiftState done [16:39:12]FM_GetShiftState done [16:39:12]opened in 1719020067 [16:39:12]opened+sec_in_day 1719106467 [16:39:12]quantity*price = 90038 [16:39:12]sum+1 = 90039 [16:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 163 22.06.2024 16:39 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112297 ФПД: 183608790303406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112297&fm=183608790303406&tin=02508201610067®Number=0000000000092771&sum=90000 [16:39:13]StoreToDocumentArchive [16:39:13]shift 391 fd 112297 [16:39:13]save to /storage/0391/doc_00112297 [16:39:13]save last doc name /storage/0391/doc_00112297 to /storage/kkm_last_doc_name [16:39:13]save OK [16:39:13]Clear old archive folders... [16:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:13]tlvbuf is 0117FDA0 [16:39:13]SAM_PROTO_ClearQueue [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 09 00 00 [16:39:13]Write to MH i2c: E2 08 00 37 46 80 09 00 00 00 00 00 00 EF [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 37 46 00 90 00 F1 [16:39:13]RAPDU: 90 00 [16:39:13]wFMCommunicate OK [16:39:13]SAM_PROTO_ClearQueue done [16:39:13]KKMCreateOFDPacket [16:39:13]OFDProtocolAddRootSTLVToBuf [16:39:13]FM_MakeSignedData [16:39:13]FM_MakeSignedData [16:39:13]SAM_PROTO_SignData [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 0D 01 02 [16:39:13]Write to MH i2c: E2 08 00 38 46 80 0D 01 02 00 00 00 00 F7 [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 38 46 00 90 00 F2 [16:39:13]RAPDU: 90 00 [16:39:13]wFMCommunicate OK [16:39:13]wFMCommunicate request_size=255 [16:39:13]MH_SAM_APDU [16:39: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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 A3 00 00 00 F4 03 04 00 4C FE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B6 01 00 35 04 06 00 A6 [16:39:13]Write to MH i2c: E2 02 01 39 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 A3 00 00 00 F4 03 04 00 4C FE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B6 01 00 35 04 06 00 A6 00 00 22 [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 39 46 00 90 00 F3 [16:39:13]RAPDU: 90 00 [16:39:13]wFMCommunicate OK [16:39:13]wFMCommunicate request_size=10 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 0D 02 02 05 FD C0 B9 42 AE [16:39:13]Write to MH i2c: E2 0D 00 3A 46 80 0D 02 02 05 00 FD C0 B9 42 AE 00 00 6A [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 3A 46 00 90 00 F4 [16:39:13]RAPDU: 90 00 [16:39:13]wFMCommunicate OK [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 0D 03 02 [16:39:13]Write to MH i2c: E2 08 00 3B 46 80 0D 03 02 00 00 00 00 FC [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:13]OFD Sender: No OFD packet to send [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 0B 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 0B 00 3B 46 00 D1 E8 7E AF 58 5A 7B 76 90 00 86 [16:39:13]RAPDU: D1 E8 7E AF 58 5A 7B 76 90 00 [16:39:13]wFMCommunicate OK [16:39:13]SAM_PROTO_SignData done [16:39:13]FM_MakeSignedData done [16:39:13]CreateOFDProtocolMessage [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 11 00 00 [16:39:13]Write to MH i2c: E2 08 00 3C 46 80 11 00 00 00 00 00 00 FC [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 17 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 17 00 3C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [16:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:39:13]wFMCommunicate OK [16:39:13]CreateOFDProtocolMessage done [16:39:13]OFDSenderStorePacket 112297 [16:39:13]StoreOFDPacket docnum=112297 [16:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 8C 07 01 27 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 A3 00 00 00 F4 03 04 00 4C FE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B6 01 00 35 04 06 00 A6 FD C0 B9 42 AE D1 E8 7E AF 58 5A 7B 76 [16:39:13]CheckFolder [16:39:13]dirname=/storage/ofd_packets [16:39:13]CheckFolder done [16:39:13]ProducePacketName [16:39:13]name=ofd_packets/00112297 [16:39:13]NVStorageSaveData ofd_packets/00112297 [16:39:13]File name is /storage/ofd_packets/00112297 [16:39:13]Write 301 bytes [16:39:13]NVStorageSaveData done [16:39:13]OFDSenderStorePacket done [16:39:13]KKMCreateOFDPacket done [16:39:13]NVStorageSaveData kkm_last_timestamp [16:39:13]File name is /storage/kkm_last_timestamp [16:39:13]Write 4 bytes [16:39:13]NVStorageSaveData done [16:39:13]ExternCall_PrintAddStr [16:39:13]wPrintStart [16:39:13]Write to MH i2c: 01 00 00 3D 46 83 [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 07 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 07 00 3D 46 00 00 00 00 00 FF 0F 98 [16:39:13]RasterBufferAndPrint [16:39:13]line Счет N : (1)320974 [16:39:13]line ИНН: 02508201610067 [16:39:13]line Контрольно-Кассовый Чек [16:39:13]line ПРОДАЖА [16:39:13]line ТРК (МРК, ГНК) : 11 [16:39:13]line Товар: 2710124130 [16:39:13]line Аи-92-К-5 [16:39:13]line 13.560 * 66.40 [16:39:13]line = 900.38 [16:39:13]line НДС 12% НСП 1% [16:39:13]line > о реализуемом товаре [16:39:13]line ОКРУГЛЕНИЕ: -0.38 [16:39:13]line ИТОГО: 900.00 [16:39:13]line Внесено: 900.00 [16:39:13]line СДАЧА: 0.00 [16:39:13]line НСП 1% : 7.97 [16:39:13]line НДС 12% : 95.62 [16:39:13]line Наличными: 900.00 [16:39:13]line Безнал.: 0.00 [16:39:13]line Место: АЗС № 65 "Партнер Нефть" [16:39:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:39:13]line СНО: Общий режим [16:39:13]line Чек 163 22.06.2024 16:39 [16:39:13]line Смена: 391 ФФД: 1.0 [16:39:13]line ЗНМ: 0300000198 [16:39:13]line РНМ: 0000000000092771 [16:39:13]line Версия ККМ: 001 [16:39:13]line ФМ: 0000000000875083 [16:39:13]line ФД: 112297 [16:39:13]line ФПД: 183608790303406 [16:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112297&fm=183608790303406&tin=02508201610067®Number=0000000000092771&sum=90000 [16:39:14]OFD Sender: Processing packet 112297 [packets to send 38, broken 37] [16:39:14]ProducePacketName [16:39:14]name=ofd_packets/00112297 [16:39:14]OFD Sender: To server: pG, [16:39:14]CommunicateWithHost lk.salyk.kg:30040 [16:39:14]ConnectInit lk.salyk.kg [16:39:14]written 0, free lines is 4095 [16:39:14]Connected sock=10 [16:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 8C 07 01 27 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 A3 00 00 00 F4 03 04 00 4C FE 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B6 01 00 35 04 06 00 A6 FD C0 B9 42 AE D1 E8 7E AF 58 5A 7B 76 [16:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4B 8A 47 00 DC 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B6 01 00 F4 03 04 00 54 95 76 66 B6 04 01 00 00 C4 7E 1B 34 0C 1A 41 B8 [16:39:14]CommunicateWithHost err = 0 [16:39:14]CheckOFDResponse [16:39:14]1017 (14) - 77093643461234 [16:39:14]1041 (16) - 0000000000875083 [16:39:14]1040 (4) - 112297 [16:39:14]1012 (4) - 22.06.2024 09:11 [16:39:14]1206 (1) - 0 [16:39:14]OFD Sender: Remove packet 112297 [16:39:14]ProducePacketName [16:39:14]name=ofd_packets/00112297 [16:39:14]NVStorageDeleteData [16:39:14]Write to MH i2c: 01 00 00 68 46 AE [16:39:14]Write i2c OK [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: 01 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: 01 07 00 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: 01 07 00 68 46 00 00 00 00 00 F1 0C B2 [16:39:14]RasterBufferAndPrint [16:39:14]line [16:39:14]line [16:39:14]line [16:39:14]line [16:39:14]line [16:39:14]written 0, free lines is 3319 [16:39:14]MH_Cut [16:39:14]Write to MH i2c: D1 01 00 6F 46 01 87 [16:39:14]Write i2c OK [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: D1 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: D1 01 00 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: D1 01 00 6F 46 00 86 [16:39:14]Write to MH i2c: 01 00 00 70 46 B6 [16:39:14]Write i2c OK [16:39:14]MH_I2C_Read... [16:39:15]OFD Sender: No OFD packet to send [16:39:15]*** Cut start [16:39:15]*** Partial cut [16:39:15]*** CUTSNS_PIN = 1 [16:39:15]*** CUTSNS_PIN = 0 [16:39:15]*** Brake cut motor [16:39:16]Read from MH i2c: 01 [16:39:16]MH_I2C_Read... [16:39:16]*** Stop cut motor [16:39:16]*** Cut end [16:39:16]Read from MH i2c: 01 07 00 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: 01 07 00 70 46 00 00 00 00 00 FF 0F CB [16:39:16]process_action close_receipt done [16:39:16]requested_data is exist [16:39:16]produce_requested_data [16:39:16]requested_item fm.sn is exist - process it [16:39:16]wFMCommunicate request_size=4 [16:39:16]MH_SAM_APDU [16:39:16]CAPDU: 80 11 00 00 [16:39:16]Write to MH i2c: E2 08 00 71 46 80 11 00 00 00 00 00 00 31 [16:39:16]Write i2c OK [16:39:16]MH_I2C_Read... [16:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:16]Read from MH i2c: E2 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 17 00 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 17 00 71 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [16:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:39:16]wFMCommunicate OK [16:39:16]requested_item fd.num is exist - process it [16:39:16]SAM_PROTO_GetFieldsCounters [16:39:16]wFMCommunicate request_size=4 [16:39:16]MH_SAM_APDU [16:39:16]CAPDU: 80 13 00 00 [16:39:16]Write to MH i2c: E2 08 00 72 46 80 13 00 00 00 00 00 00 34 [16:39:16]Write i2c OK [16:39:16]MH_I2C_Read... [16:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:16]Read from MH i2c: E2 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 62 00 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 62 00 72 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:39:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:16]wFMCommunicate OK [16:39:16]SAM_PROTO_GetFieldsCounters done [16:39:16]requested_item shift.num is exist - process it [16:39:16]requested_item shift.opened is exist - process it [16:39:16]req_shift_opened [16:39:16]FM_GetShiftState [16:39:16]SAM_PROTO_GetShiftState [16:39:16]wFMCommunicate request_size=4 [16:39:16]MH_SAM_APDU [16:39:16]CAPDU: 80 13 01 00 [16:39:16]Write to MH i2c: E2 08 00 73 46 80 13 01 00 00 00 00 00 36 [16:39:16]Write i2c OK [16:39:16]MH_I2C_Read... [16:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:16]Read from MH i2c: E2 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 0E 00 [16:39:16]MH_I2C_Read... [16:39:16]Read from MH i2c: E2 0E 00 73 46 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6B [16:39:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:39:16]wFMCommunicate OK [16:39:16]SAM_PROTO_GetShiftState done [16:39:16]FM_GetShiftState done [16:39:16]req_shift_opened done [16:39:16]requested_item shift.open_date is exist - process it [16:39:16]req_shift_open_date [16:39:16]req_shift_open_date done [16:39:16]produce_requested_data done [16:39:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112297,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:39:16]process_action_free close_receipt [16:39:16]json_value_free [16:39:16]json_value_free done [16:39:16]process_json_proto returns [16:39:16]Send response to host [16:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112297,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:39:16]free response buf [16:39:16]execute_script done [16:39:16]execute_script returns [16:39:16]free content buf [16:39:16]Sock 7.Close socket [16:39:16]Sock 7.Thread stoped [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:02]accept exits with 9 [16:44:02]New connection [16:44:02]New thread 3066957156 created [16:44:02]Thread 3066813796 joined [16:44:02]Waiting for new connection... [16:44:02] Sock 9.Parse request [16:44:02]Sock 9.Check first char [16:44:02]Sock 9.First char is OK [16:44:02]request: POST /json_proto HTTP/1.0 [16:44:02]Method: POST [16:44:02]URL: /json_proto [16:44:02]Method is POST - this is cgi request [16:44:02]url: /json_proto [16:44:02]query_string will be loaded in cgi processing [16:44:02]execute_cgi json_proto POST (null) [16:44:02]execute_cgi path=json_proto method=POST [16:44:02]POST find Content-Length [16:44:02]Host: 172.17.59.68:8080 [16:44:02]Content-Length: 677 [16:44:02]Content-Type: application/json [16:44:02] [16:44:02]POST finish read [16:44:02]Found Content-Length = 677 [16:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320975", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:02]execute_script... [16:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320975", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:02]POST & json_proto [16:44:02]process_json_proto [16:44:02]json parsed OK: [16:44:02]protocol is kg_v1.0 [16:44:02]action value=close_receipt [16:44:02]process_action close_receipt [16:44:02]cmd_close_receipt [16:44:02]MH_GetDate [16:44:02]Write to MH i2c: F0 00 00 74 46 A9 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: F0 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: F0 09 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: F0 09 00 74 46 00 6F FF 76 66 BC EC 60 65 69 [16:44:02]GetLastDocTimeStamp 1719074380 [16:44:02]current date 1719074671 [16:44:02]FM_GetShiftState [16:44:02]SAM_PROTO_GetShiftState [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 13 01 00 [16:44:02]Write to MH i2c: E2 08 00 75 46 80 13 01 00 00 00 00 00 38 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 0E 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 0E 00 75 46 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6D [16:44:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetShiftState done [16:44:02]FM_GetShiftState done [16:44:02]opened in 1719020067 [16:44:02]opened+sec_in_day 1719106467 [16:44:02]quantity*price = 50065 [16:44:02]sum+1 = 50067 [16:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 164 22.06.2024 16:44 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112298 ФПД: 99658560391120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T164431&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112298&fm=99658560391120&tin=02508201610067®Number=0000000000092771&sum=50000 [16:44:04]StoreToDocumentArchive [16:44:04]shift 391 fd 112298 [16:44:04]save to /storage/0391/doc_00112298 [16:44:04]save last doc name /storage/0391/doc_00112298 to /storage/kkm_last_doc_name [16:44:04]save OK [16:44:04]Clear old archive folders... [16:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:04]tlvbuf is 0119A1C0 [16:44:04]SAM_PROTO_ClearQueue [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 09 00 00 [16:44:04]Write to MH i2c: E2 08 00 82 46 80 09 00 00 00 00 00 00 3A [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 82 46 00 90 00 3C [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]SAM_PROTO_ClearQueue done [16:44:04]KKMCreateOFDPacket [16:44:04]OFDProtocolAddRootSTLVToBuf [16:44:04]FM_MakeSignedData [16:44:04]FM_MakeSignedData [16:44:04]SAM_PROTO_SignData [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 01 02 [16:44:04]Write to MH i2c: E2 08 00 83 46 80 0D 01 02 00 00 00 00 42 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 83 46 00 90 00 3D [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]wFMCommunicate request_size=255 [16:44:04]MH_SAM_APDU [16:44: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6F FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B6 01 00 35 04 06 00 5A [16:44:04]Write to MH i2c: E2 02 01 84 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6F FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B6 01 00 35 04 06 00 5A 00 00 27 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 84 46 00 90 00 3E [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]wFMCommunicate request_size=10 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 02 02 05 A3 91 17 47 D0 [16:44:04]Write to MH i2c: E2 0D 00 85 46 80 0D 02 02 05 00 A3 91 17 47 D0 00 00 B1 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 85 46 00 90 00 3F [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 03 02 [16:44:04]Write to MH i2c: E2 08 00 86 46 80 0D 03 02 00 00 00 00 47 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 0B 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 0B 00 86 46 00 32 9F C6 34 12 39 35 D0 90 00 63 [16:44:04]RAPDU: 32 9F C6 34 12 39 35 D0 90 00 [16:44:04]wFMCommunicate OK [16:44:04]SAM_PROTO_SignData done [16:44:04]FM_MakeSignedData done [16:44:04]CreateOFDProtocolMessage [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 11 00 00 [16:44:04]Write to MH i2c: E2 08 00 87 46 80 11 00 00 00 00 00 00 47 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 17 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 17 00 87 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [16:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:04]wFMCommunicate OK [16:44:04]CreateOFDProtocolMessage done [16:44:04]OFDSenderStorePacket 112298 [16:44:04]StoreOFDPacket docnum=112298 [16:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 94 07 01 F6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6F FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B6 01 00 35 04 06 00 5A A3 91 17 47 D0 32 9F C6 34 12 39 35 D0 [16:44:04]CheckFolder [16:44:04]dirname=/storage/ofd_packets [16:44:04]CheckFolder done [16:44:04]ProducePacketName [16:44:04]name=ofd_packets/00112298 [16:44:04]NVStorageSaveData ofd_packets/00112298 [16:44:04]File name is /storage/ofd_packets/00112298 [16:44:04]Write 301 bytes [16:44:04]NVStorageSaveData done [16:44:04]OFDSenderStorePacket done [16:44:04]KKMCreateOFDPacket done [16:44:04]NVStorageSaveData kkm_last_timestamp [16:44:04]File name is /storage/kkm_last_timestamp [16:44:04]Write 4 bytes [16:44:04]NVStorageSaveData done [16:44:04]ExternCall_PrintAddStr [16:44:04]wPrintStart [16:44:04]Write to MH i2c: 01 00 00 88 46 CE [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 07 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 07 00 88 46 00 00 00 00 00 FF 0F E3 [16:44:04]RasterBufferAndPrint [16:44:04]line Счет N : (1)320975 [16:44:04]line ИНН: 02508201610067 [16:44:04]line Контрольно-Кассовый Чек [16:44:04]line ПРОДАЖА [16:44:04]line ТРК (МРК, ГНК) : 11 [16:44:04]line Товар: 2710124130 [16:44:04]line Аи-92-К-5 [16:44:04]line 7.540 * 66.40 [16:44:04]line = 500.66 [16:44:04]line НДС 12% НСП 1% [16:44:04]line > о реализуемом товаре [16:44:04]line ОКРУГЛЕНИЕ: -0.66 [16:44:04]line ИТОГО: 500.00 [16:44:04]line Внесено: 500.00 [16:44:04]line СДАЧА: 0.00 [16:44:04]line НСП 1% : 4.43 [16:44:04]line НДС 12% : 53.17 [16:44:04]line Наличными: 500.00 [16:44:04]line Безнал.: 0.00 [16:44:04]line Место: АЗС № 65 "Партнер Нефть" [16:44:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:44:04]line СНО: Общий режим [16:44:04]line Чек 164 22.06.2024 16:44 [16:44:04]line Смена: 391 ФФД: 1.0 [16:44:04]line ЗНМ: 0300000198 [16:44:04]line РНМ: 0000000000092771 [16:44:04]line Версия ККМ: 001 [16:44:04]line ФМ: 0000000000875083 [16:44:04]line ФД: 112298 [16:44:04]line ФПД: 99658560391120 [16:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T164431&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112298&fm=99658560391120&tin=02508201610067®Number=0000000000092771&sum=50000 [16:44:04]written 0, free lines is 4095 [16:44:04]OFD Sender: Processing packet 112298 [packets to send 38, broken 37] [16:44:04]ProducePacketName [16:44:04]name=ofd_packets/00112298 [16:44:04]OFD Sender: To server: pG, [16:44:04]CommunicateWithHost lk.salyk.kg:30040 [16:44:04]ConnectInit lk.salyk.kg [16:44:04]Connected sock=7 [16:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 94 07 01 F6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6F FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B6 01 00 35 04 06 00 5A A3 91 17 47 D0 32 9F C6 34 12 39 35 D0 [16:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BF B7 47 00 52 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B6 01 00 F4 03 04 00 76 96 76 66 B6 04 01 00 00 88 6A 23 20 ED 9D 75 61 [16:44:04]CommunicateWithHost err = 0 [16:44:04]CheckOFDResponse [16:44:04]1017 (14) - 77093643461234 [16:44:04]1041 (16) - 0000000000875083 [16:44:04]1040 (4) - 112298 [16:44:04]1012 (4) - 22.06.2024 09:16 [16:44:04]1206 (1) - 0 [16:44:04]OFD Sender: Remove packet 112298 [16:44:04]ProducePacketName [16:44:04]name=ofd_packets/00112298 [16:44:04]NVStorageDeleteData [16:44:05]Write to MH i2c: 01 00 00 B3 46 F9 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: 01 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: 01 07 00 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: 01 07 00 B3 46 00 00 00 00 00 DE 0C EA [16:44:05]RasterBufferAndPrint [16:44:05]line [16:44:05]line [16:44:05]line [16:44:05]line [16:44:05]line [16:44:05]written 0, free lines is 3301 [16:44:05]MH_Cut [16:44:05]Write to MH i2c: D1 01 00 BA 46 01 D2 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: D1 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: D1 01 00 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: D1 01 00 BA 46 00 D1 [16:44:05]Write to MH i2c: 01 00 00 BB 46 01 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]OFD Sender: No OFD packet to send [16:44:05]*** Cut start [16:44:05]*** Partial cut [16:44:05]*** CUTSNS_PIN = 1 [16:44:05]*** CUTSNS_PIN = 0 [16:44:06]*** Brake cut motor [16:44:06]Read from MH i2c: 01 [16:44:06]MH_I2C_Read... [16:44:06]*** Stop cut motor [16:44:06]*** Cut end [16:44:06]Read from MH i2c: 01 07 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: 01 07 00 BB 46 00 00 00 00 00 FF 0F 16 [16:44:06]process_action close_receipt done [16:44:06]requested_data is exist [16:44:06]produce_requested_data [16:44:06]requested_item fm.sn is exist - process it [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 11 00 00 [16:44:06]Write to MH i2c: E2 08 00 BC 46 80 11 00 00 00 00 00 00 7C [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 17 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 17 00 BC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [16:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:06]wFMCommunicate OK [16:44:06]requested_item fd.num is exist - process it [16:44:06]SAM_PROTO_GetFieldsCounters [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 13 00 00 [16:44:06]Write to MH i2c: E2 08 00 BD 46 80 13 00 00 00 00 00 00 7F [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 62 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 62 00 BD 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [16:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:06]wFMCommunicate OK [16:44:06]SAM_PROTO_GetFieldsCounters done [16:44:06]requested_item shift.num is exist - process it [16:44:06]requested_item shift.opened is exist - process it [16:44:06]req_shift_opened [16:44:06]FM_GetShiftState [16:44:06]SAM_PROTO_GetShiftState [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 13 01 00 [16:44:06]Write to MH i2c: E2 08 00 BE 46 80 13 01 00 00 00 00 00 81 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 0E 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 0E 00 BE 46 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B6 [16:44:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:44:06]wFMCommunicate OK [16:44:06]SAM_PROTO_GetShiftState done [16:44:06]FM_GetShiftState done [16:44:06]req_shift_opened done [16:44:06]requested_item shift.open_date is exist - process it [16:44:06]req_shift_open_date [16:44:06]req_shift_open_date done [16:44:06]produce_requested_data done [16:44:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112298,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:44:06]process_action_free close_receipt [16:44:06]json_value_free [16:44:06]json_value_free done [16:44:06]process_json_proto returns [16:44:06]Send response to host [16:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112298,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:44:06]free response buf [16:44:06]execute_script done [16:44:06]execute_script returns [16:44:06]free content buf [16:44:06]Sock 9.Close socket [16:44:06]Sock 9.Thread stoped [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:23]accept exits with 10 [16:44:23]New connection [16:44:23]New thread 3066813796 created [16:44:23]Thread 3066957156 joined [16:44:23]Waiting for new connection... [16:44:23] Sock 10.Parse request [16:44:23]Sock 10.Check first char [16:44:23]Sock 10.First char is OK [16:44:23]request: POST /json_proto HTTP/1.0 [16:44:23]Method: POST [16:44:23]URL: /json_proto [16:44:23]Method is POST - this is cgi request [16:44:23]url: /json_proto [16:44:23]query_string will be loaded in cgi processing [16:44:23]execute_cgi json_proto POST (null) [16:44:23]execute_cgi path=json_proto method=POST [16:44:23]POST find Content-Length [16:44:23]Host: 172.17.59.68:8080 [16:44:23]Content-Length: 677 [16:44:23]Content-Type: application/json [16:44:23] [16:44:23]POST finish read [16:44:23]Found Content-Length = 677 [16:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320976", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:44:23]execute_script... [16:44:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320976", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:44:23]POST & json_proto [16:44:23]process_json_proto [16:44:23]json parsed OK: [16:44:23]protocol is kg_v1.0 [16:44:23]action value=close_receipt [16:44:23]process_action close_receipt [16:44:23]cmd_close_receipt [16:44:23]MH_GetDate [16:44:23]Write to MH i2c: F0 00 00 BF 46 F4 [16:44:23]Write i2c OK [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: F0 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: F0 09 00 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: F0 09 00 BF 46 00 83 FF 76 66 BC EC 60 65 C8 [16:44:23]GetLastDocTimeStamp 1719074671 [16:44:23]current date 1719074691 [16:44:23]FM_GetShiftState [16:44:23]SAM_PROTO_GetShiftState [16:44:23]wFMCommunicate request_size=4 [16:44:23]MH_SAM_APDU [16:44:23]CAPDU: 80 13 01 00 [16:44:23]Write to MH i2c: E2 08 00 C0 46 80 13 01 00 00 00 00 00 83 [16:44:23]Write i2c OK [16:44:23]MH_I2C_Read... [16:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:23]Read from MH i2c: E2 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: E2 0E 00 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: E2 0E 00 C0 46 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B8 [16:44:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:44:23]wFMCommunicate OK [16:44:23]SAM_PROTO_GetShiftState done [16:44:23]FM_GetShiftState done [16:44:23]opened in 1719020067 [16:44:23]opened+sec_in_day 1719106467 [16:44:23]quantity*price = 20052 [16:44:23]sum+1 = 20054 [16:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 165 22.06.2024 16:44 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112299 ФПД: 170138362353754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T164451&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112299&fm=170138362353754&tin=02508201610067®Number=0000000000092771&sum=20000 [16:44:24]StoreToDocumentArchive [16:44:24]shift 391 fd 112299 [16:44:24]save to /storage/0391/doc_00112299 [16:44:24]save last doc name /storage/0391/doc_00112299 to /storage/kkm_last_doc_name [16:44:24]save OK [16:44:24]Clear old archive folders... [16:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:24]tlvbuf is 011C7410 [16:44:24]SAM_PROTO_ClearQueue [16:44:24]wFMCommunicate request_size=4 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 09 00 00 [16:44:24]Write to MH i2c: E2 08 00 CD 46 80 09 00 00 00 00 00 00 85 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 CD 46 00 90 00 87 [16:44:24]RAPDU: 90 00 [16:44:24]wFMCommunicate OK [16:44:24]SAM_PROTO_ClearQueue done [16:44:24]KKMCreateOFDPacket [16:44:24]OFDProtocolAddRootSTLVToBuf [16:44:24]FM_MakeSignedData [16:44:24]FM_MakeSignedData [16:44:24]SAM_PROTO_SignData [16:44:24]wFMCommunicate request_size=4 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 0D 01 02 [16:44:24]Write to MH i2c: E2 08 00 CE 46 80 0D 01 02 00 00 00 00 8D [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 CE 46 00 90 00 88 [16:44:24]RAPDU: 90 00 [16:44:24]wFMCommunicate OK [16:44:24]wFMCommunicate request_size=255 [16:44:24]MH_SAM_APDU [16:44: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 83 FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B6 01 00 35 04 06 00 9A [16:44:24]Write to MH i2c: E2 02 01 CF 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 83 FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B6 01 00 35 04 06 00 9A 00 00 87 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 CF 46 00 90 00 89 [16:44:24]RAPDU: 90 00 [16:44:24]wFMCommunicate OK [16:44:24]wFMCommunicate request_size=10 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 0D 02 02 05 BD 6C A6 98 5A [16:44:24]Write to MH i2c: E2 0D 00 D0 46 80 0D 02 02 05 00 BD 6C A6 98 5A 00 00 5B [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 D0 46 00 90 00 8A [16:44:24]RAPDU: 90 00 [16:44:24]wFMCommunicate OK [16:44:24]wFMCommunicate request_size=4 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 0D 03 02 [16:44:24]Write to MH i2c: E2 08 00 D1 46 80 0D 03 02 00 00 00 00 92 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 0B 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 0B 00 D1 46 00 FC 78 47 90 84 D0 9F 05 90 00 D6 [16:44:24]RAPDU: FC 78 47 90 84 D0 9F 05 90 00 [16:44:24]wFMCommunicate OK [16:44:24]SAM_PROTO_SignData done [16:44:24]FM_MakeSignedData done [16:44:24]CreateOFDProtocolMessage [16:44:24]wFMCommunicate request_size=4 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 11 00 00 [16:44:24]Write to MH i2c: E2 08 00 D2 46 80 11 00 00 00 00 00 00 92 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 17 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 17 00 D2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [16:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:24]wFMCommunicate OK [16:44:24]CreateOFDProtocolMessage done [16:44:24]OFDSenderStorePacket 112299 [16:44:24]StoreOFDPacket docnum=112299 [16:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E 33 07 01 7D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 83 FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B6 01 00 35 04 06 00 9A BD 6C A6 98 5A FC 78 47 90 84 D0 9F 05 [16:44:24]CheckFolder [16:44:24]dirname=/storage/ofd_packets [16:44:24]CheckFolder done [16:44:24]ProducePacketName [16:44:24]name=ofd_packets/00112299 [16:44:24]NVStorageSaveData ofd_packets/00112299 [16:44:24]File name is /storage/ofd_packets/00112299 [16:44:24]Write 301 bytes [16:44:24]NVStorageSaveData done [16:44:24]OFDSenderStorePacket done [16:44:24]KKMCreateOFDPacket done [16:44:24]NVStorageSaveData kkm_last_timestamp [16:44:24]File name is /storage/kkm_last_timestamp [16:44:24]Write 4 bytes [16:44:24]NVStorageSaveData done [16:44:24]ExternCall_PrintAddStr [16:44:24]wPrintStart [16:44:24]Write to MH i2c: 01 00 00 D3 46 19 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: 01 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: 01 07 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: 01 07 00 D3 46 00 00 00 00 00 FF 0F 2E [16:44:24]RasterBufferAndPrint [16:44:24]line Счет N : (1)320976 [16:44:24]line ИНН: 02508201610067 [16:44:24]line Контрольно-Кассовый Чек [16:44:24]line ПРОДАЖА [16:44:24]line ТРК (МРК, ГНК) : 11 [16:44:24]line Товар: 2710124130 [16:44:24]line Аи-92-К-5 [16:44:24]line 3.020 * 66.40 [16:44:24]line = 200.53 [16:44:24]line НДС 12% НСП 1% [16:44:24]line > о реализуемом товаре [16:44:24]line ОКРУГЛЕНИЕ: -0.53 [16:44:24]line ИТОГО: 200.00 [16:44:24]line Внесено: 200.00 [16:44:24]line СДАЧА: 0.00 [16:44:24]line НСП 1% : 1.77 [16:44:24]line НДС 12% : 21.29 [16:44:24]line Наличными: 200.00 [16:44:24]line Безнал.: 0.00 [16:44:24]line Место: АЗС № 65 "Партнер Нефть" [16:44:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:44:24]line СНО: Общий режим [16:44:24]line Чек 165 22.06.2024 16:44 [16:44:24]line Смена: 391 ФФД: 1.0 [16:44:24]line ЗНМ: 0300000198 [16:44:24]line РНМ: 0000000000092771 [16:44:24]line Версия ККМ: 001 [16:44:24]line ФМ: 0000000000875083 [16:44:24]line ФД: 112299 [16:44:24]line ФПД: 170138362353754 [16:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T164451&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112299&fm=170138362353754&tin=02508201610067®Number=0000000000092771&sum=20000 [16:44:25]OFD Sender: Processing packet 112299 [packets to send 38, broken 37] [16:44:25]ProducePacketName [16:44:25]name=ofd_packets/00112299 [16:44:25]OFD Sender: To server: pG, [16:44:25]CommunicateWithHost lk.salyk.kg:30040 [16:44:25]ConnectInit lk.salyk.kg [16:44:25]written 0, free lines is 4095 [16:44:25]Connected sock=9 [16:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E 33 07 01 7D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 83 FF 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B6 01 00 35 04 06 00 9A BD 6C A6 98 5A FC 78 47 90 84 D0 9F 05 [16:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 21 47 00 71 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B6 01 00 F4 03 04 00 8A 96 76 66 B6 04 01 00 00 6B F8 4B 6D 72 12 DA B3 [16:44:25]CommunicateWithHost err = 0 [16:44:25]CheckOFDResponse [16:44:25]1017 (14) - 77093643461234 [16:44:25]1041 (16) - 0000000000875083 [16:44:25]1040 (4) - 112299 [16:44:25]1012 (4) - 22.06.2024 09:16 [16:44:25]1206 (1) - 0 [16:44:25]OFD Sender: Remove packet 112299 [16:44:25]ProducePacketName [16:44:25]name=ofd_packets/00112299 [16:44:25]NVStorageDeleteData [16:44:25]Write to MH i2c: 01 00 00 FE 46 44 [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 07 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 07 00 FE 46 00 00 00 00 00 EE 0C 45 [16:44:25]RasterBufferAndPrint [16:44:25]line [16:44:25]line [16:44:25]line [16:44:25]line [16:44:25]line [16:44:25]written 0, free lines is 3316 [16:44:25]MH_Cut [16:44:25]Write to MH i2c: D1 01 00 05 47 01 1E [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: D1 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: D1 01 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: D1 01 00 05 47 00 1D [16:44:25]Write to MH i2c: 01 00 00 06 47 4D [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:26]OFD Sender: No OFD packet to send [16:44:26]*** Cut start [16:44:26]*** Partial cut [16:44:26]*** CUTSNS_PIN = 1 [16:44:26]*** CUTSNS_PIN = 0 [16:44:26]*** Brake cut motor [16:44:27]Read from MH i2c: 01 [16:44:27]MH_I2C_Read... [16:44:27]*** Stop cut motor [16:44:27]*** Cut end [16:44:27]Read from MH i2c: 01 07 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: 01 07 00 06 47 00 00 00 00 00 FF 0F 62 [16:44:27]process_action close_receipt done [16:44:27]requested_data is exist [16:44:27]produce_requested_data [16:44:27]requested_item fm.sn is exist - process it [16:44:27]wFMCommunicate request_size=4 [16:44:27]MH_SAM_APDU [16:44:27]CAPDU: 80 11 00 00 [16:44:27]Write to MH i2c: E2 08 00 07 47 80 11 00 00 00 00 00 00 C8 [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 17 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 17 00 07 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [16:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:27]wFMCommunicate OK [16:44:27]requested_item fd.num is exist - process it [16:44:27]SAM_PROTO_GetFieldsCounters [16:44:27]wFMCommunicate request_size=4 [16:44:27]MH_SAM_APDU [16:44:27]CAPDU: 80 13 00 00 [16:44:27]Write to MH i2c: E2 08 00 08 47 80 13 00 00 00 00 00 00 CB [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 62 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 62 00 08 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [16:44:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:27]wFMCommunicate OK [16:44:27]SAM_PROTO_GetFieldsCounters done [16:44:27]requested_item shift.num is exist - process it [16:44:27]requested_item shift.opened is exist - process it [16:44:27]req_shift_opened [16:44:27]FM_GetShiftState [16:44:27]SAM_PROTO_GetShiftState [16:44:27]wFMCommunicate request_size=4 [16:44:27]MH_SAM_APDU [16:44:27]CAPDU: 80 13 01 00 [16:44:27]Write to MH i2c: E2 08 00 09 47 80 13 01 00 00 00 00 00 CD [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:27]Read from MH i2c: E2 0E 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 0E 00 09 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 02 [16:44:27]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:44:27]wFMCommunicate OK [16:44:27]SAM_PROTO_GetShiftState done [16:44:27]FM_GetShiftState done [16:44:27]req_shift_opened done [16:44:27]requested_item shift.open_date is exist - process it [16:44:27]req_shift_open_date [16:44:27]req_shift_open_date done [16:44:27]produce_requested_data done [16:44:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112299,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:44:27]process_action_free close_receipt [16:44:27]json_value_free [16:44:27]json_value_free done [16:44:27]process_json_proto returns [16:44:27]Send response to host [16:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112299,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:44:27]free response buf [16:44:27]execute_script done [16:44:27]execute_script returns [16:44:27]free content buf [16:44:27]Sock 10.Close socket [16:44:27]Sock 10.Thread stoped [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [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:46]accept exits with 7 [16:47:46]New connection [16:47:46]New thread 3066957156 created [16:47:46]Thread 3066813796 joined [16:47:46]Waiting for new connection... [16:47:46] Sock 7.Parse request [16:47:46]Sock 7.Check first char [16:47:46]Sock 7.First char is OK [16:47:46]request: POST /json_proto HTTP/1.0 [16:47:46]Method: POST [16:47:46]URL: /json_proto [16:47:46]Method is POST - this is cgi request [16:47:46]url: /json_proto [16:47:46]query_string will be loaded in cgi processing [16:47:46]execute_cgi json_proto POST (null) [16:47:46]execute_cgi path=json_proto method=POST [16:47:46]POST find Content-Length [16:47:46]Host: 172.17.59.68:8080 [16:47:46]Content-Length: 677 [16:47:46]Content-Type: application/json [16:47:46] [16:47:46]POST finish read [16:47:46]Found Content-Length = 677 [16:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320977", "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.40, "quantity" : 5.130, "sum" : 340.63, "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:47:46]execute_script... [16:47:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320977", "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.40, "quantity" : 5.130, "sum" : 340.63, "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:47:46]POST & json_proto [16:47:46]process_json_proto [16:47:46]json parsed OK: [16:47:46]protocol is kg_v1.0 [16:47:46]action value=close_receipt [16:47:46]process_action close_receipt [16:47:46]cmd_close_receipt [16:47:46]MH_GetDate [16:47:46]Write to MH i2c: F0 00 00 0A 47 40 [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: F0 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: F0 09 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: F0 09 00 0A 47 00 4F 00 77 66 BC EC 60 65 E2 [16:47:46]GetLastDocTimeStamp 1719074691 [16:47:46]current date 1719074895 [16:47:46]FM_GetShiftState [16:47:46]SAM_PROTO_GetShiftState [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 13 01 00 [16:47:46]Write to MH i2c: E2 08 00 0B 47 80 13 01 00 00 00 00 00 CF [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 0E 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 0E 00 0B 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 04 [16:47:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:47:46]wFMCommunicate OK [16:47:46]SAM_PROTO_GetShiftState done [16:47:46]FM_GetShiftState done [16:47:46]opened in 1719020067 [16:47:46]opened+sec_in_day 1719106467 [16:47:46]quantity*price = 34063 [16:47:46]sum+1 = 34064 [16:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 166 22.06.2024 16:48 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112300 ФПД: 127252979178958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T164815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112300&fm=127252979178958&tin=02508201610067®Number=0000000000092771&sum=34000 [16:47:47]StoreToDocumentArchive [16:47:47]shift 391 fd 112300 [16:47:47]save to /storage/0391/doc_00112300 [16:47:47]save last doc name /storage/0391/doc_00112300 to /storage/kkm_last_doc_name [16:47:47]save OK [16:47:47]Clear old archive folders... [16:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:47]tlvbuf is 0123B250 [16:47:47]SAM_PROTO_ClearQueue [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 09 00 00 [16:47:47]Write to MH i2c: E2 08 00 18 47 80 09 00 00 00 00 00 00 D1 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 18 47 00 90 00 D3 [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]SAM_PROTO_ClearQueue done [16:47:47]KKMCreateOFDPacket [16:47:47]OFDProtocolAddRootSTLVToBuf [16:47:47]FM_MakeSignedData [16:47:47]FM_MakeSignedData [16:47:47]SAM_PROTO_SignData [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 01 02 [16:47:47]Write to MH i2c: E2 08 00 19 47 80 0D 01 02 00 00 00 00 D9 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 19 47 00 90 00 D4 [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=255 [16:47:47]MH_SAM_APDU [16:47: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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 A6 00 00 00 F4 03 04 00 4F 00 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B6 01 00 35 04 06 00 73 [16:47:47]Write to MH i2c: E2 02 01 1A 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 A6 00 00 00 F4 03 04 00 4F 00 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B6 01 00 35 04 06 00 73 00 00 D3 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 1A 47 00 90 00 D5 [16:47:48]RAPDU: 90 00 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=10 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 0D 02 02 05 BC 64 9E DD CE [16:47:48]Write to MH i2c: E2 0D 00 1B 47 80 0D 02 02 05 00 BC 64 9E DD CE 00 00 4F [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 1B 47 00 90 00 D6 [16:47:48]RAPDU: 90 00 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 0D 03 02 [16:47:48]Write to MH i2c: E2 08 00 1C 47 80 0D 03 02 00 00 00 00 DE [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 0B 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 0B 00 1C 47 00 33 8F F8 FF 15 AE 8A C7 90 00 AC [16:47:48]RAPDU: 33 8F F8 FF 15 AE 8A C7 90 00 [16:47:48]wFMCommunicate OK [16:47:48]SAM_PROTO_SignData done [16:47:48]FM_MakeSignedData done [16:47:48]CreateOFDProtocolMessage [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 11 00 00 [16:47:48]Write to MH i2c: E2 08 00 1D 47 80 11 00 00 00 00 00 00 DE [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 17 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 17 00 1D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [16:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:47:48]wFMCommunicate OK [16:47:48]CreateOFDProtocolMessage done [16:47:48]OFDSenderStorePacket 112300 [16:47:48]StoreOFDPacket docnum=112300 [16:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 57 07 01 AF 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 A6 00 00 00 F4 03 04 00 4F 00 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B6 01 00 35 04 06 00 73 BC 64 9E DD CE 33 8F F8 FF 15 AE 8A C7 [16:47:48]CheckFolder [16:47:48]dirname=/storage/ofd_packets [16:47:48]CheckFolder done [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00112300 [16:47:48]NVStorageSaveData ofd_packets/00112300 [16:47:48]File name is /storage/ofd_packets/00112300 [16:47:48]Write 301 bytes [16:47:48]NVStorageSaveData done [16:47:48]OFDSenderStorePacket done [16:47:48]KKMCreateOFDPacket done [16:47:48]NVStorageSaveData kkm_last_timestamp [16:47:48]File name is /storage/kkm_last_timestamp [16:47:48]Write 4 bytes [16:47:48]NVStorageSaveData done [16:47:48]ExternCall_PrintAddStr [16:47:48]wPrintStart [16:47:48]Write to MH i2c: 01 00 00 1E 47 65 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 1E 47 00 00 00 00 00 FF 0F 7A [16:47:48]RasterBufferAndPrint [16:47:48]line Счет N : (1)320977 [16:47:48]line ИНН: 02508201610067 [16:47:48]line Контрольно-Кассовый Чек [16:47:48]line ПРОДАЖА [16:47:48]line ТРК (МРК, ГНК) : 11 [16:47:48]line Товар: 2710124130 [16:47:48]line Аи-92-К-5 [16:47:48]line 5.130 * 66.40 [16:47:48]line = 340.63 [16:47:48]line НДС 12% НСП 1% [16:47:48]line > о реализуемом товаре [16:47:48]line ОКРУГЛЕНИЕ: -0.63 [16:47:48]line ИТОГО: 340.00 [16:47:48]line Внесено: 340.00 [16:47:48]line СДАЧА: 0.00 [16:47:48]line НСП 1% : 3.01 [16:47:48]line НДС 12% : 36.17 [16:47:48]line Наличными: 340.00 [16:47:48]line Безнал.: 0.00 [16:47:48]line Место: АЗС № 65 "Партнер Нефть" [16:47:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:47:48]line СНО: Общий режим [16:47:48]line Чек 166 22.06.2024 16:48 [16:47:48]line Смена: 391 ФФД: 1.0 [16:47:48]line ЗНМ: 0300000198 [16:47:48]line РНМ: 0000000000092771 [16:47:48]line Версия ККМ: 001 [16:47:48]line ФМ: 0000000000875083 [16:47:48]line ФД: 112300 [16:47:48]line ФПД: 127252979178958 [16:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T164815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112300&fm=127252979178958&tin=02508201610067®Number=0000000000092771&sum=34000 [16:47:48]OFD Sender: Processing packet 112300 [packets to send 38, broken 37] [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00112300 [16:47:48]OFD Sender: To server: pG, [16:47:48]CommunicateWithHost lk.salyk.kg:30040 [16:47:48]ConnectInit lk.salyk.kg [16:47:48]written 0, free lines is 4095 [16:47:48]Connected sock=10 [16:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 57 07 01 AF 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 A6 00 00 00 F4 03 04 00 4F 00 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B6 01 00 35 04 06 00 73 BC 64 9E DD CE 33 8F F8 FF 15 AE 8A C7 [16:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 76 47 00 2A 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B6 01 00 F4 03 04 00 56 97 76 66 B6 04 01 00 00 D7 B3 1A B8 50 D3 E5 3E [16:47:48]CommunicateWithHost err = 0 [16:47:48]CheckOFDResponse [16:47:48]1017 (14) - 77093643461234 [16:47:48]1041 (16) - 0000000000875083 [16:47:48]1040 (4) - 112300 [16:47:48]1012 (4) - 22.06.2024 09:20 [16:47:48]1206 (1) - 0 [16:47:48]OFD Sender: Remove packet 112300 [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00112300 [16:47:48]NVStorageDeleteData [16:47:48]Write to MH i2c: 01 00 00 49 47 90 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 49 47 00 00 00 00 00 F1 0C 94 [16:47:48]RasterBufferAndPrint [16:47:48]line [16:47:48]line [16:47:48]line [16:47:48]line [16:47:48]line [16:47:48]written 0, free lines is 3320 [16:47:48]MH_Cut [16:47:48]Write to MH i2c: D1 01 00 50 47 01 69 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: D1 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: D1 01 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: D1 01 00 50 47 00 68 [16:47:48]Write to MH i2c: 01 00 00 51 47 98 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:49]OFD Sender: No OFD packet to send [16:47:49]*** Cut start [16:47:49]*** Partial cut [16:47:49]*** CUTSNS_PIN = 1 [16:47:49]*** CUTSNS_PIN = 0 [16:47:49]*** Brake cut motor [16:47:50]Read from MH i2c: 01 [16:47:50]MH_I2C_Read... [16:47:50]*** Stop cut motor [16:47:50]*** Cut end [16:47:50]Read from MH i2c: 01 07 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: 01 07 00 51 47 00 00 00 00 00 FF 0F AD [16:47:50]process_action close_receipt done [16:47:50]requested_data is exist [16:47:50]produce_requested_data [16:47:50]requested_item fm.sn is exist - process it [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 11 00 00 [16:47:50]Write to MH i2c: E2 08 00 52 47 80 11 00 00 00 00 00 00 13 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 17 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 17 00 52 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [16:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:47:50]wFMCommunicate OK [16:47:50]requested_item fd.num is exist - process it [16:47:50]SAM_PROTO_GetFieldsCounters [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 13 00 00 [16:47:50]Write to MH i2c: E2 08 00 53 47 80 13 00 00 00 00 00 00 16 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 62 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 62 00 53 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [16:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_GetFieldsCounters done [16:47:50]requested_item shift.num is exist - process it [16:47:50]requested_item shift.opened is exist - process it [16:47:50]req_shift_opened [16:47:50]FM_GetShiftState [16:47:50]SAM_PROTO_GetShiftState [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 13 01 00 [16:47:50]Write to MH i2c: E2 08 00 54 47 80 13 01 00 00 00 00 00 18 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0E 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0E 00 54 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4D [16:47:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_GetShiftState done [16:47:50]FM_GetShiftState done [16:47:50]req_shift_opened done [16:47:50]requested_item shift.open_date is exist - process it [16:47:50]req_shift_open_date [16:47:50]req_shift_open_date done [16:47:50]produce_requested_data done [16:47:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112300,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:47:50]process_action_free close_receipt [16:47:50]json_value_free [16:47:50]json_value_free done [16:47:50]process_json_proto returns [16:47:50]Send response to host [16:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112300,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:47:50]free response buf [16:47:50]execute_script done [16:47:50]execute_script returns [16:47:50]free content buf [16:47:50]Sock 7.Close socket [16:47:50]Sock 7.Thread stoped [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:00]accept exits with 9 [16:56:00]New connection [16:56:00]New thread 3066813796 created [16:56:00]Thread 3066957156 joined [16:56:00]Waiting for new connection... [16:56:00] Sock 9.Parse request [16:56:00]Sock 9.Check first char [16:56:00]Sock 9.First char is OK [16:56:00]request: POST /json_proto HTTP/1.0 [16:56:00]Method: POST [16:56:00]URL: /json_proto [16:56:00]Method is POST - this is cgi request [16:56:00]url: /json_proto [16:56:00]query_string will be loaded in cgi processing [16:56:00]execute_cgi json_proto POST (null) [16:56:00]execute_cgi path=json_proto method=POST [16:56:00]POST find Content-Length [16:56:00]Host: 172.17.59.68:8080 [16:56:00]Content-Length: 677 [16:56:00]Content-Type: application/json [16:56:00] [16:56:00]POST finish read [16:56:00]Found Content-Length = 677 [16:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320978", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:00]execute_script... [16:56: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)320978", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:00]POST & json_proto [16:56:00]process_json_proto [16:56:00]json parsed OK: [16:56:00]protocol is kg_v1.0 [16:56:00]action value=close_receipt [16:56:00]process_action close_receipt [16:56:00]cmd_close_receipt [16:56:00]MH_GetDate [16:56:00]Write to MH i2c: F0 00 00 55 47 8B [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: F0 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: F0 09 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: F0 09 00 55 47 00 3D 02 77 66 BC EC 60 65 1D [16:56:00]GetLastDocTimeStamp 1719074895 [16:56:00]current date 1719075389 [16:56:00]FM_GetShiftState [16:56:00]SAM_PROTO_GetShiftState [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 01 00 [16:56:00]Write to MH i2c: E2 08 00 56 47 80 13 01 00 00 00 00 00 1A [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 56 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4F [16:56:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:56:00]wFMCommunicate OK [16:56:00]SAM_PROTO_GetShiftState done [16:56:00]FM_GetShiftState done [16:56:00]opened in 1719020067 [16:56:00]opened+sec_in_day 1719106467 [16:56:00]quantity*price = 50065 [16:56:00]sum+1 = 50067 [16:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 167 22.06.2024 16:56 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112301 ФПД: 153421325980260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165629&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112301&fm=153421325980260&tin=02508201610067®Number=0000000000092771&sum=50000 [16:56:01]StoreToDocumentArchive [16:56:01]shift 391 fd 112301 [16:56:01]save to /storage/0391/doc_00112301 [16:56:01]save last doc name /storage/0391/doc_00112301 to /storage/kkm_last_doc_name [16:56:01]save OK [16:56:01]Clear old archive folders... [16:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:01]tlvbuf is 011D1DC0 [16:56:01]SAM_PROTO_ClearQueue [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 09 00 00 [16:56:01]Write to MH i2c: E2 08 00 63 47 80 09 00 00 00 00 00 00 1C [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 63 47 00 90 00 1E [16:56:01]RAPDU: 90 00 [16:56:01]wFMCommunicate OK [16:56:01]SAM_PROTO_ClearQueue done [16:56:01]KKMCreateOFDPacket [16:56:01]OFDProtocolAddRootSTLVToBuf [16:56:01]FM_MakeSignedData [16:56:01]FM_MakeSignedData [16:56:01]SAM_PROTO_SignData [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 0D 01 02 [16:56:01]Write to MH i2c: E2 08 00 64 47 80 0D 01 02 00 00 00 00 24 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 64 47 00 90 00 1F [16:56:01]RAPDU: 90 00 [16:56:01]wFMCommunicate OK [16:56:01]wFMCommunicate request_size=255 [16:56:01]MH_SAM_APDU [16:56: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 02 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B6 01 00 35 04 06 00 8B [16:56:01]Write to MH i2c: E2 02 01 65 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 02 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B6 01 00 35 04 06 00 8B 00 00 12 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 65 47 00 90 00 20 [16:56:01]RAPDU: 90 00 [16:56:01]wFMCommunicate OK [16:56:01]wFMCommunicate request_size=10 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 0D 02 02 05 89 2F A2 D2 64 [16:56:01]Write to MH i2c: E2 0D 00 66 47 80 0D 02 02 05 00 89 2F A2 D2 64 00 00 C1 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 03 00 66 47 00 90 00 21 [16:56:01]RAPDU: 90 00 [16:56:01]wFMCommunicate OK [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 0D 03 02 [16:56:01]Write to MH i2c: E2 08 00 67 47 80 0D 03 02 00 00 00 00 29 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:01]Read from MH i2c: E2 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 0B 00 [16:56:01]MH_I2C_Read... [16:56:01]Read from MH i2c: E2 0B 00 67 47 00 59 43 7C E9 15 CB CA F5 90 00 CA [16:56:01]RAPDU: 59 43 7C E9 15 CB CA F5 90 00 [16:56:01]wFMCommunicate OK [16:56:01]SAM_PROTO_SignData done [16:56:01]FM_MakeSignedData done [16:56:01]CreateOFDProtocolMessage [16:56:01]wFMCommunicate request_size=4 [16:56:01]MH_SAM_APDU [16:56:01]CAPDU: 80 11 00 00 [16:56:01]Write to MH i2c: E2 08 00 68 47 80 11 00 00 00 00 00 00 29 [16:56:01]Write i2c OK [16:56:01]MH_I2C_Read... [16:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:02]Read from MH i2c: E2 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 17 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: E2 17 00 68 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [16:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:56:02]wFMCommunicate OK [16:56:02]CreateOFDProtocolMessage done [16:56:02]OFDSenderStorePacket 112301 [16:56:02]StoreOFDPacket docnum=112301 [16:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 7D 07 01 72 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 02 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B6 01 00 35 04 06 00 8B 89 2F A2 D2 64 59 43 7C E9 15 CB CA F5 [16:56:02]CheckFolder [16:56:02]dirname=/storage/ofd_packets [16:56:02]CheckFolder done [16:56:02]ProducePacketName [16:56:02]name=ofd_packets/00112301 [16:56:02]NVStorageSaveData ofd_packets/00112301 [16:56:02]File name is /storage/ofd_packets/00112301 [16:56:02]Write 301 bytes [16:56:02]NVStorageSaveData done [16:56:02]OFDSenderStorePacket done [16:56:02]KKMCreateOFDPacket done [16:56:02]NVStorageSaveData kkm_last_timestamp [16:56:02]File name is /storage/kkm_last_timestamp [16:56:02]Write 4 bytes [16:56:02]NVStorageSaveData done [16:56:02]ExternCall_PrintAddStr [16:56:02]wPrintStart [16:56:02]Write to MH i2c: 01 00 00 69 47 B0 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 69 47 00 00 00 00 00 FF 0F C5 [16:56:02]RasterBufferAndPrint [16:56:02]line Счет N : (1)320978 [16:56:02]line ИНН: 02508201610067 [16:56:02]line Контрольно-Кассовый Чек [16:56:02]line ПРОДАЖА [16:56:02]line ТРК (МРК, ГНК) : 11 [16:56:02]line Товар: 2710124130 [16:56:02]line Аи-92-К-5 [16:56:02]line 7.540 * 66.40 [16:56:02]line = 500.66 [16:56:02]line НДС 12% НСП 1% [16:56:02]line > о реализуемом товаре [16:56:02]line ОКРУГЛЕНИЕ: -0.66 [16:56:02]line ИТОГО: 500.00 [16:56:02]line Внесено: 500.00 [16:56:02]line СДАЧА: 0.00 [16:56:02]line НСП 1% : 4.43 [16:56:02]line НДС 12% : 53.17 [16:56:02]line Наличными: 500.00 [16:56:02]line Безнал.: 0.00 [16:56:02]line Место: АЗС № 65 "Партнер Нефть" [16:56:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:56:02]line СНО: Общий режим [16:56:02]line Чек 167 22.06.2024 16:56 [16:56:02]line Смена: 391 ФФД: 1.0 [16:56:02]line ЗНМ: 0300000198 [16:56:02]line РНМ: 0000000000092771 [16:56:02]line Версия ККМ: 001 [16:56:02]line ФМ: 0000000000875083 [16:56:02]line ФД: 112301 [16:56:02]line ФПД: 153421325980260 [16:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T165629&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112301&fm=153421325980260&tin=02508201610067®Number=0000000000092771&sum=50000 [16:56:02]OFD Sender: Processing packet 112301 [packets to send 38, broken 37] [16:56:02]ProducePacketName [16:56:02]name=ofd_packets/00112301 [16:56:02]OFD Sender: To server: pG, [16:56:02]CommunicateWithHost lk.salyk.kg:30040 [16:56:02]ConnectInit lk.salyk.kg [16:56:02]written 0, free lines is 4095 [16:56:02]Connected sock=10 [16:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 7D 07 01 72 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 02 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B6 01 00 35 04 06 00 8B 89 2F A2 D2 64 59 43 7C E9 15 CB CA F5 [16:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 08 09 47 00 B8 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B6 01 00 F4 03 04 00 44 99 76 66 B6 04 01 00 00 B4 97 19 38 68 06 B5 F3 [16:56:02]CommunicateWithHost err = 0 [16:56:02]CheckOFDResponse [16:56:02]1017 (14) - 77093643461234 [16:56:02]1041 (16) - 0000000000875083 [16:56:02]1040 (4) - 112301 [16:56:02]1012 (4) - 22.06.2024 09:28 [16:56:02]1206 (1) - 0 [16:56:02]OFD Sender: Remove packet 112301 [16:56:02]ProducePacketName [16:56:02]name=ofd_packets/00112301 [16:56:02]NVStorageDeleteData [16:56:02]Write to MH i2c: 01 00 00 94 47 DB [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: 01 07 00 94 47 00 00 00 00 00 D7 0C C5 [16:56:02]RasterBufferAndPrint [16:56:02]line [16:56:02]line [16:56:02]line [16:56:02]line [16:56:02]line [16:56:02]written 0, free lines is 3294 [16:56:02]MH_Cut [16:56:02]Write to MH i2c: D1 01 00 9B 47 01 B4 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: D1 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: D1 01 00 [16:56:02]MH_I2C_Read... [16:56:02]Read from MH i2c: D1 01 00 9B 47 00 B3 [16:56:02]Write to MH i2c: 01 00 00 9C 47 E3 [16:56:02]Write i2c OK [16:56:02]MH_I2C_Read... [16:56:03]OFD Sender: No OFD packet to send [16:56:03]*** Cut start [16:56:03]*** Partial cut [16:56:03]*** CUTSNS_PIN = 1 [16:56:03]*** CUTSNS_PIN = 0 [16:56:03]*** Brake cut motor [16:56:04]Read from MH i2c: 01 [16:56:04]MH_I2C_Read... [16:56:04]*** Stop cut motor [16:56:04]*** Cut end [16:56:04]Read from MH i2c: 01 07 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 07 00 9C 47 00 00 00 00 00 FF 0F F8 [16:56:04]process_action close_receipt done [16:56:04]requested_data is exist [16:56:04]produce_requested_data [16:56:04]requested_item fm.sn is exist - process it [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 11 00 00 [16:56:04]Write to MH i2c: E2 08 00 9D 47 80 11 00 00 00 00 00 00 5E [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 17 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 17 00 9D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [16:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:56:04]wFMCommunicate OK [16:56:04]requested_item fd.num is exist - process it [16:56:04]SAM_PROTO_GetFieldsCounters [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 13 00 00 [16:56:04]Write to MH i2c: E2 08 00 9E 47 80 13 00 00 00 00 00 00 61 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 62 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 62 00 9E 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [16:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:04]wFMCommunicate OK [16:56:04]SAM_PROTO_GetFieldsCounters done [16:56:04]requested_item shift.num is exist - process it [16:56:04]requested_item shift.opened is exist - process it [16:56:04]req_shift_opened [16:56:04]FM_GetShiftState [16:56:04]SAM_PROTO_GetShiftState [16:56:04]wFMCommunicate request_size=4 [16:56:04]MH_SAM_APDU [16:56:04]CAPDU: 80 13 01 00 [16:56:04]Write to MH i2c: E2 08 00 9F 47 80 13 01 00 00 00 00 00 63 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:04]Read from MH i2c: E2 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 0E 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: E2 0E 00 9F 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 98 [16:56:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [16:56:04]wFMCommunicate OK [16:56:04]SAM_PROTO_GetShiftState done [16:56:04]FM_GetShiftState done [16:56:04]req_shift_opened done [16:56:04]requested_item shift.open_date is exist - process it [16:56:04]req_shift_open_date [16:56:04]req_shift_open_date done [16:56:04]produce_requested_data done [16:56:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112301,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [16:56:04]process_action_free close_receipt [16:56:04]json_value_free [16:56:04]json_value_free done [16:56:04]process_json_proto returns [16:56:04]Send response to host [16:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112301,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [16:56:04]free response buf [16:56:04]execute_script done [16:56:04]execute_script returns [16:56:04]free content buf [16:56:04]Sock 9.Close socket [16:56:04]Sock 9.Thread stoped [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:57]accept exits with 7 [17:03:57]New connection [17:03:57]New thread 3066957156 created [17:03:57]Thread 3066813796 joined [17:03:57]Waiting for new connection... [17:03:57] Sock 7.Parse request [17:03:57]Sock 7.Check first char [17:03:57]Sock 7.First char is OK [17:03:57]request: POST /json_proto HTTP/1.0 [17:03:57]Method: POST [17:03:57]URL: /json_proto [17:03:57]Method is POST - this is cgi request [17:03:57]url: /json_proto [17:03:57]query_string will be loaded in cgi processing [17:03:57]execute_cgi json_proto POST (null) [17:03:57]execute_cgi path=json_proto method=POST [17:03:57]POST find Content-Length [17:03:57]Host: 172.17.59.68:8080 [17:03:57]Content-Length: 679 [17:03:57]Content-Type: application/json [17:03:57] [17:03:57]POST finish read [17:03:57]Found Content-Length = 679 [17:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:57]execute_script... [17:03: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)320979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:57]POST & json_proto [17:03:57]process_json_proto [17:03:57]json parsed OK: [17:03:57]protocol is kg_v1.0 [17:03:57]action value=close_receipt [17:03:57]process_action close_receipt [17:03:57]cmd_close_receipt [17:03:57]MH_GetDate [17:03:57]Write to MH i2c: F0 00 00 A0 47 D6 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: F0 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: F0 09 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: F0 09 00 A0 47 00 1A 04 77 66 BC EC 60 65 47 [17:03:57]GetLastDocTimeStamp 1719075389 [17:03:57]current date 1719075866 [17:03:57]FM_GetShiftState [17:03:57]SAM_PROTO_GetShiftState [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 13 01 00 [17:03:57]Write to MH i2c: E2 08 00 A1 47 80 13 01 00 00 00 00 00 65 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0E 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0E 00 A1 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9A [17:03:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_GetShiftState done [17:03:57]FM_GetShiftState done [17:03:57]opened in 1719020067 [17:03:57]opened+sec_in_day 1719106467 [17:03:57]quantity*price = 350065 [17:03:57]sum+1 = 350067 [17:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 168 22.06.2024 17:04 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112302 ФПД: 202673058982919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170426&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112302&fm=202673058982919&tin=02508201610067®Number=0000000000092771&sum=350000 [17:03:58]StoreToDocumentArchive [17:03:58]shift 391 fd 112302 [17:03:58]save to /storage/0391/doc_00112302 [17:03:58]save last doc name /storage/0391/doc_00112302 to /storage/kkm_last_doc_name [17:03:58]save OK [17:03:58]Clear old archive folders... [17:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:03:58]tlvbuf is 0119A330 [17:03:58]SAM_PROTO_ClearQueue [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 09 00 00 [17:03:58]Write to MH i2c: E2 08 00 AE 47 80 09 00 00 00 00 00 00 67 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]OFD Sender: No OFD packet to send [17:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 AE 47 00 90 00 69 [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]SAM_PROTO_ClearQueue done [17:03:58]KKMCreateOFDPacket [17:03:58]OFDProtocolAddRootSTLVToBuf [17:03:58]FM_MakeSignedData [17:03:58]FM_MakeSignedData [17:03:58]SAM_PROTO_SignData [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 01 02 [17:03:58]Write to MH i2c: E2 08 00 AF 47 80 0D 01 02 00 00 00 00 6F [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 AF 47 00 90 00 6A [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]wFMCommunicate request_size=255 [17:03:58]MH_SAM_APDU [17:03: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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1A 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B6 01 00 35 04 06 00 B8 54 7F AF [17:03:58]Write to MH i2c: E2 02 01 B0 47 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1A 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B6 01 00 35 04 06 00 B8 54 7F AF 00 00 4F [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 B0 47 00 90 00 6B [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]wFMCommunicate request_size=7 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 02 02 02 AC 07 [17:03:58]Write to MH i2c: E2 0A 00 B1 47 80 0D 02 02 02 00 AC 07 00 00 29 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 B1 47 00 90 00 6C [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 03 02 [17:03:58]Write to MH i2c: E2 08 00 B2 47 80 0D 03 02 00 00 00 00 74 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0B 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0B 00 B2 47 00 8A F2 8A 87 D1 06 C3 2C 90 00 C8 [17:03:59]RAPDU: 8A F2 8A 87 D1 06 C3 2C 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_SignData done [17:03:59]FM_MakeSignedData done [17:03:59]CreateOFDProtocolMessage [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 11 00 00 [17:03:59]Write to MH i2c: E2 08 00 B3 47 80 11 00 00 00 00 00 00 74 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 B3 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [17:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:03:59]wFMCommunicate OK [17:03:59]CreateOFDProtocolMessage done [17:03:59]OFDSenderStorePacket 112302 [17:03:59]StoreOFDPacket docnum=112302 [17:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 78 BF 04 01 4A 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1A 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B6 01 00 35 04 06 00 B8 54 7F AF AC 07 8A F2 8A 87 D1 06 C3 2C [17:03:59]CheckFolder [17:03:59]dirname=/storage/ofd_packets [17:03:59]CheckFolder done [17:03:59]ProducePacketName [17:03:59]name=ofd_packets/00112302 [17:03:59]NVStorageSaveData ofd_packets/00112302 [17:03:59]File name is /storage/ofd_packets/00112302 [17:03:59]Write 298 bytes [17:03:59]NVStorageSaveData done [17:03:59]OFDSenderStorePacket done [17:03:59]KKMCreateOFDPacket done [17:03:59]NVStorageSaveData kkm_last_timestamp [17:03:59]File name is /storage/kkm_last_timestamp [17:03:59]Write 4 bytes [17:03:59]NVStorageSaveData done [17:03:59]ExternCall_PrintAddStr [17:03:59]wPrintStart [17:03:59]Write to MH i2c: 01 00 00 B4 47 FB [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 B4 47 00 00 00 00 00 FF 0F 10 [17:03:59]RasterBufferAndPrint [17:03:59]line Счет N : (1)320979 [17:03:59]line ИНН: 02508201610067 [17:03:59]line Контрольно-Кассовый Чек [17:03:59]line ПРОДАЖА [17:03:59]line ТРК (МРК, ГНК) : 22 [17:03:59]line Товар: 2710194210 [17:03:59]line ДТ-К-5 [17:03:59]line 48.020 * 72.90 [17:03:59]line = 3500.66 [17:03:59]line НДС 12% НСП 1% [17:03:59]line > о реализуемом товаре [17:03:59]line ОКРУГЛЕНИЕ: -0.66 [17:03:59]line ИТОГО: 3500.00 [17:03:59]line Внесено: 3500.00 [17:03:59]line СДАЧА: 0.00 [17:03:59]line НСП 1% : 30.98 [17:03:59]line НДС 12% : 371.75 [17:03:59]line Наличными: 3500.00 [17:03:59]line Безнал.: 0.00 [17:03:59]line Место: АЗС № 65 "Партнер Нефть" [17:03:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:03:59]line СНО: Общий режим [17:03:59]line Чек 168 22.06.2024 17:04 [17:03:59]line Смена: 391 ФФД: 1.0 [17:03:59]line ЗНМ: 0300000198 [17:03:59]line РНМ: 0000000000092771 [17:03:59]line Версия ККМ: 001 [17:03:59]line ФМ: 0000000000875083 [17:03:59]line ФД: 112302 [17:03:59]line ФПД: 202673058982919 [17:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170426&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112302&fm=202673058982919&tin=02508201610067®Number=0000000000092771&sum=350000 [17:03:59]OFD Sender: Processing packet 112302 [packets to send 38, broken 37] [17:03:59]ProducePacketName [17:03:59]name=ofd_packets/00112302 [17:03:59]OFD Sender: To server: pG, [17:03:59]CommunicateWithHost lk.salyk.kg:30040 [17:03:59]ConnectInit lk.salyk.kg [17:03:59]written 0, free lines is 4095 [17:03:59]Connected sock=10 [17:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 78 BF 04 01 4A 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1A 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B6 01 00 35 04 06 00 B8 54 7F AF AC 07 8A F2 8A 87 D1 06 C3 2C [17:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 70 BD 47 00 CC 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B6 01 00 F4 03 04 00 21 9B 76 66 B6 04 01 00 00 01 29 D2 CD C0 0C 71 90 [17:03:59]CommunicateWithHost err = 0 [17:03:59]CheckOFDResponse [17:03:59]1017 (14) - 77093643461234 [17:03:59]1041 (16) - 0000000000875083 [17:03:59]1040 (4) - 112302 [17:03:59]1012 (4) - 22.06.2024 09:36 [17:03:59]1206 (1) - 0 [17:03:59]OFD Sender: Remove packet 112302 [17:03:59]ProducePacketName [17:03:59]name=ofd_packets/00112302 [17:03:59]NVStorageDeleteData [17:03:59]Write to MH i2c: 01 00 00 DF 47 26 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 DF 47 00 00 00 00 00 F3 0C 2C [17:03:59]RasterBufferAndPrint [17:03:59]line [17:03:59]line [17:03:59]line [17:03:59]line [17:03:59]line [17:03:59]written 0, free lines is 3321 [17:03:59]MH_Cut [17:03:59]Write to MH i2c: D1 01 00 E6 47 01 FF [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: D1 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: D1 01 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: D1 01 00 E6 47 00 FE [17:03:59]Write to MH i2c: 01 00 00 E7 47 2E [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:04:00]OFD Sender: No OFD packet to send [17:04:00]*** Cut start [17:04:00]*** Partial cut [17:04:00]*** CUTSNS_PIN = 1 [17:04:00]*** CUTSNS_PIN = 0 [17:04:00]*** Brake cut motor [17:04:01]Read from MH i2c: 01 [17:04:01]MH_I2C_Read... [17:04:01]*** Stop cut motor [17:04:01]*** Cut end [17:04:01]Read from MH i2c: 01 07 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: 01 07 00 E7 47 00 00 00 00 00 FF 0F 43 [17:04:01]process_action close_receipt done [17:04:01]requested_data is exist [17:04:01]produce_requested_data [17:04:01]requested_item fm.sn is exist - process it [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 11 00 00 [17:04:01]Write to MH i2c: E2 08 00 E8 47 80 11 00 00 00 00 00 00 A9 [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:01]Read from MH i2c: E2 17 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 17 00 E8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [17:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:04:01]wFMCommunicate OK [17:04:01]requested_item fd.num is exist - process it [17:04:01]SAM_PROTO_GetFieldsCounters [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 13 00 00 [17:04:01]Write to MH i2c: E2 08 00 E9 47 80 13 00 00 00 00 00 00 AC [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 62 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 62 00 E9 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:04:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:01]wFMCommunicate OK [17:04:01]SAM_PROTO_GetFieldsCounters done [17:04:01]requested_item shift.num is exist - process it [17:04:01]requested_item shift.opened is exist - process it [17:04:01]req_shift_opened [17:04:01]FM_GetShiftState [17:04:01]SAM_PROTO_GetShiftState [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 13 01 00 [17:04:01]Write to MH i2c: E2 08 00 EA 47 80 13 01 00 00 00 00 00 AE [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 0E 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 0E 00 EA 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E3 [17:04:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:04:01]wFMCommunicate OK [17:04:01]SAM_PROTO_GetShiftState done [17:04:01]FM_GetShiftState done [17:04:01]req_shift_opened done [17:04:01]requested_item shift.open_date is exist - process it [17:04:01]req_shift_open_date [17:04:01]req_shift_open_date done [17:04:01]produce_requested_data done [17:04:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112302,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:04:01]process_action_free close_receipt [17:04:01]json_value_free [17:04:01]json_value_free done [17:04:01]process_json_proto returns [17:04:01]Send response to host [17:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112302,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:04:01]free response buf [17:04:01]execute_script done [17:04:01]execute_script returns [17:04:01]free content buf [17:04:01]Sock 7.Close socket [17:04:01]Sock 7.Thread stoped [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:31]accept exits with 9 [17:05:31]New connection [17:05:31]New thread 3066813796 created [17:05:31]Thread 3066957156 joined [17:05:31]Waiting for new connection... [17:05:31] Sock 9.Parse request [17:05:31]Sock 9.Check first char [17:05:31]Sock 9.First char is OK [17:05:31]request: POST /json_proto HTTP/1.0 [17:05:31]Method: POST [17:05:31]URL: /json_proto [17:05:31]Method is POST - this is cgi request [17:05:31]url: /json_proto [17:05:31]query_string will be loaded in cgi processing [17:05:31]execute_cgi json_proto POST (null) [17:05:31]execute_cgi path=json_proto method=POST [17:05:31]POST find Content-Length [17:05:31]Host: 172.17.59.68:8080 [17:05:31]Content-Length: 805 [17:05:31]Content-Type: application/json [17:05:31] [17:05:31]POST finish read [17:05:31]Found Content-Length = 805 [17:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:31]execute_script... [17:05: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)320980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:31]POST & json_proto [17:05:31]process_json_proto [17:05:31]json parsed OK: [17:05:31]protocol is kg_v1.0 [17:05:31]action value=close_receipt [17:05:31]process_action close_receipt [17:05:31]cmd_close_receipt [17:05:31]MH_GetDate [17:05:31]Write to MH i2c: F0 00 00 EB 47 21 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: F0 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: F0 09 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: F0 09 00 EB 47 00 78 04 77 66 BC EC 60 65 F0 [17:05:31]GetLastDocTimeStamp 1719075866 [17:05:31]current date 1719075960 [17:05:31]FM_GetShiftState [17:05:31]SAM_PROTO_GetShiftState [17:05:31]wFMCommunicate request_size=4 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 13 01 00 [17:05:31]Write to MH i2c: E2 08 00 EC 47 80 13 01 00 00 00 00 00 B0 [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 0E 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 0E 00 EC 47 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E5 [17:05:31]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:05:31]wFMCommunicate OK [17:05:31]SAM_PROTO_GetShiftState done [17:05:31]FM_GetShiftState done [17:05:31]opened in 1719020067 [17:05:31]opened+sec_in_day 1719106467 [17:05:31]quantity*price = 250047 [17:05:31]sum+1 = 250048 [17:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.47 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.47 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 169 22.06.2024 17:06 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112303 ФПД: 265983881867112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112303&fm=265983881867112&tin=02508201610067®Number=0000000000092771&sum=250047 [17:05:32]StoreToDocumentArchive [17:05:32]shift 391 fd 112303 [17:05:32]save to /storage/0391/doc_00112303 [17:05:32]save last doc name /storage/0391/doc_00112303 to /storage/kkm_last_doc_name [17:05:32]save OK [17:05:32]Clear old archive folders... [17:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:05:32]tlvbuf is 0119A4B0 [17:05:32]SAM_PROTO_ClearQueue [17:05:32]wFMCommunicate request_size=4 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 09 00 00 [17:05:32]Write to MH i2c: E2 08 00 F9 47 80 09 00 00 00 00 00 00 B2 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 F9 47 00 90 00 B4 [17:05:32]RAPDU: 90 00 [17:05:32]wFMCommunicate OK [17:05:32]SAM_PROTO_ClearQueue done [17:05:32]KKMCreateOFDPacket [17:05:32]OFDProtocolAddRootSTLVToBuf [17:05:32]FM_MakeSignedData [17:05:32]FM_MakeSignedData [17:05:32]SAM_PROTO_SignData [17:05:32]wFMCommunicate request_size=4 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 0D 01 02 [17:05:32]Write to MH i2c: E2 08 00 FA 47 80 0D 01 02 00 00 00 00 BA [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 FA 47 00 90 00 B5 [17:05:32]RAPDU: 90 00 [17:05:32]wFMCommunicate OK [17:05:32]wFMCommunicate request_size=255 [17:05:32]MH_SAM_APDU [17:05: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 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 78 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B6 01 00 35 04 06 00 F1 E9 32 CB [17:05:32]Write to MH i2c: E2 02 01 FB 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 78 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B6 01 00 35 04 06 00 F1 E9 32 CB 00 00 79 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:33]Read from MH i2c: E2 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 03 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 03 00 FB 47 00 90 00 B6 [17:05:33]RAPDU: 90 00 [17:05:33]wFMCommunicate OK [17:05:33]wFMCommunicate request_size=7 [17:05:33]MH_SAM_APDU [17:05:33]CAPDU: 80 0D 02 02 02 6F 68 [17:05:33]Write to MH i2c: E2 0A 00 FC 47 80 0D 02 02 02 00 6F 68 00 00 98 [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:33]Read from MH i2c: E2 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 03 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 03 00 FC 47 00 90 00 B7 [17:05:33]RAPDU: 90 00 [17:05:33]wFMCommunicate OK [17:05:33]wFMCommunicate request_size=4 [17:05:33]MH_SAM_APDU [17:05:33]CAPDU: 80 0D 03 02 [17:05:33]Write to MH i2c: E2 08 00 FD 47 80 0D 03 02 00 00 00 00 BF [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:33]Read from MH i2c: E2 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 0B 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 0B 00 FD 47 00 8A 17 3E 68 EF 63 97 22 90 00 12 [17:05:33]RAPDU: 8A 17 3E 68 EF 63 97 22 90 00 [17:05:33]wFMCommunicate OK [17:05:33]SAM_PROTO_SignData done [17:05:33]FM_MakeSignedData done [17:05:33]CreateOFDProtocolMessage [17:05:33]wFMCommunicate request_size=4 [17:05:33]MH_SAM_APDU [17:05:33]CAPDU: 80 11 00 00 [17:05:33]Write to MH i2c: E2 08 00 FE 47 80 11 00 00 00 00 00 00 BF [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:33]Read from MH i2c: E2 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 17 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: E2 17 00 FE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [17:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:05:33]wFMCommunicate OK [17:05:33]CreateOFDProtocolMessage done [17:05:33]OFDSenderStorePacket 112303 [17:05:33]StoreOFDPacket docnum=112303 [17:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BD C8 04 01 6E 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 78 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B6 01 00 35 04 06 00 F1 E9 32 CB 6F 68 8A 17 3E 68 EF 63 97 22 [17:05:33]CheckFolder [17:05:33]dirname=/storage/ofd_packets [17:05:33]CheckFolder done [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00112303 [17:05:33]NVStorageSaveData ofd_packets/00112303 [17:05:33]File name is /storage/ofd_packets/00112303 [17:05:33]Write 298 bytes [17:05:33]NVStorageSaveData done [17:05:33]OFDSenderStorePacket done [17:05:33]KKMCreateOFDPacket done [17:05:33]NVStorageSaveData kkm_last_timestamp [17:05:33]File name is /storage/kkm_last_timestamp [17:05:33]Write 4 bytes [17:05:33]NVStorageSaveData done [17:05:33]ExternCall_PrintAddStr [17:05:33]wPrintStart [17:05:33]Write to MH i2c: 01 00 00 FF 47 46 [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 07 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 07 00 FF 47 00 00 00 00 00 FF 0F 5B [17:05:33]RasterBufferAndPrint [17:05:33]line Счет N : (1)320980 [17:05:33]line ИНН: 02508201610067 [17:05:33]line Контрольно-Кассовый Чек [17:05:33]line ПРОДАЖА [17:05:33]line ТРК (МРК, ГНК) : 22 [17:05:33]line Товар: 2710194210 [17:05:33]line ДТ-К-5 [17:05:33]line 34.300 * 72.90 [17:05:33]line = 2500.47 [17:05:33]line НДС 12% НСП 1% [17:05:33]line > о реализуемом товаре [17:05:33]line ИТОГО: 2500.47 [17:05:33]line НСП 1% : 22.13 [17:05:33]line НДС 12% : 265.54 [17:05:33]line Наличными: 0.00 [17:05:33]line Безнал.: 2500.47 [17:05:33]line Место: АЗС № 65 "Партнер Нефть" [17:05:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:05:33]line СНО: Общий режим [17:05:33]line Чек 169 22.06.2024 17:06 [17:05:33]line Смена: 391 ФФД: 1.0 [17:05:33]line ЗНМ: 0300000198 [17:05:33]line РНМ: 0000000000092771 [17:05:33]line Версия ККМ: 001 [17:05:33]line Платежная система: О! деньги [17:05:33]line ФМ: 0000000000875083 [17:05:33]line ФД: 112303 [17:05:33]line ФПД: 265983881867112 [17:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T170600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112303&fm=265983881867112&tin=02508201610067®Number=0000000000092771&sum=250047 [17:05:33]OFD Sender: Processing packet 112303 [packets to send 38, broken 37] [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00112303 [17:05:33]OFD Sender: To server: pG, [17:05:33]CommunicateWithHost lk.salyk.kg:30040 [17:05:33]ConnectInit lk.salyk.kg [17:05:33]written 0, free lines is 4095 [17:05:33]Connected sock=7 [17:05:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BD C8 04 01 6E 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 78 04 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B6 01 00 35 04 06 00 F1 E9 32 CB 6F 68 8A 17 3E 68 EF 63 97 22 [17:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 DF 47 00 CA A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B6 01 00 F4 03 04 00 7F 9B 76 66 B6 04 01 00 00 E4 10 6C E8 A2 BE A8 A8 [17:05:33]CommunicateWithHost err = 0 [17:05:33]CheckOFDResponse [17:05:33]1017 (14) - 77093643461234 [17:05:33]1041 (16) - 0000000000875083 [17:05:33]1040 (4) - 112303 [17:05:33]1012 (4) - 22.06.2024 09:38 [17:05:33]1206 (1) - 0 [17:05:33]OFD Sender: Remove packet 112303 [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00112303 [17:05:33]NVStorageDeleteData [17:05:34]Write to MH i2c: 01 00 00 29 48 71 [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 29 48 00 00 00 00 00 E2 0C 66 [17:05:34]RasterBufferAndPrint [17:05:34]line [17:05:34]line [17:05:34]line [17:05:34]line [17:05:34]line [17:05:34]written 0, free lines is 3303 [17:05:34]MH_Cut [17:05:34]Write to MH i2c: D1 01 00 30 48 01 4A [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: D1 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: D1 01 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: D1 01 00 30 48 00 49 [17:05:34]Write to MH i2c: 01 00 00 31 48 79 [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]OFD Sender: No OFD packet to send [17:05:34]*** Cut start [17:05:34]*** Partial cut [17:05:34]*** CUTSNS_PIN = 1 [17:05:34]*** CUTSNS_PIN = 0 [17:05:35]*** Brake cut motor [17:05:35]Read from MH i2c: 01 [17:05:35]MH_I2C_Read... [17:05:35]*** Stop cut motor [17:05:35]*** Cut end [17:05:35]Read from MH i2c: 01 07 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: 01 07 00 31 48 00 00 00 00 00 FF 0F 8E [17:05:35]process_action close_receipt done [17:05:35]requested_data is exist [17:05:35]produce_requested_data [17:05:35]requested_item fm.sn is exist - process it [17:05:35]wFMCommunicate request_size=4 [17:05:35]MH_SAM_APDU [17:05:35]CAPDU: 80 11 00 00 [17:05:35]Write to MH i2c: E2 08 00 32 48 80 11 00 00 00 00 00 00 F4 [17:05:35]Write i2c OK [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 [17:05:35]MH_I2C_Read... [17:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:35]Read from MH i2c: E2 17 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 17 00 32 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [17:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:05:35]wFMCommunicate OK [17:05:35]requested_item fd.num is exist - process it [17:05:35]SAM_PROTO_GetFieldsCounters [17:05:35]wFMCommunicate request_size=4 [17:05:35]MH_SAM_APDU [17:05:35]CAPDU: 80 13 00 00 [17:05:35]Write to MH i2c: E2 08 00 33 48 80 13 00 00 00 00 00 00 F7 [17:05:35]Write i2c OK [17:05:35]MH_I2C_Read... [17:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:35]Read from MH i2c: E2 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 62 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 62 00 33 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [17:05:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:35]wFMCommunicate OK [17:05:35]SAM_PROTO_GetFieldsCounters done [17:05:35]requested_item shift.num is exist - process it [17:05:35]requested_item shift.opened is exist - process it [17:05:35]req_shift_opened [17:05:35]FM_GetShiftState [17:05:35]SAM_PROTO_GetShiftState [17:05:35]wFMCommunicate request_size=4 [17:05:35]MH_SAM_APDU [17:05:35]CAPDU: 80 13 01 00 [17:05:35]Write to MH i2c: E2 08 00 34 48 80 13 01 00 00 00 00 00 F9 [17:05:35]Write i2c OK [17:05:35]MH_I2C_Read... [17:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:35]Read from MH i2c: E2 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 0E 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 0E 00 34 48 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2E [17:05:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:05:35]wFMCommunicate OK [17:05:35]SAM_PROTO_GetShiftState done [17:05:35]FM_GetShiftState done [17:05:35]req_shift_opened done [17:05:35]requested_item shift.open_date is exist - process it [17:05:35]req_shift_open_date [17:05:35]req_shift_open_date done [17:05:35]produce_requested_data done [17:05:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112303,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:05:35]process_action_free close_receipt [17:05:35]json_value_free [17:05:35]json_value_free done [17:05:35]process_json_proto returns [17:05:35]Send response to host [17:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112303,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:05:35]free response buf [17:05:35]execute_script done [17:05:35]execute_script returns [17:05:35]free content buf [17:05:35]Sock 9.Close socket [17:05:35]Sock 9.Thread stoped [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:03]accept exits with 10 [17:13:03]New connection [17:13:03]New thread 3066957156 created [17:13:03]Thread 3066813796 joined [17:13:03]Waiting for new connection... [17:13:03] Sock 10.Parse request [17:13:03]Sock 10.Check first char [17:13:03]Sock 10.First char is OK [17:13:03]request: POST /json_proto HTTP/1.0 [17:13:03]Method: POST [17:13:03]URL: /json_proto [17:13:03]Method is POST - this is cgi request [17:13:03]url: /json_proto [17:13:03]query_string will be loaded in cgi processing [17:13:03]execute_cgi json_proto POST (null) [17:13:03]execute_cgi path=json_proto method=POST [17:13:03]POST find Content-Length [17:13:03]Host: 172.17.59.68:8080 [17:13:03]Content-Length: 674 [17:13:03]Content-Type: application/json [17:13:03] [17:13:03]POST finish read [17:13:03]Found Content-Length = 674 [17:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.770, "sum" : 420.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:03]execute_script... [17:13: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)320981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.770, "sum" : 420.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:03]POST & json_proto [17:13:03]process_json_proto [17:13:03]json parsed OK: [17:13:03]protocol is kg_v1.0 [17:13:03]action value=close_receipt [17:13:03]process_action close_receipt [17:13:03]cmd_close_receipt [17:13:03]MH_GetDate [17:13:03]Write to MH i2c: F0 00 00 35 48 6C [17:13:03]Write i2c OK [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: F0 [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: F0 09 00 [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: F0 09 00 35 48 00 3D 06 77 66 BC EC 60 65 02 [17:13:03]GetLastDocTimeStamp 1719075960 [17:13:03]current date 1719076413 [17:13:03]FM_GetShiftState [17:13:03]SAM_PROTO_GetShiftState [17:13:03]wFMCommunicate request_size=4 [17:13:03]MH_SAM_APDU [17:13:03]CAPDU: 80 13 01 00 [17:13:03]Write to MH i2c: E2 08 00 36 48 80 13 01 00 00 00 00 00 FB [17:13:03]Write i2c OK [17:13:03]MH_I2C_Read... [17:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:03]Read from MH i2c: E2 [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: E2 0E 00 [17:13:03]MH_I2C_Read... [17:13:03]Read from MH i2c: E2 0E 00 36 48 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 30 [17:13:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:13:03]wFMCommunicate OK [17:13:03]SAM_PROTO_GetShiftState done [17:13:03]FM_GetShiftState done [17:13:03]opened in 1719020067 [17:13:03]opened+sec_in_day 1719106467 [17:13:03]quantity*price = 42063 [17:13:03]sum+1 = 42064 [17:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.67 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 170 22.06.2024 17:13 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112304 ФПД: 8196500842160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112304&fm=8196500842160&tin=02508201610067®Number=0000000000092771&sum=42000 [17:13:04]StoreToDocumentArchive [17:13:04]shift 391 fd 112304 [17:13:04]save to /storage/0391/doc_00112304 [17:13:04]save last doc name /storage/0391/doc_00112304 to /storage/kkm_last_doc_name [17:13:04]save OK [17:13:04]Clear old archive folders... [17:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:13:04]tlvbuf is B6DA9440 [17:13:04]SAM_PROTO_ClearQueue [17:13:04]wFMCommunicate request_size=4 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 09 00 00 [17:13:04]Write to MH i2c: E2 08 00 43 48 80 09 00 00 00 00 00 00 FD [17:13:04]OFD Sender: No OFD packet to send [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:04]Read from MH i2c: E2 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 03 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 03 00 43 48 00 90 00 FF [17:13:04]RAPDU: 90 00 [17:13:04]wFMCommunicate OK [17:13:04]SAM_PROTO_ClearQueue done [17:13:04]KKMCreateOFDPacket [17:13:04]OFDProtocolAddRootSTLVToBuf [17:13:04]FM_MakeSignedData [17:13:04]FM_MakeSignedData [17:13:04]SAM_PROTO_SignData [17:13:04]wFMCommunicate request_size=4 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 0D 01 02 [17:13:04]Write to MH i2c: E2 08 00 44 48 80 0D 01 02 00 00 00 00 05 [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:04]Read from MH i2c: E2 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 03 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 03 00 44 48 00 90 00 00 [17:13:04]RAPDU: 90 00 [17:13:04]wFMCommunicate OK [17:13:04]wFMCommunicate request_size=255 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 16 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 11 00 00 00 00 07 04 06 00 10 A4 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 3D 06 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B6 01 00 35 04 06 00 07 74 65 85 [17:13:04]Write to MH i2c: E2 02 01 45 48 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 16 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 11 00 00 00 00 07 04 06 00 10 A4 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 3D 06 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B6 01 00 35 04 06 00 07 74 65 85 00 00 0A [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 45 48 00 90 00 01 [17:13:05]RAPDU: 90 00 [17:13:05]wFMCommunicate OK [17:13:05]wFMCommunicate request_size=7 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 0D 02 02 02 66 B0 [17:13:05]Write to MH i2c: E2 0A 00 46 48 80 0D 02 02 02 00 66 B0 00 00 22 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 46 48 00 90 00 02 [17:13:05]RAPDU: 90 00 [17:13:05]wFMCommunicate OK [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 0D 03 02 [17:13:05]Write to MH i2c: E2 08 00 47 48 80 0D 03 02 00 00 00 00 0A [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 0B 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 0B 00 47 48 00 0D 62 97 58 7B B4 05 16 90 00 B3 [17:13:05]RAPDU: 0D 62 97 58 7B B4 05 16 90 00 [17:13:05]wFMCommunicate OK [17:13:05]SAM_PROTO_SignData done [17:13:05]FM_MakeSignedData done [17:13:05]CreateOFDProtocolMessage [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 11 00 00 [17:13:05]Write to MH i2c: E2 08 00 48 48 80 11 00 00 00 00 00 00 0A [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 17 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 17 00 48 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [17:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:13:05]wFMCommunicate OK [17:13:05]CreateOFDProtocolMessage done [17:13:05]OFDSenderStorePacket 112304 [17:13:05]StoreOFDPacket docnum=112304 [17:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F2 03 04 01 76 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 8A 16 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 11 00 00 00 00 07 04 06 00 10 A4 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 3D 06 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B6 01 00 35 04 06 00 07 74 65 85 66 B0 0D 62 97 58 7B B4 05 16 [17:13:05]CheckFolder [17:13:05]dirname=/storage/ofd_packets [17:13:05]CheckFolder done [17:13:05]ProducePacketName [17:13:05]name=ofd_packets/00112304 [17:13:05]NVStorageSaveData ofd_packets/00112304 [17:13:05]File name is /storage/ofd_packets/00112304 [17:13:05]Write 298 bytes [17:13:05]NVStorageSaveData done [17:13:05]OFDSenderStorePacket done [17:13:05]KKMCreateOFDPacket done [17:13:05]NVStorageSaveData kkm_last_timestamp [17:13:05]File name is /storage/kkm_last_timestamp [17:13:05]Write 4 bytes [17:13:05]NVStorageSaveData done [17:13:05]ExternCall_PrintAddStr [17:13:05]wPrintStart [17:13:05]Write to MH i2c: 01 00 00 49 48 91 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: 01 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: 01 07 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: 01 07 00 49 48 00 00 00 00 00 FF 0F A6 [17:13:05]RasterBufferAndPrint [17:13:05]line Счет N : (1)320981 [17:13:05]line ИНН: 02508201610067 [17:13:05]line Контрольно-Кассовый Чек [17:13:05]line ПРОДАЖА [17:13:05]line ТРК (МРК, ГНК) : 22 [17:13:05]line Товар: 2710194210 [17:13:05]line ДТ-К-5 [17:13:05]line 5.770 * 72.90 [17:13:05]line = 420.63 [17:13:05]line НДС 12% НСП 1% [17:13:05]line > о реализуемом товаре [17:13:05]line ОКРУГЛЕНИЕ: -0.63 [17:13:05]line ИТОГО: 420.00 [17:13:05]line Внесено: 420.00 [17:13:05]line СДАЧА: 0.00 [17:13:05]line НСП 1% : 3.72 [17:13:05]line НДС 12% : 44.67 [17:13:05]line Наличными: 420.00 [17:13:05]line Безнал.: 0.00 [17:13:05]line Место: АЗС № 65 "Партнер Нефть" [17:13:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:13:05]line СНО: Общий режим [17:13:05]line Чек 170 22.06.2024 17:13 [17:13:05]line Смена: 391 ФФД: 1.0 [17:13:05]line ЗНМ: 0300000198 [17:13:05]line РНМ: 0000000000092771 [17:13:05]line Версия ККМ: 001 [17:13:05]line ФМ: 0000000000875083 [17:13:05]line ФД: 112304 [17:13:05]line ФПД: 8196500842160 [17:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112304&fm=8196500842160&tin=02508201610067®Number=0000000000092771&sum=42000 [17:13:05]OFD Sender: Processing packet 112304 [packets to send 38, broken 37] [17:13:05]ProducePacketName [17:13:05]name=ofd_packets/00112304 [17:13:05]OFD Sender: To server: pG, [17:13:05]CommunicateWithHost lk.salyk.kg:30040 [17:13:05]ConnectInit lk.salyk.kg [17:13:05]written 0, free lines is 4095 [17:13:05]Connected sock=7 [17:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F2 03 04 01 76 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 8A 16 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 11 00 00 00 00 07 04 06 00 10 A4 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 3D 06 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B6 01 00 35 04 06 00 07 74 65 85 66 B0 0D 62 97 58 7B B4 05 16 [17:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 91 3A 47 00 A0 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B6 01 00 F4 03 04 00 43 9D 76 66 B6 04 01 00 00 2D 36 3A 92 E7 96 F7 0A [17:13:06]CommunicateWithHost err = 0 [17:13:06]CheckOFDResponse [17:13:06]1017 (14) - 77093643461234 [17:13:06]1041 (16) - 0000000000875083 [17:13:06]1040 (4) - 112304 [17:13:06]1012 (4) - 22.06.2024 09:45 [17:13:06]1206 (1) - 0 [17:13:06]OFD Sender: Remove packet 112304 [17:13:06]ProducePacketName [17:13:06]name=ofd_packets/00112304 [17:13:06]NVStorageDeleteData [17:13:06]Write to MH i2c: 01 00 00 74 48 BC [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 07 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 07 00 74 48 00 00 00 00 00 C8 0C 97 [17:13:06]RasterBufferAndPrint [17:13:06]line [17:13:06]line [17:13:06]line [17:13:06]line [17:13:06]line [17:13:06]written 0, free lines is 3279 [17:13:06]MH_Cut [17:13:06]Write to MH i2c: D1 01 00 7B 48 01 95 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: D1 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: D1 01 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: D1 01 00 7B 48 00 94 [17:13:06]Write to MH i2c: 01 00 00 7C 48 C4 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]OFD Sender: No OFD packet to send [17:13:06]*** Cut start [17:13:06]*** Partial cut [17:13:06]*** CUTSNS_PIN = 1 [17:13:07]*** CUTSNS_PIN = 0 [17:13:07]*** Brake cut motor [17:13:07]Read from MH i2c: 01 [17:13:07]MH_I2C_Read... [17:13:07]*** Stop cut motor [17:13:07]*** Cut end [17:13:07]Read from MH i2c: 01 07 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: 01 07 00 7C 48 00 00 00 00 00 FF 0F D9 [17:13:07]process_action close_receipt done [17:13:07]requested_data is exist [17:13:07]produce_requested_data [17:13:07]requested_item fm.sn is exist - process it [17:13:07]wFMCommunicate request_size=4 [17:13:07]MH_SAM_APDU [17:13:07]CAPDU: 80 11 00 00 [17:13:07]Write to MH i2c: E2 08 00 7D 48 80 11 00 00 00 00 00 00 3F [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:07]Read from MH i2c: E2 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 17 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 17 00 7D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [17:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:13:07]wFMCommunicate OK [17:13:07]requested_item fd.num is exist - process it [17:13:07]SAM_PROTO_GetFieldsCounters [17:13:07]wFMCommunicate request_size=4 [17:13:07]MH_SAM_APDU [17:13:07]CAPDU: 80 13 00 00 [17:13:07]Write to MH i2c: E2 08 00 7E 48 80 13 00 00 00 00 00 00 42 [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:07]Read from MH i2c: E2 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 62 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 62 00 7E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [17:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:07]wFMCommunicate OK [17:13:07]SAM_PROTO_GetFieldsCounters done [17:13:07]requested_item shift.num is exist - process it [17:13:07]requested_item shift.opened is exist - process it [17:13:07]req_shift_opened [17:13:07]FM_GetShiftState [17:13:07]SAM_PROTO_GetShiftState [17:13:07]wFMCommunicate request_size=4 [17:13:07]MH_SAM_APDU [17:13:07]CAPDU: 80 13 01 00 [17:13:07]Write to MH i2c: E2 08 00 7F 48 80 13 01 00 00 00 00 00 44 [17:13:07]Write i2c OK [17:13:07]MH_I2C_Read... [17:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:07]Read from MH i2c: E2 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 0E 00 [17:13:07]MH_I2C_Read... [17:13:07]Read from MH i2c: E2 0E 00 7F 48 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 79 [17:13:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:13:07]wFMCommunicate OK [17:13:07]SAM_PROTO_GetShiftState done [17:13:07]FM_GetShiftState done [17:13:07]req_shift_opened done [17:13:07]requested_item shift.open_date is exist - process it [17:13:07]req_shift_open_date [17:13:07]req_shift_open_date done [17:13:07]produce_requested_data done [17:13:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112304,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:13:07]process_action_free close_receipt [17:13:07]json_value_free [17:13:07]json_value_free done [17:13:07]process_json_proto returns [17:13:07]Send response to host [17:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112304,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:13:07]free response buf [17:13:07]execute_script done [17:13:07]execute_script returns [17:13:07]free content buf [17:13:07]Sock 10.Close socket [17:13:07]Sock 10.Thread stoped [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:47]accept exits with 9 [17:16:47]New connection [17:16:47]New thread 3066813796 created [17:16:47]Thread 3066957156 joined [17:16:47]Waiting for new connection... [17:16:47] Sock 9.Parse request [17:16:47]Sock 9.Check first char [17:16:47]Sock 9.First char is OK [17:16:47]request: POST /json_proto HTTP/1.0 [17:16:47]Method: POST [17:16:47]URL: /json_proto [17:16:47]Method is POST - this is cgi request [17:16:47]url: /json_proto [17:16:47]query_string will be loaded in cgi processing [17:16:47]execute_cgi json_proto POST (null) [17:16:47]execute_cgi path=json_proto method=POST [17:16:47]POST find Content-Length [17:16:47]Host: 172.17.59.68:8080 [17:16:47]Content-Length: 673 [17:16:47]Content-Type: application/json [17:16:47] [17:16:47]POST finish read [17:16:47]Found Content-Length = 673 [17:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320982", "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.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:47]execute_script... [17:16: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)320982", "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.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:47]POST & json_proto [17:16:47]process_json_proto [17:16:47]json parsed OK: [17:16:47]protocol is kg_v1.0 [17:16:47]action value=close_receipt [17:16:47]process_action close_receipt [17:16:47]cmd_close_receipt [17:16:47]MH_GetDate [17:16:47]Write to MH i2c: F0 00 00 80 48 B7 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: F0 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: F0 09 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: F0 09 00 80 48 00 1C 07 77 66 BC EC 60 65 2D [17:16:47]GetLastDocTimeStamp 1719076413 [17:16:47]current date 1719076636 [17:16:47]FM_GetShiftState [17:16:47]SAM_PROTO_GetShiftState [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 13 01 00 [17:16:47]Write to MH i2c: E2 08 00 81 48 80 13 01 00 00 00 00 00 46 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0E 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0E 00 81 48 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7B [17:16:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:16:47]wFMCommunicate OK [17:16:47]SAM_PROTO_GetShiftState done [17:16:47]FM_GetShiftState done [17:16:47]opened in 1719020067 [17:16:47]opened+sec_in_day 1719106467 [17:16:47]quantity*price = 6640 [17:16:47]sum+1 = 6641 [17:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 66.00 Внесено: 66.00 СДАЧА: 0.00 НСП 1% : 0.59 НДС 12% : 7.05 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 171 22.06.2024 17:17 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112305 ФПД: 89520971797982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112305&fm=89520971797982&tin=02508201610067®Number=0000000000092771&sum=6600 [17:16:48]StoreToDocumentArchive [17:16:48]shift 391 fd 112305 [17:16:48]save to /storage/0391/doc_00112305 [17:16:48]save last doc name /storage/0391/doc_00112305 to /storage/kkm_last_doc_name [17:16:48]save OK [17:16:48]Clear old archive folders... [17:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:48]tlvbuf is 011F1410 [17:16:48]SAM_PROTO_ClearQueue [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 09 00 00 [17:16:48]Write to MH i2c: E2 08 00 8E 48 80 09 00 00 00 00 00 00 48 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 8E 48 00 90 00 4A [17:16:48]RAPDU: 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_ClearQueue done [17:16:48]KKMCreateOFDPacket [17:16:48]OFDProtocolAddRootSTLVToBuf [17:16:48]FM_MakeSignedData [17:16:48]FM_MakeSignedData [17:16:48]SAM_PROTO_SignData [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 0D 01 02 [17:16:48]Write to MH i2c: E2 08 00 8F 48 80 0D 01 02 00 00 00 00 50 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 8F 48 00 90 00 4B [17:16:48]RAPDU: 90 00 [17:16:48]wFMCommunicate OK [17:16:48]wFMCommunicate request_size=255 [17:16:48]MH_SAM_APDU [17:16: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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B6 01 00 35 04 06 00 51 [17:16:48]Write to MH i2c: E2 02 01 90 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B6 01 00 35 04 06 00 51 00 00 03 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 90 48 00 90 00 4C [17:16:48]RAPDU: 90 00 [17:16:48]wFMCommunicate OK [17:16:48]wFMCommunicate request_size=10 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 0D 02 02 05 6B 39 B9 55 DE [17:16:48]Write to MH i2c: E2 0D 00 91 48 80 0D 02 02 05 00 6B 39 B9 55 DE 00 00 ED [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 03 00 91 48 00 90 00 4D [17:16:48]RAPDU: 90 00 [17:16:48]wFMCommunicate OK [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 0D 03 02 [17:16:48]Write to MH i2c: E2 08 00 92 48 80 0D 03 02 00 00 00 00 55 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0B 00 [17:16:48]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0B 00 92 48 00 0D ED 4D EF 85 75 5B C7 90 00 A8 [17:16:49]RAPDU: 0D ED 4D EF 85 75 5B C7 90 00 [17:16:49]wFMCommunicate OK [17:16:49]SAM_PROTO_SignData done [17:16:49]FM_MakeSignedData done [17:16:49]CreateOFDProtocolMessage [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 11 00 00 [17:16:49]Write to MH i2c: E2 08 00 93 48 80 11 00 00 00 00 00 00 55 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 17 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 17 00 93 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [17:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:16:49]wFMCommunicate OK [17:16:49]CreateOFDProtocolMessage done [17:16:49]OFDSenderStorePacket 112305 [17:16:49]StoreOFDPacket docnum=112305 [17:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 0B 07 01 21 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B6 01 00 35 04 06 00 51 6B 39 B9 55 DE 0D ED 4D EF 85 75 5B C7 [17:16:49]CheckFolder [17:16:49]dirname=/storage/ofd_packets [17:16:49]CheckFolder done [17:16:49]ProducePacketName [17:16:49]name=ofd_packets/00112305 [17:16:49]NVStorageSaveData ofd_packets/00112305 [17:16:49]File name is /storage/ofd_packets/00112305 [17:16:49]Write 301 bytes [17:16:49]NVStorageSaveData done [17:16:49]OFDSenderStorePacket done [17:16:49]KKMCreateOFDPacket done [17:16:49]NVStorageSaveData kkm_last_timestamp [17:16:49]File name is /storage/kkm_last_timestamp [17:16:49]Write 4 bytes [17:16:49]NVStorageSaveData done [17:16:49]ExternCall_PrintAddStr [17:16:49]wPrintStart [17:16:49]Write to MH i2c: 01 00 00 94 48 DC [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 07 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 07 00 94 48 00 00 00 00 00 FF 0F F1 [17:16:49]RasterBufferAndPrint [17:16:49]line Счет N : (1)320982 [17:16:49]line ИНН: 02508201610067 [17:16:49]line Контрольно-Кассовый Чек [17:16:49]line ПРОДАЖА [17:16:49]line ТРК (МРК, ГНК) : 11 [17:16:49]line Товар: 2710124130 [17:16:49]line Аи-92-К-5 [17:16:49]line 1.000 * 66.40 [17:16:49]line = 66.40 [17:16:49]line НДС 12% НСП 1% [17:16:49]line > о реализуемом товаре [17:16:49]line ОКРУГЛЕНИЕ: -0.40 [17:16:49]line ИТОГО: 66.00 [17:16:49]line Внесено: 66.00 [17:16:49]line СДАЧА: 0.00 [17:16:49]line НСП 1% : 0.59 [17:16:49]line НДС 12% : 7.05 [17:16:49]line Наличными: 66.00 [17:16:49]line Безнал.: 0.00 [17:16:49]line Место: АЗС № 65 "Партнер Нефть" [17:16:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:16:49]line СНО: Общий режим [17:16:49]line Чек 171 22.06.2024 17:17 [17:16:49]line Смена: 391 ФФД: 1.0 [17:16:49]line ЗНМ: 0300000198 [17:16:49]line РНМ: 0000000000092771 [17:16:49]line Версия ККМ: 001 [17:16:49]line ФМ: 0000000000875083 [17:16:49]line ФД: 112305 [17:16:49]line ФПД: 89520971797982 [17:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112305&fm=89520971797982&tin=02508201610067®Number=0000000000092771&sum=6600 [17:16:49]OFD Sender: Processing packet 112305 [packets to send 38, broken 37] [17:16:49]ProducePacketName [17:16:49]name=ofd_packets/00112305 [17:16:49]OFD Sender: To server: pG, [17:16:49]CommunicateWithHost lk.salyk.kg:30040 [17:16:49]ConnectInit lk.salyk.kg [17:16:49]written 0, free lines is 4095 [17:16:49]Connected sock=10 [17:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 0B 07 01 21 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 1C 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B6 01 00 35 04 06 00 51 6B 39 B9 55 DE 0D ED 4D EF 85 75 5B C7 [17:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7C A3 47 00 A0 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B6 01 00 F4 03 04 00 23 9E 76 66 B6 04 01 00 00 4C 0A DC 6B 31 94 09 1E [17:16:49]CommunicateWithHost err = 0 [17:16:49]CheckOFDResponse [17:16:49]1017 (14) - 77093643461234 [17:16:49]1041 (16) - 0000000000875083 [17:16:49]1040 (4) - 112305 [17:16:49]1012 (4) - 22.06.2024 09:49 [17:16:49]1206 (1) - 0 [17:16:49]OFD Sender: Remove packet 112305 [17:16:49]ProducePacketName [17:16:49]name=ofd_packets/00112305 [17:16:49]NVStorageDeleteData [17:16:49]Write to MH i2c: 01 00 00 BF 48 07 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 07 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 07 00 BF 48 00 00 00 00 00 CD 0C E7 [17:16:49]RasterBufferAndPrint [17:16:49]line [17:16:49]line [17:16:49]line [17:16:49]line [17:16:49]line [17:16:49]written 0, free lines is 3283 [17:16:49]MH_Cut [17:16:49]Write to MH i2c: D1 01 00 C6 48 01 E0 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: D1 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: D1 01 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: D1 01 00 C6 48 00 DF [17:16:49]Write to MH i2c: 01 00 00 C7 48 0F [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:50]OFD Sender: No OFD packet to send [17:16:50]*** Cut start [17:16:50]*** Partial cut [17:16:50]*** CUTSNS_PIN = 1 [17:16:50]*** CUTSNS_PIN = 0 [17:16:50]*** Brake cut motor [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]*** Stop cut motor [17:16:51]*** Cut end [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 C7 48 00 00 00 00 00 FF 0F 24 [17:16:51]process_action close_receipt done [17:16:51]requested_data is exist [17:16:51]produce_requested_data [17:16:51]requested_item fm.sn is exist - process it [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 11 00 00 [17:16:51]Write to MH i2c: E2 08 00 C8 48 80 11 00 00 00 00 00 00 8A [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 C8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [17:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:16:51]wFMCommunicate OK [17:16:51]requested_item fd.num is exist - process it [17:16:51]SAM_PROTO_GetFieldsCounters [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 13 00 00 [17:16:51]Write to MH i2c: E2 08 00 C9 48 80 13 00 00 00 00 00 00 8D [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 62 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 62 00 C9 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [17:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:51]wFMCommunicate OK [17:16:51]SAM_PROTO_GetFieldsCounters done [17:16:51]requested_item shift.num is exist - process it [17:16:51]requested_item shift.opened is exist - process it [17:16:51]req_shift_opened [17:16:51]FM_GetShiftState [17:16:51]SAM_PROTO_GetShiftState [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 13 01 00 [17:16:51]Write to MH i2c: E2 08 00 CA 48 80 13 01 00 00 00 00 00 8F [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 0E 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 0E 00 CA 48 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C4 [17:16:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:16:51]wFMCommunicate OK [17:16:51]SAM_PROTO_GetShiftState done [17:16:51]FM_GetShiftState done [17:16:51]req_shift_opened done [17:16:51]requested_item shift.open_date is exist - process it [17:16:51]req_shift_open_date [17:16:51]req_shift_open_date done [17:16:51]produce_requested_data done [17:16:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112305,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:16:51]process_action_free close_receipt [17:16:51]json_value_free [17:16:51]json_value_free done [17:16:51]process_json_proto returns [17:16:51]Send response to host [17:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112305,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:16:51]free response buf [17:16:51]execute_script done [17:16:51]execute_script returns [17:16:51]free content buf [17:16:51]Sock 9.Close socket [17:16:51]Sock 9.Thread stoped [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:53]accept exits with 7 [17:19:53]New connection [17:19:53]New thread 3066957156 created [17:19:53]Thread 3066813796 joined [17:19:53]Waiting for new connection... [17:19:53] Sock 7.Parse request [17:19:53]Sock 7.Check first char [17:19:53]Sock 7.First char is OK [17:19:53]request: POST /json_proto HTTP/1.0 [17:19:53]Method: POST [17:19:53]URL: /json_proto [17:19:53]Method is POST - this is cgi request [17:19:53]url: /json_proto [17:19:53]query_string will be loaded in cgi processing [17:19:53]execute_cgi json_proto POST (null) [17:19:53]execute_cgi path=json_proto method=POST [17:19:53]POST find Content-Length [17:19:53]Host: 172.17.59.68:8080 [17:19:53]Content-Length: 805 [17:19:53]Content-Type: application/json [17:19:53] [17:19:53]POST finish read [17:19:53]Found Content-Length = 805 [17:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320983", "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.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:53]execute_script... [17:19: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)320983", "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.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:53]POST & json_proto [17:19:53]process_json_proto [17:19:53]json parsed OK: [17:19:53]protocol is kg_v1.0 [17:19:53]action value=close_receipt [17:19:53]process_action close_receipt [17:19:53]cmd_close_receipt [17:19:53]MH_GetDate [17:19:53]Write to MH i2c: F0 00 00 CB 48 02 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: F0 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: F0 09 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: F0 09 00 CB 48 00 D6 07 77 66 BC EC 60 65 32 [17:19:53]GetLastDocTimeStamp 1719076636 [17:19:53]current date 1719076822 [17:19:53]FM_GetShiftState [17:19:53]SAM_PROTO_GetShiftState [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 13 01 00 [17:19:53]Write to MH i2c: E2 08 00 CC 48 80 13 01 00 00 00 00 00 91 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 0E 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 0E 00 CC 48 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C6 [17:19:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:19:53]wFMCommunicate OK [17:19:53]SAM_PROTO_GetShiftState done [17:19:53]FM_GetShiftState done [17:19:53]opened in 1719020067 [17:19:53]opened+sec_in_day 1719106467 [17:19:53]quantity*price = 40039 [17:19:53]sum+1 = 40040 [17:19:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 172 22.06.2024 17:20 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112306 ФПД: 207818235867052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T172022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112306&fm=207818235867052&tin=02508201610067®Number=0000000000092771&sum=40039 [17:19:54]StoreToDocumentArchive [17:19:54]shift 391 fd 112306 [17:19:54]save to /storage/0391/doc_00112306 [17:19:54]save last doc name /storage/0391/doc_00112306 to /storage/kkm_last_doc_name [17:19:54]save OK [17:19:54]Clear old archive folders... [17:19:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:54]tlvbuf is 0122CCC0 [17:19:54]SAM_PROTO_ClearQueue [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 09 00 00 [17:19:54]Write to MH i2c: E2 08 00 D9 48 80 09 00 00 00 00 00 00 93 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 D9 48 00 90 00 95 [17:19:54]RAPDU: 90 00 [17:19:54]wFMCommunicate OK [17:19:54]SAM_PROTO_ClearQueue done [17:19:54]KKMCreateOFDPacket [17:19:54]OFDProtocolAddRootSTLVToBuf [17:19:54]FM_MakeSignedData [17:19:54]FM_MakeSignedData [17:19:54]SAM_PROTO_SignData [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 0D 01 02 [17:19:54]Write to MH i2c: E2 08 00 DA 48 80 0D 01 02 00 00 00 00 9B [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 DA 48 00 90 00 96 [17:19:54]RAPDU: 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=255 [17:19:54]MH_SAM_APDU [17:19: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D6 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B6 01 00 35 04 06 00 BD [17:19:54]Write to MH i2c: E2 02 01 DB 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D6 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B6 01 00 35 04 06 00 BD 00 00 7F [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 DB 48 00 90 00 97 [17:19:54]RAPDU: 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=10 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 0D 02 02 05 02 74 20 6F AC [17:19:54]Write to MH i2c: E2 0D 00 DC 48 80 0D 02 02 05 00 02 74 20 6F AC 00 00 59 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 DC 48 00 90 00 98 [17:19:54]RAPDU: 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 0D 03 02 [17:19:54]Write to MH i2c: E2 08 00 DD 48 80 0D 03 02 00 00 00 00 A0 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 0B 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 0B 00 DD 48 00 42 26 AC 10 3A 63 29 E4 90 00 6F [17:19:54]RAPDU: 42 26 AC 10 3A 63 29 E4 90 00 [17:19:54]wFMCommunicate OK [17:19:54]SAM_PROTO_SignData done [17:19:54]FM_MakeSignedData done [17:19:54]CreateOFDProtocolMessage [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 11 00 00 [17:19:54]Write to MH i2c: E2 08 00 DE 48 80 11 00 00 00 00 00 00 A0 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 17 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 17 00 DE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [17:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:19:54]wFMCommunicate OK [17:19:54]CreateOFDProtocolMessage done [17:19:54]OFDSenderStorePacket 112306 [17:19:54]StoreOFDPacket docnum=112306 [17:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 B0 07 01 6D 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D6 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B6 01 00 35 04 06 00 BD 02 74 20 6F AC 42 26 AC 10 3A 63 29 E4 [17:19:54]CheckFolder [17:19:54]dirname=/storage/ofd_packets [17:19:54]CheckFolder done [17:19:54]ProducePacketName [17:19:54]name=ofd_packets/00112306 [17:19:54]NVStorageSaveData ofd_packets/00112306 [17:19:54]File name is /storage/ofd_packets/00112306 [17:19:54]Write 301 bytes [17:19:54]NVStorageSaveData done [17:19:54]OFDSenderStorePacket done [17:19:54]KKMCreateOFDPacket done [17:19:54]NVStorageSaveData kkm_last_timestamp [17:19:54]File name is /storage/kkm_last_timestamp [17:19:54]Write 4 bytes [17:19:54]NVStorageSaveData done [17:19:54]ExternCall_PrintAddStr [17:19:54]wPrintStart [17:19:54]Write to MH i2c: 01 00 00 DF 48 27 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: 01 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: 01 07 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: 01 07 00 DF 48 00 00 00 00 00 FF 0F 3C [17:19:54]RasterBufferAndPrint [17:19:54]line Счет N : (1)320983 [17:19:54]line ИНН: 02508201610067 [17:19:54]line Контрольно-Кассовый Чек [17:19:54]line ПРОДАЖА [17:19:54]line ТРК (МРК, ГНК) : 11 [17:19:54]line Товар: 2710124130 [17:19:54]line Аи-92-К-5 [17:19:54]line 6.030 * 66.40 [17:19:54]line = 400.39 [17:19:54]line НДС 12% НСП 1% [17:19:54]line > о реализуемом товаре [17:19:54]line ИТОГО: 400.39 [17:19:54]line НСП 1% : 3.54 [17:19:54]line НДС 12% : 42.52 [17:19:54]line Наличными: 0.00 [17:19:54]line Безнал.: 400.39 [17:19:54]line Место: АЗС № 65 "Партнер Нефть" [17:19:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:19:54]line СНО: Общий режим [17:19:54]line Чек 172 22.06.2024 17:20 [17:19:54]line Смена: 391 ФФД: 1.0 [17:19:54]line ЗНМ: 0300000198 [17:19:54]line РНМ: 0000000000092771 [17:19:54]line Версия ККМ: 001 [17:19:54]line Платежная система: О! деньги [17:19:54]line ФМ: 0000000000875083 [17:19:54]line ФД: 112306 [17:19:54]line ФПД: 207818235867052 [17:19:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T172022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112306&fm=207818235867052&tin=02508201610067®Number=0000000000092771&sum=40039 [17:19:55]OFD Sender: Processing packet 112306 [packets to send 38, broken 37] [17:19:55]ProducePacketName [17:19:55]name=ofd_packets/00112306 [17:19:55]OFD Sender: To server: pG, [17:19:55]CommunicateWithHost lk.salyk.kg:30040 [17:19:55]ConnectInit lk.salyk.kg [17:19:55]written 0, free lines is 4095 [17:19:55]Connected sock=10 [17:19:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 B0 07 01 6D 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D6 07 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B6 01 00 35 04 06 00 BD 02 74 20 6F AC 42 26 AC 10 3A 63 29 E4 [17:19:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4A 39 47 00 24 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B6 01 00 F4 03 04 00 DC 9E 76 66 B6 04 01 00 00 F1 32 3C D9 6C D7 6F 8E [17:19:55]CommunicateWithHost err = 0 [17:19:55]CheckOFDResponse [17:19:55]1017 (14) - 77093643461234 [17:19:55]1041 (16) - 0000000000875083 [17:19:55]1040 (4) - 112306 [17:19:55]1012 (4) - 22.06.2024 09:52 [17:19:55]1206 (1) - 0 [17:19:55]OFD Sender: Remove packet 112306 [17:19:55]ProducePacketName [17:19:55]name=ofd_packets/00112306 [17:19:55]NVStorageDeleteData [17:19:55]Write to MH i2c: 01 00 00 09 49 52 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: 01 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: 01 07 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: 01 07 00 09 49 00 00 00 00 00 DF 0C 44 [17:19:55]RasterBufferAndPrint [17:19:55]line [17:19:55]line [17:19:55]line [17:19:55]line [17:19:55]line [17:19:55]written 0, free lines is 3301 [17:19:55]MH_Cut [17:19:55]Write to MH i2c: D1 01 00 10 49 01 2B [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: D1 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: D1 01 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: D1 01 00 10 49 00 2A [17:19:55]Write to MH i2c: 01 00 00 11 49 5A [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]OFD Sender: No OFD packet to send [17:19:56]*** Cut start [17:19:56]*** Partial cut [17:19:56]*** CUTSNS_PIN = 1 [17:19:56]*** CUTSNS_PIN = 0 [17:19:56]*** Brake cut motor [17:19:56]Read from MH i2c: 01 [17:19:56]MH_I2C_Read... [17:19:56]*** Stop cut motor [17:19:56]*** Cut end [17:19:56]Read from MH i2c: 01 07 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: 01 07 00 11 49 00 00 00 00 00 FF 0F 6F [17:19:56]process_action close_receipt done [17:19:56]requested_data is exist [17:19:56]produce_requested_data [17:19:56]requested_item fm.sn is exist - process it [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 11 00 00 [17:19:56]Write to MH i2c: E2 08 00 12 49 80 11 00 00 00 00 00 00 D5 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 17 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 17 00 12 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [17:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:19:57]wFMCommunicate OK [17:19:57]requested_item fd.num is exist - process it [17:19:57]SAM_PROTO_GetFieldsCounters [17:19:57]wFMCommunicate request_size=4 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 13 00 00 [17:19:57]Write to MH i2c: E2 08 00 13 49 80 13 00 00 00 00 00 00 D8 [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 62 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 62 00 13 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [17:19:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:57]wFMCommunicate OK [17:19:57]SAM_PROTO_GetFieldsCounters done [17:19:57]requested_item shift.num is exist - process it [17:19:57]requested_item shift.opened is exist - process it [17:19:57]req_shift_opened [17:19:57]FM_GetShiftState [17:19:57]SAM_PROTO_GetShiftState [17:19:57]wFMCommunicate request_size=4 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 13 01 00 [17:19:57]Write to MH i2c: E2 08 00 14 49 80 13 01 00 00 00 00 00 DA [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 0E 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 0E 00 14 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0F [17:19:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:19:57]wFMCommunicate OK [17:19:57]SAM_PROTO_GetShiftState done [17:19:57]FM_GetShiftState done [17:19:57]req_shift_opened done [17:19:57]requested_item shift.open_date is exist - process it [17:19:57]req_shift_open_date [17:19:57]req_shift_open_date done [17:19:57]produce_requested_data done [17:19:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112306,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:19:57]process_action_free close_receipt [17:19:57]json_value_free [17:19:57]json_value_free done [17:19:57]process_json_proto returns [17:19:57]Send response to host [17:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112306,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:19:57]free response buf [17:19:57]execute_script done [17:19:57]execute_script returns [17:19:57]free content buf [17:19:57]Sock 7.Close socket [17:19:57]Sock 7.Thread stoped [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:52]accept exits with 9 [17:29:52]New connection [17:29:52]New thread 3066813796 created [17:29:52]Thread 3066957156 joined [17:29:52]Waiting for new connection... [17:29:52] Sock 9.Parse request [17:29:52]Sock 9.Check first char [17:29:52]Sock 9.First char is OK [17:29:52]request: POST /json_proto HTTP/1.0 [17:29:52]Method: POST [17:29:52]URL: /json_proto [17:29:52]Method is POST - this is cgi request [17:29:52]url: /json_proto [17:29:52]query_string will be loaded in cgi processing [17:29:52]execute_cgi json_proto POST (null) [17:29:52]execute_cgi path=json_proto method=POST [17:29:52]POST find Content-Length [17:29:52]Host: 172.17.59.68:8080 [17:29:52]Content-Length: 677 [17:29:52]Content-Type: application/json [17:29:52] [17:29:52]POST finish read [17:29:52]Found Content-Length = 677 [17:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320984", "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.40, "quantity" : 7.840, "sum" : 520.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:52]execute_script... [17:29: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)320984", "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.40, "quantity" : 7.840, "sum" : 520.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:52]POST & json_proto [17:29:52]process_json_proto [17:29:52]json parsed OK: [17:29:52]protocol is kg_v1.0 [17:29:52]action value=close_receipt [17:29:52]process_action close_receipt [17:29:52]cmd_close_receipt [17:29:52]MH_GetDate [17:29:52]Write to MH i2c: F0 00 00 15 49 4D [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: F0 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: F0 09 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: F0 09 00 15 49 00 2E 0A 77 66 BC EC 60 65 D8 [17:29:52]GetLastDocTimeStamp 1719076822 [17:29:52]current date 1719077422 [17:29:52]FM_GetShiftState [17:29:52]SAM_PROTO_GetShiftState [17:29:52]wFMCommunicate request_size=4 [17:29:52]MH_SAM_APDU [17:29:52]CAPDU: 80 13 01 00 [17:29:52]Write to MH i2c: E2 08 00 16 49 80 13 01 00 00 00 00 00 DC [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:52]Read from MH i2c: E2 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 0E 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 0E 00 16 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 11 [17:29:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:29:52]wFMCommunicate OK [17:29:52]SAM_PROTO_GetShiftState done [17:29:52]FM_GetShiftState done [17:29:52]opened in 1719020067 [17:29:52]opened+sec_in_day 1719106467 [17:29:52]quantity*price = 52057 [17:29:52]sum+1 = 52059 [17:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.28 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 173 22.06.2024 17:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112307 ФПД: 36606068961425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T173022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112307&fm=36606068961425&tin=02508201610067®Number=0000000000092771&sum=52000 [17:29:53]StoreToDocumentArchive [17:29:53]shift 391 fd 112307 [17:29:53]save to /storage/0391/doc_00112307 [17:29:53]save last doc name /storage/0391/doc_00112307 to /storage/kkm_last_doc_name [17:29:53]save OK [17:29:53]Clear old archive folders... [17:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:53]tlvbuf is B6F59EC0 [17:29:53]SAM_PROTO_ClearQueue [17:29:53]wFMCommunicate request_size=4 [17:29:53]MH_SAM_APDU [17:29:53]CAPDU: 80 09 00 00 [17:29:53]Write to MH i2c: E2 08 00 23 49 80 09 00 00 00 00 00 00 DE [17:29:53]Write i2c OK [17:29:53]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 23 49 00 90 00 E0 [17:29:54]RAPDU: 90 00 [17:29:54]wFMCommunicate OK [17:29:54]SAM_PROTO_ClearQueue done [17:29:54]KKMCreateOFDPacket [17:29:54]OFDProtocolAddRootSTLVToBuf [17:29:54]FM_MakeSignedData [17:29:54]FM_MakeSignedData [17:29:54]SAM_PROTO_SignData [17:29:54]wFMCommunicate request_size=4 [17:29:54]MH_SAM_APDU [17:29:54]CAPDU: 80 0D 01 02 [17:29:54]Write to MH i2c: E2 08 00 24 49 80 0D 01 02 00 00 00 00 E6 [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 24 49 00 90 00 E1 [17:29:54]RAPDU: 90 00 [17:29:54]wFMCommunicate OK [17:29:54]wFMCommunicate request_size=255 [17:29:54]MH_SAM_APDU [17:29:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E 0A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B6 01 00 35 04 06 00 21 [17:29:54]Write to MH i2c: E2 02 01 25 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E 0A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B6 01 00 35 04 06 00 21 00 00 02 [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 25 49 00 90 00 E2 [17:29:54]RAPDU: 90 00 [17:29:54]wFMCommunicate OK [17:29:54]wFMCommunicate request_size=10 [17:29:54]MH_SAM_APDU [17:29:54]CAPDU: 80 0D 02 02 05 4B 03 BC B0 91 [17:29:54]Write to MH i2c: E2 0D 00 26 49 80 0D 02 02 05 00 4B 03 BC B0 91 00 00 3E [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 03 00 26 49 00 90 00 E3 [17:29:54]RAPDU: 90 00 [17:29:54]wFMCommunicate OK [17:29:54]wFMCommunicate request_size=4 [17:29:54]MH_SAM_APDU [17:29:54]CAPDU: 80 0D 03 02 [17:29:54]Write to MH i2c: E2 08 00 27 49 80 0D 03 02 00 00 00 00 EB [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 0B 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 0B 00 27 49 00 AD 1A E7 EF CE FF F5 31 90 00 7C [17:29:54]RAPDU: AD 1A E7 EF CE FF F5 31 90 00 [17:29:54]wFMCommunicate OK [17:29:54]SAM_PROTO_SignData done [17:29:54]FM_MakeSignedData done [17:29:54]CreateOFDProtocolMessage [17:29:54]wFMCommunicate request_size=4 [17:29:54]MH_SAM_APDU [17:29:54]CAPDU: 80 11 00 00 [17:29:54]Write to MH i2c: E2 08 00 28 49 80 11 00 00 00 00 00 00 EB [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 17 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 17 00 28 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [17:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:29:54]wFMCommunicate OK [17:29:54]CreateOFDProtocolMessage done [17:29:54]OFDSenderStorePacket 112307 [17:29:54]StoreOFDPacket docnum=112307 [17:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4E 89 07 01 D6 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 A0 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E 0A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B6 01 00 35 04 06 00 21 4B 03 BC B0 91 AD 1A E7 EF CE FF F5 31 [17:29:54]CheckFolder [17:29:54]dirname=/storage/ofd_packets [17:29:54]CheckFolder done [17:29:54]ProducePacketName [17:29:54]name=ofd_packets/00112307 [17:29:54]NVStorageSaveData ofd_packets/00112307 [17:29:54]File name is /storage/ofd_packets/00112307 [17:29:54]Write 301 bytes [17:29:54]NVStorageSaveData done [17:29:54]OFDSenderStorePacket done [17:29:54]KKMCreateOFDPacket done [17:29:54]NVStorageSaveData kkm_last_timestamp [17:29:54]File name is /storage/kkm_last_timestamp [17:29:54]Write 4 bytes [17:29:54]NVStorageSaveData done [17:29:54]ExternCall_PrintAddStr [17:29:54]wPrintStart [17:29:54]Write to MH i2c: 01 00 00 29 49 72 [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: 01 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: 01 07 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: 01 07 00 29 49 00 00 00 00 00 FF 0F 87 [17:29:54]RasterBufferAndPrint [17:29:54]line Счет N : (1)320984 [17:29:54]line ИНН: 02508201610067 [17:29:54]line Контрольно-Кассовый Чек [17:29:54]line ПРОДАЖА [17:29:54]line ТРК (МРК, ГНК) : 11 [17:29:54]line Товар: 2710124130 [17:29:54]line Аи-92-К-5 [17:29:54]line 7.840 * 66.40 [17:29:54]line = 520.58 [17:29:54]line НДС 12% НСП 1% [17:29:54]line > о реализуемом товаре [17:29:54]line ОКРУГЛЕНИЕ: -0.58 [17:29:54]line ИТОГО: 520.00 [17:29:54]line Внесено: 520.00 [17:29:54]line СДАЧА: 0.00 [17:29:54]line НСП 1% : 4.61 [17:29:54]line НДС 12% : 55.28 [17:29:54]line Наличными: 520.00 [17:29:54]line Безнал.: 0.00 [17:29:54]line Место: АЗС № 65 "Партнер Нефть" [17:29:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:29:54]line СНО: Общий режим [17:29:54]line Чек 173 22.06.2024 17:30 [17:29:54]line Смена: 391 ФФД: 1.0 [17:29:54]line ЗНМ: 0300000198 [17:29:54]line РНМ: 0000000000092771 [17:29:54]line Версия ККМ: 001 [17:29:54]line ФМ: 0000000000875083 [17:29:54]line ФД: 112307 [17:29:54]line ФПД: 36606068961425 [17:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T173022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112307&fm=36606068961425&tin=02508201610067®Number=0000000000092771&sum=52000 [17:29:54]OFD Sender: Processing packet 112307 [packets to send 38, broken 37] [17:29:54]ProducePacketName [17:29:54]name=ofd_packets/00112307 [17:29:54]OFD Sender: To server: pG, [17:29:54]CommunicateWithHost lk.salyk.kg:30040 [17:29:54]ConnectInit lk.salyk.kg [17:29:54]written 0, free lines is 4095 [17:29:54]Connected sock=10 [17:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4E 89 07 01 D6 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 A0 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5A CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E 0A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B6 01 00 35 04 06 00 21 4B 03 BC B0 91 AD 1A E7 EF CE FF F5 31 [17:29:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5C F8 47 00 3E 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B6 01 00 F4 03 04 00 34 A1 76 66 B6 04 01 00 00 48 7F 34 D6 22 9C B2 5F [17:29:55]CommunicateWithHost err = 0 [17:29:55]CheckOFDResponse [17:29:55]1017 (14) - 77093643461234 [17:29:55]1041 (16) - 0000000000875083 [17:29:55]1040 (4) - 112307 [17:29:55]1012 (4) - 22.06.2024 10:02 [17:29:55]1206 (1) - 0 [17:29:55]OFD Sender: Remove packet 112307 [17:29:55]ProducePacketName [17:29:55]name=ofd_packets/00112307 [17:29:55]NVStorageDeleteData [17:29:55]Write to MH i2c: 01 00 00 54 49 9D [17:29:55]Write i2c OK [17:29:55]MH_I2C_Read... [17:29:55]Read from MH i2c: 01 [17:29:55]MH_I2C_Read... [17:29:55]Read from MH i2c: 01 07 00 [17:29:55]MH_I2C_Read... [17:29:55]Read from MH i2c: 01 07 00 54 49 00 00 00 00 00 EF 0C 9F [17:29:55]RasterBufferAndPrint [17:29:55]line [17:29:55]line [17:29:55]line [17:29:55]line [17:29:55]line [17:29:55]written 0, free lines is 3317 [17:29:55]MH_Cut [17:29:55]Write to MH i2c: D1 01 00 5B 49 01 76 [17:29:55]Write i2c OK [17:29:55]MH_I2C_Read... [17:29:55]Read from MH i2c: D1 [17:29:55]MH_I2C_Read... [17:29:55]Read from MH i2c: D1 01 00 [17:29:55]MH_I2C_Read... [17:29:55]Read from MH i2c: D1 01 00 5B 49 00 75 [17:29:55]Write to MH i2c: 01 00 00 5C 49 A5 [17:29:55]Write i2c OK [17:29:55]MH_I2C_Read... [17:29:55]OFD Sender: No OFD packet to send [17:29:56]*** Cut start [17:29:56]*** Partial cut [17:29:56]*** CUTSNS_PIN = 1 [17:29:56]*** CUTSNS_PIN = 0 [17:29:56]*** Brake cut motor [17:29:56]Read from MH i2c: 01 [17:29:56]MH_I2C_Read... [17:29:56]*** Stop cut motor [17:29:56]*** Cut end [17:29:56]Read from MH i2c: 01 07 00 [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: 01 07 00 5C 49 00 00 00 00 00 FF 0F BA [17:29:56]process_action close_receipt done [17:29:56]requested_data is exist [17:29:56]produce_requested_data [17:29:56]requested_item fm.sn is exist - process it [17:29:56]wFMCommunicate request_size=4 [17:29:56]MH_SAM_APDU [17:29:56]CAPDU: 80 11 00 00 [17:29:56]Write to MH i2c: E2 08 00 5D 49 80 11 00 00 00 00 00 00 20 [17:29:56]Write i2c OK [17:29:56]MH_I2C_Read... [17:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:56]Read from MH i2c: E2 [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: E2 17 00 [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: E2 17 00 5D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [17:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:29:56]wFMCommunicate OK [17:29:56]requested_item fd.num is exist - process it [17:29:56]SAM_PROTO_GetFieldsCounters [17:29:56]wFMCommunicate request_size=4 [17:29:56]MH_SAM_APDU [17:29:56]CAPDU: 80 13 00 00 [17:29:56]Write to MH i2c: E2 08 00 5E 49 80 13 00 00 00 00 00 00 23 [17:29:56]Write i2c OK [17:29:56]MH_I2C_Read... [17:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:56]Read from MH i2c: E2 [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: E2 62 00 [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: E2 62 00 5E 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:29:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:56]wFMCommunicate OK [17:29:56]SAM_PROTO_GetFieldsCounters done [17:29:56]requested_item shift.num is exist - process it [17:29:56]requested_item shift.opened is exist - process it [17:29:56]req_shift_opened [17:29:56]FM_GetShiftState [17:29:56]SAM_PROTO_GetShiftState [17:29:56]wFMCommunicate request_size=4 [17:29:56]MH_SAM_APDU [17:29:56]CAPDU: 80 13 01 00 [17:29:56]Write to MH i2c: E2 08 00 5F 49 80 13 01 00 00 00 00 00 25 [17:29:56]Write i2c OK [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: E2 [17:29:56]MH_I2C_Read... [17:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:56]Read from MH i2c: E2 0E 00 [17:29:56]MH_I2C_Read... [17:29:56]Read from MH i2c: E2 0E 00 5F 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5A [17:29:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:29:56]wFMCommunicate OK [17:29:56]SAM_PROTO_GetShiftState done [17:29:56]FM_GetShiftState done [17:29:56]req_shift_opened done [17:29:56]requested_item shift.open_date is exist - process it [17:29:56]req_shift_open_date [17:29:56]req_shift_open_date done [17:29:56]produce_requested_data done [17:29:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112307,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:29:56]process_action_free close_receipt [17:29:56]json_value_free [17:29:56]json_value_free done [17:29:56]process_json_proto returns [17:29:56]Send response to host [17:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112307,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:29:56]free response buf [17:29:56]execute_script done [17:29:56]execute_script returns [17:29:56]free content buf [17:29:56]Sock 9.Close socket [17:29:56]Sock 9.Thread stoped [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:19]accept exits with 7 [17:40:19]New connection [17:40:19]New thread 3066957156 created [17:40:19]Thread 3066813796 joined [17:40:19]Waiting for new connection... [17:40:19] Sock 7.Parse request [17:40:19]Sock 7.Check first char [17:40:19]Sock 7.First char is OK [17:40:19]request: POST /json_proto HTTP/1.0 [17:40:19]Method: POST [17:40:19]URL: /json_proto [17:40:19]Method is POST - this is cgi request [17:40:19]url: /json_proto [17:40:19]query_string will be loaded in cgi processing [17:40:19]execute_cgi json_proto POST (null) [17:40:19]execute_cgi path=json_proto method=POST [17:40:19]POST find Content-Length [17:40:19]Host: 172.17.59.68:8080 [17:40:19]Content-Length: 682 [17:40:19]Content-Type: application/json [17:40:19] [17:40:19]POST finish read [17:40:19]Found Content-Length = 682 [17:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320985", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [17:40:19]execute_script... [17:40: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)320985", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [17:40:19]POST & json_proto [17:40:19]process_json_proto [17:40:19]json parsed OK: [17:40:19]protocol is kg_v1.0 [17:40:19]action value=close_receipt [17:40:19]process_action close_receipt [17:40:19]cmd_close_receipt [17:40:19]MH_GetDate [17:40:19]Write to MH i2c: F0 00 00 60 49 98 [17:40:19]Write i2c OK [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: F0 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: F0 09 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: F0 09 00 60 49 00 A1 0C 77 66 BC EC 60 65 98 [17:40:19]GetLastDocTimeStamp 1719077422 [17:40:19]current date 1719078049 [17:40:19]FM_GetShiftState [17:40:19]SAM_PROTO_GetShiftState [17:40:19]wFMCommunicate request_size=4 [17:40:19]MH_SAM_APDU [17:40:19]CAPDU: 80 13 01 00 [17:40:19]Write to MH i2c: E2 08 00 61 49 80 13 01 00 00 00 00 00 27 [17:40:19]Write i2c OK [17:40:19]MH_I2C_Read... [17:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:19]Read from MH i2c: E2 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 0E 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 0E 00 61 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5C [17:40:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:40:19]wFMCommunicate OK [17:40:19]SAM_PROTO_GetShiftState done [17:40:19]FM_GetShiftState done [17:40:19]opened in 1719020067 [17:40:19]opened+sec_in_day 1719106467 [17:40:19]quantity*price = 200063 [17:40:19]sum+1 = 200064 [17:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 174 22.06.2024 17:40 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112308 ФПД: 130936851862917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T174049&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112308&fm=130936851862917&tin=02508201610067®Number=0000000000092771&sum=200000 [17:40:20]StoreToDocumentArchive [17:40:20]shift 391 fd 112308 [17:40:20]save to /storage/0391/doc_00112308 [17:40:20]save last doc name /storage/0391/doc_00112308 to /storage/kkm_last_doc_name [17:40:20]save OK [17:40:20]Clear old archive folders... [17:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:20]tlvbuf is 011EB990 [17:40:20]SAM_PROTO_ClearQueue [17:40:20]wFMCommunicate request_size=4 [17:40:20]MH_SAM_APDU [17:40:20]CAPDU: 80 09 00 00 [17:40:20]Write to MH i2c: E2 08 00 6E 49 80 09 00 00 00 00 00 00 29 [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:20]Read from MH i2c: E2 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 6E 49 00 90 00 2B [17:40:20]RAPDU: 90 00 [17:40:20]wFMCommunicate OK [17:40:20]SAM_PROTO_ClearQueue done [17:40:20]KKMCreateOFDPacket [17:40:20]OFDProtocolAddRootSTLVToBuf [17:40:20]FM_MakeSignedData [17:40:20]FM_MakeSignedData [17:40:20]SAM_PROTO_SignData [17:40:20]wFMCommunicate request_size=4 [17:40:20]MH_SAM_APDU [17:40:20]CAPDU: 80 0D 01 02 [17:40:20]Write to MH i2c: E2 08 00 6F 49 80 0D 01 02 00 00 00 00 31 [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:20]Read from MH i2c: E2 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 6F 49 00 90 00 2C [17:40:20]RAPDU: 90 00 [17:40:20]wFMCommunicate OK [17:40:20]wFMCommunicate request_size=255 [17:40:20]MH_SAM_APDU [17:40: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 AE 00 00 00 F4 03 04 00 A1 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B6 01 00 35 04 06 00 77 [17:40:20]Write to MH i2c: E2 02 01 70 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 AE 00 00 00 F4 03 04 00 A1 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B6 01 00 35 04 06 00 77 00 00 7C [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 03 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 03 00 70 49 00 90 00 2D [17:40:21]RAPDU: 90 00 [17:40:21]wFMCommunicate OK [17:40:21]wFMCommunicate request_size=10 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 0D 02 02 05 16 1C 8B 15 85 [17:40:21]Write to MH i2c: E2 0D 00 71 49 80 0D 02 02 05 00 16 1C 8B 15 85 00 00 95 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 03 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 03 00 71 49 00 90 00 2E [17:40:21]RAPDU: 90 00 [17:40:21]wFMCommunicate OK [17:40:21]wFMCommunicate request_size=4 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 0D 03 02 [17:40:21]Write to MH i2c: E2 08 00 72 49 80 0D 03 02 00 00 00 00 36 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0B 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0B 00 72 49 00 11 10 9E 31 0E 7E 16 1D 90 00 E6 [17:40:21]RAPDU: 11 10 9E 31 0E 7E 16 1D 90 00 [17:40:21]wFMCommunicate OK [17:40:21]SAM_PROTO_SignData done [17:40:21]FM_MakeSignedData done [17:40:21]CreateOFDProtocolMessage [17:40:21]wFMCommunicate request_size=4 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 11 00 00 [17:40:21]Write to MH i2c: E2 08 00 73 49 80 11 00 00 00 00 00 00 36 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]OFD Sender: No OFD packet to send [17:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 17 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 17 00 73 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [17:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:40:21]wFMCommunicate OK [17:40:21]CreateOFDProtocolMessage done [17:40:21]OFDSenderStorePacket 112308 [17:40:21]StoreOFDPacket docnum=112308 [17:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 C4 07 01 52 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 AE 00 00 00 F4 03 04 00 A1 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B6 01 00 35 04 06 00 77 16 1C 8B 15 85 11 10 9E 31 0E 7E 16 1D [17:40:21]CheckFolder [17:40:21]dirname=/storage/ofd_packets [17:40:21]CheckFolder done [17:40:21]ProducePacketName [17:40:21]name=ofd_packets/00112308 [17:40:21]NVStorageSaveData ofd_packets/00112308 [17:40:21]File name is /storage/ofd_packets/00112308 [17:40:21]Write 301 bytes [17:40:21]NVStorageSaveData done [17:40:21]OFDSenderStorePacket done [17:40:21]KKMCreateOFDPacket done [17:40:21]NVStorageSaveData kkm_last_timestamp [17:40:21]File name is /storage/kkm_last_timestamp [17:40:21]Write 4 bytes [17:40:21]NVStorageSaveData done [17:40:21]ExternCall_PrintAddStr [17:40:21]wPrintStart [17:40:21]Write to MH i2c: 01 00 00 74 49 BD [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 07 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 07 00 74 49 00 00 00 00 00 FF 0F D2 [17:40:21]RasterBufferAndPrint [17:40:21]line Счет N : (1)320985 [17:40:21]line ИНН: 02508201610067 [17:40:21]line Контрольно-Кассовый Чек [17:40:21]line ПРОДАЖА [17:40:21]line ТРК (МРК, ГНК) : 11 [17:40:21]line Товар: 2710124130 [17:40:21]line Аи-92-К-5 [17:40:21]line 30.130 * 66.40 [17:40:21]line = 2000.63 [17:40:21]line НДС 12% НСП 1% [17:40:21]line > о реализуемом товаре [17:40:21]line ОКРУГЛЕНИЕ: -0.63 [17:40:21]line ИТОГО: 2000.00 [17:40:21]line Внесено: 2000.00 [17:40:21]line СДАЧА: 0.00 [17:40:21]line НСП 1% : 17.70 [17:40:21]line НДС 12% : 212.46 [17:40:21]line Наличными: 2000.00 [17:40:21]line Безнал.: 0.00 [17:40:21]line Место: АЗС № 65 "Партнер Нефть" [17:40:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:40:21]line СНО: Общий режим [17:40:21]line Чек 174 22.06.2024 17:40 [17:40:21]line Смена: 391 ФФД: 1.0 [17:40:21]line ЗНМ: 0300000198 [17:40:21]line РНМ: 0000000000092771 [17:40:21]line Версия ККМ: 001 [17:40:21]line ФМ: 0000000000875083 [17:40:21]line ФД: 112308 [17:40:21]line ФПД: 130936851862917 [17:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T174049&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112308&fm=130936851862917&tin=02508201610067®Number=0000000000092771&sum=200000 [17:40:21]OFD Sender: Processing packet 112308 [packets to send 38, broken 37] [17:40:21]ProducePacketName [17:40:21]name=ofd_packets/00112308 [17:40:21]OFD Sender: To server: pG, [17:40:21]CommunicateWithHost lk.salyk.kg:30040 [17:40:21]ConnectInit lk.salyk.kg [17:40:21]written 0, free lines is 4095 [17:40:21]Connected sock=10 [17:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 C4 07 01 52 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 AE 00 00 00 F4 03 04 00 A1 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B6 01 00 35 04 06 00 77 16 1C 8B 15 85 11 10 9E 31 0E 7E 16 1D [17:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D 23 47 00 86 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B6 01 00 F4 03 04 00 A7 A3 76 66 B6 04 01 00 00 6D 0A CF 25 FD 92 CD C4 [17:40:21]CommunicateWithHost err = 0 [17:40:21]CheckOFDResponse [17:40:21]1017 (14) - 77093643461234 [17:40:21]1041 (16) - 0000000000875083 [17:40:21]1040 (4) - 112308 [17:40:21]1012 (4) - 22.06.2024 10:12 [17:40:21]1206 (1) - 0 [17:40:21]OFD Sender: Remove packet 112308 [17:40:21]ProducePacketName [17:40:21]name=ofd_packets/00112308 [17:40:21]NVStorageDeleteData [17:40:22]Write to MH i2c: 01 00 00 9F 49 E8 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: 01 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: 01 07 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: 01 07 00 9F 49 00 00 00 00 00 F3 0C EE [17:40:22]RasterBufferAndPrint [17:40:22]line [17:40:22]line [17:40:22]line [17:40:22]line [17:40:22]line [17:40:22]written 0, free lines is 3324 [17:40:22]MH_Cut [17:40:22]Write to MH i2c: D1 01 00 A6 49 01 C1 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: D1 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: D1 01 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: D1 01 00 A6 49 00 C0 [17:40:22]Write to MH i2c: 01 00 00 A7 49 F0 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]OFD Sender: No OFD packet to send [17:40:22]*** Cut start [17:40:22]*** Partial cut [17:40:22]*** CUTSNS_PIN = 1 [17:40:22]*** CUTSNS_PIN = 0 [17:40:23]*** Brake cut motor [17:40:23]Read from MH i2c: 01 [17:40:23]MH_I2C_Read... [17:40:23]*** Stop cut motor [17:40:23]*** Cut end [17:40:23]Read from MH i2c: 01 07 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 A7 49 00 00 00 00 00 FF 0F 05 [17:40:23]process_action close_receipt done [17:40:23]requested_data is exist [17:40:23]produce_requested_data [17:40:23]requested_item fm.sn is exist - process it [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 11 00 00 [17:40:23]Write to MH i2c: E2 08 00 A8 49 80 11 00 00 00 00 00 00 6B [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 A8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [17:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:40:23]wFMCommunicate OK [17:40:23]requested_item fd.num is exist - process it [17:40:23]SAM_PROTO_GetFieldsCounters [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 13 00 00 [17:40:23]Write to MH i2c: E2 08 00 A9 49 80 13 00 00 00 00 00 00 6E [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 62 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 62 00 A9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [17:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_GetFieldsCounters done [17:40:23]requested_item shift.num is exist - process it [17:40:23]requested_item shift.opened is exist - process it [17:40:23]req_shift_opened [17:40:23]FM_GetShiftState [17:40:23]SAM_PROTO_GetShiftState [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 13 01 00 [17:40:23]Write to MH i2c: E2 08 00 AA 49 80 13 01 00 00 00 00 00 70 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0E 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0E 00 AA 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A5 [17:40:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_GetShiftState done [17:40:23]FM_GetShiftState done [17:40:23]req_shift_opened done [17:40:23]requested_item shift.open_date is exist - process it [17:40:23]req_shift_open_date [17:40:23]req_shift_open_date done [17:40:23]produce_requested_data done [17:40:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112308,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:40:23]process_action_free close_receipt [17:40:23]json_value_free [17:40:23]json_value_free done [17:40:23]process_json_proto returns [17:40:23]Send response to host [17:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112308,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:40:23]free response buf [17:40:23]execute_script done [17:40:23]execute_script returns [17:40:23]free content buf [17:40:23]Sock 7.Close socket [17:40:23]Sock 7.Thread stoped [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]accept exits with 9 [17:41:47]New connection [17:41:47]New thread 3066813796 created [17:41:47]Thread 3066957156 joined [17:41:47]Waiting for new connection... [17:41:47] Sock 9.Parse request [17:41:47]Sock 9.Check first char [17:41:47]Sock 9.First char is OK [17:41:47]request: POST /json_proto HTTP/1.0 [17:41:47]Method: POST [17:41:47]URL: /json_proto [17:41:47]Method is POST - this is cgi request [17:41:47]url: /json_proto [17:41:47]query_string will be loaded in cgi processing [17:41:47]execute_cgi json_proto POST (null) [17:41:47]execute_cgi path=json_proto method=POST [17:41:47]POST find Content-Length [17:41:47]Host: 172.17.59.68:8080 [17:41:47]Content-Length: 682 [17:41:47]Content-Type: application/json [17:41:47] [17:41:47]POST finish read [17:41:47]Found Content-Length = 682 [17:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320986", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:47]execute_script... [17:41: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)320986", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:47]POST & json_proto [17:41:47]process_json_proto [17:41:47]json parsed OK: [17:41:47]protocol is kg_v1.0 [17:41:47]action value=close_receipt [17:41:47]process_action close_receipt [17:41:47]cmd_close_receipt [17:41:47]MH_GetDate [17:41:47]Write to MH i2c: F0 00 00 AB 49 E3 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: F0 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: F0 09 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: F0 09 00 AB 49 00 F9 0C 77 66 BC EC 60 65 3B [17:41:47]GetLastDocTimeStamp 1719078049 [17:41:47]current date 1719078137 [17:41:47]FM_GetShiftState [17:41:47]SAM_PROTO_GetShiftState [17:41:47]wFMCommunicate request_size=4 [17:41:47]MH_SAM_APDU [17:41:47]CAPDU: 80 13 01 00 [17:41:47]Write to MH i2c: E2 08 00 AC 49 80 13 01 00 00 00 00 00 72 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:47]Read from MH i2c: E2 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 0E 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 0E 00 AC 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A7 [17:41:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:41:47]wFMCommunicate OK [17:41:47]SAM_PROTO_GetShiftState done [17:41:47]FM_GetShiftState done [17:41:47]opened in 1719020067 [17:41:47]opened+sec_in_day 1719106467 [17:41:47]quantity*price = 100064 [17:41:47]sum+1 = 100066 [17:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 175 22.06.2024 17:42 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112309 ФПД: 241783713880575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T174217&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112309&fm=241783713880575&tin=02508201610067®Number=0000000000092771&sum=100000 [17:41:48]StoreToDocumentArchive [17:41:48]shift 391 fd 112309 [17:41:48]save to /storage/0391/doc_00112309 [17:41:48]save last doc name /storage/0391/doc_00112309 to /storage/kkm_last_doc_name [17:41:48]save OK [17:41:48]Clear old archive folders... [17:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:48]tlvbuf is 011EB8B0 [17:41:48]SAM_PROTO_ClearQueue [17:41:48]wFMCommunicate request_size=4 [17:41:48]MH_SAM_APDU [17:41:48]CAPDU: 80 09 00 00 [17:41:48]Write to MH i2c: E2 08 00 B9 49 80 09 00 00 00 00 00 00 74 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 B9 49 00 90 00 76 [17:41:48]RAPDU: 90 00 [17:41:48]wFMCommunicate OK [17:41:48]SAM_PROTO_ClearQueue done [17:41:48]KKMCreateOFDPacket [17:41:48]OFDProtocolAddRootSTLVToBuf [17:41:48]FM_MakeSignedData [17:41:48]FM_MakeSignedData [17:41:48]SAM_PROTO_SignData [17:41:48]wFMCommunicate request_size=4 [17:41:48]MH_SAM_APDU [17:41:48]CAPDU: 80 0D 01 02 [17:41:48]Write to MH i2c: E2 08 00 BA 49 80 0D 01 02 00 00 00 00 7C [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 BA 49 00 90 00 77 [17:41:48]RAPDU: 90 00 [17:41:48]wFMCommunicate OK [17:41:48]wFMCommunicate request_size=255 [17:41:48]MH_SAM_APDU [17:41: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F9 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B6 01 00 35 04 06 00 DB [17:41:48]Write to MH i2c: E2 02 01 BB 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F9 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B6 01 00 35 04 06 00 DB 00 00 E0 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 BB 49 00 90 00 78 [17:41:48]RAPDU: 90 00 [17:41:48]wFMCommunicate OK [17:41:48]wFMCommunicate request_size=10 [17:41:48]MH_SAM_APDU [17:41:48]CAPDU: 80 0D 02 02 05 E6 A8 60 D9 FF [17:41:48]Write to MH i2c: E2 0D 00 BC 49 80 0D 02 02 05 00 E6 A8 60 D9 FF 00 00 4F [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 03 00 BC 49 00 90 00 79 [17:41:48]RAPDU: 90 00 [17:41:48]wFMCommunicate OK [17:41:48]wFMCommunicate request_size=4 [17:41:48]MH_SAM_APDU [17:41:48]CAPDU: 80 0D 03 02 [17:41:48]Write to MH i2c: E2 08 00 BD 49 80 0D 03 02 00 00 00 00 81 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 0B 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 0B 00 BD 49 00 3D 39 5A E0 56 47 6B 9E 90 00 D8 [17:41:48]RAPDU: 3D 39 5A E0 56 47 6B 9E 90 00 [17:41:48]wFMCommunicate OK [17:41:48]SAM_PROTO_SignData done [17:41:48]FM_MakeSignedData done [17:41:48]CreateOFDProtocolMessage [17:41:48]wFMCommunicate request_size=4 [17:41:48]MH_SAM_APDU [17:41:48]CAPDU: 80 11 00 00 [17:41:48]Write to MH i2c: E2 08 00 BE 49 80 11 00 00 00 00 00 00 81 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 17 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 17 00 BE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [17:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:41:48]wFMCommunicate OK [17:41:48]CreateOFDProtocolMessage done [17:41:48]OFDSenderStorePacket 112309 [17:41:48]StoreOFDPacket docnum=112309 [17:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 36 07 01 40 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F9 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B6 01 00 35 04 06 00 DB E6 A8 60 D9 FF 3D 39 5A E0 56 47 6B 9E [17:41:48]CheckFolder [17:41:48]dirname=/storage/ofd_packets [17:41:48]CheckFolder done [17:41:48]ProducePacketName [17:41:48]name=ofd_packets/00112309 [17:41:48]NVStorageSaveData ofd_packets/00112309 [17:41:48]File name is /storage/ofd_packets/00112309 [17:41:48]Write 301 bytes [17:41:48]NVStorageSaveData done [17:41:48]OFDSenderStorePacket done [17:41:48]KKMCreateOFDPacket done [17:41:48]NVStorageSaveData kkm_last_timestamp [17:41:48]File name is /storage/kkm_last_timestamp [17:41:48]Write 4 bytes [17:41:48]NVStorageSaveData done [17:41:48]ExternCall_PrintAddStr [17:41:48]wPrintStart [17:41:48]Write to MH i2c: 01 00 00 BF 49 08 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: 01 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: 01 07 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 FF 0F 1D [17:41:48]RasterBufferAndPrint [17:41:48]line Счет N : (1)320986 [17:41:48]line ИНН: 02508201610067 [17:41:48]line Контрольно-Кассовый Чек [17:41:48]line ПРОДАЖА [17:41:48]line ТРК (МРК, ГНК) : 11 [17:41:48]line Товар: 2710124130 [17:41:48]line Аи-92-К-5 [17:41:48]line 15.070 * 66.40 [17:41:48]line = 1000.65 [17:41:48]line НДС 12% НСП 1% [17:41:48]line > о реализуемом товаре [17:41:48]line ОКРУГЛЕНИЕ: -0.65 [17:41:48]line ИТОГО: 1000.00 [17:41:48]line Внесено: 1000.00 [17:41:48]line СДАЧА: 0.00 [17:41:48]line НСП 1% : 8.85 [17:41:48]line НДС 12% : 106.26 [17:41:48]line Наличными: 1000.00 [17:41:48]line Безнал.: 0.00 [17:41:48]line Место: АЗС № 65 "Партнер Нефть" [17:41:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:41:48]line СНО: Общий режим [17:41:48]line Чек 175 22.06.2024 17:42 [17:41:48]line Смена: 391 ФФД: 1.0 [17:41:48]line ЗНМ: 0300000198 [17:41:48]line РНМ: 0000000000092771 [17:41:48]line Версия ККМ: 001 [17:41:48]line ФМ: 0000000000875083 [17:41:48]line ФД: 112309 [17:41:48]line ФПД: 241783713880575 [17:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T174217&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112309&fm=241783713880575&tin=02508201610067®Number=0000000000092771&sum=100000 [17:41:49]OFD Sender: Processing packet 112309 [packets to send 38, broken 37] [17:41:49]ProducePacketName [17:41:49]name=ofd_packets/00112309 [17:41:49]OFD Sender: To server: pG, [17:41:49]CommunicateWithHost lk.salyk.kg:30040 [17:41:49]ConnectInit lk.salyk.kg [17:41:49]written 0, free lines is 4095 [17:41:49]Connected sock=10 [17:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 36 07 01 40 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F9 0C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B6 01 00 35 04 06 00 DB E6 A8 60 D9 FF 3D 39 5A E0 56 47 6B 9E [17:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 47 AB 47 00 75 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B6 01 00 F4 03 04 00 FF A3 76 66 B6 04 01 00 00 DF A2 88 6F 00 6F 2F C0 [17:41:49]CommunicateWithHost err = 0 [17:41:49]CheckOFDResponse [17:41:49]1017 (14) - 77093643461234 [17:41:49]1041 (16) - 0000000000875083 [17:41:49]1040 (4) - 112309 [17:41:49]1012 (4) - 22.06.2024 10:14 [17:41:49]1206 (1) - 0 [17:41:49]OFD Sender: Remove packet 112309 [17:41:49]ProducePacketName [17:41:49]name=ofd_packets/00112309 [17:41:49]NVStorageDeleteData [17:41:49]Write to MH i2c: 01 00 00 EA 49 33 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 07 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 07 00 EA 49 00 00 00 00 00 DF 0C 25 [17:41:49]RasterBufferAndPrint [17:41:49]line [17:41:49]line [17:41:49]line [17:41:49]line [17:41:49]line [17:41:49]written 0, free lines is 3301 [17:41:49]MH_Cut [17:41:49]Write to MH i2c: D1 01 00 F1 49 01 0C [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: D1 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: D1 01 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: D1 01 00 F1 49 00 0B [17:41:49]Write to MH i2c: 01 00 00 F2 49 3B [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]OFD Sender: No OFD packet to send [17:41:50]*** Cut start [17:41:50]*** Partial cut [17:41:50]*** CUTSNS_PIN = 1 [17:41:50]*** CUTSNS_PIN = 0 [17:41:50]*** Brake cut motor [17:41:50]Read from MH i2c: 01 [17:41:50]MH_I2C_Read... [17:41:50]*** Stop cut motor [17:41:50]*** Cut end [17:41:50]Read from MH i2c: 01 07 00 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 07 00 F2 49 00 00 00 00 00 FF 0F 50 [17:41:50]process_action close_receipt done [17:41:50]requested_data is exist [17:41:50]produce_requested_data [17:41:50]requested_item fm.sn is exist - process it [17:41:50]wFMCommunicate request_size=4 [17:41:50]MH_SAM_APDU [17:41:50]CAPDU: 80 11 00 00 [17:41:50]Write to MH i2c: E2 08 00 F3 49 80 11 00 00 00 00 00 00 B6 [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 17 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 17 00 F3 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [17:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:41:51]wFMCommunicate OK [17:41:51]requested_item fd.num is exist - process it [17:41:51]SAM_PROTO_GetFieldsCounters [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 13 00 00 [17:41:51]Write to MH i2c: E2 08 00 F4 49 80 13 00 00 00 00 00 00 B9 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 62 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 62 00 F4 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [17:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_GetFieldsCounters done [17:41:51]requested_item shift.num is exist - process it [17:41:51]requested_item shift.opened is exist - process it [17:41:51]req_shift_opened [17:41:51]FM_GetShiftState [17:41:51]SAM_PROTO_GetShiftState [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 13 01 00 [17:41:51]Write to MH i2c: E2 08 00 F5 49 80 13 01 00 00 00 00 00 BB [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 F5 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F0 [17:41:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_GetShiftState done [17:41:51]FM_GetShiftState done [17:41:51]req_shift_opened done [17:41:51]requested_item shift.open_date is exist - process it [17:41:51]req_shift_open_date [17:41:51]req_shift_open_date done [17:41:51]produce_requested_data done [17:41:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112309,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:41:51]process_action_free close_receipt [17:41:51]json_value_free [17:41:51]json_value_free done [17:41:51]process_json_proto returns [17:41:51]Send response to host [17:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112309,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:41:51]free response buf [17:41:51]execute_script done [17:41:51]execute_script returns [17:41:51]free content buf [17:41:51]Sock 9.Close socket [17:41:51]Sock 9.Thread stoped [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]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:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:53]accept exits with 7 [17:53:53]New connection [17:53:53]New thread 3066957156 created [17:53:53]Thread 3066813796 joined [17:53:53]Waiting for new connection... [17:53:53] Sock 7.Parse request [17:53:53]Sock 7.Check first char [17:53:53]Sock 7.First char is OK [17:53:53]request: POST /json_proto HTTP/1.0 [17:53:53]Method: POST [17:53:53]URL: /json_proto [17:53:53]Method is POST - this is cgi request [17:53:53]url: /json_proto [17:53:53]query_string will be loaded in cgi processing [17:53:53]execute_cgi json_proto POST (null) [17:53:53]execute_cgi path=json_proto method=POST [17:53:53]POST find Content-Length [17:53:53]Host: 172.17.59.68:8080 [17:53:53]Content-Length: 677 [17:53:53]Content-Type: application/json [17:53:53] [17:53:53]POST finish read [17:53:53]Found Content-Length = 677 [17:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320987", "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.40, "quantity" : 3.470, "sum" : 230.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:53]execute_script... [17:53: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)320987", "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.40, "quantity" : 3.470, "sum" : 230.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:53]POST & json_proto [17:53:53]process_json_proto [17:53:53]json parsed OK: [17:53:53]protocol is kg_v1.0 [17:53:53]action value=close_receipt [17:53:53]process_action close_receipt [17:53:53]cmd_close_receipt [17:53:53]MH_GetDate [17:53:53]Write to MH i2c: F0 00 00 F6 49 2E [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: F0 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: F0 09 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: F0 09 00 F6 49 00 D0 0F 77 66 BC EC 60 65 60 [17:53:53]GetLastDocTimeStamp 1719078137 [17:53:53]current date 1719078864 [17:53:53]FM_GetShiftState [17:53:53]SAM_PROTO_GetShiftState [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 13 01 00 [17:53:53]Write to MH i2c: E2 08 00 F7 49 80 13 01 00 00 00 00 00 BD [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 0E 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 0E 00 F7 49 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F2 [17:53:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:53:53]wFMCommunicate OK [17:53:53]SAM_PROTO_GetShiftState done [17:53:53]FM_GetShiftState done [17:53:53]opened in 1719020067 [17:53:53]opened+sec_in_day 1719106467 [17:53:53]quantity*price = 23040 [17:53:53]sum+1 = 23042 [17:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.47 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 176 22.06.2024 17:54 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112310 ФПД: 113235113655406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T175424&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112310&fm=113235113655406&tin=02508201610067®Number=0000000000092771&sum=23000 [17:53:55]StoreToDocumentArchive [17:53:55]shift 391 fd 112310 [17:53:55]save to /storage/0391/doc_00112310 [17:53:55]save last doc name /storage/0391/doc_00112310 to /storage/kkm_last_doc_name [17:53:55]save OK [17:53:55]Clear old archive folders... [17:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:55]tlvbuf is 0122D390 [17:53:55]SAM_PROTO_ClearQueue [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 09 00 00 [17:53:55]Write to MH i2c: E2 08 00 04 4A 80 09 00 00 00 00 00 00 C0 [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 04 4A 00 90 00 C2 [17:53:55]RAPDU: 90 00 [17:53:55]wFMCommunicate OK [17:53:55]SAM_PROTO_ClearQueue done [17:53:55]KKMCreateOFDPacket [17:53:55]OFDProtocolAddRootSTLVToBuf [17:53:55]FM_MakeSignedData [17:53:55]FM_MakeSignedData [17:53:55]SAM_PROTO_SignData [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 0D 01 02 [17:53:55]Write to MH i2c: E2 08 00 05 4A 80 0D 01 02 00 00 00 00 C8 [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 05 4A 00 90 00 C3 [17:53:55]RAPDU: 90 00 [17:53:55]wFMCommunicate OK [17:53:55]wFMCommunicate request_size=255 [17:53:55]MH_SAM_APDU [17:53: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 8E 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 01 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 0F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B6 01 00 35 04 06 00 66 [17:53:55]Write to MH i2c: E2 02 01 06 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 01 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 0F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B6 01 00 35 04 06 00 66 00 00 5E [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 06 4A 00 90 00 C4 [17:53:55]RAPDU: 90 00 [17:53:55]wFMCommunicate OK [17:53:55]wFMCommunicate request_size=10 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 0D 02 02 05 FC 9A B9 BC 6E [17:53:55]Write to MH i2c: E2 0D 00 07 4A 80 0D 02 02 05 00 FC 9A B9 BC 6E 00 00 4E [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 03 00 07 4A 00 90 00 C5 [17:53:55]RAPDU: 90 00 [17:53:55]wFMCommunicate OK [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 0D 03 02 [17:53:55]Write to MH i2c: E2 08 00 08 4A 80 0D 03 02 00 00 00 00 CD [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 0B 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 0B 00 08 4A 00 54 D9 17 F8 E9 D7 AE 67 90 00 DF [17:53:55]RAPDU: 54 D9 17 F8 E9 D7 AE 67 90 00 [17:53:55]wFMCommunicate OK [17:53:55]SAM_PROTO_SignData done [17:53:55]FM_MakeSignedData done [17:53:55]CreateOFDProtocolMessage [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 11 00 00 [17:53:55]Write to MH i2c: E2 08 00 09 4A 80 11 00 00 00 00 00 00 CD [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:55]Read from MH i2c: E2 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 17 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: E2 17 00 09 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [17:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:53:55]wFMCommunicate OK [17:53:55]CreateOFDProtocolMessage done [17:53:55]OFDSenderStorePacket 112310 [17:53:55]StoreOFDPacket docnum=112310 [17:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 64 42 07 01 F9 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 01 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 0F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B6 01 00 35 04 06 00 66 FC 9A B9 BC 6E 54 D9 17 F8 E9 D7 AE 67 [17:53:55]CheckFolder [17:53:55]dirname=/storage/ofd_packets [17:53:55]CheckFolder done [17:53:55]ProducePacketName [17:53:55]name=ofd_packets/00112310 [17:53:55]NVStorageSaveData ofd_packets/00112310 [17:53:55]File name is /storage/ofd_packets/00112310 [17:53:55]Write 301 bytes [17:53:55]NVStorageSaveData done [17:53:55]OFDSenderStorePacket done [17:53:55]KKMCreateOFDPacket done [17:53:55]NVStorageSaveData kkm_last_timestamp [17:53:55]File name is /storage/kkm_last_timestamp [17:53:55]Write 4 bytes [17:53:55]NVStorageSaveData done [17:53:55]ExternCall_PrintAddStr [17:53:55]wPrintStart [17:53:55]Write to MH i2c: 01 00 00 0A 4A 54 [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: 01 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: 01 07 00 [17:53:55]MH_I2C_Read... [17:53:55]Read from MH i2c: 01 07 00 0A 4A 00 00 00 00 00 FF 0F 69 [17:53:55]RasterBufferAndPrint [17:53:55]line Счет N : (1)320987 [17:53:55]line ИНН: 02508201610067 [17:53:55]line Контрольно-Кассовый Чек [17:53:55]line ПРОДАЖА [17:53:55]line ТРК (МРК, ГНК) : 11 [17:53:55]line Товар: 2710124130 [17:53:55]line Аи-92-К-5 [17:53:55]line 3.470 * 66.40 [17:53:55]line = 230.41 [17:53:55]line НДС 12% НСП 1% [17:53:55]line > о реализуемом товаре [17:53:55]line ОКРУГЛЕНИЕ: -0.41 [17:53:55]line ИТОГО: 230.00 [17:53:55]line Внесено: 230.00 [17:53:55]line СДАЧА: 0.00 [17:53:55]line НСП 1% : 2.04 [17:53:55]line НДС 12% : 24.47 [17:53:55]line Наличными: 230.00 [17:53:55]line Безнал.: 0.00 [17:53:55]line Место: АЗС № 65 "Партнер Нефть" [17:53:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:53:55]line СНО: Общий режим [17:53:55]line Чек 176 22.06.2024 17:54 [17:53:55]line Смена: 391 ФФД: 1.0 [17:53:55]line ЗНМ: 0300000198 [17:53:55]line РНМ: 0000000000092771 [17:53:55]line Версия ККМ: 001 [17:53:55]line ФМ: 0000000000875083 [17:53:55]line ФД: 112310 [17:53:55]line ФПД: 113235113655406 [17:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T175424&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112310&fm=113235113655406&tin=02508201610067®Number=0000000000092771&sum=23000 [17:53:55]OFD Sender: Processing packet 112310 [packets to send 38, broken 37] [17:53:55]ProducePacketName [17:53:55]name=ofd_packets/00112310 [17:53:55]OFD Sender: To server: pG, [17:53:55]CommunicateWithHost lk.salyk.kg:30040 [17:53:55]ConnectInit lk.salyk.kg [17:53:55]written 0, free lines is 4095 [17:53:55]Connected sock=10 [17:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 64 42 07 01 F9 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 01 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 0F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B6 01 00 35 04 06 00 66 FC 9A B9 BC 6E 54 D9 17 F8 E9 D7 AE 67 [17:53:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D0 D7 47 00 21 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B6 01 00 F4 03 04 00 D5 A6 76 66 B6 04 01 00 00 C0 B6 F9 19 10 79 9A 0C [17:53:56]CommunicateWithHost err = 0 [17:53:56]CheckOFDResponse [17:53:56]1017 (14) - 77093643461234 [17:53:56]1041 (16) - 0000000000875083 [17:53:56]1040 (4) - 112310 [17:53:56]1012 (4) - 22.06.2024 10:26 [17:53:56]1206 (1) - 0 [17:53:56]OFD Sender: Remove packet 112310 [17:53:56]ProducePacketName [17:53:56]name=ofd_packets/00112310 [17:53:56]NVStorageDeleteData [17:53:56]Write to MH i2c: 01 00 00 35 4A 7F [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 35 4A 00 00 00 00 00 D1 0C 63 [17:53:56]RasterBufferAndPrint [17:53:56]line [17:53:56]line [17:53:56]line [17:53:56]line [17:53:56]line [17:53:56]written 0, free lines is 3289 [17:53:56]MH_Cut [17:53:56]Write to MH i2c: D1 01 00 3C 4A 01 58 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: D1 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: D1 01 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: D1 01 00 3C 4A 00 57 [17:53:56]Write to MH i2c: 01 00 00 3D 4A 87 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]OFD Sender: No OFD packet to send [17:53:57]*** Cut start [17:53:57]*** Partial cut [17:53:57]*** CUTSNS_PIN = 1 [17:53:57]*** CUTSNS_PIN = 0 [17:53:57]*** Brake cut motor [17:53:57]Read from MH i2c: 01 [17:53:57]MH_I2C_Read... [17:53:57]*** Stop cut motor [17:53:57]*** Cut end [17:53:57]Read from MH i2c: 01 07 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: 01 07 00 3D 4A 00 00 00 00 00 FF 0F 9C [17:53:57]process_action close_receipt done [17:53:57]requested_data is exist [17:53:57]produce_requested_data [17:53:57]requested_item fm.sn is exist - process it [17:53:57]wFMCommunicate request_size=4 [17:53:57]MH_SAM_APDU [17:53:57]CAPDU: 80 11 00 00 [17:53:57]Write to MH i2c: E2 08 00 3E 4A 80 11 00 00 00 00 00 00 02 [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:57]Read from MH i2c: E2 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 17 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 17 00 3E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [17:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:53:57]wFMCommunicate OK [17:53:57]requested_item fd.num is exist - process it [17:53:57]SAM_PROTO_GetFieldsCounters [17:53:57]wFMCommunicate request_size=4 [17:53:57]MH_SAM_APDU [17:53:57]CAPDU: 80 13 00 00 [17:53:57]Write to MH i2c: E2 08 00 3F 4A 80 13 00 00 00 00 00 00 05 [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:57]Read from MH i2c: E2 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 62 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 62 00 3F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [17: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:57]wFMCommunicate OK [17:53:57]SAM_PROTO_GetFieldsCounters done [17:53:57]requested_item shift.num is exist - process it [17:53:57]requested_item shift.opened is exist - process it [17:53:57]req_shift_opened [17:53:57]FM_GetShiftState [17:53:57]SAM_PROTO_GetShiftState [17:53:57]wFMCommunicate request_size=4 [17:53:57]MH_SAM_APDU [17:53:57]CAPDU: 80 13 01 00 [17:53:57]Write to MH i2c: E2 08 00 40 4A 80 13 01 00 00 00 00 00 07 [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:57]Read from MH i2c: E2 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 0E 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 0E 00 40 4A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3C [17:53:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [17:53:57]wFMCommunicate OK [17:53:57]SAM_PROTO_GetShiftState done [17:53:57]FM_GetShiftState done [17:53:57]req_shift_opened done [17:53:57]requested_item shift.open_date is exist - process it [17:53:57]req_shift_open_date [17:53:57]req_shift_open_date done [17:53:57]produce_requested_data done [17:53:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112310,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [17:53:57]process_action_free close_receipt [17:53:57]json_value_free [17:53:57]json_value_free done [17:53:57]process_json_proto returns [17:53:57]Send response to host [17:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112310,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [17:53:57]free response buf [17:53:57]execute_script done [17:53:57]execute_script returns [17:53:57]free content buf [17:53:57]Sock 7.Close socket [17:53:57]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:14]accept exits with 9 [18:13:14]New connection [18:13:14]New thread 3066813796 created [18:13:14]Thread 3066957156 joined [18:13:14]Waiting for new connection... [18:13:14] Sock 9.Parse request [18:13:14]Sock 9.Check first char [18:13:14]Sock 9.First char is OK [18:13:14]request: POST /json_proto HTTP/1.0 [18:13:14]Method: POST [18:13:14]URL: /json_proto [18:13:14]Method is POST - this is cgi request [18:13:14]url: /json_proto [18:13:14]query_string will be loaded in cgi processing [18:13:14]execute_cgi json_proto POST (null) [18:13:14]execute_cgi path=json_proto method=POST [18:13:14]POST find Content-Length [18:13:14]Host: 172.17.59.68:8080 [18:13:14]Content-Length: 674 [18:13:14]Content-Type: application/json [18:13:14] [18:13:14]POST finish read [18:13:14]Found Content-Length = 674 [18:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:14]execute_script... [18:13: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)320988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:14]POST & json_proto [18:13:14]process_json_proto [18:13:14]json parsed OK: [18:13:14]protocol is kg_v1.0 [18:13:14]action value=close_receipt [18:13:14]process_action close_receipt [18:13:14]cmd_close_receipt [18:13:14]MH_GetDate [18:13:14]Write to MH i2c: F0 00 00 41 4A 7A [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: F0 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: F0 09 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: F0 09 00 41 4A 00 59 14 77 66 BC EC 60 65 3A [18:13:14]GetLastDocTimeStamp 1719078864 [18:13:14]current date 1719080025 [18:13:14]FM_GetShiftState [18:13:14]SAM_PROTO_GetShiftState [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 13 01 00 [18:13:14]Write to MH i2c: E2 08 00 42 4A 80 13 01 00 00 00 00 00 09 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0E 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0E 00 42 4A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3E [18:13:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_GetShiftState done [18:13:14]FM_GetShiftState done [18:13:14]opened in 1719020067 [18:13:14]opened+sec_in_day 1719106467 [18:13:14]quantity*price = 50009 [18:13:14]sum+1 = 50010 [18:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 177 22.06.2024 18:13 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112311 ФПД: 14793703384439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T181345&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112311&fm=14793703384439&tin=02508201610067®Number=0000000000092771&sum=50000 [18:13:15]StoreToDocumentArchive [18:13:15]shift 391 fd 112311 [18:13:15]save to /storage/0391/doc_00112311 [18:13:15]save last doc name /storage/0391/doc_00112311 to /storage/kkm_last_doc_name [18:13:15]save OK [18:13:15]Clear old archive folders... [18:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:15]tlvbuf is 0119A1C0 [18:13:15]SAM_PROTO_ClearQueue [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 09 00 00 [18:13:15]Write to MH i2c: E2 08 00 4F 4A 80 09 00 00 00 00 00 00 0B [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 4F 4A 00 90 00 0D [18:13:15]RAPDU: 90 00 [18:13:15]wFMCommunicate OK [18:13:15]SAM_PROTO_ClearQueue done [18:13:15]KKMCreateOFDPacket [18:13:15]OFDProtocolAddRootSTLVToBuf [18:13:15]FM_MakeSignedData [18:13:15]FM_MakeSignedData [18:13:15]SAM_PROTO_SignData [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 0D 01 02 [18:13:15]Write to MH i2c: E2 08 00 50 4A 80 0D 01 02 00 00 00 00 13 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 50 4A 00 90 00 0E [18:13:15]RAPDU: 90 00 [18:13:15]wFMCommunicate OK [18:13:15]wFMCommunicate request_size=255 [18:13:15]MH_SAM_APDU [18:13: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 59 14 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B6 01 00 35 04 06 00 0D 74 6D 6F [18:13:15]Write to MH i2c: E2 02 01 51 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 59 14 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B6 01 00 35 04 06 00 0D 74 6D 6F 00 00 0B [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 51 4A 00 90 00 0F [18:13:15]RAPDU: 90 00 [18:13:15]wFMCommunicate OK [18:13:15]wFMCommunicate request_size=7 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 0D 02 02 02 65 77 [18:13:15]Write to MH i2c: E2 0A 00 52 4A 80 0D 02 02 02 00 65 77 00 00 F6 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 03 00 52 4A 00 90 00 10 [18:13:15]RAPDU: 90 00 [18:13:15]wFMCommunicate OK [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 0D 03 02 [18:13:15]Write to MH i2c: E2 08 00 53 4A 80 0D 03 02 00 00 00 00 18 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 0B 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 0B 00 53 4A 00 4F D7 94 92 D1 C1 EC 05 90 00 E8 [18:13:16]RAPDU: 4F D7 94 92 D1 C1 EC 05 90 00 [18:13:16]wFMCommunicate OK [18:13:16]SAM_PROTO_SignData done [18:13:16]FM_MakeSignedData done [18:13:16]CreateOFDProtocolMessage [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 11 00 00 [18:13:16]Write to MH i2c: E2 08 00 54 4A 80 11 00 00 00 00 00 00 18 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 17 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 17 00 54 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [18:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:13:16]wFMCommunicate OK [18:13:16]CreateOFDProtocolMessage done [18:13:16]OFDSenderStorePacket 112311 [18:13:16]StoreOFDPacket docnum=112311 [18:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7E 10 04 01 6C 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 59 14 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B6 01 00 35 04 06 00 0D 74 6D 6F 65 77 4F D7 94 92 D1 C1 EC 05 [18:13:16]CheckFolder [18:13:16]dirname=/storage/ofd_packets [18:13:16]CheckFolder done [18:13:16]ProducePacketName [18:13:16]name=ofd_packets/00112311 [18:13:16]NVStorageSaveData ofd_packets/00112311 [18:13:16]File name is /storage/ofd_packets/00112311 [18:13:16]Write 298 bytes [18:13:16]NVStorageSaveData done [18:13:16]OFDSenderStorePacket done [18:13:16]KKMCreateOFDPacket done [18:13:16]NVStorageSaveData kkm_last_timestamp [18:13:16]File name is /storage/kkm_last_timestamp [18:13:16]Write 4 bytes [18:13:16]NVStorageSaveData done [18:13:16]ExternCall_PrintAddStr [18:13:16]wPrintStart [18:13:16]Write to MH i2c: 01 00 00 55 4A 9F [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 55 4A 00 00 00 00 00 FF 0F B4 [18:13:16]RasterBufferAndPrint [18:13:16]line Счет N : (1)320988 [18:13:16]line ИНН: 02508201610067 [18:13:16]line Контрольно-Кассовый Чек [18:13:16]line ПРОДАЖА [18:13:16]line ТРК (МРК, ГНК) : 22 [18:13:16]line Товар: 2710194210 [18:13:16]line ДТ-К-5 [18:13:16]line 6.860 * 72.90 [18:13:16]line = 500.09 [18:13:16]line НДС 12% НСП 1% [18:13:16]line > о реализуемом товаре [18:13:16]line ОКРУГЛЕНИЕ: -0.09 [18:13:16]line ИТОГО: 500.00 [18:13:16]line Внесено: 500.00 [18:13:16]line СДАЧА: 0.00 [18:13:16]line НСП 1% : 4.43 [18:13:16]line НДС 12% : 53.11 [18:13:16]line Наличными: 500.00 [18:13:16]line Безнал.: 0.00 [18:13:16]line Место: АЗС № 65 "Партнер Нефть" [18:13:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:13:16]line СНО: Общий режим [18:13:16]line Чек 177 22.06.2024 18:13 [18:13:16]line Смена: 391 ФФД: 1.0 [18:13:16]line ЗНМ: 0300000198 [18:13:16]line РНМ: 0000000000092771 [18:13:16]line Версия ККМ: 001 [18:13:16]line ФМ: 0000000000875083 [18:13:16]line ФД: 112311 [18:13:16]line ФПД: 14793703384439 [18:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T181345&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112311&fm=14793703384439&tin=02508201610067®Number=0000000000092771&sum=50000 [18:13:16]OFD Sender: Processing packet 112311 [packets to send 38, broken 37] [18:13:16]ProducePacketName [18:13:16]name=ofd_packets/00112311 [18:13:16]OFD Sender: To server: pG, [18:13:16]CommunicateWithHost lk.salyk.kg:30040 [18:13:16]ConnectInit lk.salyk.kg [18:13:16]written 0, free lines is 4095 [18:13:16]Connected sock=10 [18:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7E 10 04 01 6C 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 59 14 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B6 01 00 35 04 06 00 0D 74 6D 6F 65 77 4F D7 94 92 D1 C1 EC 05 [18:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 DA 47 00 03 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B6 01 00 F4 03 04 00 5E AB 76 66 B6 04 01 00 00 B4 5E 0B CF 2F 2D 0E 63 [18:13:16]CommunicateWithHost err = 0 [18:13:16]CheckOFDResponse [18:13:16]1017 (14) - 77093643461234 [18:13:16]1041 (16) - 0000000000875083 [18:13:16]1040 (4) - 112311 [18:13:16]1012 (4) - 22.06.2024 10:45 [18:13:16]1206 (1) - 0 [18:13:16]OFD Sender: Remove packet 112311 [18:13:16]ProducePacketName [18:13:16]name=ofd_packets/00112311 [18:13:16]NVStorageDeleteData [18:13:16]Write to MH i2c: 01 00 00 80 4A CA [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 80 4A 00 00 00 00 00 D4 0C B1 [18:13:16]RasterBufferAndPrint [18:13:16]line [18:13:16]line [18:13:16]line [18:13:16]line [18:13:16]line [18:13:16]written 0, free lines is 3292 [18:13:16]MH_Cut [18:13:16]Write to MH i2c: D1 01 00 87 4A 01 A3 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: D1 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: D1 01 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: D1 01 00 87 4A 00 A2 [18:13:16]Write to MH i2c: 01 00 00 88 4A D2 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:17]OFD Sender: No OFD packet to send [18:13:17]*** Cut start [18:13:17]*** Partial cut [18:13:17]*** CUTSNS_PIN = 1 [18:13:17]*** CUTSNS_PIN = 0 [18:13:17]*** Brake cut motor [18:13:18]Read from MH i2c: 01 [18:13:18]MH_I2C_Read... [18:13:18]*** Stop cut motor [18:13:18]*** Cut end [18:13:18]Read from MH i2c: 01 07 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: 01 07 00 88 4A 00 00 00 00 00 FF 0F E7 [18:13:18]process_action close_receipt done [18:13:18]requested_data is exist [18:13:18]produce_requested_data [18:13:18]requested_item fm.sn is exist - process it [18:13:18]wFMCommunicate request_size=4 [18:13:18]MH_SAM_APDU [18:13:18]CAPDU: 80 11 00 00 [18:13:18]Write to MH i2c: E2 08 00 89 4A 80 11 00 00 00 00 00 00 4D [18:13:18]Write i2c OK [18:13:18]MH_I2C_Read... [18:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:18]Read from MH i2c: E2 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 17 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 17 00 89 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9F [18:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:13:18]wFMCommunicate OK [18:13:18]requested_item fd.num is exist - process it [18:13:18]SAM_PROTO_GetFieldsCounters [18:13:18]wFMCommunicate request_size=4 [18:13:18]MH_SAM_APDU [18:13:18]CAPDU: 80 13 00 00 [18:13:18]Write to MH i2c: E2 08 00 8A 4A 80 13 00 00 00 00 00 00 50 [18:13:18]Write i2c OK [18:13:18]MH_I2C_Read... [18:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:18]Read from MH i2c: E2 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 62 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 62 00 8A 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [18:13:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:18]wFMCommunicate OK [18:13:18]SAM_PROTO_GetFieldsCounters done [18:13:18]requested_item shift.num is exist - process it [18:13:18]requested_item shift.opened is exist - process it [18:13:18]req_shift_opened [18:13:18]FM_GetShiftState [18:13:18]SAM_PROTO_GetShiftState [18:13:18]wFMCommunicate request_size=4 [18:13:18]MH_SAM_APDU [18:13:18]CAPDU: 80 13 01 00 [18:13:18]Write to MH i2c: E2 08 00 8B 4A 80 13 01 00 00 00 00 00 52 [18:13:18]Write i2c OK [18:13:18]MH_I2C_Read... [18:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:18]Read from MH i2c: E2 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 0E 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 0E 00 8B 4A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 87 [18:13:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:13:18]wFMCommunicate OK [18:13:18]SAM_PROTO_GetShiftState done [18:13:18]FM_GetShiftState done [18:13:18]req_shift_opened done [18:13:18]requested_item shift.open_date is exist - process it [18:13:18]req_shift_open_date [18:13:18]req_shift_open_date done [18:13:18]produce_requested_data done [18:13:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112311,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:13:18]process_action_free close_receipt [18:13:18]json_value_free [18:13:18]json_value_free done [18:13:18]process_json_proto returns [18:13:18]Send response to host [18:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112311,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:13:18]free response buf [18:13:18]execute_script done [18:13:18]execute_script returns [18:13:18]free content buf [18:13:18]Sock 9.Close socket [18:13:18]Sock 9.Thread stoped [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:51]accept exits with 7 [18:20:51]New connection [18:20:51]New thread 3066957156 created [18:20:51]Thread 3066813796 joined [18:20:51]Waiting for new connection... [18:20:51] Sock 7.Parse request [18:20:51]Sock 7.Check first char [18:20:51]Sock 7.First char is OK [18:20:51]request: POST /json_proto HTTP/1.0 [18:20:51]Method: POST [18:20:51]URL: /json_proto [18:20:51]Method is POST - this is cgi request [18:20:51]url: /json_proto [18:20:51]query_string will be loaded in cgi processing [18:20:51]execute_cgi json_proto POST (null) [18:20:51]execute_cgi path=json_proto method=POST [18:20:51]POST find Content-Length [18:20:51]Host: 172.17.59.68:8080 [18:20:51]Content-Length: 677 [18:20:51]Content-Type: application/json [18:20:51] [18:20:51]POST finish read [18:20:51]Found Content-Length = 677 [18:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320989", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:51]execute_script... [18:20: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)320989", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:51]POST & json_proto [18:20:51]process_json_proto [18:20:51]json parsed OK: [18:20:51]protocol is kg_v1.0 [18:20:51]action value=close_receipt [18:20:51]process_action close_receipt [18:20:51]cmd_close_receipt [18:20:51]MH_GetDate [18:20:51]Write to MH i2c: F0 00 00 8C 4A C5 [18:20:51]Write i2c OK [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: F0 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: F0 09 00 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: F0 09 00 8C 4A 00 22 16 77 66 BC EC 60 65 50 [18:20:51]GetLastDocTimeStamp 1719080025 [18:20:51]current date 1719080482 [18:20:51]FM_GetShiftState [18:20:51]SAM_PROTO_GetShiftState [18:20:51]wFMCommunicate request_size=4 [18:20:51]MH_SAM_APDU [18:20:51]CAPDU: 80 13 01 00 [18:20:51]Write to MH i2c: E2 08 00 8D 4A 80 13 01 00 00 00 00 00 54 [18:20:51]Write i2c OK [18:20:51]MH_I2C_Read... [18:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:51]Read from MH i2c: E2 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 0E 00 [18:20:51]MH_I2C_Read... [18:20:51]Read from MH i2c: E2 0E 00 8D 4A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 89 [18:20:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:20:51]wFMCommunicate OK [18:20:51]SAM_PROTO_GetShiftState done [18:20:51]FM_GetShiftState done [18:20:51]opened in 1719020067 [18:20:51]opened+sec_in_day 1719106467 [18:20:51]quantity*price = 20052 [18:20:51]sum+1 = 20054 [18:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 178 22.06.2024 18:21 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112312 ФПД: 262186636240192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182122&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112312&fm=262186636240192&tin=02508201610067®Number=0000000000092771&sum=20000 [18:20:52]StoreToDocumentArchive [18:20:52]shift 391 fd 112312 [18:20:52]save to /storage/0391/doc_00112312 [18:20:52]save last doc name /storage/0391/doc_00112312 to /storage/kkm_last_doc_name [18:20:52]save OK [18:20:52]Clear old archive folders... [18:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:52]tlvbuf is 0119A1C0 [18:20:52]SAM_PROTO_ClearQueue [18:20:52]wFMCommunicate request_size=4 [18:20:52]MH_SAM_APDU [18:20:52]CAPDU: 80 09 00 00 [18:20:52]Write to MH i2c: E2 08 00 9A 4A 80 09 00 00 00 00 00 00 56 [18:20:52]Write i2c OK [18:20:52]MH_I2C_Read... [18:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:52]Read from MH i2c: E2 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 03 00 [18:20:52]MH_I2C_Read... [18:20:52]Read from MH i2c: E2 03 00 9A 4A 00 90 00 58 [18:20:52]RAPDU: 90 00 [18:20:52]wFMCommunicate OK [18:20:52]SAM_PROTO_ClearQueue done [18:20:52]KKMCreateOFDPacket [18:20:52]OFDProtocolAddRootSTLVToBuf [18:20:52]FM_MakeSignedData [18:20:52]FM_MakeSignedData [18:20:52]SAM_PROTO_SignData [18:20:52]wFMCommunicate request_size=4 [18:20:52]MH_SAM_APDU [18:20:52]CAPDU: 80 0D 01 02 [18:20:52]Write to MH i2c: E2 08 00 9B 4A 80 0D 01 02 00 00 00 00 5E [18:20:52]Write i2c OK [18:20:52]MH_I2C_Read... [18:20:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:53]Read from MH i2c: E2 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 03 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 03 00 9B 4A 00 90 00 59 [18:20:53]RAPDU: 90 00 [18:20:53]wFMCommunicate OK [18:20:53]wFMCommunicate request_size=255 [18:20:53]MH_SAM_APDU [18:20: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 22 16 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B6 01 00 35 04 06 00 EE [18:20:53]Write to MH i2c: E2 02 01 9C 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 22 16 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B6 01 00 35 04 06 00 EE 00 00 7D [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:53]Read from MH i2c: E2 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 03 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 03 00 9C 4A 00 90 00 5A [18:20:53]RAPDU: 90 00 [18:20:53]wFMCommunicate OK [18:20:53]wFMCommunicate request_size=10 [18:20:53]MH_SAM_APDU [18:20:53]CAPDU: 80 0D 02 02 05 75 15 51 65 40 [18:20:53]Write to MH i2c: E2 0D 00 9D 4A 80 0D 02 02 05 00 75 15 51 65 40 00 00 EB [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:53]Read from MH i2c: E2 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 03 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 03 00 9D 4A 00 90 00 5B [18:20:53]RAPDU: 90 00 [18:20:53]wFMCommunicate OK [18:20:53]wFMCommunicate request_size=4 [18:20:53]MH_SAM_APDU [18:20:53]CAPDU: 80 0D 03 02 [18:20:53]Write to MH i2c: E2 08 00 9E 4A 80 0D 03 02 00 00 00 00 63 [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:53]Read from MH i2c: E2 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 0B 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 0B 00 9E 4A 00 22 BF 1A B6 DB 03 CC 6E 90 00 2D [18:20:53]RAPDU: 22 BF 1A B6 DB 03 CC 6E 90 00 [18:20:53]wFMCommunicate OK [18:20:53]SAM_PROTO_SignData done [18:20:53]FM_MakeSignedData done [18:20:53]CreateOFDProtocolMessage [18:20:53]wFMCommunicate request_size=4 [18:20:53]MH_SAM_APDU [18:20:53]CAPDU: 80 11 00 00 [18:20:53]Write to MH i2c: E2 08 00 9F 4A 80 11 00 00 00 00 00 00 63 [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:53]Read from MH i2c: E2 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 17 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 17 00 9F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [18:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:20:53]wFMCommunicate OK [18:20:53]CreateOFDProtocolMessage done [18:20:53]OFDSenderStorePacket 112312 [18:20:53]StoreOFDPacket docnum=112312 [18:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 EA 07 01 0A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 22 16 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B6 01 00 35 04 06 00 EE 75 15 51 65 40 22 BF 1A B6 DB 03 CC 6E [18:20:53]CheckFolder [18:20:53]dirname=/storage/ofd_packets [18:20:53]CheckFolder done [18:20:53]ProducePacketName [18:20:53]name=ofd_packets/00112312 [18:20:53]NVStorageSaveData ofd_packets/00112312 [18:20:53]File name is /storage/ofd_packets/00112312 [18:20:53]Write 301 bytes [18:20:53]NVStorageSaveData done [18:20:53]OFDSenderStorePacket done [18:20:53]KKMCreateOFDPacket done [18:20:53]NVStorageSaveData kkm_last_timestamp [18:20:53]File name is /storage/kkm_last_timestamp [18:20:53]Write 4 bytes [18:20:53]NVStorageSaveData done [18:20:53]ExternCall_PrintAddStr [18:20:53]wPrintStart [18:20:53]Write to MH i2c: 01 00 00 A0 4A EA [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: 01 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: 01 07 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: 01 07 00 A0 4A 00 00 00 00 00 FF 0F FF [18:20:53]RasterBufferAndPrint [18:20:53]line Счет N : (1)320989 [18:20:53]line ИНН: 02508201610067 [18:20:53]line Контрольно-Кассовый Чек [18:20:53]line ПРОДАЖА [18:20:53]line ТРК (МРК, ГНК) : 11 [18:20:53]line Товар: 2710124130 [18:20:53]line Аи-92-К-5 [18:20:53]line 3.020 * 66.40 [18:20:53]line = 200.53 [18:20:53]line НДС 12% НСП 1% [18:20:53]line > о реализуемом товаре [18:20:53]line ОКРУГЛЕНИЕ: -0.53 [18:20:53]line ИТОГО: 200.00 [18:20:53]line Внесено: 200.00 [18:20:53]line СДАЧА: 0.00 [18:20:53]line НСП 1% : 1.77 [18:20:53]line НДС 12% : 21.29 [18:20:53]line Наличными: 200.00 [18:20:53]line Безнал.: 0.00 [18:20:53]line Место: АЗС № 65 "Партнер Нефть" [18:20:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:20:53]line СНО: Общий режим [18:20:53]line Чек 178 22.06.2024 18:21 [18:20:53]line Смена: 391 ФФД: 1.0 [18:20:53]line ЗНМ: 0300000198 [18:20:53]line РНМ: 0000000000092771 [18:20:53]line Версия ККМ: 001 [18:20:53]line ФМ: 0000000000875083 [18:20:53]line ФД: 112312 [18:20:53]line ФПД: 262186636240192 [18:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182122&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112312&fm=262186636240192&tin=02508201610067®Number=0000000000092771&sum=20000 [18:20:53]written 0, free lines is 4095 [18:20:53]OFD Sender: Processing packet 112312 [packets to send 38, broken 37] [18:20:53]ProducePacketName [18:20:53]name=ofd_packets/00112312 [18:20:53]OFD Sender: To server: pG, [18:20:53]CommunicateWithHost lk.salyk.kg:30040 [18:20:53]ConnectInit lk.salyk.kg [18:20:53]Connected sock=10 [18:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 EA 07 01 0A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 22 16 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B6 01 00 35 04 06 00 EE 75 15 51 65 40 22 BF 1A B6 DB 03 CC 6E [18:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5F 80 47 00 57 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B6 01 00 F4 03 04 00 27 AD 76 66 B6 04 01 00 00 34 7A 17 6F F1 60 6F 95 [18:20:53]CommunicateWithHost err = 0 [18:20:53]CheckOFDResponse [18:20:53]1017 (14) - 77093643461234 [18:20:53]1041 (16) - 0000000000875083 [18:20:53]1040 (4) - 112312 [18:20:53]1012 (4) - 22.06.2024 10:53 [18:20:53]1206 (1) - 0 [18:20:53]OFD Sender: Remove packet 112312 [18:20:53]ProducePacketName [18:20:53]name=ofd_packets/00112312 [18:20:53]NVStorageDeleteData [18:20:53]Write to MH i2c: 01 00 00 CB 4A 15 [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: 01 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: 01 07 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: 01 07 00 CB 4A 00 00 00 00 00 E0 0C 08 [18:20:53]RasterBufferAndPrint [18:20:53]line [18:20:53]line [18:20:53]line [18:20:53]line [18:20:53]line [18:20:53]written 0, free lines is 3304 [18:20:53]MH_Cut [18:20:53]Write to MH i2c: D1 01 00 D2 4A 01 EE [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: D1 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: D1 01 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: D1 01 00 D2 4A 00 ED [18:20:53]Write to MH i2c: 01 00 00 D3 4A 1D [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:54]OFD Sender: No OFD packet to send [18:20:54]*** Cut start [18:20:54]*** Partial cut [18:20:54]*** CUTSNS_PIN = 1 [18:20:54]*** CUTSNS_PIN = 0 [18:20:54]*** Brake cut motor [18:20:55]Read from MH i2c: 01 [18:20:55]MH_I2C_Read... [18:20:55]*** Stop cut motor [18:20:55]*** Cut end [18:20:55]Read from MH i2c: 01 07 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: 01 07 00 D3 4A 00 00 00 00 00 FF 0F 32 [18:20:55]process_action close_receipt done [18:20:55]requested_data is exist [18:20:55]produce_requested_data [18:20:55]requested_item fm.sn is exist - process it [18:20:55]wFMCommunicate request_size=4 [18:20:55]MH_SAM_APDU [18:20:55]CAPDU: 80 11 00 00 [18:20:55]Write to MH i2c: E2 08 00 D4 4A 80 11 00 00 00 00 00 00 98 [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:55]Read from MH i2c: E2 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 17 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 17 00 D4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [18:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:20:55]wFMCommunicate OK [18:20:55]requested_item fd.num is exist - process it [18:20:55]SAM_PROTO_GetFieldsCounters [18:20:55]wFMCommunicate request_size=4 [18:20:55]MH_SAM_APDU [18:20:55]CAPDU: 80 13 00 00 [18:20:55]Write to MH i2c: E2 08 00 D5 4A 80 13 00 00 00 00 00 00 9B [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:55]Read from MH i2c: E2 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 62 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 62 00 D5 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [18:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:55]wFMCommunicate OK [18:20:55]SAM_PROTO_GetFieldsCounters done [18:20:55]requested_item shift.num is exist - process it [18:20:55]requested_item shift.opened is exist - process it [18:20:55]req_shift_opened [18:20:55]FM_GetShiftState [18:20:55]SAM_PROTO_GetShiftState [18:20:55]wFMCommunicate request_size=4 [18:20:55]MH_SAM_APDU [18:20:55]CAPDU: 80 13 01 00 [18:20:55]Write to MH i2c: E2 08 00 D6 4A 80 13 01 00 00 00 00 00 9D [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:55]Read from MH i2c: E2 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 0E 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 0E 00 D6 4A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D2 [18:20:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:20:55]wFMCommunicate OK [18:20:55]SAM_PROTO_GetShiftState done [18:20:55]FM_GetShiftState done [18:20:55]req_shift_opened done [18:20:55]requested_item shift.open_date is exist - process it [18:20:55]req_shift_open_date [18:20:55]req_shift_open_date done [18:20:55]produce_requested_data done [18:20:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112312,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:20:55]process_action_free close_receipt [18:20:55]json_value_free [18:20:55]json_value_free done [18:20:55]process_json_proto returns [18:20:55]Send response to host [18:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112312,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:20:55]free response buf [18:20:55]execute_script done [18:20:55]execute_script returns [18:20:55]free content buf [18:20:55]Sock 7.Close socket [18:20:55]Sock 7.Thread stoped [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:28]accept exits with 9 [18:25:28]New connection [18:25:28]New thread 3066813796 created [18:25:28]Thread 3066957156 joined [18:25:28]Waiting for new connection... [18:25:28] Sock 9.Parse request [18:25:28]Sock 9.Check first char [18:25:28]Sock 9.First char is OK [18:25:28]request: POST /json_proto HTTP/1.0 [18:25:28]Method: POST [18:25:28]URL: /json_proto [18:25:28]Method is POST - this is cgi request [18:25:28]url: /json_proto [18:25:28]query_string will be loaded in cgi processing [18:25:28]execute_cgi json_proto POST (null) [18:25:28]execute_cgi path=json_proto method=POST [18:25:28]POST find Content-Length [18:25:28]Host: 172.17.59.68:8080 [18:25:28]Content-Length: 677 [18:25:28]Content-Type: application/json [18:25:28] [18:25:28]POST finish read [18:25:28]Found Content-Length = 677 [18:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320990", "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.40, "quantity" : 5.280, "sum" : 350.59, "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:25:28]execute_script... [18:25:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320990", "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.40, "quantity" : 5.280, "sum" : 350.59, "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:25:28]POST & json_proto [18:25:28]process_json_proto [18:25:28]json parsed OK: [18:25:28]protocol is kg_v1.0 [18:25:28]action value=close_receipt [18:25:28]process_action close_receipt [18:25:28]cmd_close_receipt [18:25:28]MH_GetDate [18:25:28]Write to MH i2c: F0 00 00 D7 4A 10 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 09 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: F0 09 00 D7 4A 00 37 17 77 66 BC EC 60 65 B1 [18:25:28]GetLastDocTimeStamp 1719080482 [18:25:28]current date 1719080759 [18:25:28]FM_GetShiftState [18:25:28]SAM_PROTO_GetShiftState [18:25:28]wFMCommunicate request_size=4 [18:25:28]MH_SAM_APDU [18:25:28]CAPDU: 80 13 01 00 [18:25:28]Write to MH i2c: E2 08 00 D8 4A 80 13 01 00 00 00 00 00 9F [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:28]Read from MH i2c: E2 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 D8 4A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D4 [18:25:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:25:28]wFMCommunicate OK [18:25:28]SAM_PROTO_GetShiftState done [18:25:28]FM_GetShiftState done [18:25:28]opened in 1719020067 [18:25:28]opened+sec_in_day 1719106467 [18:25:28]quantity*price = 35059 [18:25:28]sum+1 = 35060 [18:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 179 22.06.2024 18:26 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112313 ФПД: 59316504803356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112313&fm=59316504803356&tin=02508201610067®Number=0000000000092771&sum=35000 [18:25:30]StoreToDocumentArchive [18:25:30]shift 391 fd 112313 [18:25:30]save to /storage/0391/doc_00112313 [18:25:30]save last doc name /storage/0391/doc_00112313 to /storage/kkm_last_doc_name [18:25:30]save OK [18:25:30]Clear old archive folders... [18:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:30]tlvbuf is B6DA9010 [18:25:30]SAM_PROTO_ClearQueue [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 09 00 00 [18:25:30]Write to MH i2c: E2 08 00 E5 4A 80 09 00 00 00 00 00 00 A1 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 E5 4A 00 90 00 A3 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_ClearQueue done [18:25:30]KKMCreateOFDPacket [18:25:30]OFDProtocolAddRootSTLVToBuf [18:25:30]FM_MakeSignedData [18:25:30]FM_MakeSignedData [18:25:30]SAM_PROTO_SignData [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 01 02 [18:25:30]Write to MH i2c: E2 08 00 E6 4A 80 0D 01 02 00 00 00 00 A9 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 E6 4A 00 90 00 A4 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=255 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 38 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B6 01 00 35 04 06 00 35 [18:25:30]Write to MH i2c: E2 02 01 E7 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 38 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B6 01 00 35 04 06 00 35 00 00 47 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 E7 4A 00 90 00 A5 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=10 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 02 02 05 F2 B3 32 B8 1C [18:25:30]Write to MH i2c: E2 0D 00 E8 4A 80 0D 02 02 05 00 F2 B3 32 B8 1C 00 00 61 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 E8 4A 00 90 00 A6 [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 03 02 [18:25:30]Write to MH i2c: E2 08 00 E9 4A 80 0D 03 02 00 00 00 00 AE [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0B 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0B 00 E9 4A 00 74 24 AD 4A F1 50 2B 81 90 00 2B [18:25:30]RAPDU: 74 24 AD 4A F1 50 2B 81 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_SignData done [18:25:30]FM_MakeSignedData done [18:25:30]CreateOFDProtocolMessage [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 11 00 00 [18:25:30]Write to MH i2c: E2 08 00 EA 4A 80 11 00 00 00 00 00 00 AE [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 17 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 17 00 EA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [18:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:25:30]wFMCommunicate OK [18:25:30]CreateOFDProtocolMessage done [18:25:30]OFDSenderStorePacket 112313 [18:25:30]StoreOFDPacket docnum=112313 [18:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 30 07 01 5D 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 38 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B6 01 00 35 04 06 00 35 F2 B3 32 B8 1C 74 24 AD 4A F1 50 2B 81 [18:25:30]CheckFolder [18:25:30]dirname=/storage/ofd_packets [18:25:30]CheckFolder done [18:25:30]ProducePacketName [18:25:30]name=ofd_packets/00112313 [18:25:30]NVStorageSaveData ofd_packets/00112313 [18:25:30]File name is /storage/ofd_packets/00112313 [18:25:30]Write 301 bytes [18:25:30]NVStorageSaveData done [18:25:30]OFDSenderStorePacket done [18:25:30]KKMCreateOFDPacket done [18:25:30]NVStorageSaveData kkm_last_timestamp [18:25:30]File name is /storage/kkm_last_timestamp [18:25:30]Write 4 bytes [18:25:30]NVStorageSaveData done [18:25:30]ExternCall_PrintAddStr [18:25:30]wPrintStart [18:25:30]Write to MH i2c: 01 00 00 EB 4A 35 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 07 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: 01 07 00 EB 4A 00 00 00 00 00 FF 0F 4A [18:25:30]RasterBufferAndPrint [18:25:30]line Счет N : (1)320990 [18:25:30]line ИНН: 02508201610067 [18:25:30]line Контрольно-Кассовый Чек [18:25:30]line ПРОДАЖА [18:25:30]line ТРК (МРК, ГНК) : 11 [18:25:30]line Товар: 2710124130 [18:25:30]line Аи-92-К-5 [18:25:30]line 5.280 * 66.40 [18:25:30]line = 350.59 [18:25:30]line НДС 12% НСП 1% [18:25:30]line > о реализуемом товаре [18:25:30]line ОКРУГЛЕНИЕ: -0.59 [18:25:30]line ИТОГО: 350.00 [18:25:30]line Внесено: 350.00 [18:25:30]line СДАЧА: 0.00 [18:25:30]line НСП 1% : 3.10 [18:25:30]line НДС 12% : 37.23 [18:25:30]line Наличными: 350.00 [18:25:30]line Безнал.: 0.00 [18:25:30]line Место: АЗС № 65 "Партнер Нефть" [18:25:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:25:30]line СНО: Общий режим [18:25:30]line Чек 179 22.06.2024 18:26 [18:25:30]line Смена: 391 ФФД: 1.0 [18:25:30]line ЗНМ: 0300000198 [18:25:30]line РНМ: 0000000000092771 [18:25:30]line Версия ККМ: 001 [18:25:30]line ФМ: 0000000000875083 [18:25:30]line ФД: 112313 [18:25:30]line ФПД: 59316504803356 [18:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112313&fm=59316504803356&tin=02508201610067®Number=0000000000092771&sum=35000 [18:25:30]OFD Sender: Processing packet 112313 [packets to send 38, broken 37] [18:25:30]ProducePacketName [18:25:30]name=ofd_packets/00112313 [18:25:30]OFD Sender: To server: pG, [18:25:30]CommunicateWithHost lk.salyk.kg:30040 [18:25:30]ConnectInit lk.salyk.kg [18:25:30]written 0, free lines is 4095 [18:25:31]Connected sock=10 [18:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 30 07 01 5D 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 38 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B6 01 00 35 04 06 00 35 F2 B3 32 B8 1C 74 24 AD 4A F1 50 2B 81 [18:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC 64 47 00 E7 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B6 01 00 F4 03 04 00 3C AE 76 66 B6 04 01 00 00 F8 B9 98 3C 79 12 F6 33 [18:25:31]CommunicateWithHost err = 0 [18:25:31]CheckOFDResponse [18:25:31]1017 (14) - 77093643461234 [18:25:31]1041 (16) - 0000000000875083 [18:25:31]1040 (4) - 112313 [18:25:31]1012 (4) - 22.06.2024 10:58 [18:25:31]1206 (1) - 0 [18:25:31]OFD Sender: Remove packet 112313 [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00112313 [18:25:31]NVStorageDeleteData [18:25:31]Write to MH i2c: 01 00 00 16 4B 61 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 16 4B 00 00 00 00 00 D6 0C 4A [18:25:31]RasterBufferAndPrint [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]written 0, free lines is 3293 [18:25:31]MH_Cut [18:25:31]Write to MH i2c: D1 01 00 1D 4B 01 3A [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 1D 4B 00 39 [18:25:31]Write to MH i2c: 01 00 00 1E 4B 69 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]OFD Sender: No OFD packet to send [18:25:32]*** Cut start [18:25:32]*** Partial cut [18:25:32]*** CUTSNS_PIN = 1 [18:25:32]*** CUTSNS_PIN = 0 [18:25:32]*** Brake cut motor [18:25:32]Read from MH i2c: 01 [18:25:32]MH_I2C_Read... [18:25:32]*** Stop cut motor [18:25:32]*** Cut end [18:25:32]Read from MH i2c: 01 07 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 1E 4B 00 00 00 00 00 FF 0F 7E [18:25:32]process_action close_receipt done [18:25:32]requested_data is exist [18:25:32]produce_requested_data [18:25:32]requested_item fm.sn is exist - process it [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 11 00 00 [18:25:32]Write to MH i2c: E2 08 00 1F 4B 80 11 00 00 00 00 00 00 E4 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 1F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 36 [18:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:25:32]wFMCommunicate OK [18:25:32]requested_item fd.num is exist - process it [18:25:32]SAM_PROTO_GetFieldsCounters [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 13 00 00 [18:25:32]Write to MH i2c: E2 08 00 20 4B 80 13 00 00 00 00 00 00 E7 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 62 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 62 00 20 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:32]wFMCommunicate OK [18:25:32]SAM_PROTO_GetFieldsCounters done [18:25:32]requested_item shift.num is exist - process it [18:25:32]requested_item shift.opened is exist - process it [18:25:32]req_shift_opened [18:25:32]FM_GetShiftState [18:25:32]SAM_PROTO_GetShiftState [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 13 01 00 [18:25:32]Write to MH i2c: E2 08 00 21 4B 80 13 01 00 00 00 00 00 E9 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:33]Read from MH i2c: E2 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 0E 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 0E 00 21 4B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1E [18:25:33]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:25:33]wFMCommunicate OK [18:25:33]SAM_PROTO_GetShiftState done [18:25:33]FM_GetShiftState done [18:25:33]req_shift_opened done [18:25:33]requested_item shift.open_date is exist - process it [18:25:33]req_shift_open_date [18:25:33]req_shift_open_date done [18:25:33]produce_requested_data done [18:25:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112313,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:25:33]process_action_free close_receipt [18:25:33]json_value_free [18:25:33]json_value_free done [18:25:33]process_json_proto returns [18:25:33]Send response to host [18:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112313,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:25:33]free response buf [18:25:33]execute_script done [18:25:33]execute_script returns [18:25:33]free content buf [18:25:33]Sock 9.Close socket [18:25:33]Sock 9.Thread stoped [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:12]accept exits with 7 [18:27:12]New connection [18:27:12]New thread 3066957156 created [18:27:12]Thread 3066813796 joined [18:27:12]Waiting for new connection... [18:27:12] Sock 7.Parse request [18:27:12]Sock 7.Check first char [18:27:12]Sock 7.First char is OK [18:27:12]request: POST /json_proto HTTP/1.0 [18:27:12]Method: POST [18:27:12]URL: /json_proto [18:27:12]Method is POST - this is cgi request [18:27:12]url: /json_proto [18:27:12]query_string will be loaded in cgi processing [18:27:12]execute_cgi json_proto POST (null) [18:27:12]execute_cgi path=json_proto method=POST [18:27:12]POST find Content-Length [18:27:12]Host: 172.17.59.68:8080 [18:27:12]Content-Length: 677 [18:27:12]Content-Type: application/json [18:27:12] [18:27:12]POST finish read [18:27:12]Found Content-Length = 677 [18:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320991", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:27:12]execute_script... [18:27: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)320991", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:27:12]POST & json_proto [18:27:12]process_json_proto [18:27:12]json parsed OK: [18:27:12]protocol is kg_v1.0 [18:27:12]action value=close_receipt [18:27:12]process_action close_receipt [18:27:12]cmd_close_receipt [18:27:12]MH_GetDate [18:27:12]Write to MH i2c: F0 00 00 22 4B 5C [18:27:12]Write i2c OK [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: F0 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: F0 09 00 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: F0 09 00 22 4B 00 9F 17 77 66 BC EC 60 65 65 [18:27:12]GetLastDocTimeStamp 1719080760 [18:27:12]current date 1719080863 [18:27:12]FM_GetShiftState [18:27:12]SAM_PROTO_GetShiftState [18:27:12]wFMCommunicate request_size=4 [18:27:12]MH_SAM_APDU [18:27:12]CAPDU: 80 13 01 00 [18:27:12]Write to MH i2c: E2 08 00 23 4B 80 13 01 00 00 00 00 00 EB [18:27:12]Write i2c OK [18:27:12]MH_I2C_Read... [18:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:12]Read from MH i2c: E2 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 0E 00 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 0E 00 23 4B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 20 [18:27:12]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:27:12]wFMCommunicate OK [18:27:12]SAM_PROTO_GetShiftState done [18:27:12]FM_GetShiftState done [18:27:12]opened in 1719020067 [18:27:12]opened+sec_in_day 1719106467 [18:27:12]quantity*price = 30012 [18:27:12]sum+1 = 30014 [18:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 180 22.06.2024 18:27 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112314 ФПД: 22449210992003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182743&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112314&fm=22449210992003&tin=02508201610067®Number=0000000000092771&sum=30000 [18:27:13]StoreToDocumentArchive [18:27:13]shift 391 fd 112314 [18:27:13]save to /storage/0391/doc_00112314 [18:27:13]save last doc name /storage/0391/doc_00112314 to /storage/kkm_last_doc_name [18:27:13]save OK [18:27:13]Clear old archive folders... [18:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:13]tlvbuf is 01155220 [18:27:13]SAM_PROTO_ClearQueue [18:27:13]wFMCommunicate request_size=4 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 09 00 00 [18:27:13]Write to MH i2c: E2 08 00 30 4B 80 09 00 00 00 00 00 00 ED [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 30 4B 00 90 00 EF [18:27:13]RAPDU: 90 00 [18:27:13]wFMCommunicate OK [18:27:13]SAM_PROTO_ClearQueue done [18:27:13]KKMCreateOFDPacket [18:27:13]OFDProtocolAddRootSTLVToBuf [18:27:13]FM_MakeSignedData [18:27:13]FM_MakeSignedData [18:27:13]SAM_PROTO_SignData [18:27:13]wFMCommunicate request_size=4 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 0D 01 02 [18:27:13]Write to MH i2c: E2 08 00 31 4B 80 0D 01 02 00 00 00 00 F5 [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 31 4B 00 90 00 F0 [18:27:13]RAPDU: 90 00 [18:27:13]wFMCommunicate OK [18:27:13]wFMCommunicate request_size=255 [18:27:13]MH_SAM_APDU [18:27: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9F 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B6 01 00 35 04 06 00 14 [18:27:13]Write to MH i2c: E2 02 01 32 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9F 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B6 01 00 35 04 06 00 14 00 00 9B [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 32 4B 00 90 00 F1 [18:27:13]RAPDU: 90 00 [18:27:13]wFMCommunicate OK [18:27:13]wFMCommunicate request_size=10 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 0D 02 02 05 6A DD 3F 25 83 [18:27:13]Write to MH i2c: E2 0D 00 33 4B 80 0D 02 02 05 00 6A DD 3F 25 83 00 00 30 [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:13]Read from MH i2c: E2 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 [18:27:13]MH_I2C_Read... [18:27:13]Read from MH i2c: E2 03 00 33 4B 00 90 00 F2 [18:27:13]RAPDU: 90 00 [18:27:13]wFMCommunicate OK [18:27:13]wFMCommunicate request_size=4 [18:27:13]MH_SAM_APDU [18:27:13]CAPDU: 80 0D 03 02 [18:27:13]Write to MH i2c: E2 08 00 34 4B 80 0D 03 02 00 00 00 00 FA [18:27:13]Write i2c OK [18:27:13]MH_I2C_Read... [18:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:14]Read from MH i2c: E2 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: E2 0B 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: E2 0B 00 34 4B 00 0C D8 15 FF 96 E4 CC 28 90 00 61 [18:27:14]RAPDU: 0C D8 15 FF 96 E4 CC 28 90 00 [18:27:14]wFMCommunicate OK [18:27:14]SAM_PROTO_SignData done [18:27:14]FM_MakeSignedData done [18:27:14]CreateOFDProtocolMessage [18:27:14]wFMCommunicate request_size=4 [18:27:14]MH_SAM_APDU [18:27:14]CAPDU: 80 11 00 00 [18:27:14]Write to MH i2c: E2 08 00 35 4B 80 11 00 00 00 00 00 00 FA [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:14]Read from MH i2c: E2 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: E2 17 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: E2 17 00 35 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [18:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:27:14]wFMCommunicate OK [18:27:14]CreateOFDProtocolMessage done [18:27:14]OFDSenderStorePacket 112314 [18:27:14]StoreOFDPacket docnum=112314 [18:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 E0 07 01 38 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9F 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B6 01 00 35 04 06 00 14 6A DD 3F 25 83 0C D8 15 FF 96 E4 CC 28 [18:27:14]CheckFolder [18:27:14]dirname=/storage/ofd_packets [18:27:14]CheckFolder done [18:27:14]ProducePacketName [18:27:14]name=ofd_packets/00112314 [18:27:14]NVStorageSaveData ofd_packets/00112314 [18:27:14]File name is /storage/ofd_packets/00112314 [18:27:14]Write 301 bytes [18:27:14]NVStorageSaveData done [18:27:14]OFDSenderStorePacket done [18:27:14]KKMCreateOFDPacket done [18:27:14]NVStorageSaveData kkm_last_timestamp [18:27:14]File name is /storage/kkm_last_timestamp [18:27:14]Write 4 bytes [18:27:14]NVStorageSaveData done [18:27:14]ExternCall_PrintAddStr [18:27:14]wPrintStart [18:27:14]Write to MH i2c: 01 00 00 36 4B 81 [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: 01 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: 01 07 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: 01 07 00 36 4B 00 00 00 00 00 FF 0F 96 [18:27:14]RasterBufferAndPrint [18:27:14]line Счет N : (1)320991 [18:27:14]line ИНН: 02508201610067 [18:27:14]line Контрольно-Кассовый Чек [18:27:14]line ПРОДАЖА [18:27:14]line ТРК (МРК, ГНК) : 11 [18:27:14]line Товар: 2710124130 [18:27:14]line Аи-92-К-5 [18:27:14]line 4.520 * 66.40 [18:27:14]line = 300.13 [18:27:14]line НДС 12% НСП 1% [18:27:14]line > о реализуемом товаре [18:27:14]line ОКРУГЛЕНИЕ: -0.13 [18:27:14]line ИТОГО: 300.00 [18:27:14]line Внесено: 300.00 [18:27:14]line СДАЧА: 0.00 [18:27:14]line НСП 1% : 2.66 [18:27:14]line НДС 12% : 31.87 [18:27:14]line Наличными: 300.00 [18:27:14]line Безнал.: 0.00 [18:27:14]line Место: АЗС № 65 "Партнер Нефть" [18:27:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:27:14]line СНО: Общий режим [18:27:14]line Чек 180 22.06.2024 18:27 [18:27:14]line Смена: 391 ФФД: 1.0 [18:27:14]line ЗНМ: 0300000198 [18:27:14]line РНМ: 0000000000092771 [18:27:14]line Версия ККМ: 001 [18:27:14]line ФМ: 0000000000875083 [18:27:14]line ФД: 112314 [18:27:14]line ФПД: 22449210992003 [18:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182743&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112314&fm=22449210992003&tin=02508201610067®Number=0000000000092771&sum=30000 [18:27:14]OFD Sender: Processing packet 112314 [packets to send 38, broken 37] [18:27:14]ProducePacketName [18:27:14]name=ofd_packets/00112314 [18:27:14]OFD Sender: To server: pG, [18:27:14]CommunicateWithHost lk.salyk.kg:30040 [18:27:14]ConnectInit lk.salyk.kg [18:27:14]written 0, free lines is 4095 [18:27:14]Connected sock=10 [18:27:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 E0 07 01 38 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9F 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B6 01 00 35 04 06 00 14 6A DD 3F 25 83 0C D8 15 FF 96 E4 CC 28 [18:27:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FA 8F 47 00 D4 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B6 01 00 F4 03 04 00 A4 AE 76 66 B6 04 01 00 00 D3 0B 37 EF C9 73 F5 D9 [18:27:14]CommunicateWithHost err = 0 [18:27:14]CheckOFDResponse [18:27:14]1017 (14) - 77093643461234 [18:27:14]1041 (16) - 0000000000875083 [18:27:14]1040 (4) - 112314 [18:27:14]1012 (4) - 22.06.2024 10:59 [18:27:14]1206 (1) - 0 [18:27:14]OFD Sender: Remove packet 112314 [18:27:14]ProducePacketName [18:27:14]name=ofd_packets/00112314 [18:27:14]NVStorageDeleteData [18:27:14]Write to MH i2c: 01 00 00 61 4B AC [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: 01 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: 01 07 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: 01 07 00 61 4B 00 00 00 00 00 E4 0C A3 [18:27:14]RasterBufferAndPrint [18:27:14]line [18:27:14]line [18:27:14]line [18:27:14]line [18:27:14]line [18:27:14]written 0, free lines is 3306 [18:27:14]MH_Cut [18:27:14]Write to MH i2c: D1 01 00 68 4B 01 85 [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: D1 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: D1 01 00 [18:27:14]MH_I2C_Read... [18:27:14]Read from MH i2c: D1 01 00 68 4B 00 84 [18:27:14]Write to MH i2c: 01 00 00 69 4B B4 [18:27:14]Write i2c OK [18:27:14]MH_I2C_Read... [18:27:15]OFD Sender: No OFD packet to send [18:27:15]*** Cut start [18:27:15]*** Partial cut [18:27:15]*** CUTSNS_PIN = 1 [18:27:15]*** CUTSNS_PIN = 0 [18:27:15]*** Brake cut motor [18:27:16]Read from MH i2c: 01 [18:27:16]MH_I2C_Read... [18:27:16]*** Stop cut motor [18:27:16]*** Cut end [18:27:16]Read from MH i2c: 01 07 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: 01 07 00 69 4B 00 00 00 00 00 FF 0F C9 [18:27:16]process_action close_receipt done [18:27:16]requested_data is exist [18:27:16]produce_requested_data [18:27:16]requested_item fm.sn is exist - process it [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 11 00 00 [18:27:16]Write to MH i2c: E2 08 00 6A 4B 80 11 00 00 00 00 00 00 2F [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 17 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 17 00 6A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [18:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:27:16]wFMCommunicate OK [18:27:16]requested_item fd.num is exist - process it [18:27:16]SAM_PROTO_GetFieldsCounters [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 13 00 00 [18:27:16]Write to MH i2c: E2 08 00 6B 4B 80 13 00 00 00 00 00 00 32 [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 62 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 62 00 6B 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:16]wFMCommunicate OK [18:27:16]SAM_PROTO_GetFieldsCounters done [18:27:16]requested_item shift.num is exist - process it [18:27:16]requested_item shift.opened is exist - process it [18:27:16]req_shift_opened [18:27:16]FM_GetShiftState [18:27:16]SAM_PROTO_GetShiftState [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 13 01 00 [18:27:16]Write to MH i2c: E2 08 00 6C 4B 80 13 01 00 00 00 00 00 34 [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 0E 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 0E 00 6C 4B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 69 [18:27:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:27:16]wFMCommunicate OK [18:27:16]SAM_PROTO_GetShiftState done [18:27:16]FM_GetShiftState done [18:27:16]req_shift_opened done [18:27:16]requested_item shift.open_date is exist - process it [18:27:16]req_shift_open_date [18:27:16]req_shift_open_date done [18:27:16]produce_requested_data done [18:27:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112314,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:27:16]process_action_free close_receipt [18:27:16]json_value_free [18:27:16]json_value_free done [18:27:16]process_json_proto returns [18:27:16]Send response to host [18:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112314,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:27:16]free response buf [18:27:16]execute_script done [18:27:16]execute_script returns [18:27:16]free content buf [18:27:16]Sock 7.Close socket [18:27:16]Sock 7.Thread stoped [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:47]accept exits with 9 [18:27:47]New connection [18:27:47]New thread 3066813796 created [18:27:47]Thread 3066957156 joined [18:27:47]Waiting for new connection... [18:27:47] Sock 9.Parse request [18:27:47]Sock 9.Check first char [18:27:47]Sock 9.First char is OK [18:27:47]request: POST /json_proto HTTP/1.0 [18:27:47]Method: POST [18:27:47]URL: /json_proto [18:27:47]Method is POST - this is cgi request [18:27:47]url: /json_proto [18:27:47]query_string will be loaded in cgi processing [18:27:47]execute_cgi json_proto POST (null) [18:27:47]execute_cgi path=json_proto method=POST [18:27:47]POST find Content-Length [18:27:47]Host: 172.17.59.68:8080 [18:27:47]Content-Length: 677 [18:27:47]Content-Type: application/json [18:27:47] [18:27:47]POST finish read [18:27:47]Found Content-Length = 677 [18:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320992", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:27:47]execute_script... [18:27: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)320992", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:27:47]POST & json_proto [18:27:47]process_json_proto [18:27:47]json parsed OK: [18:27:47]protocol is kg_v1.0 [18:27:47]action value=close_receipt [18:27:47]process_action close_receipt [18:27:47]cmd_close_receipt [18:27:47]MH_GetDate [18:27:47]Write to MH i2c: F0 00 00 6D 4B A7 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: F0 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: F0 09 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: F0 09 00 6D 4B 00 C2 17 77 66 BC EC 60 65 D3 [18:27:47]GetLastDocTimeStamp 1719080863 [18:27:47]current date 1719080898 [18:27:47]FM_GetShiftState [18:27:47]SAM_PROTO_GetShiftState [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 13 01 00 [18:27:47]Write to MH i2c: E2 08 00 6E 4B 80 13 01 00 00 00 00 00 36 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 0E 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 0E 00 6E 4B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6B [18:27:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:27:47]wFMCommunicate OK [18:27:47]SAM_PROTO_GetShiftState done [18:27:47]FM_GetShiftState done [18:27:47]opened in 1719020067 [18:27:47]opened+sec_in_day 1719106467 [18:27:47]quantity*price = 30012 [18:27:47]sum+1 = 30014 [18:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 181 22.06.2024 18:28 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112315 ФПД: 187213606568922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182818&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112315&fm=187213606568922&tin=02508201610067®Number=0000000000092771&sum=30000 [18:27:48]StoreToDocumentArchive [18:27:48]shift 391 fd 112315 [18:27:48]save to /storage/0391/doc_00112315 [18:27:48]save last doc name /storage/0391/doc_00112315 to /storage/kkm_last_doc_name [18:27:48]save OK [18:27:48]Clear old archive folders... [18:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:48]tlvbuf is 0117FAE0 [18:27:48]SAM_PROTO_ClearQueue [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 09 00 00 [18:27:48]Write to MH i2c: E2 08 00 7B 4B 80 09 00 00 00 00 00 00 38 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 03 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 03 00 7B 4B 00 90 00 3A [18:27:48]RAPDU: 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_ClearQueue done [18:27:48]KKMCreateOFDPacket [18:27:48]OFDProtocolAddRootSTLVToBuf [18:27:48]FM_MakeSignedData [18:27:48]FM_MakeSignedData [18:27:48]SAM_PROTO_SignData [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 0D 01 02 [18:27:48]Write to MH i2c: E2 08 00 7C 4B 80 0D 01 02 00 00 00 00 40 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 03 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 03 00 7C 4B 00 90 00 3B [18:27:48]RAPDU: 90 00 [18:27:48]wFMCommunicate OK [18:27:48]wFMCommunicate request_size=255 [18:27:48]MH_SAM_APDU [18:27: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C2 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B6 01 00 35 04 06 00 AA [18:27:48]Write to MH i2c: E2 02 01 7D 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C2 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B6 01 00 35 04 06 00 AA 00 00 A1 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 7D 4B 00 90 00 3C [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=10 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 02 02 05 45 10 84 43 DA [18:27:49]Write to MH i2c: E2 0D 00 7E 4B 80 0D 02 02 05 00 45 10 84 43 DA 00 00 43 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 7E 4B 00 90 00 3D [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 03 02 [18:27:49]Write to MH i2c: E2 08 00 7F 4B 80 0D 03 02 00 00 00 00 45 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0B 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0B 00 7F 4B 00 48 B6 17 44 37 14 68 16 90 00 68 [18:27:49]RAPDU: 48 B6 17 44 37 14 68 16 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_SignData done [18:27:49]FM_MakeSignedData done [18:27:49]CreateOFDProtocolMessage [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 11 00 00 [18:27:49]Write to MH i2c: E2 08 00 80 4B 80 11 00 00 00 00 00 00 45 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 80 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [18:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:27:49]wFMCommunicate OK [18:27:49]CreateOFDProtocolMessage done [18:27:49]OFDSenderStorePacket 112315 [18:27:49]StoreOFDPacket docnum=112315 [18:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BE 5E 07 01 12 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C2 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B6 01 00 35 04 06 00 AA 45 10 84 43 DA 48 B6 17 44 37 14 68 16 [18:27:49]CheckFolder [18:27:49]dirname=/storage/ofd_packets [18:27:49]CheckFolder done [18:27:49]ProducePacketName [18:27:49]name=ofd_packets/00112315 [18:27:49]NVStorageSaveData ofd_packets/00112315 [18:27:49]File name is /storage/ofd_packets/00112315 [18:27:49]Write 301 bytes [18:27:49]NVStorageSaveData done [18:27:49]OFDSenderStorePacket done [18:27:49]KKMCreateOFDPacket done [18:27:49]NVStorageSaveData kkm_last_timestamp [18:27:49]File name is /storage/kkm_last_timestamp [18:27:49]Write 4 bytes [18:27:49]NVStorageSaveData done [18:27:49]ExternCall_PrintAddStr [18:27:49]wPrintStart [18:27:49]Write to MH i2c: 01 00 00 81 4B CC [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 07 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 07 00 81 4B 00 00 00 00 00 FF 0F E1 [18:27:49]RasterBufferAndPrint [18:27:49]line Счет N : (1)320992 [18:27:49]line ИНН: 02508201610067 [18:27:49]line Контрольно-Кассовый Чек [18:27:49]line ПРОДАЖА [18:27:49]line ТРК (МРК, ГНК) : 11 [18:27:49]line Товар: 2710124130 [18:27:49]line Аи-92-К-5 [18:27:49]line 4.520 * 66.40 [18:27:49]line = 300.13 [18:27:49]line НДС 12% НСП 1% [18:27:49]line > о реализуемом товаре [18:27:49]line ОКРУГЛЕНИЕ: -0.13 [18:27:49]line ИТОГО: 300.00 [18:27:49]line Внесено: 300.00 [18:27:49]line СДАЧА: 0.00 [18:27:49]line НСП 1% : 2.66 [18:27:49]line НДС 12% : 31.87 [18:27:49]line Наличными: 300.00 [18:27:49]line Безнал.: 0.00 [18:27:49]line Место: АЗС № 65 "Партнер Нефть" [18:27:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:27:49]line СНО: Общий режим [18:27:49]line Чек 181 22.06.2024 18:28 [18:27:49]line Смена: 391 ФФД: 1.0 [18:27:49]line ЗНМ: 0300000198 [18:27:49]line РНМ: 0000000000092771 [18:27:49]line Версия ККМ: 001 [18:27:49]line ФМ: 0000000000875083 [18:27:49]line ФД: 112315 [18:27:49]line ФПД: 187213606568922 [18:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182818&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112315&fm=187213606568922&tin=02508201610067®Number=0000000000092771&sum=30000 [18:27:49]OFD Sender: Processing packet 112315 [packets to send 38, broken 37] [18:27:49]ProducePacketName [18:27:49]name=ofd_packets/00112315 [18:27:49]OFD Sender: To server: pG, [18:27:49]CommunicateWithHost lk.salyk.kg:30040 [18:27:49]ConnectInit lk.salyk.kg [18:27:49]written 0, free lines is 4095 [18:27:49]Connected sock=10 [18:27:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BE 5E 07 01 12 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C2 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B6 01 00 35 04 06 00 AA 45 10 84 43 DA 48 B6 17 44 37 14 68 16 [18:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EA D1 47 00 08 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B6 01 00 F4 03 04 00 C7 AE 76 66 B6 04 01 00 00 41 34 6B 37 EA 05 DF C8 [18:27:50]CommunicateWithHost err = 0 [18:27:50]CheckOFDResponse [18:27:50]1017 (14) - 77093643461234 [18:27:50]1041 (16) - 0000000000875083 [18:27:50]1040 (4) - 112315 [18:27:50]1012 (4) - 22.06.2024 11:00 [18:27:50]1206 (1) - 0 [18:27:50]OFD Sender: Remove packet 112315 [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00112315 [18:27:50]NVStorageDeleteData [18:27:50]Write to MH i2c: 01 00 00 AC 4B F7 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 AC 4B 00 00 00 00 00 EA 0C F4 [18:27:50]RasterBufferAndPrint [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]written 0, free lines is 3312 [18:27:50]MH_Cut [18:27:50]Write to MH i2c: D1 01 00 B3 4B 01 D0 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 01 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 01 00 B3 4B 00 CF [18:27:50]Write to MH i2c: 01 00 00 B4 4B FF [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]OFD Sender: No OFD packet to send [18:27:50]*** Cut start [18:27:50]*** Partial cut [18:27:50]*** CUTSNS_PIN = 1 [18:27:51]*** CUTSNS_PIN = 0 [18:27:51]*** Brake cut motor [18:27:51]Read from MH i2c: 01 [18:27:51]MH_I2C_Read... [18:27:51]*** Stop cut motor [18:27:51]*** Cut end [18:27:51]Read from MH i2c: 01 07 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: 01 07 00 B4 4B 00 00 00 00 00 FF 0F 14 [18:27:51]process_action close_receipt done [18:27:51]requested_data is exist [18:27:51]produce_requested_data [18:27:51]requested_item fm.sn is exist - process it [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 11 00 00 [18:27:51]Write to MH i2c: E2 08 00 B5 4B 80 11 00 00 00 00 00 00 7A [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 17 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 17 00 B5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [18:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:27:51]wFMCommunicate OK [18:27:51]requested_item fd.num is exist - process it [18:27:51]SAM_PROTO_GetFieldsCounters [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 00 00 [18:27:51]Write to MH i2c: E2 08 00 B6 4B 80 13 00 00 00 00 00 00 7D [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 62 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 62 00 B6 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:27:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:51]wFMCommunicate OK [18:27:51]SAM_PROTO_GetFieldsCounters done [18:27:51]requested_item shift.num is exist - process it [18:27:51]requested_item shift.opened is exist - process it [18:27:51]req_shift_opened [18:27:51]FM_GetShiftState [18:27:51]SAM_PROTO_GetShiftState [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 01 00 [18:27:51]Write to MH i2c: E2 08 00 B7 4B 80 13 01 00 00 00 00 00 7F [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 0E 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 0E 00 B7 4B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B4 [18:27:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:27:51]wFMCommunicate OK [18:27:51]SAM_PROTO_GetShiftState done [18:27:51]FM_GetShiftState done [18:27:51]req_shift_opened done [18:27:51]requested_item shift.open_date is exist - process it [18:27:51]req_shift_open_date [18:27:51]req_shift_open_date done [18:27:51]produce_requested_data done [18:27:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112315,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:27:51]process_action_free close_receipt [18:27:51]json_value_free [18:27:51]json_value_free done [18:27:51]process_json_proto returns [18:27:51]Send response to host [18:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112315,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:27:51]free response buf [18:27:51]execute_script done [18:27:51]execute_script returns [18:27:51]free content buf [18:27:51]Sock 9.Close socket [18:27:51]Sock 9.Thread stoped [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:34]accept exits with 7 [18:28:34]New connection [18:28:34]New thread 3066957156 created [18:28:34]Thread 3066813796 joined [18:28:34]Waiting for new connection... [18:28:34] Sock 7.Parse request [18:28:34]Sock 7.Check first char [18:28:34]Sock 7.First char is OK [18:28:34]request: POST /json_proto HTTP/1.0 [18:28:34]Method: POST [18:28:34]URL: /json_proto [18:28:34]Method is POST - this is cgi request [18:28:34]url: /json_proto [18:28:34]query_string will be loaded in cgi processing [18:28:34]execute_cgi json_proto POST (null) [18:28:34]execute_cgi path=json_proto method=POST [18:28:34]POST find Content-Length [18:28:34]Host: 172.17.59.68:8080 [18:28:34]Content-Length: 677 [18:28:34]Content-Type: application/json [18:28:34] [18:28:34]POST finish read [18:28:34]Found Content-Length = 677 [18:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320993", "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.40, "quantity" : 5.280, "sum" : 350.59, "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:28:34]execute_script... [18:28: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)320993", "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.40, "quantity" : 5.280, "sum" : 350.59, "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:28:34]POST & json_proto [18:28:34]process_json_proto [18:28:34]json parsed OK: [18:28:34]protocol is kg_v1.0 [18:28:34]action value=close_receipt [18:28:34]process_action close_receipt [18:28:34]cmd_close_receipt [18:28:34]MH_GetDate [18:28:34]Write to MH i2c: F0 00 00 B8 4B F2 [18:28:34]Write i2c OK [18:28:34]MH_I2C_Read... [18:28:34]Read from MH i2c: F0 [18:28:34]MH_I2C_Read... [18:28:34]Read from MH i2c: F0 09 00 [18:28:34]MH_I2C_Read... [18:28:34]Read from MH i2c: F0 09 00 B8 4B 00 F1 17 77 66 BC EC 60 65 4D [18:28:34]GetLastDocTimeStamp 1719080898 [18:28:34]current date 1719080945 [18:28:34]FM_GetShiftState [18:28:34]SAM_PROTO_GetShiftState [18:28:34]wFMCommunicate request_size=4 [18:28:34]MH_SAM_APDU [18:28:34]CAPDU: 80 13 01 00 [18:28:34]Write to MH i2c: E2 08 00 B9 4B 80 13 01 00 00 00 00 00 81 [18:28:34]Write i2c OK [18:28:34]MH_I2C_Read... [18:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:34]Read from MH i2c: E2 [18:28:34]MH_I2C_Read... [18:28:34]Read from MH i2c: E2 0E 00 [18:28:34]MH_I2C_Read... [18:28:34]Read from MH i2c: E2 0E 00 B9 4B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B6 [18:28:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:28:34]wFMCommunicate OK [18:28:34]SAM_PROTO_GetShiftState done [18:28:34]FM_GetShiftState done [18:28:34]opened in 1719020067 [18:28:34]opened+sec_in_day 1719106467 [18:28:34]quantity*price = 35059 [18:28:34]sum+1 = 35060 [18:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 182 22.06.2024 18:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112316 ФПД: 175517071825665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182905&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112316&fm=175517071825665&tin=02508201610067®Number=0000000000092771&sum=35000 [18:28:35]StoreToDocumentArchive [18:28:35]shift 391 fd 112316 [18:28:35]save to /storage/0391/doc_00112316 [18:28:35]save last doc name /storage/0391/doc_00112316 to /storage/kkm_last_doc_name [18:28:35]save OK [18:28:35]Clear old archive folders... [18:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:35]tlvbuf is 012BB200 [18:28:35]SAM_PROTO_ClearQueue [18:28:35]wFMCommunicate request_size=4 [18:28:35]MH_SAM_APDU [18:28:35]CAPDU: 80 09 00 00 [18:28:35]Write to MH i2c: E2 08 00 C6 4B 80 09 00 00 00 00 00 00 83 [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:35]Read from MH i2c: E2 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 C6 4B 00 90 00 85 [18:28:35]RAPDU: 90 00 [18:28:35]wFMCommunicate OK [18:28:35]SAM_PROTO_ClearQueue done [18:28:35]KKMCreateOFDPacket [18:28:35]OFDProtocolAddRootSTLVToBuf [18:28:35]FM_MakeSignedData [18:28:35]FM_MakeSignedData [18:28:35]SAM_PROTO_SignData [18:28:35]wFMCommunicate request_size=4 [18:28:35]MH_SAM_APDU [18:28:35]CAPDU: 80 0D 01 02 [18:28:35]Write to MH i2c: E2 08 00 C7 4B 80 0D 01 02 00 00 00 00 8B [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:35]Read from MH i2c: E2 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 C7 4B 00 90 00 86 [18:28:35]RAPDU: 90 00 [18:28:35]wFMCommunicate OK [18:28:35]wFMCommunicate request_size=255 [18:28:35]MH_SAM_APDU [18:28: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 B6 00 00 00 F4 03 04 00 F1 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B6 01 00 35 04 06 00 9F [18:28:35]Write to MH i2c: E2 02 01 C8 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 B6 00 00 00 F4 03 04 00 F1 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B6 01 00 35 04 06 00 9F 00 00 52 [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]OFD Sender: No OFD packet to send [18:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:35]Read from MH i2c: E2 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 C8 4B 00 90 00 87 [18:28:35]RAPDU: 90 00 [18:28:35]wFMCommunicate OK [18:28:35]wFMCommunicate request_size=10 [18:28:35]MH_SAM_APDU [18:28:35]CAPDU: 80 0D 02 02 05 A1 C0 B7 DB 01 [18:28:35]Write to MH i2c: E2 0D 00 C9 4B 80 0D 02 02 05 00 A1 C0 B7 DB 01 00 00 8C [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:35]Read from MH i2c: E2 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 03 00 C9 4B 00 90 00 88 [18:28:35]RAPDU: 90 00 [18:28:35]wFMCommunicate OK [18:28:35]wFMCommunicate request_size=4 [18:28:35]MH_SAM_APDU [18:28:35]CAPDU: 80 0D 03 02 [18:28:35]Write to MH i2c: E2 08 00 CA 4B 80 0D 03 02 00 00 00 00 90 [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:35]Read from MH i2c: E2 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 0B 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 0B 00 CA 4B 00 F4 EF 2E E8 E0 F6 B8 EF 90 00 07 [18:28:35]RAPDU: F4 EF 2E E8 E0 F6 B8 EF 90 00 [18:28:35]wFMCommunicate OK [18:28:35]SAM_PROTO_SignData done [18:28:35]FM_MakeSignedData done [18:28:35]CreateOFDProtocolMessage [18:28:35]wFMCommunicate request_size=4 [18:28:35]MH_SAM_APDU [18:28:35]CAPDU: 80 11 00 00 [18:28:35]Write to MH i2c: E2 08 00 CB 4B 80 11 00 00 00 00 00 00 90 [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:35]Read from MH i2c: E2 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 17 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: E2 17 00 CB 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E2 [18:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:28:35]wFMCommunicate OK [18:28:35]CreateOFDProtocolMessage done [18:28:35]OFDSenderStorePacket 112316 [18:28:35]StoreOFDPacket docnum=112316 [18:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 65 07 01 C8 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 B6 00 00 00 F4 03 04 00 F1 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B6 01 00 35 04 06 00 9F A1 C0 B7 DB 01 F4 EF 2E E8 E0 F6 B8 EF [18:28:35]CheckFolder [18:28:35]dirname=/storage/ofd_packets [18:28:35]CheckFolder done [18:28:35]ProducePacketName [18:28:35]name=ofd_packets/00112316 [18:28:35]NVStorageSaveData ofd_packets/00112316 [18:28:35]File name is /storage/ofd_packets/00112316 [18:28:35]Write 301 bytes [18:28:35]NVStorageSaveData done [18:28:35]OFDSenderStorePacket done [18:28:35]KKMCreateOFDPacket done [18:28:35]NVStorageSaveData kkm_last_timestamp [18:28:35]File name is /storage/kkm_last_timestamp [18:28:35]Write 4 bytes [18:28:35]NVStorageSaveData done [18:28:35]ExternCall_PrintAddStr [18:28:35]wPrintStart [18:28:35]Write to MH i2c: 01 00 00 CC 4B 17 [18:28:35]Write i2c OK [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: 01 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: 01 07 00 [18:28:35]MH_I2C_Read... [18:28:35]Read from MH i2c: 01 07 00 CC 4B 00 00 00 00 00 FF 0F 2C [18:28:35]RasterBufferAndPrint [18:28:35]line Счет N : (1)320993 [18:28:35]line ИНН: 02508201610067 [18:28:35]line Контрольно-Кассовый Чек [18:28:35]line ПРОДАЖА [18:28:35]line ТРК (МРК, ГНК) : 11 [18:28:35]line Товар: 2710124130 [18:28:35]line Аи-92-К-5 [18:28:35]line 5.280 * 66.40 [18:28:35]line = 350.59 [18:28:35]line НДС 12% НСП 1% [18:28:35]line > о реализуемом товаре [18:28:35]line ОКРУГЛЕНИЕ: -0.59 [18:28:35]line ИТОГО: 350.00 [18:28:35]line Внесено: 350.00 [18:28:35]line СДАЧА: 0.00 [18:28:35]line НСП 1% : 3.10 [18:28:35]line НДС 12% : 37.23 [18:28:35]line Наличными: 350.00 [18:28:35]line Безнал.: 0.00 [18:28:35]line Место: АЗС № 65 "Партнер Нефть" [18:28:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:28:35]line СНО: Общий режим [18:28:35]line Чек 182 22.06.2024 18:29 [18:28:35]line Смена: 391 ФФД: 1.0 [18:28:35]line ЗНМ: 0300000198 [18:28:35]line РНМ: 0000000000092771 [18:28:35]line Версия ККМ: 001 [18:28:35]line ФМ: 0000000000875083 [18:28:35]line ФД: 112316 [18:28:35]line ФПД: 175517071825665 [18:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T182905&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112316&fm=175517071825665&tin=02508201610067®Number=0000000000092771&sum=35000 [18:28:35]written 0, free lines is 4095 [18:28:35]OFD Sender: Processing packet 112316 [packets to send 38, broken 37] [18:28:35]ProducePacketName [18:28:35]name=ofd_packets/00112316 [18:28:35]OFD Sender: To server: pG, [18:28:35]CommunicateWithHost lk.salyk.kg:30040 [18:28:35]ConnectInit lk.salyk.kg [18:28:35]Connected sock=10 [18:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 65 07 01 C8 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 B6 00 00 00 F4 03 04 00 F1 17 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B6 01 00 35 04 06 00 9F A1 C0 B7 DB 01 F4 EF 2E E8 E0 F6 B8 EF [18:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0D AA 47 00 AD CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B6 01 00 F4 03 04 00 F5 AE 76 66 B6 04 01 00 00 B1 60 46 2B 16 C7 06 F5 [18:28:36]CommunicateWithHost err = 0 [18:28:36]CheckOFDResponse [18:28:36]1017 (14) - 77093643461234 [18:28:36]1041 (16) - 0000000000875083 [18:28:36]1040 (4) - 112316 [18:28:36]1012 (4) - 22.06.2024 11:01 [18:28:36]1206 (1) - 0 [18:28:36]OFD Sender: Remove packet 112316 [18:28:36]ProducePacketName [18:28:36]name=ofd_packets/00112316 [18:28:36]NVStorageDeleteData [18:28:36]Write to MH i2c: 01 00 00 F7 4B 42 [18:28:36]Write i2c OK [18:28:36]MH_I2C_Read... [18:28:36]Read from MH i2c: 01 [18:28:36]MH_I2C_Read... [18:28:36]Read from MH i2c: 01 07 00 [18:28:36]MH_I2C_Read... [18:28:36]Read from MH i2c: 01 07 00 F7 4B 00 00 00 00 00 E6 0C 3B [18:28:36]RasterBufferAndPrint [18:28:36]line [18:28:36]line [18:28:36]line [18:28:36]line [18:28:36]line [18:28:36]written 0, free lines is 3309 [18:28:36]MH_Cut [18:28:36]Write to MH i2c: D1 01 00 FE 4B 01 1B [18:28:36]Write i2c OK [18:28:36]MH_I2C_Read... [18:28:36]Read from MH i2c: D1 [18:28:36]MH_I2C_Read... [18:28:36]Read from MH i2c: D1 01 00 [18:28:36]MH_I2C_Read... [18:28:36]Read from MH i2c: D1 01 00 FE 4B 00 1A [18:28:36]Write to MH i2c: 01 00 00 FF 4B 4A [18:28:36]Write i2c OK [18:28:36]MH_I2C_Read... [18:28:36]OFD Sender: No OFD packet to send [18:28:37]*** Cut start [18:28:37]*** Partial cut [18:28:37]*** CUTSNS_PIN = 1 [18:28:37]*** CUTSNS_PIN = 0 [18:28:37]*** Brake cut motor [18:28:37]Read from MH i2c: 01 [18:28:37]MH_I2C_Read... [18:28:37]*** Stop cut motor [18:28:37]*** Cut end [18:28:37]Read from MH i2c: 01 07 00 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: 01 07 00 FF 4B 00 00 00 00 00 FF 0F 5F [18:28:37]process_action close_receipt done [18:28:37]requested_data is exist [18:28:37]produce_requested_data [18:28:37]requested_item fm.sn is exist - process it [18:28:37]wFMCommunicate request_size=4 [18:28:37]MH_SAM_APDU [18:28:37]CAPDU: 80 11 00 00 [18:28:37]Write to MH i2c: E2 08 00 00 4C 80 11 00 00 00 00 00 00 C6 [18:28:37]Write i2c OK [18:28:37]MH_I2C_Read... [18:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:37]Read from MH i2c: E2 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: E2 17 00 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: E2 17 00 00 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [18:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:28:37]wFMCommunicate OK [18:28:37]requested_item fd.num is exist - process it [18:28:37]SAM_PROTO_GetFieldsCounters [18:28:37]wFMCommunicate request_size=4 [18:28:37]MH_SAM_APDU [18:28:37]CAPDU: 80 13 00 00 [18:28:37]Write to MH i2c: E2 08 00 01 4C 80 13 00 00 00 00 00 00 C9 [18:28:37]Write i2c OK [18:28:37]MH_I2C_Read... [18:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:37]Read from MH i2c: E2 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: E2 62 00 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: E2 62 00 01 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [18:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:37]wFMCommunicate OK [18:28:37]SAM_PROTO_GetFieldsCounters done [18:28:37]requested_item shift.num is exist - process it [18:28:37]requested_item shift.opened is exist - process it [18:28:37]req_shift_opened [18:28:37]FM_GetShiftState [18:28:37]SAM_PROTO_GetShiftState [18:28:37]wFMCommunicate request_size=4 [18:28:37]MH_SAM_APDU [18:28:37]CAPDU: 80 13 01 00 [18:28:37]Write to MH i2c: E2 08 00 02 4C 80 13 01 00 00 00 00 00 CB [18:28:37]Write i2c OK [18:28:37]MH_I2C_Read... [18:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:37]Read from MH i2c: E2 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: E2 0E 00 [18:28:37]MH_I2C_Read... [18:28:37]Read from MH i2c: E2 0E 00 02 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 00 [18:28:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:28:37]wFMCommunicate OK [18:28:37]SAM_PROTO_GetShiftState done [18:28:37]FM_GetShiftState done [18:28:37]req_shift_opened done [18:28:37]requested_item shift.open_date is exist - process it [18:28:37]req_shift_open_date [18:28:37]req_shift_open_date done [18:28:37]produce_requested_data done [18:28:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112316,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:28:37]process_action_free close_receipt [18:28:37]json_value_free [18:28:37]json_value_free done [18:28:37]process_json_proto returns [18:28:37]Send response to host [18:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112316,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:28:37]free response buf [18:28:37]execute_script done [18:28:37]execute_script returns [18:28:37]free content buf [18:28:37]Sock 7.Close socket [18:28:37]Sock 7.Thread stoped [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:43]accept exits with 9 [18:30:43]New connection [18:30:43]New thread 3066813796 created [18:30:43]Thread 3066957156 joined [18:30:43]Waiting for new connection... [18:30:43] Sock 9.Parse request [18:30:43]Sock 9.Check first char [18:30:43]Sock 9.First char is OK [18:30:43]request: POST /json_proto HTTP/1.0 [18:30:43]Method: POST [18:30:43]URL: /json_proto [18:30:43]Method is POST - this is cgi request [18:30:43]url: /json_proto [18:30:43]query_string will be loaded in cgi processing [18:30:43]execute_cgi json_proto POST (null) [18:30:43]execute_cgi path=json_proto method=POST [18:30:43]POST find Content-Length [18:30:43]Host: 172.17.59.68:8080 [18:30:43]Content-Length: 808 [18:30:43]Content-Type: application/json [18:30:43] [18:30:43]POST finish read [18:30:43]Found Content-Length = 808 [18:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320994", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:43]execute_script... [18:30: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)320994", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:43]POST & json_proto [18:30:43]process_json_proto [18:30:43]json parsed OK: [18:30:43]protocol is kg_v1.0 [18:30:43]action value=close_receipt [18:30:43]process_action close_receipt [18:30:43]cmd_close_receipt [18:30:43]MH_GetDate [18:30:43]Write to MH i2c: F0 00 00 03 4C 3E [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: F0 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: F0 09 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: F0 09 00 03 4C 00 72 18 77 66 BC EC 60 65 1B [18:30:43]GetLastDocTimeStamp 1719080945 [18:30:43]current date 1719081074 [18:30:43]FM_GetShiftState [18:30:43]SAM_PROTO_GetShiftState [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 01 00 [18:30:43]Write to MH i2c: E2 08 00 04 4C 80 13 01 00 00 00 00 00 CD [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 04 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 02 [18:30:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetShiftState done [18:30:43]FM_GetShiftState done [18:30:43]opened in 1719020067 [18:30:43]opened+sec_in_day 1719106467 [18:30:43]quantity*price = 100064 [18:30:43]sum+1 = 100066 [18:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 183 22.06.2024 18:31 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112317 ФПД: 69826200291712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T183114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112317&fm=69826200291712&tin=02508201610067®Number=0000000000092771&sum=100065 [18:30:44]StoreToDocumentArchive [18:30:44]shift 391 fd 112317 [18:30:44]save to /storage/0391/doc_00112317 [18:30:44]save last doc name /storage/0391/doc_00112317 to /storage/kkm_last_doc_name [18:30:44]save OK [18:30:44]Clear old archive folders... [18:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:44]tlvbuf is 011854E0 [18:30:44]SAM_PROTO_ClearQueue [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 09 00 00 [18:30:44]Write to MH i2c: E2 08 00 11 4C 80 09 00 00 00 00 00 00 CF [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 11 4C 00 90 00 D1 [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]SAM_PROTO_ClearQueue done [18:30:44]KKMCreateOFDPacket [18:30:44]OFDProtocolAddRootSTLVToBuf [18:30:44]FM_MakeSignedData [18:30:44]FM_MakeSignedData [18:30:44]SAM_PROTO_SignData [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 01 02 [18:30:44]Write to MH i2c: E2 08 00 12 4C 80 0D 01 02 00 00 00 00 D7 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 12 4C 00 90 00 D2 [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=255 [18:30:44]MH_SAM_APDU [18:30: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B6 01 00 35 04 06 00 3F [18:30:44]Write to MH i2c: E2 02 01 13 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B6 01 00 35 04 06 00 3F 00 00 B6 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 13 4C 00 90 00 D3 [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=10 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 02 02 05 81 AD DD 49 80 [18:30:44]Write to MH i2c: E2 0D 00 14 4C 80 0D 02 02 05 00 81 AD DD 49 80 00 00 B8 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 03 00 14 4C 00 90 00 D4 [18:30:45]RAPDU: 90 00 [18:30:45]wFMCommunicate OK [18:30:45]wFMCommunicate request_size=4 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 0D 03 02 [18:30:45]Write to MH i2c: E2 08 00 15 4C 80 0D 03 02 00 00 00 00 DC [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 0B 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 0B 00 15 4C 00 1A 9D 51 AD 5F 21 E5 DD 90 00 D4 [18:30:45]RAPDU: 1A 9D 51 AD 5F 21 E5 DD 90 00 [18:30:45]wFMCommunicate OK [18:30:45]SAM_PROTO_SignData done [18:30:45]FM_MakeSignedData done [18:30:45]CreateOFDProtocolMessage [18:30:45]wFMCommunicate request_size=4 [18:30:45]MH_SAM_APDU [18:30:45]CAPDU: 80 11 00 00 [18:30:45]Write to MH i2c: E2 08 00 16 4C 80 11 00 00 00 00 00 00 DC [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:45]Read from MH i2c: E2 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 17 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: E2 17 00 16 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [18:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:30:45]wFMCommunicate OK [18:30:45]CreateOFDProtocolMessage done [18:30:45]OFDSenderStorePacket 112317 [18:30:45]StoreOFDPacket docnum=112317 [18:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 80 07 01 51 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B6 01 00 35 04 06 00 3F 81 AD DD 49 80 1A 9D 51 AD 5F 21 E5 DD [18:30:45]CheckFolder [18:30:45]dirname=/storage/ofd_packets [18:30:45]CheckFolder done [18:30:45]ProducePacketName [18:30:45]name=ofd_packets/00112317 [18:30:45]NVStorageSaveData ofd_packets/00112317 [18:30:45]File name is /storage/ofd_packets/00112317 [18:30:45]Write 301 bytes [18:30:45]NVStorageSaveData done [18:30:45]OFDSenderStorePacket done [18:30:45]KKMCreateOFDPacket done [18:30:45]NVStorageSaveData kkm_last_timestamp [18:30:45]File name is /storage/kkm_last_timestamp [18:30:45]Write 4 bytes [18:30:45]NVStorageSaveData done [18:30:45]ExternCall_PrintAddStr [18:30:45]wPrintStart [18:30:45]Write to MH i2c: 01 00 00 17 4C 63 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 17 4C 00 00 00 00 00 FF 0F 78 [18:30:45]RasterBufferAndPrint [18:30:45]line Счет N : (1)320994 [18:30:45]line ИНН: 02508201610067 [18:30:45]line Контрольно-Кассовый Чек [18:30:45]line ПРОДАЖА [18:30:45]line ТРК (МРК, ГНК) : 11 [18:30:45]line Товар: 2710124130 [18:30:45]line Аи-92-К-5 [18:30:45]line 15.070 * 66.40 [18:30:45]line = 1000.65 [18:30:45]line НДС 12% НСП 1% [18:30:45]line > о реализуемом товаре [18:30:45]line ИТОГО: 1000.65 [18:30:45]line НСП 1% : 8.85 [18:30:45]line НДС 12% : 106.26 [18:30:45]line Наличными: 0.00 [18:30:45]line Безнал.: 1000.65 [18:30:45]line Место: АЗС № 65 "Партнер Нефть" [18:30:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:30:45]line СНО: Общий режим [18:30:45]line Чек 183 22.06.2024 18:31 [18:30:45]line Смена: 391 ФФД: 1.0 [18:30:45]line ЗНМ: 0300000198 [18:30:45]line РНМ: 0000000000092771 [18:30:45]line Версия ККМ: 001 [18:30:45]line Платежная система: О! деньги [18:30:45]line ФМ: 0000000000875083 [18:30:45]line ФД: 112317 [18:30:45]line ФПД: 69826200291712 [18:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T183114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112317&fm=69826200291712&tin=02508201610067®Number=0000000000092771&sum=100065 [18:30:45]OFD Sender: Processing packet 112317 [packets to send 38, broken 37] [18:30:45]ProducePacketName [18:30:45]name=ofd_packets/00112317 [18:30:45]OFD Sender: To server: pG, [18:30:45]CommunicateWithHost lk.salyk.kg:30040 [18:30:45]ConnectInit lk.salyk.kg [18:30:45]written 0, free lines is 4095 [18:30:45]Connected sock=10 [18:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 80 07 01 51 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 72 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B6 01 00 35 04 06 00 3F 81 AD DD 49 80 1A 9D 51 AD 5F 21 E5 DD [18:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7E 68 47 00 31 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B6 01 00 F4 03 04 00 77 AF 76 66 B6 04 01 00 00 50 F9 01 BE 0B 3F A8 DC [18:30:45]CommunicateWithHost err = 0 [18:30:45]CheckOFDResponse [18:30:45]1017 (14) - 77093643461234 [18:30:45]1041 (16) - 0000000000875083 [18:30:45]1040 (4) - 112317 [18:30:45]1012 (4) - 22.06.2024 11:03 [18:30:45]1206 (1) - 0 [18:30:45]OFD Sender: Remove packet 112317 [18:30:45]ProducePacketName [18:30:45]name=ofd_packets/00112317 [18:30:45]NVStorageDeleteData [18:30:45]Write to MH i2c: 01 00 00 41 4C 8D [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 41 4C 00 00 00 00 00 F2 0C 92 [18:30:45]RasterBufferAndPrint [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]written 0, free lines is 3320 [18:30:45]MH_Cut [18:30:45]Write to MH i2c: D1 01 00 48 4C 01 66 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 01 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 01 00 48 4C 00 65 [18:30:45]Write to MH i2c: 01 00 00 49 4C 95 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:46]OFD Sender: No OFD packet to send [18:30:46]*** Cut start [18:30:46]*** Partial cut [18:30:46]*** CUTSNS_PIN = 1 [18:30:46]*** CUTSNS_PIN = 0 [18:30:46]*** Brake cut motor [18:30:47]Read from MH i2c: 01 [18:30:47]MH_I2C_Read... [18:30:47]*** Stop cut motor [18:30:47]*** Cut end [18:30:47]Read from MH i2c: 01 07 00 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: 01 07 00 49 4C 00 00 00 00 00 FF 0F AA [18:30:47]process_action close_receipt done [18:30:47]requested_data is exist [18:30:47]produce_requested_data [18:30:47]requested_item fm.sn is exist - process it [18:30:47]wFMCommunicate request_size=4 [18:30:47]MH_SAM_APDU [18:30:47]CAPDU: 80 11 00 00 [18:30:47]Write to MH i2c: E2 08 00 4A 4C 80 11 00 00 00 00 00 00 10 [18:30:47]Write i2c OK [18:30:47]MH_I2C_Read... [18:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:47]Read from MH i2c: E2 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 17 00 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 17 00 4A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 62 [18:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:30:47]wFMCommunicate OK [18:30:47]requested_item fd.num is exist - process it [18:30:47]SAM_PROTO_GetFieldsCounters [18:30:47]wFMCommunicate request_size=4 [18:30:47]MH_SAM_APDU [18:30:47]CAPDU: 80 13 00 00 [18:30:47]Write to MH i2c: E2 08 00 4B 4C 80 13 00 00 00 00 00 00 13 [18:30:47]Write i2c OK [18:30:47]MH_I2C_Read... [18:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:47]Read from MH i2c: E2 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 62 00 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 62 00 4B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [18:30:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:47]wFMCommunicate OK [18:30:47]SAM_PROTO_GetFieldsCounters done [18:30:47]requested_item shift.num is exist - process it [18:30:47]requested_item shift.opened is exist - process it [18:30:47]req_shift_opened [18:30:47]FM_GetShiftState [18:30:47]SAM_PROTO_GetShiftState [18:30:47]wFMCommunicate request_size=4 [18:30:47]MH_SAM_APDU [18:30:47]CAPDU: 80 13 01 00 [18:30:47]Write to MH i2c: E2 08 00 4C 4C 80 13 01 00 00 00 00 00 15 [18:30:47]Write i2c OK [18:30:47]MH_I2C_Read... [18:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:47]Read from MH i2c: E2 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 0E 00 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 0E 00 4C 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4A [18:30:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:30:47]wFMCommunicate OK [18:30:47]SAM_PROTO_GetShiftState done [18:30:47]FM_GetShiftState done [18:30:47]req_shift_opened done [18:30:47]requested_item shift.open_date is exist - process it [18:30:47]req_shift_open_date [18:30:47]req_shift_open_date done [18:30:47]produce_requested_data done [18:30:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112317,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:30:47]process_action_free close_receipt [18:30:47]json_value_free [18:30:47]json_value_free done [18:30:47]process_json_proto returns [18:30:47]Send response to host [18:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112317,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:30:47]free response buf [18:30:47]execute_script done [18:30:47]execute_script returns [18:30:47]free content buf [18:30:47]Sock 9.Close socket [18:30:47]Sock 9.Thread stoped [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]accept exits with 7 [18:32:21]New connection [18:32:21]New thread 3066957156 created [18:32:21]Thread 3066813796 joined [18:32:21]Waiting for new connection... [18:32:21] Sock 7.Parse request [18:32:21]Sock 7.Check first char [18:32:21]Sock 7.First char is OK [18:32:21]request: POST /json_proto HTTP/1.0 [18:32:21]Method: POST [18:32:21]URL: /json_proto [18:32:21]Method is POST - this is cgi request [18:32:21]url: /json_proto [18:32:21]query_string will be loaded in cgi processing [18:32:21]execute_cgi json_proto POST (null) [18:32:21]execute_cgi path=json_proto method=POST [18:32:21]POST find Content-Length [18:32:21]Host: 172.17.59.68:8080 [18:32:21]Content-Length: 682 [18:32:21]Content-Type: application/json [18:32:21] [18:32:21]POST finish read [18:32:21]Found Content-Length = 682 [18:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320995", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:21]execute_script... [18: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)320995", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:21]POST & json_proto [18:32:21]process_json_proto [18:32:21]json parsed OK: [18:32:21]protocol is kg_v1.0 [18:32:21]action value=close_receipt [18:32:21]process_action close_receipt [18:32:21]cmd_close_receipt [18:32:21]MH_GetDate [18:32:21]Write to MH i2c: F0 00 00 4D 4C 88 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: F0 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: F0 09 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: F0 09 00 4D 4C 00 D4 18 77 66 BC EC 60 65 C7 [18:32:21]GetLastDocTimeStamp 1719081074 [18:32:21]current date 1719081172 [18:32:21]FM_GetShiftState [18:32:21]SAM_PROTO_GetShiftState [18:32:21]wFMCommunicate request_size=4 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 13 01 00 [18:32:21]Write to MH i2c: E2 08 00 4E 4C 80 13 01 00 00 00 00 00 17 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 0E 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 0E 00 4E 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4C [18:32:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:32:21]wFMCommunicate OK [18:32:21]SAM_PROTO_GetShiftState done [18:32:21]FM_GetShiftState done [18:32:21]opened in 1719020067 [18:32:21]opened+sec_in_day 1719106467 [18:32:21]quantity*price = 100064 [18:32:21]sum+1 = 100066 [18:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 184 22.06.2024 18:32 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112318 ФПД: 134590652282055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T183252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112318&fm=134590652282055&tin=02508201610067®Number=0000000000092771&sum=100000 [18:32:22]StoreToDocumentArchive [18:32:22]shift 391 fd 112318 [18:32:22]save to /storage/0391/doc_00112318 [18:32:22]save last doc name /storage/0391/doc_00112318 to /storage/kkm_last_doc_name [18:32:22]save OK [18:32:22]Clear old archive folders... [18:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:22]tlvbuf is 012C24F0 [18:32:22]SAM_PROTO_ClearQueue [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 09 00 00 [18:32:22]Write to MH i2c: E2 08 00 5B 4C 80 09 00 00 00 00 00 00 19 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 5B 4C 00 90 00 1B [18:32:22]RAPDU: 90 00 [18:32:22]wFMCommunicate OK [18:32:22]SAM_PROTO_ClearQueue done [18:32:22]KKMCreateOFDPacket [18:32:22]OFDProtocolAddRootSTLVToBuf [18:32:22]FM_MakeSignedData [18:32:22]FM_MakeSignedData [18:32:22]SAM_PROTO_SignData [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 0D 01 02 [18:32:22]Write to MH i2c: E2 08 00 5C 4C 80 0D 01 02 00 00 00 00 21 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 5C 4C 00 90 00 1C [18:32:22]RAPDU: 90 00 [18:32:22]wFMCommunicate OK [18:32:22]wFMCommunicate request_size=255 [18:32:22]MH_SAM_APDU [18:32: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 D4 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B6 01 00 35 04 06 00 7A [18:32:22]Write to MH i2c: E2 02 01 5D 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 D4 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B6 01 00 35 04 06 00 7A 00 00 1D [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 5D 4C 00 90 00 1D [18:32:22]RAPDU: 90 00 [18:32:22]wFMCommunicate OK [18:32:22]wFMCommunicate request_size=10 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 0D 02 02 05 68 D4 04 F4 C7 [18:32:22]Write to MH i2c: E2 0D 00 5E 4C 80 0D 02 02 05 00 68 D4 04 F4 C7 00 00 29 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 5E 4C 00 90 00 1E [18:32:22]RAPDU: 90 00 [18:32:22]wFMCommunicate OK [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 0D 03 02 [18:32:22]Write to MH i2c: E2 08 00 5F 4C 80 0D 03 02 00 00 00 00 26 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 0B 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 0B 00 5F 4C 00 59 DD 86 DF 01 CF 46 BF 90 00 97 [18:32:22]RAPDU: 59 DD 86 DF 01 CF 46 BF 90 00 [18:32:22]wFMCommunicate OK [18:32:22]SAM_PROTO_SignData done [18:32:22]FM_MakeSignedData done [18:32:22]CreateOFDProtocolMessage [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 11 00 00 [18:32:22]Write to MH i2c: E2 08 00 60 4C 80 11 00 00 00 00 00 00 26 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 17 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 17 00 60 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 78 [18:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:32:22]wFMCommunicate OK [18:32:22]CreateOFDProtocolMessage done [18:32:22]OFDSenderStorePacket 112318 [18:32:22]StoreOFDPacket docnum=112318 [18:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 70 07 01 1C 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 D4 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B6 01 00 35 04 06 00 7A 68 D4 04 F4 C7 59 DD 86 DF 01 CF 46 BF [18:32:22]CheckFolder [18:32:22]dirname=/storage/ofd_packets [18:32:22]CheckFolder done [18:32:22]ProducePacketName [18:32:22]name=ofd_packets/00112318 [18:32:22]NVStorageSaveData ofd_packets/00112318 [18:32:22]File name is /storage/ofd_packets/00112318 [18:32:22]Write 301 bytes [18:32:22]NVStorageSaveData done [18:32:22]OFDSenderStorePacket done [18:32:22]KKMCreateOFDPacket done [18:32:22]NVStorageSaveData kkm_last_timestamp [18:32:22]File name is /storage/kkm_last_timestamp [18:32:22]Write 4 bytes [18:32:22]NVStorageSaveData done [18:32:22]ExternCall_PrintAddStr [18:32:22]wPrintStart [18:32:22]Write to MH i2c: 01 00 00 61 4C AD [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: 01 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: 01 07 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: 01 07 00 61 4C 00 00 00 00 00 FF 0F C2 [18:32:22]RasterBufferAndPrint [18:32:22]line Счет N : (1)320995 [18:32:22]line ИНН: 02508201610067 [18:32:22]line Контрольно-Кассовый Чек [18:32:22]line ПРОДАЖА [18:32:22]line ТРК (МРК, ГНК) : 11 [18:32:22]line Товар: 2710124130 [18:32:22]line Аи-92-К-5 [18:32:22]line 15.070 * 66.40 [18:32:22]line = 1000.65 [18:32:22]line НДС 12% НСП 1% [18:32:22]line > о реализуемом товаре [18:32:22]line ОКРУГЛЕНИЕ: -0.65 [18:32:22]line ИТОГО: 1000.00 [18:32:22]line Внесено: 1000.00 [18:32:22]line СДАЧА: 0.00 [18:32:22]line НСП 1% : 8.85 [18:32:22]line НДС 12% : 106.26 [18:32:22]line Наличными: 1000.00 [18:32:22]line Безнал.: 0.00 [18:32:22]line Место: АЗС № 65 "Партнер Нефть" [18:32:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:32:22]line СНО: Общий режим [18:32:22]line Чек 184 22.06.2024 18:32 [18:32:22]line Смена: 391 ФФД: 1.0 [18:32:22]line ЗНМ: 0300000198 [18:32:22]line РНМ: 0000000000092771 [18:32:22]line Версия ККМ: 001 [18:32:22]line ФМ: 0000000000875083 [18:32:22]line ФД: 112318 [18:32:22]line ФПД: 134590652282055 [18:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T183252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112318&fm=134590652282055&tin=02508201610067®Number=0000000000092771&sum=100000 [18:32:23]OFD Sender: Processing packet 112318 [packets to send 38, broken 37] [18:32:23]ProducePacketName [18:32:23]name=ofd_packets/00112318 [18:32:23]OFD Sender: To server: pG, [18:32:23]CommunicateWithHost lk.salyk.kg:30040 [18:32:23]ConnectInit lk.salyk.kg [18:32:23]written 0, free lines is 4095 [18:32:23]Connected sock=10 [18:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 70 07 01 1C 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 D4 18 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B6 01 00 35 04 06 00 7A 68 D4 04 F4 C7 59 DD 86 DF 01 CF 46 BF [18:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DB 57 47 00 98 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B6 01 00 F4 03 04 00 D9 AF 76 66 B6 04 01 00 00 5A 67 65 D9 D3 C5 CB D2 [18:32:23]CommunicateWithHost err = 0 [18:32:23]CheckOFDResponse [18:32:23]1017 (14) - 77093643461234 [18:32:23]1041 (16) - 0000000000875083 [18:32:23]1040 (4) - 112318 [18:32:23]1012 (4) - 22.06.2024 11:04 [18:32:23]1206 (1) - 0 [18:32:23]OFD Sender: Remove packet 112318 [18:32:23]ProducePacketName [18:32:23]name=ofd_packets/00112318 [18:32:23]NVStorageDeleteData [18:32:23]Write to MH i2c: 01 00 00 8C 4C D8 [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: 01 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: 01 07 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: 01 07 00 8C 4C 00 00 00 00 00 EE 0C D9 [18:32:23]RasterBufferAndPrint [18:32:23]line [18:32:23]line [18:32:23]line [18:32:23]line [18:32:23]line [18:32:23]written 0, free lines is 3316 [18:32:23]MH_Cut [18:32:23]Write to MH i2c: D1 01 00 93 4C 01 B1 [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: D1 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: D1 01 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: D1 01 00 93 4C 00 B0 [18:32:23]Write to MH i2c: 01 00 00 94 4C E0 [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]OFD Sender: No OFD packet to send [18:32:24]*** Cut start [18:32:24]*** Partial cut [18:32:24]*** CUTSNS_PIN = 1 [18:32:24]*** CUTSNS_PIN = 0 [18:32:24]*** Brake cut motor [18:32:24]Read from MH i2c: 01 [18:32:24]MH_I2C_Read... [18:32:24]*** Stop cut motor [18:32:24]*** Cut end [18:32:24]Read from MH i2c: 01 07 00 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: 01 07 00 94 4C 00 00 00 00 00 FF 0F F5 [18:32:24]process_action close_receipt done [18:32:24]requested_data is exist [18:32:24]produce_requested_data [18:32:24]requested_item fm.sn is exist - process it [18:32:24]wFMCommunicate request_size=4 [18:32:24]MH_SAM_APDU [18:32:24]CAPDU: 80 11 00 00 [18:32:24]Write to MH i2c: E2 08 00 95 4C 80 11 00 00 00 00 00 00 5B [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:24]Read from MH i2c: E2 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: E2 17 00 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: E2 17 00 95 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [18:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:32:24]wFMCommunicate OK [18:32:24]requested_item fd.num is exist - process it [18:32:24]SAM_PROTO_GetFieldsCounters [18:32:24]wFMCommunicate request_size=4 [18:32:24]MH_SAM_APDU [18:32:24]CAPDU: 80 13 00 00 [18:32:24]Write to MH i2c: E2 08 00 96 4C 80 13 00 00 00 00 00 00 5E [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 62 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 62 00 96 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [18:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_GetFieldsCounters done [18:32:25]requested_item shift.num is exist - process it [18:32:25]requested_item shift.opened is exist - process it [18:32:25]req_shift_opened [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 97 4C 80 13 01 00 00 00 00 00 60 [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 97 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 95 [18:32:25]RAPDU: 09 00 01 23 2A 76 66 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]req_shift_opened done [18:32:25]requested_item shift.open_date is exist - process it [18:32:25]req_shift_open_date [18:32:25]req_shift_open_date done [18:32:25]produce_requested_data done [18:32:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112318,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:32:25]process_action_free close_receipt [18:32:25]json_value_free [18:32:25]json_value_free done [18:32:25]process_json_proto returns [18:32:25]Send response to host [18:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112318,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:32:25]free response buf [18:32:25]execute_script done [18:32:25]execute_script returns [18:32:25]free content buf [18:32:25]Sock 7.Close socket [18:32:25]Sock 7.Thread stoped [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [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]accept exits with 9 [18:36:29]New connection [18:36:29]New thread 3066813796 created [18:36:29]Thread 3066957156 joined [18:36:29]Waiting for new connection... [18:36:29] Sock 9.Parse request [18:36:29]Sock 9.Check first char [18:36:29]Sock 9.First char is OK [18:36:29]request: POST /json_proto HTTP/1.0 [18:36:29]Method: POST [18:36:29]URL: /json_proto [18:36:29]Method is POST - this is cgi request [18:36:29]url: /json_proto [18:36:29]query_string will be loaded in cgi processing [18:36:29]execute_cgi json_proto POST (null) [18:36:29]execute_cgi path=json_proto method=POST [18:36:29]POST find Content-Length [18:36:29]Host: 172.17.59.68:8080 [18:36:29]Content-Length: 677 [18:36:29]Content-Type: application/json [18:36:29] [18:36:29]POST finish read [18:36:29]Found Content-Length = 677 [18:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320996", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:29]execute_script... [18: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)320996", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:29]POST & json_proto [18:36:29]process_json_proto [18:36:29]json parsed OK: [18:36:29]protocol is kg_v1.0 [18:36:29]action value=close_receipt [18:36:29]process_action close_receipt [18:36:29]cmd_close_receipt [18:36:29]MH_GetDate [18:36:29]Write to MH i2c: F0 00 00 98 4C D3 [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 09 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 09 00 98 4C 00 CC 19 77 66 BC EC 60 65 0B [18:36:29]GetLastDocTimeStamp 1719081172 [18:36:29]current date 1719081420 [18:36:29]FM_GetShiftState [18:36:29]SAM_PROTO_GetShiftState [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 13 01 00 [18:36:29]Write to MH i2c: E2 08 00 99 4C 80 13 01 00 00 00 00 00 62 [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:29]Read from MH i2c: E2 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 0E 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 0E 00 99 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 97 [18:36:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:36:29]wFMCommunicate OK [18:36:29]SAM_PROTO_GetShiftState done [18:36:29]FM_GetShiftState done [18:36:29]opened in 1719020067 [18:36:29]opened+sec_in_day 1719106467 [18:36:29]quantity*price = 50065 [18:36:29]sum+1 = 50067 [18:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 185 22.06.2024 18:37 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112319 ФПД: 248742857679396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T183700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112319&fm=248742857679396&tin=02508201610067®Number=0000000000092771&sum=50000 [18:36:30]StoreToDocumentArchive [18:36:30]shift 391 fd 112319 [18:36:30]save to /storage/0391/doc_00112319 [18:36:30]save last doc name /storage/0391/doc_00112319 to /storage/kkm_last_doc_name [18:36:30]save OK [18:36:30]Clear old archive folders... [18:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:30]tlvbuf is 011D1110 [18:36:30]SAM_PROTO_ClearQueue [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 09 00 00 [18:36:30]Write to MH i2c: E2 08 00 A6 4C 80 09 00 00 00 00 00 00 64 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 A6 4C 00 90 00 66 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_ClearQueue done [18:36:30]KKMCreateOFDPacket [18:36:30]OFDProtocolAddRootSTLVToBuf [18:36:30]FM_MakeSignedData [18:36:30]FM_MakeSignedData [18:36:30]SAM_PROTO_SignData [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 01 02 [18:36:30]Write to MH i2c: E2 08 00 A7 4C 80 0D 01 02 00 00 00 00 6C [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 A7 4C 00 90 00 67 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=255 [18:36:30]MH_SAM_APDU [18:36: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CC 19 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B6 01 00 35 04 06 00 E2 [18:36:30]Write to MH i2c: E2 02 01 A8 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CC 19 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B6 01 00 35 04 06 00 E2 00 00 7B [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 A8 4C 00 90 00 68 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=10 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 02 02 05 3A F5 AC 22 24 [18:36:30]Write to MH i2c: E2 0D 00 A9 4C 80 0D 02 02 05 00 3A F5 AC 22 24 00 00 9A [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 A9 4C 00 90 00 69 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 03 02 [18:36:30]Write to MH i2c: E2 08 00 AA 4C 80 0D 03 02 00 00 00 00 71 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0B 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0B 00 AA 4C 00 DD 83 76 E8 FD 78 F9 FA 90 00 98 [18:36:30]RAPDU: DD 83 76 E8 FD 78 F9 FA 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_SignData done [18:36:30]FM_MakeSignedData done [18:36:30]CreateOFDProtocolMessage [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 11 00 00 [18:36:30]Write to MH i2c: E2 08 00 AB 4C 80 11 00 00 00 00 00 00 71 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 AB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C3 [18:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:36:30]wFMCommunicate OK [18:36:30]CreateOFDProtocolMessage done [18:36:30]OFDSenderStorePacket 112319 [18:36:30]StoreOFDPacket docnum=112319 [18:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB A3 07 01 5F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CC 19 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B6 01 00 35 04 06 00 E2 3A F5 AC 22 24 DD 83 76 E8 FD 78 F9 FA [18:36:30]CheckFolder [18:36:30]dirname=/storage/ofd_packets [18:36:30]CheckFolder done [18:36:30]ProducePacketName [18:36:30]name=ofd_packets/00112319 [18:36:30]NVStorageSaveData ofd_packets/00112319 [18:36:30]File name is /storage/ofd_packets/00112319 [18:36:30]Write 301 bytes [18:36:30]NVStorageSaveData done [18:36:30]OFDSenderStorePacket done [18:36:30]KKMCreateOFDPacket done [18:36:30]NVStorageSaveData kkm_last_timestamp [18:36:30]File name is /storage/kkm_last_timestamp [18:36:30]Write 4 bytes [18:36:30]NVStorageSaveData done [18:36:30]ExternCall_PrintAddStr [18:36:30]wPrintStart [18:36:30]Write to MH i2c: 01 00 00 AC 4C F8 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 AC 4C 00 00 00 00 00 FF 0F 0D [18:36:30]RasterBufferAndPrint [18:36:30]line Счет N : (1)320996 [18:36:30]line ИНН: 02508201610067 [18:36:30]line Контрольно-Кассовый Чек [18:36:30]line ПРОДАЖА [18:36:30]line ТРК (МРК, ГНК) : 11 [18:36:30]line Товар: 2710124130 [18:36:30]line Аи-92-К-5 [18:36:30]line 7.540 * 66.40 [18:36:30]line = 500.66 [18:36:30]line НДС 12% НСП 1% [18:36:30]line > о реализуемом товаре [18:36:30]line ОКРУГЛЕНИЕ: -0.66 [18:36:30]line ИТОГО: 500.00 [18:36:30]line Внесено: 500.00 [18:36:30]line СДАЧА: 0.00 [18:36:30]line НСП 1% : 4.43 [18:36:30]line НДС 12% : 53.17 [18:36:30]line Наличными: 500.00 [18:36:30]line Безнал.: 0.00 [18:36:30]line Место: АЗС № 65 "Партнер Нефть" [18:36:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:36:30]line СНО: Общий режим [18:36:30]line Чек 185 22.06.2024 18:37 [18:36:30]line Смена: 391 ФФД: 1.0 [18:36:30]line ЗНМ: 0300000198 [18:36:30]line РНМ: 0000000000092771 [18:36:30]line Версия ККМ: 001 [18:36:30]line ФМ: 0000000000875083 [18:36:30]line ФД: 112319 [18:36:30]line ФПД: 248742857679396 [18:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T183700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112319&fm=248742857679396&tin=02508201610067®Number=0000000000092771&sum=50000 [18:36:31]OFD Sender: Processing packet 112319 [packets to send 38, broken 37] [18:36:31]ProducePacketName [18:36:31]name=ofd_packets/00112319 [18:36:31]OFD Sender: To server: pG, [18:36:31]CommunicateWithHost lk.salyk.kg:30040 [18:36:31]ConnectInit lk.salyk.kg [18:36:31]written 0, free lines is 4095 [18:36:31]Connected sock=10 [18:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB A3 07 01 5F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CC 19 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B6 01 00 35 04 06 00 E2 3A F5 AC 22 24 DD 83 76 E8 FD 78 F9 FA [18:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 60 80 47 00 1F D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B6 01 00 F4 03 04 00 D1 B0 76 66 B6 04 01 00 00 A6 E1 92 21 CA 40 80 22 [18:36:31]CommunicateWithHost err = 0 [18:36:31]CheckOFDResponse [18:36:31]1017 (14) - 77093643461234 [18:36:31]1041 (16) - 0000000000875083 [18:36:31]1040 (4) - 112319 [18:36:31]1012 (4) - 22.06.2024 11:09 [18:36:31]1206 (1) - 0 [18:36:31]OFD Sender: Remove packet 112319 [18:36:31]ProducePacketName [18:36:31]name=ofd_packets/00112319 [18:36:31]NVStorageDeleteData [18:36:31]Write to MH i2c: 01 00 00 D7 4C 23 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 07 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 07 00 D7 4C 00 00 00 00 00 E1 0C 17 [18:36:31]RasterBufferAndPrint [18:36:31]line [18:36:31]line [18:36:31]line [18:36:31]line [18:36:31]line [18:36:31]written 0, free lines is 3303 [18:36:31]MH_Cut [18:36:31]Write to MH i2c: D1 01 00 DE 4C 01 FC [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: D1 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: D1 01 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: D1 01 00 DE 4C 00 FB [18:36:31]Write to MH i2c: 01 00 00 DF 4C 2B [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]OFD Sender: No OFD packet to send [18:36:32]*** Cut start [18:36:32]*** Partial cut [18:36:32]*** CUTSNS_PIN = 1 [18:36:32]*** CUTSNS_PIN = 0 [18:36:32]*** Brake cut motor [18:36:32]Read from MH i2c: 01 [18:36:32]MH_I2C_Read... [18:36:32]*** Stop cut motor [18:36:32]*** Cut end [18:36:32]Read from MH i2c: 01 07 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: 01 07 00 DF 4C 00 00 00 00 00 FF 0F 40 [18:36:32]process_action close_receipt done [18:36:32]requested_data is exist [18:36:32]produce_requested_data [18:36:32]requested_item fm.sn is exist - process it [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 11 00 00 [18:36:32]Write to MH i2c: E2 08 00 E0 4C 80 11 00 00 00 00 00 00 A6 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:32]Read from MH i2c: E2 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 17 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 17 00 E0 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F8 [18:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:36:32]wFMCommunicate OK [18:36:32]requested_item fd.num is exist - process it [18:36:32]SAM_PROTO_GetFieldsCounters [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 13 00 00 [18:36:32]Write to MH i2c: E2 08 00 E1 4C 80 13 00 00 00 00 00 00 A9 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 62 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 62 00 E1 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:33]wFMCommunicate OK [18:36:33]SAM_PROTO_GetFieldsCounters done [18:36:33]requested_item shift.num is exist - process it [18:36:33]requested_item shift.opened is exist - process it [18:36:33]req_shift_opened [18:36:33]FM_GetShiftState [18:36:33]SAM_PROTO_GetShiftState [18:36:33]wFMCommunicate request_size=4 [18:36:33]MH_SAM_APDU [18:36:33]CAPDU: 80 13 01 00 [18:36:33]Write to MH i2c: E2 08 00 E2 4C 80 13 01 00 00 00 00 00 AB [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 0E 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 0E 00 E2 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E0 [18:36:33]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:36:33]wFMCommunicate OK [18:36:33]SAM_PROTO_GetShiftState done [18:36:33]FM_GetShiftState done [18:36:33]req_shift_opened done [18:36:33]requested_item shift.open_date is exist - process it [18:36:33]req_shift_open_date [18:36:33]req_shift_open_date done [18:36:33]produce_requested_data done [18:36:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112319,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:36:33]process_action_free close_receipt [18:36:33]json_value_free [18:36:33]json_value_free done [18:36:33]process_json_proto returns [18:36:33]Send response to host [18:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112319,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:36:33]free response buf [18:36:33]execute_script done [18:36:33]execute_script returns [18:36:33]free content buf [18:36:33]Sock 9.Close socket [18:36:33]Sock 9.Thread stoped [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38: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:12]accept exits with 7 [18:41:12]New connection [18:41:12]New thread 3066957156 created [18:41:12]Thread 3066813796 joined [18:41:12]Waiting for new connection... [18:41:12] Sock 7.Parse request [18:41:12]Sock 7.Check first char [18:41:12]Sock 7.First char is OK [18:41:12]request: POST /json_proto HTTP/1.0 [18:41:12]Method: POST [18:41:12]URL: /json_proto [18:41:12]Method is POST - this is cgi request [18:41:12]url: /json_proto [18:41:12]query_string will be loaded in cgi processing [18:41:12]execute_cgi json_proto POST (null) [18:41:12]execute_cgi path=json_proto method=POST [18:41:12]POST find Content-Length [18:41:12]Host: 172.17.59.68:8080 [18:41:12]Content-Length: 808 [18:41:12]Content-Type: application/json [18:41:12] [18:41:12]POST finish read [18:41:12]Found Content-Length = 808 [18:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:12]execute_script... [18:41: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)320997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:12]POST & json_proto [18:41:12]process_json_proto [18:41:12]json parsed OK: [18:41:12]protocol is kg_v1.0 [18:41:12]action value=close_receipt [18:41:12]process_action close_receipt [18:41:12]cmd_close_receipt [18:41:12]MH_GetDate [18:41:12]Write to MH i2c: F0 00 00 E3 4C 1E [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: F0 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: F0 09 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: F0 09 00 E3 4C 00 E7 1A 77 66 BC EC 60 65 72 [18:41:12]GetLastDocTimeStamp 1719081420 [18:41:12]current date 1719081703 [18:41:12]FM_GetShiftState [18:41:12]SAM_PROTO_GetShiftState [18:41:12]wFMCommunicate request_size=4 [18:41:12]MH_SAM_APDU [18:41:12]CAPDU: 80 13 01 00 [18:41:12]Write to MH i2c: E2 08 00 E4 4C 80 13 01 00 00 00 00 00 AD [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:12]Read from MH i2c: E2 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 0E 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 0E 00 E4 4C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E2 [18:41:12]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:41:12]wFMCommunicate OK [18:41:12]SAM_PROTO_GetShiftState done [18:41:12]FM_GetShiftState done [18:41:12]opened in 1719020067 [18:41:12]opened+sec_in_day 1719106467 [18:41:12]quantity*price = 100060 [18:41:12]sum+1 = 100062 [18:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 186 22.06.2024 18:41 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112320 ФПД: 96137820107981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112320&fm=96137820107981&tin=02508201610067®Number=0000000000092771&sum=100061 [18:41:13]StoreToDocumentArchive [18:41:13]shift 391 fd 112320 [18:41:13]save to /storage/0391/doc_00112320 [18:41:13]save last doc name /storage/0391/doc_00112320 to /storage/kkm_last_doc_name [18:41:13]save OK [18:41:13]Clear old archive folders... [18:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:13]tlvbuf is B6F59480 [18:41:13]SAM_PROTO_ClearQueue [18:41:13]wFMCommunicate request_size=4 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 09 00 00 [18:41:13]Write to MH i2c: E2 08 00 F1 4C 80 09 00 00 00 00 00 00 AF [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:13]Read from MH i2c: E2 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 F1 4C 00 90 00 B1 [18:41:13]RAPDU: 90 00 [18:41:13]wFMCommunicate OK [18:41:13]SAM_PROTO_ClearQueue done [18:41:13]KKMCreateOFDPacket [18:41:13]OFDProtocolAddRootSTLVToBuf [18:41:13]FM_MakeSignedData [18:41:13]FM_MakeSignedData [18:41:13]SAM_PROTO_SignData [18:41:13]wFMCommunicate request_size=4 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 0D 01 02 [18:41:13]Write to MH i2c: E2 08 00 F2 4C 80 0D 01 02 00 00 00 00 B7 [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:13]Read from MH i2c: E2 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 F2 4C 00 90 00 B2 [18:41:13]RAPDU: 90 00 [18:41:13]wFMCommunicate OK [18:41:13]wFMCommunicate request_size=255 [18:41:13]MH_SAM_APDU [18:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E7 1A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B6 01 00 35 04 06 00 57 [18:41:13]Write to MH i2c: E2 02 01 F3 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E7 1A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B6 01 00 35 04 06 00 57 00 00 14 [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:13]Read from MH i2c: E2 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 F3 4C 00 90 00 B3 [18:41:13]RAPDU: 90 00 [18:41:13]wFMCommunicate OK [18:41:13]wFMCommunicate request_size=10 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 0D 02 02 05 6F D4 9D F4 CD [18:41:13]Write to MH i2c: E2 0D 00 F4 4C 80 0D 02 02 05 00 6F D4 9D F4 CD 00 00 65 [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:13]Read from MH i2c: E2 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 03 00 F4 4C 00 90 00 B4 [18:41:13]RAPDU: 90 00 [18:41:13]wFMCommunicate OK [18:41:13]wFMCommunicate request_size=4 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 0D 03 02 [18:41:13]Write to MH i2c: E2 08 00 F5 4C 80 0D 03 02 00 00 00 00 BC [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:13]Read from MH i2c: E2 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 0B 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 0B 00 F5 4C 00 60 8E 18 D0 B6 C4 00 EA 90 00 F7 [18:41:13]RAPDU: 60 8E 18 D0 B6 C4 00 EA 90 00 [18:41:13]wFMCommunicate OK [18:41:13]SAM_PROTO_SignData done [18:41:13]FM_MakeSignedData done [18:41:13]CreateOFDProtocolMessage [18:41:13]wFMCommunicate request_size=4 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 11 00 00 [18:41:13]Write to MH i2c: E2 08 00 F6 4C 80 11 00 00 00 00 00 00 BC [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:13]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 17 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 17 00 F6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0E [18:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:41:14]wFMCommunicate OK [18:41:14]CreateOFDProtocolMessage done [18:41:14]OFDSenderStorePacket 112320 [18:41:14]StoreOFDPacket docnum=112320 [18:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 09 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E7 1A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B6 01 00 35 04 06 00 57 6F D4 9D F4 CD 60 8E 18 D0 B6 C4 00 EA [18:41:14]CheckFolder [18:41:14]dirname=/storage/ofd_packets [18:41:14]CheckFolder done [18:41:14]ProducePacketName [18:41:14]name=ofd_packets/00112320 [18:41:14]NVStorageSaveData ofd_packets/00112320 [18:41:14]File name is /storage/ofd_packets/00112320 [18:41:14]Write 301 bytes [18:41:14]NVStorageSaveData done [18:41:14]OFDSenderStorePacket done [18:41:14]KKMCreateOFDPacket done [18:41:14]NVStorageSaveData kkm_last_timestamp [18:41:14]File name is /storage/kkm_last_timestamp [18:41:14]Write 4 bytes [18:41:14]NVStorageSaveData done [18:41:14]ExternCall_PrintAddStr [18:41:14]wPrintStart [18:41:14]Write to MH i2c: 01 00 00 F7 4C 43 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 07 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 07 00 F7 4C 00 00 00 00 00 FF 0F 58 [18:41:14]RasterBufferAndPrint [18:41:14]line Счет N : (1)320997 [18:41:14]line ИНН: 02508201610067 [18:41:14]line Контрольно-Кассовый Чек [18:41:14]line ПРОДАЖА [18:41:14]line ТРК (МРК, ГНК) : 12 [18:41:14]line Товар: 2710124500 [18:41:14]line Аи-95-К-5 [18:41:14]line 13.540 * 73.90 [18:41:14]line = 1000.61 [18:41:14]line НДС 12% НСП 1% [18:41:14]line > о реализуемом товаре [18:41:14]line ИТОГО: 1000.61 [18:41:14]line НСП 1% : 8.85 [18:41:14]line НДС 12% : 106.26 [18:41:14]line Наличными: 0.00 [18:41:14]line Безнал.: 1000.61 [18:41:14]line Место: АЗС № 65 "Партнер Нефть" [18:41:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:41:14]line СНО: Общий режим [18:41:14]line Чек 186 22.06.2024 18:41 [18:41:14]line Смена: 391 ФФД: 1.0 [18:41:14]line ЗНМ: 0300000198 [18:41:14]line РНМ: 0000000000092771 [18:41:14]line Версия ККМ: 001 [18:41:14]line Платежная система: О! деньги [18:41:14]line ФМ: 0000000000875083 [18:41:14]line ФД: 112320 [18:41:14]line ФПД: 96137820107981 [18:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112320&fm=96137820107981&tin=02508201610067®Number=0000000000092771&sum=100061 [18:41:14]written 0, free lines is 4095 [18:41:14]OFD Sender: Processing packet 112320 [packets to send 38, broken 37] [18:41:14]ProducePacketName [18:41:14]name=ofd_packets/00112320 [18:41:14]OFD Sender: To server: pG, [18:41:14]CommunicateWithHost lk.salyk.kg:30040 [18:41:14]ConnectInit lk.salyk.kg [18:41:14]Connected sock=10 [18:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 09 07 01 65 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E7 1A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B6 01 00 35 04 06 00 57 6F D4 9D F4 CD 60 8E 18 D0 B6 C4 00 EA [18:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B2 76 47 00 05 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B6 01 00 F4 03 04 00 EC B1 76 66 B6 04 01 00 00 A8 FD 8D 15 1A CF 7E B7 [18:41:14]CommunicateWithHost err = 0 [18:41:14]CheckOFDResponse [18:41:14]1017 (14) - 77093643461234 [18:41:14]1041 (16) - 0000000000875083 [18:41:14]1040 (4) - 112320 [18:41:14]1012 (4) - 22.06.2024 11:13 [18:41:14]1206 (1) - 0 [18:41:14]OFD Sender: Remove packet 112320 [18:41:14]ProducePacketName [18:41:14]name=ofd_packets/00112320 [18:41:14]NVStorageDeleteData [18:41:14]Write to MH i2c: 01 00 00 21 4D 6E [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 07 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 07 00 21 4D 00 00 00 00 00 03 0D 85 [18:41:14]RasterBufferAndPrint [18:41:14]line [18:41:14]line [18:41:14]line [18:41:14]line [18:41:14]line [18:41:14]written 0, free lines is 3337 [18:41:14]MH_Cut [18:41:14]Write to MH i2c: D1 01 00 28 4D 01 47 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: D1 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: D1 01 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: D1 01 00 28 4D 00 46 [18:41:14]Write to MH i2c: 01 00 00 29 4D 76 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:15]OFD Sender: No OFD packet to send [18:41:15]*** Cut start [18:41:15]*** Partial cut [18:41:15]*** CUTSNS_PIN = 1 [18:41:15]*** CUTSNS_PIN = 0 [18:41:15]*** Brake cut motor [18:41:16]Read from MH i2c: 01 [18:41:16]MH_I2C_Read... [18:41:16]*** Stop cut motor [18:41:16]*** Cut end [18:41:16]Read from MH i2c: 01 07 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: 01 07 00 29 4D 00 00 00 00 00 FF 0F 8B [18:41:16]process_action close_receipt done [18:41:16]requested_data is exist [18:41:16]produce_requested_data [18:41:16]requested_item fm.sn is exist - process it [18:41:16]wFMCommunicate request_size=4 [18:41:16]MH_SAM_APDU [18:41:16]CAPDU: 80 11 00 00 [18:41:16]Write to MH i2c: E2 08 00 2A 4D 80 11 00 00 00 00 00 00 F1 [18:41:16]Write i2c OK [18:41:16]MH_I2C_Read... [18:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:16]Read from MH i2c: E2 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 17 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 17 00 2A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [18:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:41:16]wFMCommunicate OK [18:41:16]requested_item fd.num is exist - process it [18:41:16]SAM_PROTO_GetFieldsCounters [18:41:16]wFMCommunicate request_size=4 [18:41:16]MH_SAM_APDU [18:41:16]CAPDU: 80 13 00 00 [18:41:16]Write to MH i2c: E2 08 00 2B 4D 80 13 00 00 00 00 00 00 F4 [18:41:16]Write i2c OK [18:41:16]MH_I2C_Read... [18:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:16]Read from MH i2c: E2 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 62 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 62 00 2B 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [18:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:16]wFMCommunicate OK [18:41:16]SAM_PROTO_GetFieldsCounters done [18:41:16]requested_item shift.num is exist - process it [18:41:16]requested_item shift.opened is exist - process it [18:41:16]req_shift_opened [18:41:16]FM_GetShiftState [18:41:16]SAM_PROTO_GetShiftState [18:41:16]wFMCommunicate request_size=4 [18:41:16]MH_SAM_APDU [18:41:16]CAPDU: 80 13 01 00 [18:41:16]Write to MH i2c: E2 08 00 2C 4D 80 13 01 00 00 00 00 00 F6 [18:41:16]Write i2c OK [18:41:16]MH_I2C_Read... [18:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:16]Read from MH i2c: E2 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 0E 00 [18:41:16]MH_I2C_Read... [18:41:16]Read from MH i2c: E2 0E 00 2C 4D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2B [18:41:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:41:16]wFMCommunicate OK [18:41:16]SAM_PROTO_GetShiftState done [18:41:16]FM_GetShiftState done [18:41:16]req_shift_opened done [18:41:16]requested_item shift.open_date is exist - process it [18:41:16]req_shift_open_date [18:41:16]req_shift_open_date done [18:41:16]produce_requested_data done [18:41:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112320,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:41:16]process_action_free close_receipt [18:41:16]json_value_free [18:41:16]json_value_free done [18:41:16]process_json_proto returns [18:41:16]Send response to host [18:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112320,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:41:16]free response buf [18:41:16]execute_script done [18:41:16]execute_script returns [18:41:16]free content buf [18:41:16]Sock 7.Close socket [18:41:16]Sock 7.Thread stoped [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:07]accept exits with 9 [18:45:07]New connection [18:45:07]New thread 3066813796 created [18:45:07]Thread 3066957156 joined [18:45:07]Waiting for new connection... [18:45:07] Sock 9.Parse request [18:45:07]Sock 9.Check first char [18:45:07]Sock 9.First char is OK [18:45:07]request: POST /json_proto HTTP/1.0 [18:45:07]Method: POST [18:45:07]URL: /json_proto [18:45:07]Method is POST - this is cgi request [18:45:07]url: /json_proto [18:45:07]query_string will be loaded in cgi processing [18:45:07]execute_cgi json_proto POST (null) [18:45:07]execute_cgi path=json_proto method=POST [18:45:07]POST find Content-Length [18:45:07]Host: 172.17.59.68:8080 [18:45:07]Content-Length: 677 [18:45:07]Content-Type: application/json [18:45:07] [18:45:07]POST finish read [18:45:07]Found Content-Length = 677 [18:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320998", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:45:07]execute_script... [18:45: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)320998", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:45:07]POST & json_proto [18:45:07]process_json_proto [18:45:07]json parsed OK: [18:45:07]protocol is kg_v1.0 [18:45:07]action value=close_receipt [18:45:07]process_action close_receipt [18:45:07]cmd_close_receipt [18:45:07]MH_GetDate [18:45:07]Write to MH i2c: F0 00 00 2D 4D 69 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: F0 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: F0 09 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: F0 09 00 2D 4D 00 D2 1B 77 66 BC EC 60 65 A9 [18:45:07]GetLastDocTimeStamp 1719081703 [18:45:07]current date 1719081938 [18:45:07]FM_GetShiftState [18:45:07]SAM_PROTO_GetShiftState [18:45:07]wFMCommunicate request_size=4 [18:45:07]MH_SAM_APDU [18:45:07]CAPDU: 80 13 01 00 [18:45:07]Write to MH i2c: E2 08 00 2E 4D 80 13 01 00 00 00 00 00 F8 [18:45:07]Write i2c OK [18:45:07]MH_I2C_Read... [18:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:07]Read from MH i2c: E2 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 0E 00 [18:45:07]MH_I2C_Read... [18:45:07]Read from MH i2c: E2 0E 00 2E 4D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2D [18:45:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:45:07]wFMCommunicate OK [18:45:07]SAM_PROTO_GetShiftState done [18:45:07]FM_GetShiftState done [18:45:07]opened in 1719020067 [18:45:07]opened+sec_in_day 1719106467 [18:45:07]quantity*price = 30012 [18:45:07]sum+1 = 30014 [18:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 187 22.06.2024 18:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112321 ФПД: 262290535041231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184539&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112321&fm=262290535041231&tin=02508201610067®Number=0000000000092771&sum=30000 [18:45:08]StoreToDocumentArchive [18:45:08]shift 391 fd 112321 [18:45:08]save to /storage/0391/doc_00112321 [18:45:08]save last doc name /storage/0391/doc_00112321 to /storage/kkm_last_doc_name [18:45:08]save OK [18:45:08]Clear old archive folders... [18:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:08]tlvbuf is 0126FFF0 [18:45:08]SAM_PROTO_ClearQueue [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 09 00 00 [18:45:08]Write to MH i2c: E2 08 00 3B 4D 80 09 00 00 00 00 00 00 FA [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 3B 4D 00 90 00 FC [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_ClearQueue done [18:45:08]KKMCreateOFDPacket [18:45:08]OFDProtocolAddRootSTLVToBuf [18:45:08]FM_MakeSignedData [18:45:08]FM_MakeSignedData [18:45:08]SAM_PROTO_SignData [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 0D 01 02 [18:45:08]Write to MH i2c: E2 08 00 3C 4D 80 0D 01 02 00 00 00 00 02 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 03 00 3C 4D 00 90 00 FD [18:45:08]RAPDU: 90 00 [18:45:08]wFMCommunicate OK [18:45:08]wFMCommunicate request_size=255 [18:45:08]MH_SAM_APDU [18:45: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D3 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B6 01 00 35 04 06 00 EE [18:45:08]Write to MH i2c: E2 02 01 3D 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D3 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B6 01 00 35 04 06 00 EE 00 00 C8 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 3D 4D 00 90 00 FE [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=10 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 02 02 05 8D 46 2B 48 CF [18:45:09]Write to MH i2c: E2 0D 00 3E 4D 80 0D 02 02 05 00 8D 46 2B 48 CF 00 00 24 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 3E 4D 00 90 00 FF [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 03 02 [18:45:09]Write to MH i2c: E2 08 00 3F 4D 80 0D 03 02 00 00 00 00 07 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0B 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0B 00 3F 4D 00 34 4A 01 D5 41 BB 1D 6A 90 00 DF [18:45:09]RAPDU: 34 4A 01 D5 41 BB 1D 6A 90 00 [18:45:09]wFMCommunicate OK [18:45:09]SAM_PROTO_SignData done [18:45:09]FM_MakeSignedData done [18:45:09]CreateOFDProtocolMessage [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 11 00 00 [18:45:09]Write to MH i2c: E2 08 00 40 4D 80 11 00 00 00 00 00 00 07 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 17 00 40 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [18:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:09]wFMCommunicate OK [18:45:09]CreateOFDProtocolMessage done [18:45:09]OFDSenderStorePacket 112321 [18:45:09]StoreOFDPacket docnum=112321 [18:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 C2 07 01 6A 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D3 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B6 01 00 35 04 06 00 EE 8D 46 2B 48 CF 34 4A 01 D5 41 BB 1D 6A [18:45:09]CheckFolder [18:45:09]dirname=/storage/ofd_packets [18:45:09]CheckFolder done [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00112321 [18:45:09]NVStorageSaveData ofd_packets/00112321 [18:45:09]File name is /storage/ofd_packets/00112321 [18:45:09]Write 301 bytes [18:45:09]NVStorageSaveData done [18:45:09]OFDSenderStorePacket done [18:45:09]KKMCreateOFDPacket done [18:45:09]NVStorageSaveData kkm_last_timestamp [18:45:09]File name is /storage/kkm_last_timestamp [18:45:09]Write 4 bytes [18:45:09]NVStorageSaveData done [18:45:09]ExternCall_PrintAddStr [18:45:09]wPrintStart [18:45:09]Write to MH i2c: 01 00 00 41 4D 8E [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 41 4D 00 00 00 00 00 FF 0F A3 [18:45:09]RasterBufferAndPrint [18:45:09]line Счет N : (1)320998 [18:45:09]line ИНН: 02508201610067 [18:45:09]line Контрольно-Кассовый Чек [18:45:09]line ПРОДАЖА [18:45:09]line ТРК (МРК, ГНК) : 11 [18:45:09]line Товар: 2710124130 [18:45:09]line Аи-92-К-5 [18:45:09]line 4.520 * 66.40 [18:45:09]line = 300.13 [18:45:09]line НДС 12% НСП 1% [18:45:09]line > о реализуемом товаре [18:45:09]line ОКРУГЛЕНИЕ: -0.13 [18:45:09]line ИТОГО: 300.00 [18:45:09]line Внесено: 300.00 [18:45:09]line СДАЧА: 0.00 [18:45:09]line НСП 1% : 2.66 [18:45:09]line НДС 12% : 31.87 [18:45:09]line Наличными: 300.00 [18:45:09]line Безнал.: 0.00 [18:45:09]line Место: АЗС № 65 "Партнер Нефть" [18:45:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:45:09]line СНО: Общий режим [18:45:09]line Чек 187 22.06.2024 18:45 [18:45:09]line Смена: 391 ФФД: 1.0 [18:45:09]line ЗНМ: 0300000198 [18:45:09]line РНМ: 0000000000092771 [18:45:09]line Версия ККМ: 001 [18:45:09]line ФМ: 0000000000875083 [18:45:09]line ФД: 112321 [18:45:09]line ФПД: 262290535041231 [18:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184539&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112321&fm=262290535041231&tin=02508201610067®Number=0000000000092771&sum=30000 [18:45:09]OFD Sender: Processing packet 112321 [packets to send 38, broken 37] [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00112321 [18:45:09]OFD Sender: To server: pG, [18:45:09]CommunicateWithHost lk.salyk.kg:30040 [18:45:09]ConnectInit lk.salyk.kg [18:45:09]written 0, free lines is 4095 [18:45:09]Connected sock=10 [18:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 C2 07 01 6A 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D3 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B6 01 00 35 04 06 00 EE 8D 46 2B 48 CF 34 4A 01 D5 41 BB 1D 6A [18:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2C 41 47 00 3F 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B6 01 00 F4 03 04 00 D7 B2 76 66 B6 04 01 00 00 BD 07 99 3E 5C 20 94 8C [18:45:09]CommunicateWithHost err = 0 [18:45:09]CheckOFDResponse [18:45:09]1017 (14) - 77093643461234 [18:45:09]1041 (16) - 0000000000875083 [18:45:09]1040 (4) - 112321 [18:45:09]1012 (4) - 22.06.2024 11:17 [18:45:09]1206 (1) - 0 [18:45:09]OFD Sender: Remove packet 112321 [18:45:09]ProducePacketName [18:45:09]name=ofd_packets/00112321 [18:45:09]NVStorageDeleteData [18:45:09]Write to MH i2c: 01 00 00 6C 4D B9 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: 01 07 00 6C 4D 00 00 00 00 00 E4 0C B0 [18:45:09]RasterBufferAndPrint [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]line [18:45:09]written 0, free lines is 3306 [18:45:09]MH_Cut [18:45:09]Write to MH i2c: D1 01 00 73 4D 01 92 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: D1 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: D1 01 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: D1 01 00 73 4D 00 91 [18:45:10]Write to MH i2c: 01 00 00 74 4D C1 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]OFD Sender: No OFD packet to send [18:45:10]*** Cut start [18:45:10]*** Partial cut [18:45:10]*** CUTSNS_PIN = 1 [18:45:10]*** CUTSNS_PIN = 0 [18:45:10]*** Brake cut motor [18:45:11]Read from MH i2c: 01 [18:45:11]MH_I2C_Read... [18:45:11]*** Stop cut motor [18:45:11]*** Cut end [18:45:11]Read from MH i2c: 01 07 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 74 4D 00 00 00 00 00 FF 0F D6 [18:45:11]process_action close_receipt done [18:45:11]requested_data is exist [18:45:11]produce_requested_data [18:45:11]requested_item fm.sn is exist - process it [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 11 00 00 [18:45:11]Write to MH i2c: E2 08 00 75 4D 80 11 00 00 00 00 00 00 3C [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 75 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [18:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:11]wFMCommunicate OK [18:45:11]requested_item fd.num is exist - process it [18:45:11]SAM_PROTO_GetFieldsCounters [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 00 00 [18:45:11]Write to MH i2c: E2 08 00 76 4D 80 13 00 00 00 00 00 00 3F [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 62 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 62 00 76 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [18:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetFieldsCounters done [18:45:11]requested_item shift.num is exist - process it [18:45:11]requested_item shift.opened is exist - process it [18:45:11]req_shift_opened [18:45:11]FM_GetShiftState [18:45:11]SAM_PROTO_GetShiftState [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 13 01 00 [18:45:11]Write to MH i2c: E2 08 00 77 4D 80 13 01 00 00 00 00 00 41 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0E 00 77 4D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 76 [18:45:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_GetShiftState done [18:45:11]FM_GetShiftState done [18:45:11]req_shift_opened done [18:45:11]requested_item shift.open_date is exist - process it [18:45:11]req_shift_open_date [18:45:11]req_shift_open_date done [18:45:11]produce_requested_data done [18:45:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112321,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:45:11]process_action_free close_receipt [18:45:11]json_value_free [18:45:11]json_value_free done [18:45:11]process_json_proto returns [18:45:11]Send response to host [18:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112321,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:45:11]free response buf [18:45:11]execute_script done [18:45:11]execute_script returns [18:45:11]free content buf [18:45:11]Sock 9.Close socket [18:45:11]Sock 9.Thread stoped [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:24]accept exits with 7 [18:45:24]New connection [18:45:24]New thread 3066957156 created [18:45:24]Thread 3066813796 joined [18:45:24]Waiting for new connection... [18:45:24] Sock 7.Parse request [18:45:24]Sock 7.Check first char [18:45:24]Sock 7.First char is OK [18:45:24]request: POST /json_proto HTTP/1.0 [18:45:24]Method: POST [18:45:24]URL: /json_proto [18:45:24]Method is POST - this is cgi request [18:45:24]url: /json_proto [18:45:24]query_string will be loaded in cgi processing [18:45:24]execute_cgi json_proto POST (null) [18:45:24]execute_cgi path=json_proto method=POST [18:45:24]POST find Content-Length [18:45:24]Host: 172.17.59.68:8080 [18:45:24]Content-Length: 674 [18:45:24]Content-Type: application/json [18:45:24] [18:45:24]POST finish read [18:45:24]Found Content-Length = 674 [18:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 7.550, "sum" : 550.40, "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" ] } } [18:45:24]execute_script... [18:45: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)320999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 7.550, "sum" : 550.40, "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" ] } } [18:45:24]POST & json_proto [18:45:24]process_json_proto [18:45:24]json parsed OK: [18:45:24]protocol is kg_v1.0 [18:45:24]action value=close_receipt [18:45:24]process_action close_receipt [18:45:24]cmd_close_receipt [18:45:24]MH_GetDate [18:45:24]Write to MH i2c: F0 00 00 78 4D B4 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 78 4D 00 E4 1B 77 66 BC EC 60 65 06 [18:45:24]GetLastDocTimeStamp 1719081939 [18:45:24]current date 1719081956 [18:45:24]FM_GetShiftState [18:45:24]SAM_PROTO_GetShiftState [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 13 01 00 [18:45:24]Write to MH i2c: E2 08 00 79 4D 80 13 01 00 00 00 00 00 43 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 79 4D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 78 [18:45:24]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_GetShiftState done [18:45:24]FM_GetShiftState done [18:45:24]opened in 1719020067 [18:45:24]opened+sec_in_day 1719106467 [18:45:24]quantity*price = 55039 [18:45:24]sum+1 = 55041 [18:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 188 22.06.2024 18:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112322 ФПД: 266587330103444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184556&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112322&fm=266587330103444&tin=02508201610067®Number=0000000000092771&sum=55000 [18:45:26]StoreToDocumentArchive [18:45:26]shift 391 fd 112322 [18:45:26]save to /storage/0391/doc_00112322 [18:45:26]save last doc name /storage/0391/doc_00112322 to /storage/kkm_last_doc_name [18:45:26]save OK [18:45:26]Clear old archive folders... [18:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:45:26]tlvbuf is B6F56390 [18:45:26]SAM_PROTO_ClearQueue [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 09 00 00 [18:45:26]Write to MH i2c: E2 08 00 86 4D 80 09 00 00 00 00 00 00 45 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 86 4D 00 90 00 47 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_ClearQueue done [18:45:26]KKMCreateOFDPacket [18:45:26]OFDProtocolAddRootSTLVToBuf [18:45:26]FM_MakeSignedData [18:45:26]FM_MakeSignedData [18:45:26]SAM_PROTO_SignData [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 01 02 [18:45:26]Write to MH i2c: E2 08 00 87 4D 80 0D 01 02 00 00 00 00 4D [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 87 4D 00 90 00 48 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=255 [18:45:26]MH_SAM_APDU [18:45: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 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 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 D5 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 BC 00 00 00 F4 03 04 00 E4 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B6 01 00 35 04 06 00 F2 75 B3 1C [18:45:26]Write to MH i2c: E2 02 01 88 4D 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 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 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 D5 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 BC 00 00 00 F4 03 04 00 E4 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B6 01 00 35 04 06 00 F2 75 B3 1C 00 00 B0 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 88 4D 00 90 00 49 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=7 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 02 02 02 C8 94 [18:45:26]Write to MH i2c: E2 0A 00 89 4D 80 0D 02 02 02 00 C8 94 00 00 B0 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 89 4D 00 90 00 4A [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 03 02 [18:45:26]Write to MH i2c: E2 08 00 8A 4D 80 0D 03 02 00 00 00 00 52 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0B 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0B 00 8A 4D 00 1F 47 E4 13 43 07 EF A0 90 00 89 [18:45:26]RAPDU: 1F 47 E4 13 43 07 EF A0 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_SignData done [18:45:26]FM_MakeSignedData done [18:45:26]CreateOFDProtocolMessage [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 11 00 00 [18:45:26]Write to MH i2c: E2 08 00 8B 4D 80 11 00 00 00 00 00 00 52 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 17 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 17 00 8B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [18:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:26]wFMCommunicate OK [18:45:26]CreateOFDProtocolMessage done [18:45:26]OFDSenderStorePacket 112322 [18:45:26]StoreOFDPacket docnum=112322 [18:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BB C8 04 01 95 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 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 D5 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 BC 00 00 00 F4 03 04 00 E4 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B6 01 00 35 04 06 00 F2 75 B3 1C C8 94 1F 47 E4 13 43 07 EF A0 [18:45:26]CheckFolder [18:45:26]dirname=/storage/ofd_packets [18:45:26]CheckFolder done [18:45:26]ProducePacketName [18:45:26]name=ofd_packets/00112322 [18:45:26]NVStorageSaveData ofd_packets/00112322 [18:45:26]File name is /storage/ofd_packets/00112322 [18:45:26]Write 298 bytes [18:45:26]NVStorageSaveData done [18:45:26]OFDSenderStorePacket done [18:45:26]KKMCreateOFDPacket done [18:45:26]NVStorageSaveData kkm_last_timestamp [18:45:26]File name is /storage/kkm_last_timestamp [18:45:26]Write 4 bytes [18:45:26]NVStorageSaveData done [18:45:26]ExternCall_PrintAddStr [18:45:26]wPrintStart [18:45:26]Write to MH i2c: 01 00 00 8C 4D D9 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 8C 4D 00 00 00 00 00 FF 0F EE [18:45:26]RasterBufferAndPrint [18:45:26]line Счет N : (1)320999 [18:45:26]line ИНН: 02508201610067 [18:45:26]line Контрольно-Кассовый Чек [18:45:26]line ПРОДАЖА [18:45:26]line ТРК (МРК, ГНК) : 22 [18:45:26]line Товар: 2710194210 [18:45:26]line ДТ-К-5 [18:45:26]line 7.550 * 72.90 [18:45:26]line = 550.40 [18:45:26]line НДС 12% НСП 1% [18:45:26]line > о реализуемом товаре [18:45:26]line ОКРУГЛЕНИЕ: -0.40 [18:45:26]line ИТОГО: 550.00 [18:45:26]line Внесено: 550.00 [18:45:26]line СДАЧА: 0.00 [18:45:26]line НСП 1% : 4.87 [18:45:26]line НДС 12% : 58.45 [18:45:26]line Наличными: 550.00 [18:45:26]line Безнал.: 0.00 [18:45:26]line Место: АЗС № 65 "Партнер Нефть" [18:45:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:45:26]line СНО: Общий режим [18:45:26]line Чек 188 22.06.2024 18:45 [18:45:26]line Смена: 391 ФФД: 1.0 [18:45:26]line ЗНМ: 0300000198 [18:45:26]line РНМ: 0000000000092771 [18:45:26]line Версия ККМ: 001 [18:45:26]line ФМ: 0000000000875083 [18:45:26]line ФД: 112322 [18:45:26]line ФПД: 266587330103444 [18:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184556&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112322&fm=266587330103444&tin=02508201610067®Number=0000000000092771&sum=55000 [18:45:26]OFD Sender: Processing packet 112322 [packets to send 38, broken 37] [18:45:26]ProducePacketName [18:45:26]name=ofd_packets/00112322 [18:45:26]OFD Sender: To server: pG, [18:45:26]CommunicateWithHost lk.salyk.kg:30040 [18:45:26]ConnectInit lk.salyk.kg [18:45:26]written 0, free lines is 4095 [18:45:27]Connected sock=10 [18: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 35 30 38 33 0C 01 00 00 BB C8 04 01 95 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 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 D5 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 BC 00 00 00 F4 03 04 00 E4 1B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B6 01 00 35 04 06 00 F2 75 B3 1C C8 94 1F 47 E4 13 43 07 EF A0 [18:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D EE 47 00 B2 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B6 01 00 F4 03 04 00 E8 B2 76 66 B6 04 01 00 00 25 91 DF 4D A7 32 FA 54 [18:45:27]CommunicateWithHost err = 0 [18:45:27]CheckOFDResponse [18:45:27]1017 (14) - 77093643461234 [18:45:27]1041 (16) - 0000000000875083 [18:45:27]1040 (4) - 112322 [18:45:27]1012 (4) - 22.06.2024 11:18 [18:45:27]1206 (1) - 0 [18:45:27]OFD Sender: Remove packet 112322 [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00112322 [18:45:27]NVStorageDeleteData [18:45:27]Write to MH i2c: 01 00 00 B7 4D 04 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 B7 4D 00 00 00 00 00 E9 0C 00 [18:45:27]RasterBufferAndPrint [18:45:27]line [18:45:27]line [18:45:27]line [18:45:27]line [18:45:27]line [18:45:27]written 0, free lines is 3311 [18:45:27]MH_Cut [18:45:27]Write to MH i2c: D1 01 00 BE 4D 01 DD [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: D1 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: D1 01 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: D1 01 00 BE 4D 00 DC [18:45:27]Write to MH i2c: 01 00 00 BF 4D 0C [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]OFD Sender: No OFD packet to send [18:45:28]*** Cut start [18:45:28]*** Partial cut [18:45:28]*** CUTSNS_PIN = 1 [18:45:28]*** CUTSNS_PIN = 0 [18:45:28]*** Brake cut motor [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]*** Stop cut motor [18:45:28]*** Cut end [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 BF 4D 00 00 00 00 00 FF 0F 21 [18:45:28]process_action close_receipt done [18:45:28]requested_data is exist [18:45:28]produce_requested_data [18:45:28]requested_item fm.sn is exist - process it [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 11 00 00 [18:45:28]Write to MH i2c: E2 08 00 C0 4D 80 11 00 00 00 00 00 00 87 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 C0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [18:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:28]wFMCommunicate OK [18:45:28]requested_item fd.num is exist - process it [18:45:28]SAM_PROTO_GetFieldsCounters [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 00 00 [18:45:28]Write to MH i2c: E2 08 00 C1 4D 80 13 00 00 00 00 00 00 8A [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 C1 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetFieldsCounters done [18:45:28]requested_item shift.num is exist - process it [18:45:28]requested_item shift.opened is exist - process it [18:45:28]req_shift_opened [18:45:28]FM_GetShiftState [18:45:28]SAM_PROTO_GetShiftState [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 01 00 [18:45:28]Write to MH i2c: E2 08 00 C2 4D 80 13 01 00 00 00 00 00 8C [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 C2 4D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C1 [18:45:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetShiftState done [18:45:28]FM_GetShiftState done [18:45:28]req_shift_opened done [18:45:28]requested_item shift.open_date is exist - process it [18:45:28]req_shift_open_date [18:45:28]req_shift_open_date done [18:45:28]produce_requested_data done [18:45:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112322,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:45:28]process_action_free close_receipt [18:45:28]json_value_free [18:45:28]json_value_free done [18:45:28]process_json_proto returns [18:45:28]Send response to host [18:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112322,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:45:28]free response buf [18:45:28]execute_script done [18:45:28]execute_script returns [18:45:28]free content buf [18:45:28]Sock 7.Close socket [18:45:28]Sock 7.Thread stoped [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:53]accept exits with 9 [18:46:53]New connection [18:46:53]New thread 3066813796 created [18:46:53]Thread 3066957156 joined [18:46:53]Waiting for new connection... [18:46:53] Sock 9.Parse request [18:46:53]Sock 9.Check first char [18:46:53]Sock 9.First char is OK [18:46:53]request: POST /json_proto HTTP/1.0 [18:46:53]Method: POST [18:46:53]URL: /json_proto [18:46:53]Method is POST - this is cgi request [18:46:53]url: /json_proto [18:46:53]query_string will be loaded in cgi processing [18:46:53]execute_cgi json_proto POST (null) [18:46:53]execute_cgi path=json_proto method=POST [18:46:53]POST find Content-Length [18:46:53]Host: 172.17.59.68:8080 [18:46:53]Content-Length: 678 [18:46:53]Content-Type: application/json [18:46:53] [18:46:53]POST finish read [18:46:53]Found Content-Length = 678 [18:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321000", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:53]execute_script... [18:46: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)321000", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:53]POST & json_proto [18:46:53]process_json_proto [18:46:53]json parsed OK: [18:46:53]protocol is kg_v1.0 [18:46:53]action value=close_receipt [18:46:53]process_action close_receipt [18:46:53]cmd_close_receipt [18:46:53]MH_GetDate [18:46:53]Write to MH i2c: F0 00 00 C3 4D FF [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: F0 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: F0 09 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: F0 09 00 C3 4D 00 3D 1C 77 66 BC EC 60 65 AB [18:46:53]GetLastDocTimeStamp 1719081956 [18:46:53]current date 1719082045 [18:46:53]FM_GetShiftState [18:46:53]SAM_PROTO_GetShiftState [18:46:53]wFMCommunicate request_size=4 [18:46:53]MH_SAM_APDU [18:46:53]CAPDU: 80 13 01 00 [18:46:53]Write to MH i2c: E2 08 00 C4 4D 80 13 01 00 00 00 00 00 8E [18:46:53]Write i2c OK [18:46:53]MH_I2C_Read... [18:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:53]Read from MH i2c: E2 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 0E 00 [18:46:53]MH_I2C_Read... [18:46:53]Read from MH i2c: E2 0E 00 C4 4D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C3 [18:46:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:46:53]wFMCommunicate OK [18:46:53]SAM_PROTO_GetShiftState done [18:46:53]FM_GetShiftState done [18:46:53]opened in 1719020067 [18:46:53]opened+sec_in_day 1719106467 [18:46:53]quantity*price = 70052 [18:46:53]sum+1 = 70053 [18:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 189 22.06.2024 18:47 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112323 ФПД: 17239735136489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112323&fm=17239735136489&tin=02508201610067®Number=0000000000092771&sum=70000 [18:46:54]StoreToDocumentArchive [18:46:54]shift 391 fd 112323 [18:46:54]save to /storage/0391/doc_00112323 [18:46:54]save last doc name /storage/0391/doc_00112323 to /storage/kkm_last_doc_name [18:46:54]save OK [18:46:54]Clear old archive folders... [18:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:54]tlvbuf is 011F1410 [18:46:54]SAM_PROTO_ClearQueue [18:46:54]wFMCommunicate request_size=4 [18:46:54]MH_SAM_APDU [18:46:54]CAPDU: 80 09 00 00 [18:46:54]Write to MH i2c: E2 08 00 D1 4D 80 09 00 00 00 00 00 00 90 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:54]Read from MH i2c: E2 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 03 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 03 00 D1 4D 00 90 00 92 [18:46:54]RAPDU: 90 00 [18:46:54]wFMCommunicate OK [18:46:54]SAM_PROTO_ClearQueue done [18:46:54]KKMCreateOFDPacket [18:46:54]OFDProtocolAddRootSTLVToBuf [18:46:54]FM_MakeSignedData [18:46:54]FM_MakeSignedData [18:46:54]SAM_PROTO_SignData [18:46:54]wFMCommunicate request_size=4 [18:46:54]MH_SAM_APDU [18:46:54]CAPDU: 80 0D 01 02 [18:46:54]Write to MH i2c: E2 08 00 D2 4D 80 0D 01 02 00 00 00 00 98 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:54]Read from MH i2c: E2 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 03 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 03 00 D2 4D 00 90 00 93 [18:46:54]RAPDU: 90 00 [18:46:54]wFMCommunicate OK [18:46:54]wFMCommunicate request_size=255 [18:46:54]MH_SAM_APDU [18:46: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 3D 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B6 01 00 35 04 06 00 0F [18:46:54]Write to MH i2c: E2 02 01 D3 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 3D 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B6 01 00 35 04 06 00 0F 00 00 62 [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 D3 4D 00 90 00 94 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]wFMCommunicate request_size=10 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 02 02 05 AD F0 49 F0 E9 [18:46:55]Write to MH i2c: E2 0D 00 D4 4D 80 0D 02 02 05 00 AD F0 49 F0 E9 00 00 64 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 D4 4D 00 90 00 95 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 03 02 [18:46:55]Write to MH i2c: E2 08 00 D5 4D 80 0D 03 02 00 00 00 00 9D [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 0B 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 0B 00 D5 4D 00 48 A5 DB 29 A9 E1 85 3C 90 00 DA [18:46:55]RAPDU: 48 A5 DB 29 A9 E1 85 3C 90 00 [18:46:55]wFMCommunicate OK [18:46:55]SAM_PROTO_SignData done [18:46:55]FM_MakeSignedData done [18:46:55]CreateOFDProtocolMessage [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 11 00 00 [18:46:55]Write to MH i2c: E2 08 00 D6 4D 80 11 00 00 00 00 00 00 9D [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 17 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 17 00 D6 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [18:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:46:55]wFMCommunicate OK [18:46:55]CreateOFDProtocolMessage done [18:46:55]OFDSenderStorePacket 112323 [18:46:55]StoreOFDPacket docnum=112323 [18:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 6F 07 01 BA 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 3D 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B6 01 00 35 04 06 00 0F AD F0 49 F0 E9 48 A5 DB 29 A9 E1 85 3C [18:46:55]CheckFolder [18:46:55]dirname=/storage/ofd_packets [18:46:55]CheckFolder done [18:46:55]ProducePacketName [18:46:55]name=ofd_packets/00112323 [18:46:55]NVStorageSaveData ofd_packets/00112323 [18:46:55]File name is /storage/ofd_packets/00112323 [18:46:55]Write 301 bytes [18:46:55]NVStorageSaveData done [18:46:55]OFDSenderStorePacket done [18:46:55]KKMCreateOFDPacket done [18:46:55]NVStorageSaveData kkm_last_timestamp [18:46:55]File name is /storage/kkm_last_timestamp [18:46:55]Write 4 bytes [18:46:55]NVStorageSaveData done [18:46:55]ExternCall_PrintAddStr [18:46:55]wPrintStart [18:46:55]Write to MH i2c: 01 00 00 D7 4D 24 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: 01 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: 01 07 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: 01 07 00 D7 4D 00 00 00 00 00 FF 0F 39 [18:46:55]RasterBufferAndPrint [18:46:55]line Счет N : (1)321000 [18:46:55]line ИНН: 02508201610067 [18:46:55]line Контрольно-Кассовый Чек [18:46:55]line ПРОДАЖА [18:46:55]line ТРК (МРК, ГНК) : 11 [18:46:55]line Товар: 2710124130 [18:46:55]line Аи-92-К-5 [18:46:55]line 10.550 * 66.40 [18:46:55]line = 700.52 [18:46:55]line НДС 12% НСП 1% [18:46:55]line > о реализуемом товаре [18:46:55]line ОКРУГЛЕНИЕ: -0.52 [18:46:55]line ИТОГО: 700.00 [18:46:55]line Внесено: 700.00 [18:46:55]line СДАЧА: 0.00 [18:46:55]line НСП 1% : 6.20 [18:46:55]line НДС 12% : 74.39 [18:46:55]line Наличными: 700.00 [18:46:55]line Безнал.: 0.00 [18:46:55]line Место: АЗС № 65 "Партнер Нефть" [18:46:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:46:55]line СНО: Общий режим [18:46:55]line Чек 189 22.06.2024 18:47 [18:46:55]line Смена: 391 ФФД: 1.0 [18:46:55]line ЗНМ: 0300000198 [18:46:55]line РНМ: 0000000000092771 [18:46:55]line Версия ККМ: 001 [18:46:55]line ФМ: 0000000000875083 [18:46:55]line ФД: 112323 [18:46:55]line ФПД: 17239735136489 [18:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112323&fm=17239735136489&tin=02508201610067®Number=0000000000092771&sum=70000 [18:46:55]OFD Sender: Processing packet 112323 [packets to send 38, broken 37] [18:46:55]ProducePacketName [18:46:55]name=ofd_packets/00112323 [18:46:55]OFD Sender: To server: pG, [18:46:55]CommunicateWithHost lk.salyk.kg:30040 [18:46:55]ConnectInit lk.salyk.kg [18:46:55]written 0, free lines is 4095 [18:46:55]Connected sock=10 [18:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 6F 07 01 BA 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 3D 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B6 01 00 35 04 06 00 0F AD F0 49 F0 E9 48 A5 DB 29 A9 E1 85 3C [18:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 57 47 00 0E 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B6 01 00 F4 03 04 00 41 B3 76 66 B6 04 01 00 00 08 06 42 58 7C CA C5 EF [18:46:55]CommunicateWithHost err = 0 [18:46:55]CheckOFDResponse [18:46:55]1017 (14) - 77093643461234 [18:46:55]1041 (16) - 0000000000875083 [18:46:55]1040 (4) - 112323 [18:46:55]1012 (4) - 22.06.2024 11:19 [18:46:55]1206 (1) - 0 [18:46:55]OFD Sender: Remove packet 112323 [18:46:55]ProducePacketName [18:46:55]name=ofd_packets/00112323 [18:46:55]NVStorageDeleteData [18:46:56]Write to MH i2c: 01 00 00 02 4E 50 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 02 4E 00 00 00 00 00 DC 0C 3F [18:46:56]RasterBufferAndPrint [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]written 0, free lines is 3301 [18:46:56]MH_Cut [18:46:56]Write to MH i2c: D1 01 00 09 4E 01 29 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 01 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 01 00 09 4E 00 28 [18:46:56]Write to MH i2c: 01 00 00 0A 4E 58 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]OFD Sender: No OFD packet to send [18:46:56]*** Cut start [18:46:56]*** Partial cut [18:46:56]*** CUTSNS_PIN = 1 [18:46:56]*** CUTSNS_PIN = 0 [18:46:57]*** Brake cut motor [18:46:57]Read from MH i2c: 01 [18:46:57]MH_I2C_Read... [18:46:57]*** Stop cut motor [18:46:57]*** Cut end [18:46:57]Read from MH i2c: 01 07 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 0A 4E 00 00 00 00 00 FF 0F 6D [18:46:57]process_action close_receipt done [18:46:57]requested_data is exist [18:46:57]produce_requested_data [18:46:57]requested_item fm.sn is exist - process it [18:46:57]wFMCommunicate request_size=4 [18:46:57]MH_SAM_APDU [18:46:57]CAPDU: 80 11 00 00 [18:46:57]Write to MH i2c: E2 08 00 0B 4E 80 11 00 00 00 00 00 00 D3 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:57]Read from MH i2c: E2 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 17 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 17 00 0B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [18:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:46:57]wFMCommunicate OK [18:46:57]requested_item fd.num is exist - process it [18:46:57]SAM_PROTO_GetFieldsCounters [18:46:57]wFMCommunicate request_size=4 [18:46:57]MH_SAM_APDU [18:46:57]CAPDU: 80 13 00 00 [18:46:57]Write to MH i2c: E2 08 00 0C 4E 80 13 00 00 00 00 00 00 D6 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:57]Read from MH i2c: E2 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 62 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 62 00 0C 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [18:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:57]wFMCommunicate OK [18:46:57]SAM_PROTO_GetFieldsCounters done [18:46:57]requested_item shift.num is exist - process it [18:46:57]requested_item shift.opened is exist - process it [18:46:57]req_shift_opened [18:46:57]FM_GetShiftState [18:46:57]SAM_PROTO_GetShiftState [18:46:57]wFMCommunicate request_size=4 [18:46:57]MH_SAM_APDU [18:46:57]CAPDU: 80 13 01 00 [18:46:57]Write to MH i2c: E2 08 00 0D 4E 80 13 01 00 00 00 00 00 D8 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:57]Read from MH i2c: E2 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 0E 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 0E 00 0D 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0D [18:46:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:46:57]wFMCommunicate OK [18:46:57]SAM_PROTO_GetShiftState done [18:46:57]FM_GetShiftState done [18:46:57]req_shift_opened done [18:46:57]requested_item shift.open_date is exist - process it [18:46:57]req_shift_open_date [18:46:57]req_shift_open_date done [18:46:57]produce_requested_data done [18:46:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112323,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:46:57]process_action_free close_receipt [18:46:57]json_value_free [18:46:57]json_value_free done [18:46:57]process_json_proto returns [18:46:57]Send response to host [18:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112323,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:46:57]free response buf [18:46:57]execute_script done [18:46:57]execute_script returns [18:46:57]free content buf [18:46:57]Sock 9.Close socket [18:46:57]Sock 9.Thread stoped [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:01]accept exits with 7 [18:48:01]New connection [18:48:01]New thread 3066957156 created [18:48:01]Thread 3066813796 joined [18:48:01]Waiting for new connection... [18:48:01] Sock 7.Parse request [18:48:01]Sock 7.Check first char [18:48:01]Sock 7.First char is OK [18:48:01]request: POST /json_proto HTTP/1.0 [18:48:01]Method: POST [18:48:01]URL: /json_proto [18:48:01]Method is POST - this is cgi request [18:48:01]url: /json_proto [18:48:01]query_string will be loaded in cgi processing [18:48:01]execute_cgi json_proto POST (null) [18:48:01]execute_cgi path=json_proto method=POST [18:48:01]POST find Content-Length [18:48:01]Host: 172.17.59.68:8080 [18:48:01]Content-Length: 677 [18:48:01]Content-Type: application/json [18:48:01] [18:48:01]POST finish read [18:48:01]Found Content-Length = 677 [18:48:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321001", "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.40, "quantity" : 4.670, "sum" : 310.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:01]execute_script... [18:48: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)321001", "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.40, "quantity" : 4.670, "sum" : 310.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:01]POST & json_proto [18:48:01]process_json_proto [18:48:01]json parsed OK: [18:48:01]protocol is kg_v1.0 [18:48:01]action value=close_receipt [18:48:01]process_action close_receipt [18:48:01]cmd_close_receipt [18:48:01]MH_GetDate [18:48:01]Write to MH i2c: F0 00 00 0E 4E 4B [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: F0 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: F0 09 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: F0 09 00 0E 4E 00 81 1C 77 66 BC EC 60 65 3B [18:48:01]GetLastDocTimeStamp 1719082045 [18:48:01]current date 1719082113 [18:48:01]FM_GetShiftState [18:48:01]SAM_PROTO_GetShiftState [18:48:01]wFMCommunicate request_size=4 [18:48:01]MH_SAM_APDU [18:48:01]CAPDU: 80 13 01 00 [18:48:01]Write to MH i2c: E2 08 00 0F 4E 80 13 01 00 00 00 00 00 DA [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:01]Read from MH i2c: E2 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 0E 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 0E 00 0F 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0F [18:48:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:48:01]wFMCommunicate OK [18:48:01]SAM_PROTO_GetShiftState done [18:48:01]FM_GetShiftState done [18:48:01]opened in 1719020067 [18:48:01]opened+sec_in_day 1719106467 [18:48:01]quantity*price = 31008 [18:48:01]sum+1 = 31010 [18:48:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.93 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 190 22.06.2024 18:48 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112324 ФПД: 78546396052003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112324&fm=78546396052003&tin=02508201610067®Number=0000000000092771&sum=31000 [18:48:02]StoreToDocumentArchive [18:48:02]shift 391 fd 112324 [18:48:02]save to /storage/0391/doc_00112324 [18:48:02]save last doc name /storage/0391/doc_00112324 to /storage/kkm_last_doc_name [18:48:02]save OK [18:48:02]Clear old archive folders... [18:48:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:02]tlvbuf is 011F14E0 [18:48:02]SAM_PROTO_ClearQueue [18:48:02]wFMCommunicate request_size=4 [18:48:02]MH_SAM_APDU [18:48:02]CAPDU: 80 09 00 00 [18:48:02]Write to MH i2c: E2 08 00 1C 4E 80 09 00 00 00 00 00 00 DC [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:02]Read from MH i2c: E2 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 03 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 03 00 1C 4E 00 90 00 DE [18:48:02]RAPDU: 90 00 [18:48:02]wFMCommunicate OK [18:48:02]SAM_PROTO_ClearQueue done [18:48:02]KKMCreateOFDPacket [18:48:02]OFDProtocolAddRootSTLVToBuf [18:48:02]FM_MakeSignedData [18:48:02]FM_MakeSignedData [18:48:02]SAM_PROTO_SignData [18:48:02]wFMCommunicate request_size=4 [18:48:02]MH_SAM_APDU [18:48:02]CAPDU: 80 0D 01 02 [18:48:02]Write to MH i2c: E2 08 00 1D 4E 80 0D 01 02 00 00 00 00 E4 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:02]Read from MH i2c: E2 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 03 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 03 00 1D 4E 00 90 00 DF [18:48:02]RAPDU: 90 00 [18:48:02]wFMCommunicate OK [18:48:02]wFMCommunicate request_size=255 [18:48:02]MH_SAM_APDU [18:48: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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 81 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B6 01 00 35 04 06 00 47 [18:48:02]Write to MH i2c: E2 02 01 1E 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 81 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B6 01 00 35 04 06 00 47 00 00 81 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 1E 4E 00 90 00 E0 [18:48:03]RAPDU: 90 00 [18:48:03]wFMCommunicate OK [18:48:03]wFMCommunicate request_size=10 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 0D 02 02 05 70 02 08 FA 23 [18:48:03]Write to MH i2c: E2 0D 00 1F 4E 80 0D 02 02 05 00 70 02 08 FA 23 00 00 88 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 1F 4E 00 90 00 E1 [18:48:03]RAPDU: 90 00 [18:48:03]wFMCommunicate OK [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 0D 03 02 [18:48:03]Write to MH i2c: E2 08 00 20 4E 80 0D 03 02 00 00 00 00 E9 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 0B 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 0B 00 20 4E 00 6B C9 98 EA 3A 6C 45 EA 90 00 75 [18:48:03]RAPDU: 6B C9 98 EA 3A 6C 45 EA 90 00 [18:48:03]wFMCommunicate OK [18:48:03]SAM_PROTO_SignData done [18:48:03]FM_MakeSignedData done [18:48:03]CreateOFDProtocolMessage [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 11 00 00 [18:48:03]Write to MH i2c: E2 08 00 21 4E 80 11 00 00 00 00 00 00 E9 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 17 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 17 00 21 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [18:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:48:03]wFMCommunicate OK [18:48:03]CreateOFDProtocolMessage done [18:48:03]OFDSenderStorePacket 112324 [18:48:03]StoreOFDPacket docnum=112324 [18:48:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 38 07 01 8C 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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 81 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B6 01 00 35 04 06 00 47 70 02 08 FA 23 6B C9 98 EA 3A 6C 45 EA [18:48:03]CheckFolder [18:48:03]dirname=/storage/ofd_packets [18:48:03]CheckFolder done [18:48:03]ProducePacketName [18:48:03]name=ofd_packets/00112324 [18:48:03]NVStorageSaveData ofd_packets/00112324 [18:48:03]File name is /storage/ofd_packets/00112324 [18:48:03]Write 301 bytes [18:48:03]NVStorageSaveData done [18:48:03]OFDSenderStorePacket done [18:48:03]KKMCreateOFDPacket done [18:48:03]NVStorageSaveData kkm_last_timestamp [18:48:03]File name is /storage/kkm_last_timestamp [18:48:03]Write 4 bytes [18:48:03]NVStorageSaveData done [18:48:03]ExternCall_PrintAddStr [18:48:03]wPrintStart [18:48:03]Write to MH i2c: 01 00 00 22 4E 70 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 22 4E 00 00 00 00 00 FF 0F 85 [18:48:03]RasterBufferAndPrint [18:48:03]line Счет N : (1)321001 [18:48:03]line ИНН: 02508201610067 [18:48:03]line Контрольно-Кассовый Чек [18:48:03]line ПРОДАЖА [18:48:03]line ТРК (МРК, ГНК) : 11 [18:48:03]line Товар: 2710124130 [18:48:03]line Аи-92-К-5 [18:48:03]line 4.670 * 66.40 [18:48:03]line = 310.09 [18:48:03]line НДС 12% НСП 1% [18:48:03]line > о реализуемом товаре [18:48:03]line ОКРУГЛЕНИЕ: -0.09 [18:48:03]line ИТОГО: 310.00 [18:48:03]line Внесено: 310.00 [18:48:03]line СДАЧА: 0.00 [18:48:03]line НСП 1% : 2.74 [18:48:03]line НДС 12% : 32.93 [18:48:03]line Наличными: 310.00 [18:48:03]line Безнал.: 0.00 [18:48:03]line Место: АЗС № 65 "Партнер Нефть" [18:48:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:48:03]line СНО: Общий режим [18:48:03]line Чек 190 22.06.2024 18:48 [18:48:03]line Смена: 391 ФФД: 1.0 [18:48:03]line ЗНМ: 0300000198 [18:48:03]line РНМ: 0000000000092771 [18:48:03]line Версия ККМ: 001 [18:48:03]line ФМ: 0000000000875083 [18:48:03]line ФД: 112324 [18:48:03]line ФПД: 78546396052003 [18:48:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184833&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112324&fm=78546396052003&tin=02508201610067®Number=0000000000092771&sum=31000 [18:48:03]OFD Sender: Processing packet 112324 [packets to send 38, broken 37] [18:48:03]ProducePacketName [18:48:03]name=ofd_packets/00112324 [18:48:03]OFD Sender: To server: pG, [18:48:03]CommunicateWithHost lk.salyk.kg:30040 [18:48:03]ConnectInit lk.salyk.kg [18:48:03]written 0, free lines is 4095 [18:48:03]Connected sock=10 [18:48:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 38 07 01 8C 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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 81 1C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B6 01 00 35 04 06 00 47 70 02 08 FA 23 6B C9 98 EA 3A 6C 45 EA [18:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9D 47 47 00 A6 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B6 01 00 F4 03 04 00 85 B3 76 66 B6 04 01 00 00 20 22 54 FF 76 E4 C8 43 [18:48:03]CommunicateWithHost err = 0 [18:48:03]CheckOFDResponse [18:48:03]1017 (14) - 77093643461234 [18:48:03]1041 (16) - 0000000000875083 [18:48:03]1040 (4) - 112324 [18:48:03]1012 (4) - 22.06.2024 11:20 [18:48:03]1206 (1) - 0 [18:48:03]OFD Sender: Remove packet 112324 [18:48:03]ProducePacketName [18:48:03]name=ofd_packets/00112324 [18:48:03]NVStorageDeleteData [18:48:04]Write to MH i2c: 01 00 00 4D 4E 9B [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 4D 4E 00 00 00 00 00 EC 0C 9A [18:48:04]RasterBufferAndPrint [18:48:04]line [18:48:04]line [18:48:04]line [18:48:04]line [18:48:04]line [18:48:04]written 0, free lines is 3314 [18:48:04]MH_Cut [18:48:04]Write to MH i2c: D1 01 00 54 4E 01 74 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: D1 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: D1 01 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: D1 01 00 54 4E 00 73 [18:48:04]Write to MH i2c: 01 00 00 55 4E A3 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]OFD Sender: No OFD packet to send [18:48:04]*** Cut start [18:48:04]*** Partial cut [18:48:04]*** CUTSNS_PIN = 1 [18:48:04]*** CUTSNS_PIN = 0 [18:48:05]*** Brake cut motor [18:48:05]Read from MH i2c: 01 [18:48:05]MH_I2C_Read... [18:48:05]*** Stop cut motor [18:48:05]*** Cut end [18:48:05]Read from MH i2c: 01 07 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 55 4E 00 00 00 00 00 FF 0F B8 [18:48:05]process_action close_receipt done [18:48:05]requested_data is exist [18:48:05]produce_requested_data [18:48:05]requested_item fm.sn is exist - process it [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 11 00 00 [18:48:05]Write to MH i2c: E2 08 00 56 4E 80 11 00 00 00 00 00 00 1E [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 17 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 17 00 56 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [18:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:48:05]wFMCommunicate OK [18:48:05]requested_item fd.num is exist - process it [18:48:05]SAM_PROTO_GetFieldsCounters [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 13 00 00 [18:48:05]Write to MH i2c: E2 08 00 57 4E 80 13 00 00 00 00 00 00 21 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 62 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 62 00 57 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:48:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:05]wFMCommunicate OK [18:48:05]SAM_PROTO_GetFieldsCounters done [18:48:05]requested_item shift.num is exist - process it [18:48:05]requested_item shift.opened is exist - process it [18:48:05]req_shift_opened [18:48:05]FM_GetShiftState [18:48:05]SAM_PROTO_GetShiftState [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 13 01 00 [18:48:05]Write to MH i2c: E2 08 00 58 4E 80 13 01 00 00 00 00 00 23 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 0E 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 0E 00 58 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 58 [18:48:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:48:05]wFMCommunicate OK [18:48:05]SAM_PROTO_GetShiftState done [18:48:05]FM_GetShiftState done [18:48:05]req_shift_opened done [18:48:05]requested_item shift.open_date is exist - process it [18:48:05]req_shift_open_date [18:48:05]req_shift_open_date done [18:48:05]produce_requested_data done [18:48:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112324,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:48:05]process_action_free close_receipt [18:48:05]json_value_free [18:48:05]json_value_free done [18:48:05]process_json_proto returns [18:48:05]Send response to host [18:48:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112324,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:48:05]free response buf [18:48:05]execute_script done [18:48:05]execute_script returns [18:48:05]free content buf [18:48:05]Sock 7.Close socket [18:48:05]Sock 7.Thread stoped [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:09]accept exits with 9 [18:51:09]New connection [18:51:09]New thread 3066813796 created [18:51:09]Thread 3066957156 joined [18:51:09]Waiting for new connection... [18:51:09] Sock 9.Parse request [18:51:09]Sock 9.Check first char [18:51:09]Sock 9.First char is OK [18:51:09]request: POST /json_proto HTTP/1.0 [18:51:09]Method: POST [18:51:09]URL: /json_proto [18:51:09]Method is POST - this is cgi request [18:51:09]url: /json_proto [18:51:09]query_string will be loaded in cgi processing [18:51:09]execute_cgi json_proto POST (null) [18:51:09]execute_cgi path=json_proto method=POST [18:51:09]POST find Content-Length [18:51:09]Host: 172.17.59.68:8080 [18:51:09]Content-Length: 682 [18:51:09]Content-Type: application/json [18:51:09] [18:51:09]POST finish read [18:51:09]Found Content-Length = 682 [18:51:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321002", "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.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:09]execute_script... [18:51: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)321002", "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.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:09]POST & json_proto [18:51:09]process_json_proto [18:51:09]json parsed OK: [18:51:09]protocol is kg_v1.0 [18:51:09]action value=close_receipt [18:51:09]process_action close_receipt [18:51:09]cmd_close_receipt [18:51:09]MH_GetDate [18:51:09]Write to MH i2c: F0 00 00 59 4E 96 [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: F0 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: F0 09 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: F0 09 00 59 4E 00 3D 1D 77 66 BC EC 60 65 43 [18:51:09]GetLastDocTimeStamp 1719082113 [18:51:09]current date 1719082301 [18:51:09]FM_GetShiftState [18:51:09]SAM_PROTO_GetShiftState [18:51:09]wFMCommunicate request_size=4 [18:51:09]MH_SAM_APDU [18:51:09]CAPDU: 80 13 01 00 [18:51:09]Write to MH i2c: E2 08 00 5A 4E 80 13 01 00 00 00 00 00 25 [18:51:09]Write i2c OK [18:51:09]MH_I2C_Read... [18:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:09]Read from MH i2c: E2 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 0E 00 [18:51:09]MH_I2C_Read... [18:51:09]Read from MH i2c: E2 0E 00 5A 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5A [18:51:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:51:09]wFMCommunicate OK [18:51:09]SAM_PROTO_GetShiftState done [18:51:09]FM_GetShiftState done [18:51:09]opened in 1719020067 [18:51:09]opened+sec_in_day 1719106467 [18:51:09]quantity*price = 190036 [18:51:09]sum+1 = 190038 [18:51:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.81 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 191 22.06.2024 18:51 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112325 ФПД: 24110372456791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T185141&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112325&fm=24110372456791&tin=02508201610067®Number=0000000000092771&sum=190000 [18:51:11]StoreToDocumentArchive [18:51:11]shift 391 fd 112325 [18:51:11]save to /storage/0391/doc_00112325 [18:51:11]save last doc name /storage/0391/doc_00112325 to /storage/kkm_last_doc_name [18:51:11]save OK [18:51:11]Clear old archive folders... [18:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:11]tlvbuf is 011D1240 [18:51:11]SAM_PROTO_ClearQueue [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 09 00 00 [18:51:11]Write to MH i2c: E2 08 00 67 4E 80 09 00 00 00 00 00 00 27 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 67 4E 00 90 00 29 [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]SAM_PROTO_ClearQueue done [18:51:11]KKMCreateOFDPacket [18:51:11]OFDProtocolAddRootSTLVToBuf [18:51:11]FM_MakeSignedData [18:51:11]FM_MakeSignedData [18:51:11]SAM_PROTO_SignData [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 01 02 [18:51:11]Write to MH i2c: E2 08 00 68 4E 80 0D 01 02 00 00 00 00 2F [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 68 4E 00 90 00 2A [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=255 [18:51:11]MH_SAM_APDU [18:51: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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3D 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B6 01 00 35 04 06 00 15 [18:51:11]Write to MH i2c: E2 02 01 69 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3D 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B6 01 00 35 04 06 00 15 00 00 B4 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 69 4E 00 90 00 2B [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=10 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 02 02 05 ED A2 2F 89 57 [18:51:11]Write to MH i2c: E2 0D 00 6A 4E 80 0D 02 02 05 00 ED A2 2F 89 57 00 00 DA [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 6A 4E 00 90 00 2C [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 03 02 [18:51:11]Write to MH i2c: E2 08 00 6B 4E 80 0D 03 02 00 00 00 00 34 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 0B 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 0B 00 6B 4E 00 63 D3 69 AB 07 C7 20 D6 90 00 43 [18:51:11]RAPDU: 63 D3 69 AB 07 C7 20 D6 90 00 [18:51:11]wFMCommunicate OK [18:51:11]SAM_PROTO_SignData done [18:51:11]FM_MakeSignedData done [18:51:11]CreateOFDProtocolMessage [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 11 00 00 [18:51:11]Write to MH i2c: E2 08 00 6C 4E 80 11 00 00 00 00 00 00 34 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 17 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 17 00 6C 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [18:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:51:11]wFMCommunicate OK [18:51:11]CreateOFDProtocolMessage done [18:51:11]OFDSenderStorePacket 112325 [18:51:11]StoreOFDPacket docnum=112325 [18:51:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 01 F9 07 01 1F 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3D 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B6 01 00 35 04 06 00 15 ED A2 2F 89 57 63 D3 69 AB 07 C7 20 D6 [18:51:11]CheckFolder [18:51:11]dirname=/storage/ofd_packets [18:51:11]CheckFolder done [18:51:11]ProducePacketName [18:51:11]name=ofd_packets/00112325 [18:51:11]NVStorageSaveData ofd_packets/00112325 [18:51:11]File name is /storage/ofd_packets/00112325 [18:51:11]Write 301 bytes [18:51:11]NVStorageSaveData done [18:51:11]OFDSenderStorePacket done [18:51:11]KKMCreateOFDPacket done [18:51:11]NVStorageSaveData kkm_last_timestamp [18:51:11]File name is /storage/kkm_last_timestamp [18:51:11]Write 4 bytes [18:51:11]NVStorageSaveData done [18:51:11]ExternCall_PrintAddStr [18:51:11]wPrintStart [18:51:11]Write to MH i2c: 01 00 00 6D 4E BB [18:51:11]OFD Sender: Processing packet 112325 [packets to send 38, broken 37] [18:51:11]ProducePacketName [18:51:11]name=ofd_packets/00112325 [18:51:11]OFD Sender: To server: pG, [18:51:11]CommunicateWithHost lk.salyk.kg:30040 [18:51:11]ConnectInit lk.salyk.kg [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: 01 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: 01 07 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: 01 07 00 6D 4E 00 00 00 00 00 FF 0F D0 [18:51:11]RasterBufferAndPrint [18:51:11]line Счет N : (1)321002 [18:51:11]line ИНН: 02508201610067 [18:51:11]line Контрольно-Кассовый Чек [18:51:11]line ПРОДАЖА [18:51:11]line ТРК (МРК, ГНК) : 11 [18:51:11]line Товар: 2710124130 [18:51:11]line Аи-92-К-5 [18:51:11]line 28.620 * 66.40 [18:51:11]line = 1900.37 [18:51:11]line НДС 12% НСП 1% [18:51:11]line > о реализуемом товаре [18:51:11]line ОКРУГЛЕНИЕ: -0.37 [18:51:11]line ИТОГО: 1900.00 [18:51:11]line Внесено: 1900.00 [18:51:11]line СДАЧА: 0.00 [18:51:11]line НСП 1% : 16.82 [18:51:11]line НДС 12% : 201.81 [18:51:11]line Наличными: 1900.00 [18:51:11]line Безнал.: 0.00 [18:51:11]line Место: АЗС № 65 "Партнер Нефть" [18:51:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:51:11]line СНО: Общий режим [18:51:11]line Чек 191 22.06.2024 18:51 [18:51:11]line Смена: 391 ФФД: 1.0 [18:51:11]line ЗНМ: 0300000198 [18:51:11]line РНМ: 0000000000092771 [18:51:11]line Версия ККМ: 001 [18:51:11]line ФМ: 0000000000875083 [18:51:11]line ФД: 112325 [18:51:11]line ФПД: 24110372456791 [18:51:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T185141&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112325&fm=24110372456791&tin=02508201610067®Number=0000000000092771&sum=190000 [18:51:11]Connected sock=10 [18:51:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 01 F9 07 01 1F 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3D 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B6 01 00 35 04 06 00 15 ED A2 2F 89 57 63 D3 69 AB 07 C7 20 D6 [18:51:11]written 0, free lines is 4095 [18:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 BB 47 00 8E 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B6 01 00 F4 03 04 00 41 B4 76 66 B6 04 01 00 00 B7 F0 9C 83 A4 16 3D 75 [18:51:12]CommunicateWithHost err = 0 [18:51:12]CheckOFDResponse [18:51:12]1017 (14) - 77093643461234 [18:51:12]1041 (16) - 0000000000875083 [18:51:12]1040 (4) - 112325 [18:51:12]1012 (4) - 22.06.2024 11:23 [18:51:12]1206 (1) - 0 [18:51:12]OFD Sender: Remove packet 112325 [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00112325 [18:51:12]NVStorageDeleteData [18:51:12]Write to MH i2c: 01 00 00 98 4E E6 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 98 4E 00 00 00 00 00 E4 0C DD [18:51:12]RasterBufferAndPrint [18:51:12]line [18:51:12]line [18:51:12]line [18:51:12]line [18:51:12]line [18:51:12]written 0, free lines is 3309 [18:51:12]MH_Cut [18:51:12]Write to MH i2c: D1 01 00 9F 4E 01 BF [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: D1 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: D1 01 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: D1 01 00 9F 4E 00 BE [18:51:12]Write to MH i2c: 01 00 00 A0 4E EE [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]OFD Sender: No OFD packet to send [18:51:13]*** Cut start [18:51:13]*** Partial cut [18:51:13]*** CUTSNS_PIN = 1 [18:51:13]*** CUTSNS_PIN = 0 [18:51:13]*** Brake cut motor [18:51:13]Read from MH i2c: 01 [18:51:13]MH_I2C_Read... [18:51:13]*** Stop cut motor [18:51:13]*** Cut end [18:51:13]Read from MH i2c: 01 07 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 A0 4E 00 00 00 00 00 FF 0F 03 [18:51:13]process_action close_receipt done [18:51:13]requested_data is exist [18:51:13]produce_requested_data [18:51:13]requested_item fm.sn is exist - process it [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 11 00 00 [18:51:13]Write to MH i2c: E2 08 00 A1 4E 80 11 00 00 00 00 00 00 69 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 17 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 17 00 A1 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BB [18:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:51:13]wFMCommunicate OK [18:51:13]requested_item fd.num is exist - process it [18:51:13]SAM_PROTO_GetFieldsCounters [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 13 00 00 [18:51:13]Write to MH i2c: E2 08 00 A2 4E 80 13 00 00 00 00 00 00 6C [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 62 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 62 00 A2 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:51:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:13]wFMCommunicate OK [18:51:13]SAM_PROTO_GetFieldsCounters done [18:51:13]requested_item shift.num is exist - process it [18:51:13]requested_item shift.opened is exist - process it [18:51:13]req_shift_opened [18:51:13]FM_GetShiftState [18:51:13]SAM_PROTO_GetShiftState [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 13 01 00 [18:51:13]Write to MH i2c: E2 08 00 A3 4E 80 13 01 00 00 00 00 00 6E [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 0E 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 0E 00 A3 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A3 [18:51:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:51:13]wFMCommunicate OK [18:51:13]SAM_PROTO_GetShiftState done [18:51:13]FM_GetShiftState done [18:51:13]req_shift_opened done [18:51:13]requested_item shift.open_date is exist - process it [18:51:13]req_shift_open_date [18:51:13]req_shift_open_date done [18:51:13]produce_requested_data done [18:51:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112325,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:51:13]process_action_free close_receipt [18:51:13]json_value_free [18:51:13]json_value_free done [18:51:13]process_json_proto returns [18:51:13]Send response to host [18:51:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112325,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:51:13]free response buf [18:51:13]execute_script done [18:51:13]execute_script returns [18:51:13]free content buf [18:51:13]Sock 9.Close socket [18:51:14]Sock 9.Thread stoped [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:53:57]accept exits with 7 [18:53:57]New connection [18:53:57]New thread 3066957156 created [18:53:57]Thread 3066813796 joined [18:53:57]Waiting for new connection... [18:53:57] Sock 7.Parse request [18:53:57]Sock 7.Check first char [18:53:57]Sock 7.First char is OK [18:53:57]request: POST /json_proto HTTP/1.0 [18:53:57]Method: POST [18:53:57]URL: /json_proto [18:53:57]Method is POST - this is cgi request [18:53:57]url: /json_proto [18:53:57]query_string will be loaded in cgi processing [18:53:57]execute_cgi json_proto POST (null) [18:53:57]execute_cgi path=json_proto method=POST [18:53:57]POST find Content-Length [18:53:57]Host: 172.17.59.68:8080 [18:53:57]Content-Length: 674 [18:53:57]Content-Type: application/json [18:53:57] [18:53:57]POST finish read [18:53:57]Found Content-Length = 674 [18:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:57]execute_script... [18:53: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)321003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:57]POST & json_proto [18:53:57]process_json_proto [18:53:57]json parsed OK: [18:53:57]protocol is kg_v1.0 [18:53:57]action value=close_receipt [18:53:57]process_action close_receipt [18:53:57]cmd_close_receipt [18:53:57]MH_GetDate [18:53:57]Write to MH i2c: F0 00 00 A4 4E E1 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: F0 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: F0 09 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: F0 09 00 A4 4E 00 E5 1D 77 66 BC EC 60 65 36 [18:53:57]GetLastDocTimeStamp 1719082301 [18:53:57]current date 1719082469 [18:53:57]FM_GetShiftState [18:53:57]SAM_PROTO_GetShiftState [18:53:57]wFMCommunicate request_size=4 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 13 01 00 [18:53:57]Write to MH i2c: E2 08 00 A5 4E 80 13 01 00 00 00 00 00 70 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 0E 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 0E 00 A5 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A5 [18:53:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:53:57]wFMCommunicate OK [18:53:57]SAM_PROTO_GetShiftState done [18:53:57]FM_GetShiftState done [18:53:57]opened in 1719020067 [18:53:57]opened+sec_in_day 1719106467 [18:53:57]quantity*price = 30034 [18:53:57]sum+1 = 30036 [18:53:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 192 22.06.2024 18:54 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112326 ФПД: 184507719634250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T185429&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112326&fm=184507719634250&tin=02508201610067®Number=0000000000092771&sum=30000 [18:53:59]StoreToDocumentArchive [18:53:59]shift 391 fd 112326 [18:53:59]save to /storage/0391/doc_00112326 [18:53:59]save last doc name /storage/0391/doc_00112326 to /storage/kkm_last_doc_name [18:53:59]save OK [18:53:59]Clear old archive folders... [18:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:53:59]tlvbuf is 011EB8B0 [18:53:59]SAM_PROTO_ClearQueue [18:53:59]wFMCommunicate request_size=4 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 09 00 00 [18:53:59]Write to MH i2c: E2 08 00 B2 4E 80 09 00 00 00 00 00 00 72 [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 B2 4E 00 90 00 74 [18:53:59]RAPDU: 90 00 [18:53:59]wFMCommunicate OK [18:53:59]SAM_PROTO_ClearQueue done [18:53:59]KKMCreateOFDPacket [18:53:59]OFDProtocolAddRootSTLVToBuf [18:53:59]FM_MakeSignedData [18:53:59]FM_MakeSignedData [18:53:59]SAM_PROTO_SignData [18:53:59]wFMCommunicate request_size=4 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 0D 01 02 [18:53:59]Write to MH i2c: E2 08 00 B3 4E 80 0D 01 02 00 00 00 00 7A [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 B3 4E 00 90 00 75 [18:53:59]RAPDU: 90 00 [18:53:59]wFMCommunicate OK [18:53:59]wFMCommunicate request_size=255 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E5 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B6 01 00 35 04 06 00 A7 CF 0D 16 [18:53:59]Write to MH i2c: E2 02 01 B4 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E5 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B6 01 00 35 04 06 00 A7 CF 0D 16 00 00 71 [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 B4 4E 00 90 00 76 [18:53:59]RAPDU: 90 00 [18:53:59]wFMCommunicate OK [18:53:59]wFMCommunicate request_size=7 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 0D 02 02 02 4D 4A [18:53:59]Write to MH i2c: E2 0A 00 B5 4E 80 0D 02 02 02 00 4D 4A 00 00 18 [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 B5 4E 00 90 00 77 [18:53:59]RAPDU: 90 00 [18:53:59]wFMCommunicate OK [18:53:59]wFMCommunicate request_size=4 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 0D 03 02 [18:53:59]Write to MH i2c: E2 08 00 B6 4E 80 0D 03 02 00 00 00 00 7F [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 0B 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 0B 00 B6 4E 00 38 AE 6A 42 9C A2 28 41 90 00 B9 [18:53:59]RAPDU: 38 AE 6A 42 9C A2 28 41 90 00 [18:53:59]wFMCommunicate OK [18:53:59]SAM_PROTO_SignData done [18:53:59]FM_MakeSignedData done [18:53:59]CreateOFDProtocolMessage [18:53:59]wFMCommunicate request_size=4 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 11 00 00 [18:53:59]Write to MH i2c: E2 08 00 B7 4E 80 11 00 00 00 00 00 00 7F [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 17 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 17 00 B7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D1 [18:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:53:59]wFMCommunicate OK [18:53:59]CreateOFDProtocolMessage done [18:53:59]OFDSenderStorePacket 112326 [18:53:59]StoreOFDPacket docnum=112326 [18:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 64 C5 04 01 AE 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E5 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B6 01 00 35 04 06 00 A7 CF 0D 16 4D 4A 38 AE 6A 42 9C A2 28 41 [18:53:59]CheckFolder [18:53:59]dirname=/storage/ofd_packets [18:53:59]CheckFolder done [18:53:59]ProducePacketName [18:53:59]name=ofd_packets/00112326 [18:53:59]NVStorageSaveData ofd_packets/00112326 [18:53:59]File name is /storage/ofd_packets/00112326 [18:53:59]Write 298 bytes [18:53:59]NVStorageSaveData done [18:53:59]OFDSenderStorePacket done [18:53:59]KKMCreateOFDPacket done [18:53:59]NVStorageSaveData kkm_last_timestamp [18:53:59]File name is /storage/kkm_last_timestamp [18:53:59]Write 4 bytes [18:53:59]NVStorageSaveData done [18:53:59]ExternCall_PrintAddStr [18:53:59]wPrintStart [18:53:59]Write to MH i2c: 01 00 00 B8 4E 06 [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: 01 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: 01 07 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: 01 07 00 B8 4E 00 00 00 00 00 FF 0F 1B [18:53:59]RasterBufferAndPrint [18:53:59]line Счет N : (1)321003 [18:53:59]line ИНН: 02508201610067 [18:53:59]line Контрольно-Кассовый Чек [18:53:59]line ПРОДАЖА [18:53:59]line ТРК (МРК, ГНК) : 22 [18:53:59]line Товар: 2710194210 [18:53:59]line ДТ-К-5 [18:53:59]line 4.120 * 72.90 [18:53:59]line = 300.35 [18:53:59]line НДС 12% НСП 1% [18:53:59]line > о реализуемом товаре [18:53:59]line ОКРУГЛЕНИЕ: -0.35 [18:53:59]line ИТОГО: 300.00 [18:53:59]line Внесено: 300.00 [18:53:59]line СДАЧА: 0.00 [18:53:59]line НСП 1% : 2.66 [18:53:59]line НДС 12% : 31.90 [18:53:59]line Наличными: 300.00 [18:53:59]line Безнал.: 0.00 [18:53:59]line Место: АЗС № 65 "Партнер Нефть" [18:53:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:53:59]line СНО: Общий режим [18:53:59]line Чек 192 22.06.2024 18:54 [18:53:59]line Смена: 391 ФФД: 1.0 [18:53:59]line ЗНМ: 0300000198 [18:53:59]line РНМ: 0000000000092771 [18:53:59]line Версия ККМ: 001 [18:53:59]line ФМ: 0000000000875083 [18:53:59]line ФД: 112326 [18:53:59]line ФПД: 184507719634250 [18:53:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T185429&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112326&fm=184507719634250&tin=02508201610067®Number=0000000000092771&sum=30000 [18:53:59]OFD Sender: Processing packet 112326 [packets to send 38, broken 37] [18:53:59]ProducePacketName [18:53:59]name=ofd_packets/00112326 [18:53:59]OFD Sender: To server: pG, [18:53:59]CommunicateWithHost lk.salyk.kg:30040 [18:53:59]ConnectInit lk.salyk.kg [18:53:59]written 0, free lines is 4095 [18:53:59]Connected sock=10 [18:53:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 64 C5 04 01 AE 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 E5 1D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B6 01 00 35 04 06 00 A7 CF 0D 16 4D 4A 38 AE 6A 42 9C A2 28 41 [18:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 12 47 00 C2 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B6 01 00 F4 03 04 00 E9 B4 76 66 B6 04 01 00 00 7A 48 8B 16 52 5A 18 AD [18:54:00]CommunicateWithHost err = 0 [18:54:00]CheckOFDResponse [18:54:00]1017 (14) - 77093643461234 [18:54:00]1041 (16) - 0000000000875083 [18:54:00]1040 (4) - 112326 [18:54:00]1012 (4) - 22.06.2024 11:26 [18:54:00]1206 (1) - 0 [18:54:00]OFD Sender: Remove packet 112326 [18:54:00]ProducePacketName [18:54:00]name=ofd_packets/00112326 [18:54:00]NVStorageDeleteData [18:54:00]Write to MH i2c: 01 00 00 E3 4E 31 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 07 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 07 00 E3 4E 00 00 00 00 00 D7 0C 1B [18:54:00]RasterBufferAndPrint [18:54:00]line [18:54:00]line [18:54:00]line [18:54:00]line [18:54:00]line [18:54:00]written 0, free lines is 3294 [18:54:00]MH_Cut [18:54:00]Write to MH i2c: D1 01 00 EA 4E 01 0A [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: D1 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: D1 01 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: D1 01 00 EA 4E 00 09 [18:54:00]Write to MH i2c: 01 00 00 EB 4E 39 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]OFD Sender: No OFD packet to send [18:54:01]*** Cut start [18:54:01]*** Partial cut [18:54:01]*** CUTSNS_PIN = 1 [18:54:01]*** CUTSNS_PIN = 0 [18:54:01]*** Brake cut motor [18:54:01]Read from MH i2c: 01 [18:54:01]MH_I2C_Read... [18:54:01]*** Stop cut motor [18:54:01]*** Cut end [18:54:01]Read from MH i2c: 01 07 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: 01 07 00 EB 4E 00 00 00 00 00 FF 0F 4E [18:54:01]process_action close_receipt done [18:54:01]requested_data is exist [18:54:01]produce_requested_data [18:54:01]requested_item fm.sn is exist - process it [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 11 00 00 [18:54:01]Write to MH i2c: E2 08 00 EC 4E 80 11 00 00 00 00 00 00 B4 [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 17 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 17 00 EC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 06 [18:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:54:01]wFMCommunicate OK [18:54:01]requested_item fd.num is exist - process it [18:54:01]SAM_PROTO_GetFieldsCounters [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 00 00 [18:54:01]Write to MH i2c: E2 08 00 ED 4E 80 13 00 00 00 00 00 00 B7 [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 62 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 62 00 ED 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [18:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_GetFieldsCounters done [18:54:01]requested_item shift.num is exist - process it [18:54:01]requested_item shift.opened is exist - process it [18:54:01]req_shift_opened [18:54:01]FM_GetShiftState [18:54:01]SAM_PROTO_GetShiftState [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 01 00 [18:54:01]Write to MH i2c: E2 08 00 EE 4E 80 13 01 00 00 00 00 00 B9 [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 EE 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EE [18:54:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_GetShiftState done [18:54:01]FM_GetShiftState done [18:54:01]req_shift_opened done [18:54:01]requested_item shift.open_date is exist - process it [18:54:01]req_shift_open_date [18:54:01]req_shift_open_date done [18:54:01]produce_requested_data done [18:54:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112326,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:54:01]process_action_free close_receipt [18:54:01]json_value_free [18:54:01]json_value_free done [18:54:01]process_json_proto returns [18:54:01]Send response to host [18:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112326,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:54:01]free response buf [18:54:01]execute_script done [18:54:01]execute_script returns [18:54:01]free content buf [18:54:01]Sock 7.Close socket [18:54:01]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:13]accept exits with 9 [18:59:13]New connection [18:59:13]New thread 3066813796 created [18:59:13]Thread 3066957156 joined [18:59:13]Waiting for new connection... [18:59:13] Sock 9.Parse request [18:59:13]Sock 9.Check first char [18:59:13]Sock 9.First char is OK [18:59:13]request: POST /json_proto HTTP/1.0 [18:59:13]Method: POST [18:59:13]URL: /json_proto [18:59:13]Method is POST - this is cgi request [18:59:13]url: /json_proto [18:59:13]query_string will be loaded in cgi processing [18:59:13]execute_cgi json_proto POST (null) [18:59:13]execute_cgi path=json_proto method=POST [18:59:13]POST find Content-Length [18:59:13]Host: 172.17.59.68:8080 [18:59:13]Content-Length: 677 [18:59:13]Content-Type: application/json [18:59:13] [18:59:13]POST finish read [18:59:13]Found Content-Length = 677 [18:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321004", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:13]execute_script... [18:59: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)321004", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:13]POST & json_proto [18:59:13]process_json_proto [18:59:13]json parsed OK: [18:59:13]protocol is kg_v1.0 [18:59:13]action value=close_receipt [18:59:13]process_action close_receipt [18:59:13]cmd_close_receipt [18:59:13]MH_GetDate [18:59:13]Write to MH i2c: F0 00 00 EF 4E 2C [18:59:13]Write i2c OK [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: F0 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: F0 09 00 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: F0 09 00 EF 4E 00 20 1F 77 66 BC EC 60 65 BE [18:59:13]GetLastDocTimeStamp 1719082469 [18:59:13]current date 1719082784 [18:59:13]FM_GetShiftState [18:59:13]SAM_PROTO_GetShiftState [18:59:13]wFMCommunicate request_size=4 [18:59:13]MH_SAM_APDU [18:59:13]CAPDU: 80 13 01 00 [18:59:13]Write to MH i2c: E2 08 00 F0 4E 80 13 01 00 00 00 00 00 BB [18:59:13]Write i2c OK [18:59:13]MH_I2C_Read... [18:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:13]Read from MH i2c: E2 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 0E 00 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 0E 00 F0 4E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F0 [18:59:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:59:13]wFMCommunicate OK [18:59:13]SAM_PROTO_GetShiftState done [18:59:13]FM_GetShiftState done [18:59:13]opened in 1719020067 [18:59:13]opened+sec_in_day 1719106467 [18:59:13]quantity*price = 50065 [18:59:13]sum+1 = 50067 [18:59:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 193 22.06.2024 18:59 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112327 ФПД: 2859372147542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T185944&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112327&fm=2859372147542&tin=02508201610067®Number=0000000000092771&sum=50000 [18:59:14]StoreToDocumentArchive [18:59:14]shift 391 fd 112327 [18:59:14]save to /storage/0391/doc_00112327 [18:59:14]save last doc name /storage/0391/doc_00112327 to /storage/kkm_last_doc_name [18:59:14]save OK [18:59:14]Clear old archive folders... [18:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:14]tlvbuf is 011EC530 [18:59:14]SAM_PROTO_ClearQueue [18:59:14]wFMCommunicate request_size=4 [18:59:14]MH_SAM_APDU [18:59:14]CAPDU: 80 09 00 00 [18:59:14]Write to MH i2c: E2 08 00 FD 4E 80 09 00 00 00 00 00 00 BD [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:14]Read from MH i2c: E2 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 FD 4E 00 90 00 BF [18:59:14]RAPDU: 90 00 [18:59:14]wFMCommunicate OK [18:59:14]SAM_PROTO_ClearQueue done [18:59:14]KKMCreateOFDPacket [18:59:14]OFDProtocolAddRootSTLVToBuf [18:59:14]FM_MakeSignedData [18:59:14]FM_MakeSignedData [18:59:14]SAM_PROTO_SignData [18:59:14]wFMCommunicate request_size=4 [18:59:14]MH_SAM_APDU [18:59:14]CAPDU: 80 0D 01 02 [18:59:14]Write to MH i2c: E2 08 00 FE 4E 80 0D 01 02 00 00 00 00 C5 [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:14]Read from MH i2c: E2 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 FE 4E 00 90 00 C0 [18:59:14]RAPDU: 90 00 [18:59:14]wFMCommunicate OK [18:59:14]wFMCommunicate request_size=255 [18:59:14]MH_SAM_APDU [18:59:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 20 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B6 01 00 35 04 06 00 02 [18:59:14]Write to MH i2c: E2 02 01 FF 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 20 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B6 01 00 35 04 06 00 02 00 00 5E [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:14]Read from MH i2c: E2 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 FF 4E 00 90 00 C1 [18:59:14]RAPDU: 90 00 [18:59:14]wFMCommunicate OK [18:59:14]wFMCommunicate request_size=10 [18:59:14]MH_SAM_APDU [18:59:14]CAPDU: 80 0D 02 02 05 99 BF DC 73 56 [18:59:14]Write to MH i2c: E2 0D 00 00 4F 80 0D 02 02 05 00 99 BF DC 73 56 00 00 D0 [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:14]Read from MH i2c: E2 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 03 00 00 4F 00 90 00 C3 [18:59:14]RAPDU: 90 00 [18:59:14]wFMCommunicate OK [18:59:14]wFMCommunicate request_size=4 [18:59:14]MH_SAM_APDU [18:59:14]CAPDU: 80 0D 03 02 [18:59:14]Write to MH i2c: E2 08 00 01 4F 80 0D 03 02 00 00 00 00 CB [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:14]Read from MH i2c: E2 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 0B 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 0B 00 01 4F 00 DD 9D 32 A5 04 04 CC D3 90 00 C4 [18:59:14]RAPDU: DD 9D 32 A5 04 04 CC D3 90 00 [18:59:14]wFMCommunicate OK [18:59:14]SAM_PROTO_SignData done [18:59:14]FM_MakeSignedData done [18:59:14]CreateOFDProtocolMessage [18:59:14]wFMCommunicate request_size=4 [18:59:14]MH_SAM_APDU [18:59:14]CAPDU: 80 11 00 00 [18:59:14]Write to MH i2c: E2 08 00 02 4F 80 11 00 00 00 00 00 00 CB [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:14]Read from MH i2c: E2 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 17 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: E2 17 00 02 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [18:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:59:14]wFMCommunicate OK [18:59:14]CreateOFDProtocolMessage done [18:59:14]OFDSenderStorePacket 112327 [18:59:14]StoreOFDPacket docnum=112327 [18:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F CC 07 01 6C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 20 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B6 01 00 35 04 06 00 02 99 BF DC 73 56 DD 9D 32 A5 04 04 CC D3 [18:59:14]CheckFolder [18:59:14]dirname=/storage/ofd_packets [18:59:14]CheckFolder done [18:59:14]ProducePacketName [18:59:14]name=ofd_packets/00112327 [18:59:14]NVStorageSaveData ofd_packets/00112327 [18:59:14]File name is /storage/ofd_packets/00112327 [18:59:14]Write 301 bytes [18:59:14]NVStorageSaveData done [18:59:14]OFDSenderStorePacket done [18:59:14]KKMCreateOFDPacket done [18:59:14]NVStorageSaveData kkm_last_timestamp [18:59:14]File name is /storage/kkm_last_timestamp [18:59:14]Write 4 bytes [18:59:14]NVStorageSaveData done [18:59:14]OFD Sender: Processing packet 112327 [packets to send 38, broken 37] [18:59:14]ProducePacketName [18:59:14]name=ofd_packets/00112327 [18:59:14]OFD Sender: To server: pG, [18:59:14]CommunicateWithHost lk.salyk.kg:30040 [18:59:14]ConnectInit lk.salyk.kg [18:59:14]ExternCall_PrintAddStr [18:59:14]wPrintStart [18:59:14]Write to MH i2c: 01 00 00 03 4F 52 [18:59:14]Write i2c OK [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: 01 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: 01 07 00 [18:59:14]MH_I2C_Read... [18:59:14]Read from MH i2c: 01 07 00 03 4F 00 00 00 00 00 FF 0F 67 [18:59:14]RasterBufferAndPrint [18:59:14]line Счет N : (1)321004 [18:59:14]line ИНН: 02508201610067 [18:59:14]line Контрольно-Кассовый Чек [18:59:14]line ПРОДАЖА [18:59:14]line ТРК (МРК, ГНК) : 11 [18:59:14]line Товар: 2710124130 [18:59:14]line Аи-92-К-5 [18:59:14]line 7.540 * 66.40 [18:59:14]line = 500.66 [18:59:14]line НДС 12% НСП 1% [18:59:14]line > о реализуемом товаре [18:59:14]line ОКРУГЛЕНИЕ: -0.66 [18:59:14]line ИТОГО: 500.00 [18:59:14]line Внесено: 500.00 [18:59:14]line СДАЧА: 0.00 [18:59:14]line НСП 1% : 4.43 [18:59:14]line НДС 12% : 53.17 [18:59:14]line Наличными: 500.00 [18:59:14]line Безнал.: 0.00 [18:59:14]line Место: АЗС № 65 "Партнер Нефть" [18:59:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:59:14]line СНО: Общий режим [18:59:14]line Чек 193 22.06.2024 18:59 [18:59:14]line Смена: 391 ФФД: 1.0 [18:59:14]line ЗНМ: 0300000198 [18:59:14]line РНМ: 0000000000092771 [18:59:14]line Версия ККМ: 001 [18:59:14]line ФМ: 0000000000875083 [18:59:14]line ФД: 112327 [18:59:14]line ФПД: 2859372147542 [18:59:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T185944&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112327&fm=2859372147542&tin=02508201610067®Number=0000000000092771&sum=50000 [18:59:15]Connected sock=11 [18:59:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F CC 07 01 6C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 20 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B6 01 00 35 04 06 00 02 99 BF DC 73 56 DD 9D 32 A5 04 04 CC D3 [18:59:15]written 0, free lines is 4095 [18:59:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 17 02 47 00 F9 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B6 01 00 F4 03 04 00 24 B6 76 66 B6 04 01 00 00 FC 02 19 4E 6D 47 A5 AA [18:59:15]CommunicateWithHost err = 0 [18:59:15]CheckOFDResponse [18:59:15]1017 (14) - 77093643461234 [18:59:15]1041 (16) - 0000000000875083 [18:59:15]1040 (4) - 112327 [18:59:15]1012 (4) - 22.06.2024 11:31 [18:59:15]1206 (1) - 0 [18:59:15]OFD Sender: Remove packet 112327 [18:59:15]ProducePacketName [18:59:15]name=ofd_packets/00112327 [18:59:15]NVStorageDeleteData [18:59:15]Write to MH i2c: 01 00 00 2E 4F 7D [18:59:15]Write i2c OK [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: 01 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: 01 07 00 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: 01 07 00 2E 4F 00 00 00 00 00 E4 0C 74 [18:59:15]RasterBufferAndPrint [18:59:15]line [18:59:15]line [18:59:15]line [18:59:15]line [18:59:15]line [18:59:15]written 0, free lines is 3306 [18:59:15]MH_Cut [18:59:15]Write to MH i2c: D1 01 00 35 4F 01 56 [18:59:15]Write i2c OK [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: D1 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: D1 01 00 [18:59:15]MH_I2C_Read... [18:59:15]Read from MH i2c: D1 01 00 35 4F 00 55 [18:59:15]Write to MH i2c: 01 00 00 36 4F 85 [18:59:15]Write i2c OK [18:59:15]MH_I2C_Read... [18:59:15]OFD Sender: No OFD packet to send [18:59:16]*** Cut start [18:59:16]*** Partial cut [18:59:16]*** CUTSNS_PIN = 1 [18:59:16]*** CUTSNS_PIN = 0 [18:59:16]*** Brake cut motor [18:59:16]Read from MH i2c: 01 [18:59:16]MH_I2C_Read... [18:59:16]*** Stop cut motor [18:59:16]*** Cut end [18:59:16]Read from MH i2c: 01 07 00 [18:59:16]MH_I2C_Read... [18:59:16]Read from MH i2c: 01 07 00 36 4F 00 00 00 00 00 FF 0F 9A [18:59:16]process_action close_receipt done [18:59:16]requested_data is exist [18:59:16]produce_requested_data [18:59:16]requested_item fm.sn is exist - process it [18:59:16]wFMCommunicate request_size=4 [18:59:16]MH_SAM_APDU [18:59:16]CAPDU: 80 11 00 00 [18:59:16]Write to MH i2c: E2 08 00 37 4F 80 11 00 00 00 00 00 00 00 [18:59:16]Write i2c OK [18:59:16]MH_I2C_Read... [18:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:16]Read from MH i2c: E2 [18:59:16]MH_I2C_Read... [18:59:16]Read from MH i2c: E2 17 00 [18:59:16]MH_I2C_Read... [18:59:16]Read from MH i2c: E2 17 00 37 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [18:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:59:16]wFMCommunicate OK [18:59:16]requested_item fd.num is exist - process it [18:59:16]SAM_PROTO_GetFieldsCounters [18:59:16]wFMCommunicate request_size=4 [18:59:16]MH_SAM_APDU [18:59:16]CAPDU: 80 13 00 00 [18:59:16]Write to MH i2c: E2 08 00 38 4F 80 13 00 00 00 00 00 00 03 [18:59:16]Write i2c OK [18:59:16]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 62 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 62 00 38 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [18:59:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:17]wFMCommunicate OK [18:59:17]SAM_PROTO_GetFieldsCounters done [18:59:17]requested_item shift.num is exist - process it [18:59:17]requested_item shift.opened is exist - process it [18:59:17]req_shift_opened [18:59:17]FM_GetShiftState [18:59:17]SAM_PROTO_GetShiftState [18:59:17]wFMCommunicate request_size=4 [18:59:17]MH_SAM_APDU [18:59:17]CAPDU: 80 13 01 00 [18:59:17]Write to MH i2c: E2 08 00 39 4F 80 13 01 00 00 00 00 00 05 [18:59:17]Write i2c OK [18:59:17]MH_I2C_Read... [18:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:17]Read from MH i2c: E2 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 0E 00 [18:59:17]MH_I2C_Read... [18:59:17]Read from MH i2c: E2 0E 00 39 4F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3A [18:59:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [18:59:17]wFMCommunicate OK [18:59:17]SAM_PROTO_GetShiftState done [18:59:17]FM_GetShiftState done [18:59:17]req_shift_opened done [18:59:17]requested_item shift.open_date is exist - process it [18:59:17]req_shift_open_date [18:59:17]req_shift_open_date done [18:59:17]produce_requested_data done [18:59:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112327,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [18:59:17]process_action_free close_receipt [18:59:17]json_value_free [18:59:17]json_value_free done [18:59:17]process_json_proto returns [18:59:17]Send response to host [18:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112327,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [18:59:17]free response buf [18:59:17]execute_script done [18:59:17]execute_script returns [18:59:17]free content buf [18:59:17]Sock 9.Close socket [18:59:17]Sock 9.Thread stoped [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:02]accept exits with 10 [19:01:02]New connection [19:01:02]New thread 3066957156 created [19:01:02]Thread 3066813796 joined [19:01:02]Waiting for new connection... [19:01:02] Sock 10.Parse request [19:01:02]Sock 10.Check first char [19:01:02]Sock 10.First char is OK [19:01:02]request: POST /json_proto HTTP/1.0 [19:01:02]Method: POST [19:01:02]URL: /json_proto [19:01:02]Method is POST - this is cgi request [19:01:02]url: /json_proto [19:01:02]query_string will be loaded in cgi processing [19:01:02]execute_cgi json_proto POST (null) [19:01:02]execute_cgi path=json_proto method=POST [19:01:02]POST find Content-Length [19:01:02]Host: 172.17.59.68:8080 [19:01:02]Content-Length: 677 [19:01:02]Content-Type: application/json [19:01:02] [19:01:02]POST finish read [19:01:02]Found Content-Length = 677 [19:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321005", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:01:02]execute_script... [19:01:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321005", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:01:02]POST & json_proto [19:01:02]process_json_proto [19:01:02]json parsed OK: [19:01:02]protocol is kg_v1.0 [19:01:02]action value=close_receipt [19:01:02]process_action close_receipt [19:01:02]cmd_close_receipt [19:01:02]MH_GetDate [19:01:02]Write to MH i2c: F0 00 00 3A 4F 78 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: F0 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: F0 09 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: F0 09 00 3A 4F 00 8E 1F 77 66 BC EC 60 65 78 [19:01:02]GetLastDocTimeStamp 1719082784 [19:01:02]current date 1719082894 [19:01:02]FM_GetShiftState [19:01:02]SAM_PROTO_GetShiftState [19:01:02]wFMCommunicate request_size=4 [19:01:02]MH_SAM_APDU [19:01:02]CAPDU: 80 13 01 00 [19:01:02]Write to MH i2c: E2 08 00 3B 4F 80 13 01 00 00 00 00 00 07 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:02]Read from MH i2c: E2 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 0E 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 0E 00 3B 4F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 3C [19:01:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:01:02]wFMCommunicate OK [19:01:02]SAM_PROTO_GetShiftState done [19:01:02]FM_GetShiftState done [19:01:02]opened in 1719020067 [19:01:02]opened+sec_in_day 1719106467 [19:01:02]quantity*price = 20052 [19:01:02]sum+1 = 20054 [19:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 194 22.06.2024 19:01 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112328 ФПД: 206381996657763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T190134&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112328&fm=206381996657763&tin=02508201610067®Number=0000000000092771&sum=20000 [19:01:03]StoreToDocumentArchive [19:01:03]shift 391 fd 112328 [19:01:03]save to /storage/0391/doc_00112328 [19:01:03]save last doc name /storage/0391/doc_00112328 to /storage/kkm_last_doc_name [19:01:03]save OK [19:01:03]Clear old archive folders... [19:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:03]tlvbuf is 01147EF0 [19:01:03]SAM_PROTO_ClearQueue [19:01:03]wFMCommunicate request_size=4 [19:01:03]MH_SAM_APDU [19:01:03]CAPDU: 80 09 00 00 [19:01:03]Write to MH i2c: E2 08 00 48 4F 80 09 00 00 00 00 00 00 09 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 48 4F 00 90 00 0B [19:01:03]RAPDU: 90 00 [19:01:03]wFMCommunicate OK [19:01:03]SAM_PROTO_ClearQueue done [19:01:03]KKMCreateOFDPacket [19:01:03]OFDProtocolAddRootSTLVToBuf [19:01:03]FM_MakeSignedData [19:01:03]FM_MakeSignedData [19:01:03]SAM_PROTO_SignData [19:01:03]wFMCommunicate request_size=4 [19:01:03]MH_SAM_APDU [19:01:03]CAPDU: 80 0D 01 02 [19:01:03]Write to MH i2c: E2 08 00 49 4F 80 0D 01 02 00 00 00 00 11 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 49 4F 00 90 00 0C [19:01:03]RAPDU: 90 00 [19:01:03]wFMCommunicate OK [19:01:03]wFMCommunicate request_size=255 [19:01:03]MH_SAM_APDU [19:01: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B6 01 00 35 04 06 00 BB [19:01:03]Write to MH i2c: E2 02 01 4A 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B6 01 00 35 04 06 00 BB 00 00 92 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 4A 4F 00 90 00 0D [19:01:03]RAPDU: 90 00 [19:01:03]wFMCommunicate OK [19:01:03]wFMCommunicate request_size=10 [19:01:03]MH_SAM_APDU [19:01:03]CAPDU: 80 0D 02 02 05 B4 0D 99 4C 63 [19:01:03]Write to MH i2c: E2 0D 00 4B 4F 80 0D 02 02 05 00 B4 0D 99 4C 63 00 00 27 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 03 00 4B 4F 00 90 00 0E [19:01:03]RAPDU: 90 00 [19:01:03]wFMCommunicate OK [19:01:03]wFMCommunicate request_size=4 [19:01:03]MH_SAM_APDU [19:01:03]CAPDU: 80 0D 03 02 [19:01:03]Write to MH i2c: E2 08 00 4C 4F 80 0D 03 02 00 00 00 00 16 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0B 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0B 00 4C 4F 00 8D 28 D7 C0 40 73 B7 7E 90 00 4B [19:01:04]RAPDU: 8D 28 D7 C0 40 73 B7 7E 90 00 [19:01:04]wFMCommunicate OK [19:01:04]SAM_PROTO_SignData done [19:01:04]FM_MakeSignedData done [19:01:04]CreateOFDProtocolMessage [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 11 00 00 [19:01:04]Write to MH i2c: E2 08 00 4D 4F 80 11 00 00 00 00 00 00 16 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 17 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 17 00 4D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [19:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:01:04]wFMCommunicate OK [19:01:04]CreateOFDProtocolMessage done [19:01:04]OFDSenderStorePacket 112328 [19:01:04]StoreOFDPacket docnum=112328 [19:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FF B9 07 01 57 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B6 01 00 35 04 06 00 BB B4 0D 99 4C 63 8D 28 D7 C0 40 73 B7 7E [19:01:04]CheckFolder [19:01:04]dirname=/storage/ofd_packets [19:01:04]CheckFolder done [19:01:04]ProducePacketName [19:01:04]name=ofd_packets/00112328 [19:01:04]NVStorageSaveData ofd_packets/00112328 [19:01:04]File name is /storage/ofd_packets/00112328 [19:01:04]Write 301 bytes [19:01:04]NVStorageSaveData done [19:01:04]OFDSenderStorePacket done [19:01:04]KKMCreateOFDPacket done [19:01:04]NVStorageSaveData kkm_last_timestamp [19:01:04]File name is /storage/kkm_last_timestamp [19:01:04]Write 4 bytes [19:01:04]NVStorageSaveData done [19:01:04]ExternCall_PrintAddStr [19:01:04]wPrintStart [19:01:04]Write to MH i2c: 01 00 00 4E 4F 9D [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 07 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 07 00 4E 4F 00 00 00 00 00 FF 0F B2 [19:01:04]RasterBufferAndPrint [19:01:04]line Счет N : (1)321005 [19:01:04]line ИНН: 02508201610067 [19:01:04]line Контрольно-Кассовый Чек [19:01:04]line ПРОДАЖА [19:01:04]line ТРК (МРК, ГНК) : 11 [19:01:04]line Товар: 2710124130 [19:01:04]line Аи-92-К-5 [19:01:04]line 3.020 * 66.40 [19:01:04]line = 200.53 [19:01:04]line НДС 12% НСП 1% [19:01:04]line > о реализуемом товаре [19:01:04]line ОКРУГЛЕНИЕ: -0.53 [19:01:04]line ИТОГО: 200.00 [19:01:04]line Внесено: 200.00 [19:01:04]line СДАЧА: 0.00 [19:01:04]line НСП 1% : 1.77 [19:01:04]line НДС 12% : 21.29 [19:01:04]line Наличными: 200.00 [19:01:04]line Безнал.: 0.00 [19:01:04]line Место: АЗС № 65 "Партнер Нефть" [19:01:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:01:04]line СНО: Общий режим [19:01:04]line Чек 194 22.06.2024 19:01 [19:01:04]line Смена: 391 ФФД: 1.0 [19:01:04]line ЗНМ: 0300000198 [19:01:04]line РНМ: 0000000000092771 [19:01:04]line Версия ККМ: 001 [19:01:04]line ФМ: 0000000000875083 [19:01:04]line ФД: 112328 [19:01:04]line ФПД: 206381996657763 [19:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T190134&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112328&fm=206381996657763&tin=02508201610067®Number=0000000000092771&sum=20000 [19:01:04]OFD Sender: Processing packet 112328 [packets to send 38, broken 37] [19:01:04]ProducePacketName [19:01:04]name=ofd_packets/00112328 [19:01:04]OFD Sender: To server: pG, [19:01:04]CommunicateWithHost lk.salyk.kg:30040 [19:01:04]ConnectInit lk.salyk.kg [19:01:04]written 0, free lines is 4095 [19:01:04]Connected sock=9 [19:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FF B9 07 01 57 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 1F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B6 01 00 35 04 06 00 BB B4 0D 99 4C 63 8D 28 D7 C0 40 73 B7 7E [19:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F 1A 47 00 26 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B6 01 00 F4 03 04 00 92 B6 76 66 B6 04 01 00 00 62 F0 FA D3 00 84 8C A7 [19:01:04]CommunicateWithHost err = 0 [19:01:04]CheckOFDResponse [19:01:04]1017 (14) - 77093643461234 [19:01:04]1041 (16) - 0000000000875083 [19:01:04]1040 (4) - 112328 [19:01:04]1012 (4) - 22.06.2024 11:33 [19:01:04]1206 (1) - 0 [19:01:04]OFD Sender: Remove packet 112328 [19:01:04]ProducePacketName [19:01:04]name=ofd_packets/00112328 [19:01:04]NVStorageDeleteData [19:01:04]Write to MH i2c: 01 00 00 79 4F C8 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 07 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 07 00 79 4F 00 00 00 00 00 E0 0C BB [19:01:04]RasterBufferAndPrint [19:01:04]line [19:01:04]line [19:01:04]line [19:01:04]line [19:01:04]line [19:01:04]written 0, free lines is 3302 [19:01:04]MH_Cut [19:01:04]Write to MH i2c: D1 01 00 80 4F 01 A1 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: D1 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: D1 01 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: D1 01 00 80 4F 00 A0 [19:01:04]Write to MH i2c: 01 00 00 81 4F D0 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:05]OFD Sender: No OFD packet to send [19:01:05]*** Cut start [19:01:05]*** Partial cut [19:01:05]*** CUTSNS_PIN = 1 [19:01:05]*** CUTSNS_PIN = 0 [19:01:05]*** Brake cut motor [19:01:06]Read from MH i2c: 01 [19:01:06]MH_I2C_Read... [19:01:06]*** Stop cut motor [19:01:06]*** Cut end [19:01:06]Read from MH i2c: 01 07 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 81 4F 00 00 00 00 00 FF 0F E5 [19:01:06]process_action close_receipt done [19:01:06]requested_data is exist [19:01:06]produce_requested_data [19:01:06]requested_item fm.sn is exist - process it [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 11 00 00 [19:01:06]Write to MH i2c: E2 08 00 82 4F 80 11 00 00 00 00 00 00 4B [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 82 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [19:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:01:06]wFMCommunicate OK [19:01:06]requested_item fd.num is exist - process it [19:01:06]SAM_PROTO_GetFieldsCounters [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 13 00 00 [19:01:06]Write to MH i2c: E2 08 00 83 4F 80 13 00 00 00 00 00 00 4E [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 62 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 62 00 83 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [19:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:06]wFMCommunicate OK [19:01:06]SAM_PROTO_GetFieldsCounters done [19:01:06]requested_item shift.num is exist - process it [19:01:06]requested_item shift.opened is exist - process it [19:01:06]req_shift_opened [19:01:06]FM_GetShiftState [19:01:06]SAM_PROTO_GetShiftState [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 13 01 00 [19:01:06]Write to MH i2c: E2 08 00 84 4F 80 13 01 00 00 00 00 00 50 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0E 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0E 00 84 4F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 85 [19:01:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:01:06]wFMCommunicate OK [19:01:06]SAM_PROTO_GetShiftState done [19:01:06]FM_GetShiftState done [19:01:06]req_shift_opened done [19:01:06]requested_item shift.open_date is exist - process it [19:01:06]req_shift_open_date [19:01:06]req_shift_open_date done [19:01:06]produce_requested_data done [19:01:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112328,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:01:06]process_action_free close_receipt [19:01:06]json_value_free [19:01:06]json_value_free done [19:01:06]process_json_proto returns [19:01:06]Send response to host [19:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112328,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:01:06]free response buf [19:01:06]execute_script done [19:01:06]execute_script returns [19:01:06]free content buf [19:01:06]Sock 10.Close socket [19:01:06]Sock 10.Thread stoped [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [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:48]accept exits with 7 [19:05:48]New connection [19:05:48]New thread 3066813796 created [19:05:48]Thread 3066957156 joined [19:05:48]Waiting for new connection... [19:05:48] Sock 7.Parse request [19:05:48]Sock 7.Check first char [19:05:48]Sock 7.First char is OK [19:05:48]request: POST /json_proto HTTP/1.0 [19:05:48]Method: POST [19:05:48]URL: /json_proto [19:05:48]Method is POST - this is cgi request [19:05:48]url: /json_proto [19:05:48]query_string will be loaded in cgi processing [19:05:48]execute_cgi json_proto POST (null) [19:05:48]execute_cgi path=json_proto method=POST [19:05:48]POST find Content-Length [19:05:48]Host: 172.17.59.68:8080 [19:05:48]Content-Length: 679 [19:05:48]Content-Type: application/json [19:05:48] [19:05:48]POST finish read [19:05:48]Found Content-Length = 679 [19:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:48]execute_script... [19:05:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:48]POST & json_proto [19:05:48]process_json_proto [19:05:48]json parsed OK: [19:05:48]protocol is kg_v1.0 [19:05:48]action value=close_receipt [19:05:48]process_action close_receipt [19:05:48]cmd_close_receipt [19:05:48]MH_GetDate [19:05:48]Write to MH i2c: F0 00 00 85 4F C3 [19:05:48]Write i2c OK [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: F0 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: F0 09 00 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: F0 09 00 85 4F 00 AC 20 77 66 BC EC 60 65 E2 [19:05:48]GetLastDocTimeStamp 1719082894 [19:05:48]current date 1719083180 [19:05:48]FM_GetShiftState [19:05:48]SAM_PROTO_GetShiftState [19:05:48]wFMCommunicate request_size=4 [19:05:48]MH_SAM_APDU [19:05:48]CAPDU: 80 13 01 00 [19:05:48]Write to MH i2c: E2 08 00 86 4F 80 13 01 00 00 00 00 00 52 [19:05:48]Write i2c OK [19:05:48]MH_I2C_Read... [19:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:48]Read from MH i2c: E2 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: E2 0E 00 [19:05:48]MH_I2C_Read... [19:05:48]Read from MH i2c: E2 0E 00 86 4F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 87 [19:05:48]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:05:48]wFMCommunicate OK [19:05:48]SAM_PROTO_GetShiftState done [19:05:48]FM_GetShiftState done [19:05:48]opened in 1719020067 [19:05:48]opened+sec_in_day 1719106467 [19:05:48]quantity*price = 150028 [19:05:48]sum+1 = 150029 [19:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 195 22.06.2024 19:06 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112329 ФПД: 16884488847134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T190620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112329&fm=16884488847134&tin=02508201610067®Number=0000000000092771&sum=150000 [19:05:49]StoreToDocumentArchive [19:05:49]shift 391 fd 112329 [19:05:49]save to /storage/0391/doc_00112329 [19:05:49]save last doc name /storage/0391/doc_00112329 to /storage/kkm_last_doc_name [19:05:49]save OK [19:05:49]Clear old archive folders... [19:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:05:49]tlvbuf is 011F1410 [19:05:49]SAM_PROTO_ClearQueue [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 09 00 00 [19:05:49]Write to MH i2c: E2 08 00 93 4F 80 09 00 00 00 00 00 00 54 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 93 4F 00 90 00 56 [19:05:49]RAPDU: 90 00 [19:05:49]wFMCommunicate OK [19:05:49]SAM_PROTO_ClearQueue done [19:05:49]KKMCreateOFDPacket [19:05:49]OFDProtocolAddRootSTLVToBuf [19:05:49]FM_MakeSignedData [19:05:49]FM_MakeSignedData [19:05:49]SAM_PROTO_SignData [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 0D 01 02 [19:05:49]Write to MH i2c: E2 08 00 94 4F 80 0D 01 02 00 00 00 00 5C [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 03 00 94 4F 00 90 00 57 [19:05:49]RAPDU: 90 00 [19:05:49]wFMCommunicate OK [19:05:49]wFMCommunicate request_size=255 [19:05:49]MH_SAM_APDU [19:05: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 AC 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B6 01 00 35 04 06 00 0F 5B 39 F5 [19:05:49]Write to MH i2c: E2 02 01 95 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 AC 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B6 01 00 35 04 06 00 0F 5B 39 F5 00 00 8C [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 95 4F 00 90 00 58 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=7 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 02 02 02 BF 1E [19:05:50]Write to MH i2c: E2 0A 00 96 4F 80 0D 02 02 02 00 BF 1E 00 00 40 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 03 00 96 4F 00 90 00 59 [19:05:50]RAPDU: 90 00 [19:05:50]wFMCommunicate OK [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 0D 03 02 [19:05:50]Write to MH i2c: E2 08 00 97 4F 80 0D 03 02 00 00 00 00 61 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 0B 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 0B 00 97 4F 00 1A 43 01 56 68 35 19 D6 90 00 A2 [19:05:50]RAPDU: 1A 43 01 56 68 35 19 D6 90 00 [19:05:50]wFMCommunicate OK [19:05:50]SAM_PROTO_SignData done [19:05:50]FM_MakeSignedData done [19:05:50]CreateOFDProtocolMessage [19:05:50]wFMCommunicate request_size=4 [19:05:50]MH_SAM_APDU [19:05:50]CAPDU: 80 11 00 00 [19:05:50]Write to MH i2c: E2 08 00 98 4F 80 11 00 00 00 00 00 00 61 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:50]Read from MH i2c: E2 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 17 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: E2 17 00 98 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [19:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:05:50]wFMCommunicate OK [19:05:50]CreateOFDProtocolMessage done [19:05:50]OFDSenderStorePacket 112329 [19:05:50]StoreOFDPacket docnum=112329 [19:05:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EF 53 04 01 DE D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 AC 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B6 01 00 35 04 06 00 0F 5B 39 F5 BF 1E 1A 43 01 56 68 35 19 D6 [19:05:50]CheckFolder [19:05:50]dirname=/storage/ofd_packets [19:05:50]CheckFolder done [19:05:50]ProducePacketName [19:05:50]name=ofd_packets/00112329 [19:05:50]NVStorageSaveData ofd_packets/00112329 [19:05:50]File name is /storage/ofd_packets/00112329 [19:05:50]Write 298 bytes [19:05:50]NVStorageSaveData done [19:05:50]OFDSenderStorePacket done [19:05:50]KKMCreateOFDPacket done [19:05:50]NVStorageSaveData kkm_last_timestamp [19:05:50]File name is /storage/kkm_last_timestamp [19:05:50]Write 4 bytes [19:05:50]NVStorageSaveData done [19:05:50]ExternCall_PrintAddStr [19:05:50]wPrintStart [19:05:50]Write to MH i2c: 01 00 00 99 4F E8 [19:05:50]Write i2c OK [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: 01 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: 01 07 00 [19:05:50]MH_I2C_Read... [19:05:50]Read from MH i2c: 01 07 00 99 4F 00 00 00 00 00 FF 0F FD [19:05:50]RasterBufferAndPrint [19:05:50]line Счет N : (1)321006 [19:05:50]line ИНН: 02508201610067 [19:05:50]line Контрольно-Кассовый Чек [19:05:50]line ПРОДАЖА [19:05:50]line ТРК (МРК, ГНК) : 22 [19:05:50]line Товар: 2710194210 [19:05:50]line ДТ-К-5 [19:05:50]line 20.580 * 72.90 [19:05:50]line = 1500.28 [19:05:50]line НДС 12% НСП 1% [19:05:50]line > о реализуемом товаре [19:05:50]line ОКРУГЛЕНИЕ: -0.28 [19:05:50]line ИТОГО: 1500.00 [19:05:50]line Внесено: 1500.00 [19:05:50]line СДАЧА: 0.00 [19:05:50]line НСП 1% : 13.28 [19:05:50]line НДС 12% : 159.32 [19:05:50]line Наличными: 1500.00 [19:05:50]line Безнал.: 0.00 [19:05:50]line Место: АЗС № 65 "Партнер Нефть" [19:05:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:05:50]line СНО: Общий режим [19:05:50]line Чек 195 22.06.2024 19:06 [19:05:50]line Смена: 391 ФФД: 1.0 [19:05:50]line ЗНМ: 0300000198 [19:05:50]line РНМ: 0000000000092771 [19:05:50]line Версия ККМ: 001 [19:05:50]line ФМ: 0000000000875083 [19:05:50]line ФД: 112329 [19:05:50]line ФПД: 16884488847134 [19:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T190620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112329&fm=16884488847134&tin=02508201610067®Number=0000000000092771&sum=150000 [19:05:50]written 0, free lines is 4095 [19:05:50]OFD Sender: Processing packet 112329 [packets to send 38, broken 37] [19:05:50]ProducePacketName [19:05:50]name=ofd_packets/00112329 [19:05:50]OFD Sender: To server: pG, [19:05:50]CommunicateWithHost lk.salyk.kg:30040 [19:05:50]ConnectInit lk.salyk.kg [19:05:50]Connected sock=5 [19:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EF 53 04 01 DE D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 AC 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B6 01 00 35 04 06 00 0F 5B 39 F5 BF 1E 1A 43 01 56 68 35 19 D6 [19:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F6 91 47 00 9B 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B6 01 00 F4 03 04 00 B0 B7 76 66 B6 04 01 00 00 99 4F 4D 06 F1 7B 33 A2 [19:05:50]CommunicateWithHost err = 0 [19:05:50]CheckOFDResponse [19:05:50]1017 (14) - 77093643461234 [19:05:50]1041 (16) - 0000000000875083 [19:05:50]1040 (4) - 112329 [19:05:50]1012 (4) - 22.06.2024 11:38 [19:05:50]1206 (1) - 0 [19:05:50]OFD Sender: Remove packet 112329 [19:05:50]ProducePacketName [19:05:50]name=ofd_packets/00112329 [19:05:50]NVStorageDeleteData [19:05:51]Write to MH i2c: 01 00 00 C4 4F 13 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 C4 4F 00 00 00 00 00 E1 0C 07 [19:05:51]RasterBufferAndPrint [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]line [19:05:51]written 0, free lines is 3303 [19:05:51]MH_Cut [19:05:51]Write to MH i2c: D1 01 00 CB 4F 01 EC [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 01 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: D1 01 00 CB 4F 00 EB [19:05:51]Write to MH i2c: 01 00 00 CC 4F 1B [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]OFD Sender: No OFD packet to send [19:05:51]*** Cut start [19:05:51]*** Partial cut [19:05:51]*** CUTSNS_PIN = 1 [19:05:51]*** CUTSNS_PIN = 0 [19:05:52]*** Brake cut motor [19:05:52]Read from MH i2c: 01 [19:05:52]MH_I2C_Read... [19:05:52]*** Stop cut motor [19:05:52]*** Cut end [19:05:52]Read from MH i2c: 01 07 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 CC 4F 00 00 00 00 00 FF 0F 30 [19:05:52]process_action close_receipt done [19:05:52]requested_data is exist [19:05:52]produce_requested_data [19:05:52]requested_item fm.sn is exist - process it [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 11 00 00 [19:05:52]Write to MH i2c: E2 08 00 CD 4F 80 11 00 00 00 00 00 00 96 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 17 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 17 00 CD 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [19:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:05:52]wFMCommunicate OK [19:05:52]requested_item fd.num is exist - process it [19:05:52]SAM_PROTO_GetFieldsCounters [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 13 00 00 [19:05:52]Write to MH i2c: E2 08 00 CE 4F 80 13 00 00 00 00 00 00 99 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 62 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 62 00 CE 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [19:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_GetFieldsCounters done [19:05:52]requested_item shift.num is exist - process it [19:05:52]requested_item shift.opened is exist - process it [19:05:52]req_shift_opened [19:05:52]FM_GetShiftState [19:05:52]SAM_PROTO_GetShiftState [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 13 01 00 [19:05:52]Write to MH i2c: E2 08 00 CF 4F 80 13 01 00 00 00 00 00 9B [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0E 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0E 00 CF 4F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D0 [19:05:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_GetShiftState done [19:05:52]FM_GetShiftState done [19:05:52]req_shift_opened done [19:05:52]requested_item shift.open_date is exist - process it [19:05:52]req_shift_open_date [19:05:52]req_shift_open_date done [19:05:52]produce_requested_data done [19:05:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112329,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:05:52]process_action_free close_receipt [19:05:52]json_value_free [19:05:52]json_value_free done [19:05:52]process_json_proto returns [19:05:52]Send response to host [19:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112329,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:05:52]free response buf [19:05:52]execute_script done [19:05:52]execute_script returns [19:05:52]free content buf [19:05:52]Sock 7.Close socket [19:05:52]Sock 7.Thread stoped [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]accept exits with 9 [19:06:51]New connection [19:06:51]New thread 3066957156 created [19:06:51]Thread 3066813796 joined [19:06:51]Waiting for new connection... [19:06:51] Sock 9.Parse request [19:06:51]Sock 9.Check first char [19:06:51]Sock 9.First char is OK [19:06:51]request: POST /json_proto HTTP/1.0 [19:06:51]Method: POST [19:06:51]URL: /json_proto [19:06:51]Method is POST - this is cgi request [19:06:51]url: /json_proto [19:06:51]query_string will be loaded in cgi processing [19:06:51]execute_cgi json_proto POST (null) [19:06:51]execute_cgi path=json_proto method=POST [19:06:51]POST find Content-Length [19:06:51]Host: 172.17.59.68:8080 [19:06:51]Content-Length: 677 [19:06:51]Content-Type: application/json [19:06:51] [19:06:51]POST finish read [19:06:51]Found Content-Length = 677 [19:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321007", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:51]execute_script... [19:06: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)321007", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:51]POST & json_proto [19:06:51]process_json_proto [19:06:51]json parsed OK: [19:06:51]protocol is kg_v1.0 [19:06:51]action value=close_receipt [19:06:51]process_action close_receipt [19:06:51]cmd_close_receipt [19:06:51]MH_GetDate [19:06:51]Write to MH i2c: F0 00 00 D0 4F 0E [19:06:51]Write i2c OK [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: F0 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: F0 09 00 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: F0 09 00 D0 4F 00 EB 20 77 66 BC EC 60 65 6C [19:06:51]GetLastDocTimeStamp 1719083180 [19:06:51]current date 1719083243 [19:06:51]FM_GetShiftState [19:06:51]SAM_PROTO_GetShiftState [19:06:51]wFMCommunicate request_size=4 [19:06:51]MH_SAM_APDU [19:06:51]CAPDU: 80 13 01 00 [19:06:51]Write to MH i2c: E2 08 00 D1 4F 80 13 01 00 00 00 00 00 9D [19:06:51]Write i2c OK [19:06:51]MH_I2C_Read... [19:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:51]Read from MH i2c: E2 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: E2 0E 00 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: E2 0E 00 D1 4F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D2 [19:06:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:06:51]wFMCommunicate OK [19:06:51]SAM_PROTO_GetShiftState done [19:06:51]FM_GetShiftState done [19:06:51]opened in 1719020067 [19:06:51]opened+sec_in_day 1719106467 [19:06:51]quantity*price = 60025 [19:06:51]sum+1 = 60027 [19:06:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 196 22.06.2024 19:07 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112330 ФПД: 128413508483587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T190723&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112330&fm=128413508483587&tin=02508201610067®Number=0000000000092771&sum=60000 [19:06:52]StoreToDocumentArchive [19:06:52]shift 391 fd 112330 [19:06:52]save to /storage/0391/doc_00112330 [19:06:52]save last doc name /storage/0391/doc_00112330 to /storage/kkm_last_doc_name [19:06:52]save OK [19:06:52]Clear old archive folders... [19:06:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:52]tlvbuf is 0123B250 [19:06:52]SAM_PROTO_ClearQueue [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 09 00 00 [19:06:52]Write to MH i2c: E2 08 00 DE 4F 80 09 00 00 00 00 00 00 9F [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 DE 4F 00 90 00 A1 [19:06:52]RAPDU: 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_ClearQueue done [19:06:52]KKMCreateOFDPacket [19:06:52]OFDProtocolAddRootSTLVToBuf [19:06:52]FM_MakeSignedData [19:06:52]FM_MakeSignedData [19:06:52]SAM_PROTO_SignData [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 0D 01 02 [19:06:52]Write to MH i2c: E2 08 00 DF 4F 80 0D 01 02 00 00 00 00 A7 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 DF 4F 00 90 00 A2 [19:06:52]RAPDU: 90 00 [19:06:52]wFMCommunicate OK [19:06:52]wFMCommunicate request_size=255 [19:06:52]MH_SAM_APDU [19:06: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EB 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B6 01 00 35 04 06 00 74 [19:06:52]Write to MH i2c: E2 02 01 E0 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EB 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B6 01 00 35 04 06 00 74 00 00 61 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 E0 4F 00 90 00 A3 [19:06:52]RAPDU: 90 00 [19:06:52]wFMCommunicate OK [19:06:52]wFMCommunicate request_size=10 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 0D 02 02 05 CA 99 8E BA 03 [19:06:52]Write to MH i2c: E2 0D 00 E1 4F 80 0D 02 02 05 00 CA 99 8E BA 03 00 00 62 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 E1 4F 00 90 00 A4 [19:06:52]RAPDU: 90 00 [19:06:52]wFMCommunicate OK [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 0D 03 02 [19:06:52]Write to MH i2c: E2 08 00 E2 4F 80 0D 03 02 00 00 00 00 AC [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0B 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 0B 00 E2 4F 00 BA FF 00 BB 70 07 52 4A 90 00 34 [19:06:52]RAPDU: BA FF 00 BB 70 07 52 4A 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_SignData done [19:06:52]FM_MakeSignedData done [19:06:52]CreateOFDProtocolMessage [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 11 00 00 [19:06:52]Write to MH i2c: E2 08 00 E3 4F 80 11 00 00 00 00 00 00 AC [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 17 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 17 00 E3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [19:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:06:52]wFMCommunicate OK [19:06:52]CreateOFDProtocolMessage done [19:06:52]OFDSenderStorePacket 112330 [19:06:52]StoreOFDPacket docnum=112330 [19:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 07 07 01 5F 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EB 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B6 01 00 35 04 06 00 74 CA 99 8E BA 03 BA FF 00 BB 70 07 52 4A [19:06:52]CheckFolder [19:06:52]dirname=/storage/ofd_packets [19:06:52]CheckFolder done [19:06:52]ProducePacketName [19:06:52]name=ofd_packets/00112330 [19:06:52]NVStorageSaveData ofd_packets/00112330 [19:06:52]File name is /storage/ofd_packets/00112330 [19:06:52]Write 301 bytes [19:06:52]NVStorageSaveData done [19:06:52]OFDSenderStorePacket done [19:06:52]KKMCreateOFDPacket done [19:06:52]NVStorageSaveData kkm_last_timestamp [19:06:52]File name is /storage/kkm_last_timestamp [19:06:52]Write 4 bytes [19:06:52]NVStorageSaveData done [19:06:52]ExternCall_PrintAddStr [19:06:52]wPrintStart [19:06:52]Write to MH i2c: 01 00 00 E4 4F 33 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: 01 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: 01 07 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: 01 07 00 E4 4F 00 00 00 00 00 FF 0F 48 [19:06:52]RasterBufferAndPrint [19:06:52]line Счет N : (1)321007 [19:06:52]line ИНН: 02508201610067 [19:06:52]line Контрольно-Кассовый Чек [19:06:52]line ПРОДАЖА [19:06:52]line ТРК (МРК, ГНК) : 11 [19:06:52]line Товар: 2710124130 [19:06:52]line Аи-92-К-5 [19:06:52]line 9.040 * 66.40 [19:06:52]line = 600.26 [19:06:52]line НДС 12% НСП 1% [19:06:52]line > о реализуемом товаре [19:06:52]line ОКРУГЛЕНИЕ: -0.26 [19:06:52]line ИТОГО: 600.00 [19:06:52]line Внесено: 600.00 [19:06:52]line СДАЧА: 0.00 [19:06:52]line НСП 1% : 5.31 [19:06:52]line НДС 12% : 63.74 [19:06:52]line Наличными: 600.00 [19:06:52]line Безнал.: 0.00 [19:06:52]line Место: АЗС № 65 "Партнер Нефть" [19:06:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:06:52]line СНО: Общий режим [19:06:52]line Чек 196 22.06.2024 19:07 [19:06:52]line Смена: 391 ФФД: 1.0 [19:06:52]line ЗНМ: 0300000198 [19:06:52]line РНМ: 0000000000092771 [19:06:52]line Версия ККМ: 001 [19:06:52]line ФМ: 0000000000875083 [19:06:52]line ФД: 112330 [19:06:52]line ФПД: 128413508483587 [19:06:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T190723&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112330&fm=128413508483587&tin=02508201610067®Number=0000000000092771&sum=60000 [19:06:53]OFD Sender: Processing packet 112330 [packets to send 38, broken 37] [19:06:53]ProducePacketName [19:06:53]name=ofd_packets/00112330 [19:06:53]OFD Sender: To server: pG, [19:06:53]CommunicateWithHost lk.salyk.kg:30040 [19:06:53]ConnectInit lk.salyk.kg [19:06:53]written 0, free lines is 4095 [19:06:53]Connected sock=10 [19:06:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 07 07 01 5F 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 EB 20 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B6 01 00 35 04 06 00 74 CA 99 8E BA 03 BA FF 00 BB 70 07 52 4A [19:06:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 45 28 47 00 66 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 35 30 38 33 10 04 04 00 CA B6 01 00 F4 03 04 00 EF B7 76 66 B6 04 01 00 00 A6 AF E6 1D 66 D1 78 18 [19:06:53]CommunicateWithHost err = 0 [19:06:53]CheckOFDResponse [19:06:53]1017 (14) - 77093643461234 [19:06:53]1041 (16) - 0000000000875083 [19:06:53]1040 (4) - 112330 [19:06:53]1012 (4) - 22.06.2024 11:39 [19:06:53]1206 (1) - 0 [19:06:53]OFD Sender: Remove packet 112330 [19:06:53]ProducePacketName [19:06:53]name=ofd_packets/00112330 [19:06:53]NVStorageDeleteData [19:06:53]Write to MH i2c: 01 00 00 0F 50 5F [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 07 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 07 00 0F 50 00 00 00 00 00 F1 0C 63 [19:06:53]RasterBufferAndPrint [19:06:53]line [19:06:53]line [19:06:53]line [19:06:53]line [19:06:53]line [19:06:53]written 0, free lines is 3319 [19:06:53]MH_Cut [19:06:53]Write to MH i2c: D1 01 00 16 50 01 38 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: D1 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: D1 01 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: D1 01 00 16 50 00 37 [19:06:53]Write to MH i2c: 01 00 00 17 50 67 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]OFD Sender: No OFD packet to send [19:06:54]*** Cut start [19:06:54]*** Partial cut [19:06:54]*** CUTSNS_PIN = 1 [19:06:54]*** CUTSNS_PIN = 0 [19:06:54]*** Brake cut motor [19:06:54]Read from MH i2c: 01 [19:06:54]MH_I2C_Read... [19:06:54]*** Stop cut motor [19:06:54]*** Cut end [19:06:54]Read from MH i2c: 01 07 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 17 50 00 00 00 00 00 FF 0F 7C [19:06:54]process_action close_receipt done [19:06:54]requested_data is exist [19:06:54]produce_requested_data [19:06:54]requested_item fm.sn is exist - process it [19:06:54]wFMCommunicate request_size=4 [19:06:54]MH_SAM_APDU [19:06:54]CAPDU: 80 11 00 00 [19:06:54]Write to MH i2c: E2 08 00 18 50 80 11 00 00 00 00 00 00 E2 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 17 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 17 00 18 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [19:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:06:55]wFMCommunicate OK [19:06:55]requested_item fd.num is exist - process it [19:06:55]SAM_PROTO_GetFieldsCounters [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 13 00 00 [19:06:55]Write to MH i2c: E2 08 00 19 50 80 13 00 00 00 00 00 00 E5 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 62 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 62 00 19 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [19:06:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:55]wFMCommunicate OK [19:06:55]SAM_PROTO_GetFieldsCounters done [19:06:55]requested_item shift.num is exist - process it [19:06:55]requested_item shift.opened is exist - process it [19:06:55]req_shift_opened [19:06:55]FM_GetShiftState [19:06:55]SAM_PROTO_GetShiftState [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 13 01 00 [19:06:55]Write to MH i2c: E2 08 00 1A 50 80 13 01 00 00 00 00 00 E7 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 0E 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 0E 00 1A 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1C [19:06:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:06:55]wFMCommunicate OK [19:06:55]SAM_PROTO_GetShiftState done [19:06:55]FM_GetShiftState done [19:06:55]req_shift_opened done [19:06:55]requested_item shift.open_date is exist - process it [19:06:55]req_shift_open_date [19:06:55]req_shift_open_date done [19:06:55]produce_requested_data done [19:06:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112330,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:06:55]process_action_free close_receipt [19:06:55]json_value_free [19:06:55]json_value_free done [19:06:55]process_json_proto returns [19:06:55]Send response to host [19:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112330,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:06:55]free response buf [19:06:55]execute_script done [19:06:55]execute_script returns [19:06:55]free content buf [19:06:55]Sock 9.Close socket [19:06:55]Sock 9.Thread stoped [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:55]accept exits with 7 [19:11:55]New connection [19:11:55]New thread 3066813796 created [19:11:55]Thread 3066957156 joined [19:11:55]Waiting for new connection... [19:11:55] Sock 7.Parse request [19:11:55]Sock 7.Check first char [19:11:55]Sock 7.First char is OK [19:11:55]request: POST /json_proto HTTP/1.0 [19:11:55]Method: POST [19:11:55]URL: /json_proto [19:11:55]Method is POST - this is cgi request [19:11:55]url: /json_proto [19:11:55]query_string will be loaded in cgi processing [19:11:55]execute_cgi json_proto POST (null) [19:11:55]execute_cgi path=json_proto method=POST [19:11:55]POST find Content-Length [19:11:55]Host: 172.17.59.68:8080 [19:11:55]Content-Length: 673 [19:11:55]Content-Type: application/json [19:11:55] [19:11:55]POST finish read [19:11:55]Found Content-Length = 673 [19:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321008", "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.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:55]execute_script... [19:11: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)321008", "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.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:55]POST & json_proto [19:11:55]process_json_proto [19:11:55]json parsed OK: [19:11:55]protocol is kg_v1.0 [19:11:55]action value=close_receipt [19:11:55]process_action close_receipt [19:11:55]cmd_close_receipt [19:11:55]MH_GetDate [19:11:55]Write to MH i2c: F0 00 00 1B 50 5A [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 09 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 09 00 1B 50 00 1B 22 77 66 BC EC 60 65 EA [19:11:55]GetLastDocTimeStamp 1719083243 [19:11:55]current date 1719083547 [19:11:55]FM_GetShiftState [19:11:55]SAM_PROTO_GetShiftState [19:11:55]wFMCommunicate request_size=4 [19:11:55]MH_SAM_APDU [19:11:55]CAPDU: 80 13 01 00 [19:11:55]Write to MH i2c: E2 08 00 1C 50 80 13 01 00 00 00 00 00 E9 [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0E 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0E 00 1C 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1E [19:11:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:11:55]wFMCommunicate OK [19:11:55]SAM_PROTO_GetShiftState done [19:11:55]FM_GetShiftState done [19:11:55]opened in 1719020067 [19:11:55]opened+sec_in_day 1719106467 [19:11:55]quantity*price = 6640 [19:11:55]sum+1 = 6641 [19:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 66.00 Внесено: 66.00 СДАЧА: 0.00 НСП 1% : 0.59 НДС 12% : 7.05 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 197 22.06.2024 19:12 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112331 ФПД: 81520984732416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191227&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112331&fm=81520984732416&tin=02508201610067®Number=0000000000092771&sum=6600 [19:11:56]StoreToDocumentArchive [19:11:56]shift 391 fd 112331 [19:11:56]save to /storage/0391/doc_00112331 [19:11:56]save last doc name /storage/0391/doc_00112331 to /storage/kkm_last_doc_name [19:11:56]save OK [19:11:56]Clear old archive folders... [19:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:56]tlvbuf is 01233D10 [19:11:56]SAM_PROTO_ClearQueue [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 09 00 00 [19:11:56]Write to MH i2c: E2 08 00 29 50 80 09 00 00 00 00 00 00 EB [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 29 50 00 90 00 ED [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]SAM_PROTO_ClearQueue done [19:11:56]KKMCreateOFDPacket [19:11:56]OFDProtocolAddRootSTLVToBuf [19:11:56]FM_MakeSignedData [19:11:56]FM_MakeSignedData [19:11:56]SAM_PROTO_SignData [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 0D 01 02 [19:11:56]Write to MH i2c: E2 08 00 2A 50 80 0D 01 02 00 00 00 00 F3 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 2A 50 00 90 00 EE [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]wFMCommunicate request_size=255 [19:11:56]MH_SAM_APDU [19:11: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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 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 1B 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B6 01 00 35 04 06 00 4A [19:11:56]Write to MH i2c: E2 02 01 2B 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 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 1B 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B6 01 00 35 04 06 00 4A 00 00 ED [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 2B 50 00 90 00 EF [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]wFMCommunicate request_size=10 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 0D 02 02 05 24 95 56 33 00 [19:11:56]Write to MH i2c: E2 0D 00 2C 50 80 0D 02 02 05 00 24 95 56 33 00 00 00 42 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 03 00 2C 50 00 90 00 F0 [19:11:56]RAPDU: 90 00 [19:11:56]wFMCommunicate OK [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 0D 03 02 [19:11:56]Write to MH i2c: E2 08 00 2D 50 80 0D 03 02 00 00 00 00 F8 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 0B 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 0B 00 2D 50 00 28 08 82 A9 18 3B F0 FB 90 00 92 [19:11:56]RAPDU: 28 08 82 A9 18 3B F0 FB 90 00 [19:11:56]wFMCommunicate OK [19:11:56]SAM_PROTO_SignData done [19:11:56]FM_MakeSignedData done [19:11:56]CreateOFDProtocolMessage [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 11 00 00 [19:11:56]Write to MH i2c: E2 08 00 2E 50 80 11 00 00 00 00 00 00 F8 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:56]Read from MH i2c: E2 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 17 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: E2 17 00 2E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4A [19:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:11:56]wFMCommunicate OK [19:11:56]CreateOFDProtocolMessage done [19:11:56]OFDSenderStorePacket 112331 [19:11:56]StoreOFDPacket docnum=112331 [19:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 65 07 01 65 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 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 1B 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B6 01 00 35 04 06 00 4A 24 95 56 33 00 28 08 82 A9 18 3B F0 FB [19:11:56]CheckFolder [19:11:56]dirname=/storage/ofd_packets [19:11:56]CheckFolder done [19:11:56]ProducePacketName [19:11:56]name=ofd_packets/00112331 [19:11:56]NVStorageSaveData ofd_packets/00112331 [19:11:56]File name is /storage/ofd_packets/00112331 [19:11:56]Write 301 bytes [19:11:56]NVStorageSaveData done [19:11:56]OFDSenderStorePacket done [19:11:56]KKMCreateOFDPacket done [19:11:56]NVStorageSaveData kkm_last_timestamp [19:11:56]File name is /storage/kkm_last_timestamp [19:11:56]Write 4 bytes [19:11:56]NVStorageSaveData done [19:11:56]OFD Sender: Processing packet 112331 [packets to send 38, broken 37] [19:11:56]ProducePacketName [19:11:56]name=ofd_packets/00112331 [19:11:56]OFD Sender: To server: pG, [19:11:56]CommunicateWithHost lk.salyk.kg:30040 [19:11:56]ConnectInit lk.salyk.kg [19:11:56]ExternCall_PrintAddStr [19:11:56]wPrintStart [19:11:56]Write to MH i2c: 01 00 00 2F 50 7F [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 2F 50 00 00 00 00 00 FF 0F 94 [19:11:56]RasterBufferAndPrint [19:11:56]line Счет N : (1)321008 [19:11:56]line ИНН: 02508201610067 [19:11:56]line Контрольно-Кассовый Чек [19:11:56]line ПРОДАЖА [19:11:56]line ТРК (МРК, ГНК) : 11 [19:11:56]line Товар: 2710124130 [19:11:56]line Аи-92-К-5 [19:11:56]line 1.000 * 66.40 [19:11:56]line = 66.40 [19:11:56]line НДС 12% НСП 1% [19:11:56]line > о реализуемом товаре [19:11:56]line ОКРУГЛЕНИЕ: -0.40 [19:11:56]line ИТОГО: 66.00 [19:11:56]line Внесено: 66.00 [19:11:56]line СДАЧА: 0.00 [19:11:56]line НСП 1% : 0.59 [19:11:56]line НДС 12% : 7.05 [19:11:56]line Наличными: 66.00 [19:11:56]line Безнал.: 0.00 [19:11:56]line Место: АЗС № 65 "Партнер Нефть" [19:11:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:11:56]line СНО: Общий режим [19:11:56]line Чек 197 22.06.2024 19:12 [19:11:56]line Смена: 391 ФФД: 1.0 [19:11:56]line ЗНМ: 0300000198 [19:11:56]line РНМ: 0000000000092771 [19:11:56]line Версия ККМ: 001 [19:11:56]line ФМ: 0000000000875083 [19:11:56]line ФД: 112331 [19:11:56]line ФПД: 81520984732416 [19:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191227&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112331&fm=81520984732416&tin=02508201610067®Number=0000000000092771&sum=6600 [19:11:57]Connected sock=11 [19:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 65 07 01 65 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 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 1B 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B6 01 00 35 04 06 00 4A 24 95 56 33 00 28 08 82 A9 18 3B F0 FB [19:11:57]written 0, free lines is 4095 [19:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D 7B 47 00 EC DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B6 01 00 F4 03 04 00 1F B9 76 66 B6 04 01 00 00 53 03 4E 7E 18 35 C5 C6 [19:11:57]CommunicateWithHost err = 0 [19:11:57]CheckOFDResponse [19:11:57]1017 (14) - 77093643461234 [19:11:57]1041 (16) - 0000000000875083 [19:11:57]1040 (4) - 112331 [19:11:57]1012 (4) - 22.06.2024 11:44 [19:11:57]1206 (1) - 0 [19:11:57]OFD Sender: Remove packet 112331 [19:11:57]ProducePacketName [19:11:57]name=ofd_packets/00112331 [19:11:57]NVStorageDeleteData [19:11:57]Write to MH i2c: 01 00 00 5A 50 AA [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 5A 50 00 00 00 00 00 DE 0C 9B [19:11:57]RasterBufferAndPrint [19:11:57]line [19:11:57]line [19:11:57]line [19:11:57]line [19:11:57]line [19:11:57]written 0, free lines is 3300 [19:11:57]MH_Cut [19:11:57]Write to MH i2c: D1 01 00 61 50 01 83 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: D1 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: D1 01 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: D1 01 00 61 50 00 82 [19:11:57]Write to MH i2c: 01 00 00 62 50 B2 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]OFD Sender: No OFD packet to send [19:11:58]*** Cut start [19:11:58]*** Partial cut [19:11:58]*** CUTSNS_PIN = 1 [19:11:58]*** CUTSNS_PIN = 0 [19:11:58]*** Brake cut motor [19:11:59]Read from MH i2c: 01 [19:11:59]MH_I2C_Read... [19:11:59]*** Stop cut motor [19:11:59]*** Cut end [19:11:59]Read from MH i2c: 01 07 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: 01 07 00 62 50 00 00 00 00 00 FF 0F C7 [19:11:59]process_action close_receipt done [19:11:59]requested_data is exist [19:11:59]produce_requested_data [19:11:59]requested_item fm.sn is exist - process it [19:11:59]wFMCommunicate request_size=4 [19:11:59]MH_SAM_APDU [19:11:59]CAPDU: 80 11 00 00 [19:11:59]Write to MH i2c: E2 08 00 63 50 80 11 00 00 00 00 00 00 2D [19:11:59]Write i2c OK [19:11:59]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 17 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 17 00 63 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [19:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:11:59]wFMCommunicate OK [19:11:59]requested_item fd.num is exist - process it [19:11:59]SAM_PROTO_GetFieldsCounters [19:11:59]wFMCommunicate request_size=4 [19:11:59]MH_SAM_APDU [19:11:59]CAPDU: 80 13 00 00 [19:11:59]Write to MH i2c: E2 08 00 64 50 80 13 00 00 00 00 00 00 30 [19:11:59]Write i2c OK [19:11:59]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 62 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 62 00 64 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [19:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:59]wFMCommunicate OK [19:11:59]SAM_PROTO_GetFieldsCounters done [19:11:59]requested_item shift.num is exist - process it [19:11:59]requested_item shift.opened is exist - process it [19:11:59]req_shift_opened [19:11:59]FM_GetShiftState [19:11:59]SAM_PROTO_GetShiftState [19:11:59]wFMCommunicate request_size=4 [19:11:59]MH_SAM_APDU [19:11:59]CAPDU: 80 13 01 00 [19:11:59]Write to MH i2c: E2 08 00 65 50 80 13 01 00 00 00 00 00 32 [19:11:59]Write i2c OK [19:11:59]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 0E 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 0E 00 65 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 67 [19:11:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:11:59]wFMCommunicate OK [19:11:59]SAM_PROTO_GetShiftState done [19:11:59]FM_GetShiftState done [19:11:59]req_shift_opened done [19:11:59]requested_item shift.open_date is exist - process it [19:11:59]req_shift_open_date [19:11:59]req_shift_open_date done [19:11:59]produce_requested_data done [19:11:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112331,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:11:59]process_action_free close_receipt [19:11:59]json_value_free [19:11:59]json_value_free done [19:11:59]process_json_proto returns [19:11:59]Send response to host [19:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112331,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:11:59]free response buf [19:11:59]execute_script done [19:11:59]execute_script returns [19:11:59]free content buf [19:11:59]Sock 7.Close socket [19:11:59]Sock 7.Thread stoped [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:01]accept exits with 9 [19:14:01]New connection [19:14:01]New thread 3066957156 created [19:14:01]Thread 3066813796 joined [19:14:01]Waiting for new connection... [19:14:01] Sock 9.Parse request [19:14:01]Sock 9.Check first char [19:14:01]Sock 9.First char is OK [19:14:01]request: POST /json_proto HTTP/1.0 [19:14:01]Method: POST [19:14:01]URL: /json_proto [19:14:01]Method is POST - this is cgi request [19:14:01]url: /json_proto [19:14:01]query_string will be loaded in cgi processing [19:14:01]execute_cgi json_proto POST (null) [19:14:01]execute_cgi path=json_proto method=POST [19:14:01]POST find Content-Length [19:14:01]Host: 172.17.59.68:8080 [19:14:01]Content-Length: 677 [19:14:01]Content-Type: application/json [19:14:01] [19:14:01]POST finish read [19:14:01]Found Content-Length = 677 [19:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321009", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:14:01]execute_script... [19:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321009", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:14:01]POST & json_proto [19:14:01]process_json_proto [19:14:01]json parsed OK: [19:14:01]protocol is kg_v1.0 [19:14:01]action value=close_receipt [19:14:01]process_action close_receipt [19:14:01]cmd_close_receipt [19:14:01]MH_GetDate [19:14:01]Write to MH i2c: F0 00 00 66 50 A5 [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 09 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 09 00 66 50 00 99 22 77 66 BC EC 60 65 B3 [19:14:01]GetLastDocTimeStamp 1719083547 [19:14:01]current date 1719083673 [19:14:01]FM_GetShiftState [19:14:01]SAM_PROTO_GetShiftState [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 13 01 00 [19:14:01]Write to MH i2c: E2 08 00 67 50 80 13 01 00 00 00 00 00 34 [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 67 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 69 [19:14:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetShiftState done [19:14:01]FM_GetShiftState done [19:14:01]opened in 1719020067 [19:14:01]opened+sec_in_day 1719106467 [19:14:01]quantity*price = 20052 [19:14:01]sum+1 = 20054 [19:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 198 22.06.2024 19:14 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112332 ФПД: 15797651467909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191433&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112332&fm=15797651467909&tin=02508201610067®Number=0000000000092771&sum=20000 [19:14:02]StoreToDocumentArchive [19:14:02]shift 391 fd 112332 [19:14:02]save to /storage/0391/doc_00112332 [19:14:02]save last doc name /storage/0391/doc_00112332 to /storage/kkm_last_doc_name [19:14:02]save OK [19:14:02]Clear old archive folders... [19:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:02]tlvbuf is 0126A340 [19:14:02]SAM_PROTO_ClearQueue [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 09 00 00 [19:14:02]Write to MH i2c: E2 08 00 74 50 80 09 00 00 00 00 00 00 36 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 74 50 00 90 00 38 [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]SAM_PROTO_ClearQueue done [19:14:02]KKMCreateOFDPacket [19:14:02]OFDProtocolAddRootSTLVToBuf [19:14:02]FM_MakeSignedData [19:14:02]FM_MakeSignedData [19:14:02]SAM_PROTO_SignData [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 01 02 [19:14:02]Write to MH i2c: E2 08 00 75 50 80 0D 01 02 00 00 00 00 3E [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 75 50 00 90 00 39 [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]wFMCommunicate request_size=255 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 99 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B6 01 00 35 04 06 00 0E [19:14:02]Write to MH i2c: E2 02 01 76 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 99 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B6 01 00 35 04 06 00 0E 00 00 28 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 76 50 00 90 00 3A [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]wFMCommunicate request_size=10 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 02 02 05 5E 2D 67 6E 85 [19:14:02]Write to MH i2c: E2 0D 00 77 50 80 0D 02 02 05 00 5E 2D 67 6E 85 00 00 30 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 03 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 03 00 77 50 00 90 00 3B [19:14:03]RAPDU: 90 00 [19:14:03]wFMCommunicate OK [19:14:03]wFMCommunicate request_size=4 [19:14:03]MH_SAM_APDU [19:14:03]CAPDU: 80 0D 03 02 [19:14:03]Write to MH i2c: E2 08 00 78 50 80 0D 03 02 00 00 00 00 43 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:03]OFD Sender: No OFD packet to send [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 0B 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 0B 00 78 50 00 D3 20 CF BC 36 3C 69 E7 90 00 84 [19:14:03]RAPDU: D3 20 CF BC 36 3C 69 E7 90 00 [19:14:03]wFMCommunicate OK [19:14:03]SAM_PROTO_SignData done [19:14:03]FM_MakeSignedData done [19:14:03]CreateOFDProtocolMessage [19:14:03]wFMCommunicate request_size=4 [19:14:03]MH_SAM_APDU [19:14:03]CAPDU: 80 11 00 00 [19:14:03]Write to MH i2c: E2 08 00 79 50 80 11 00 00 00 00 00 00 43 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:03]Read from MH i2c: E2 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 17 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: E2 17 00 79 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [19:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:14:03]wFMCommunicate OK [19:14:03]CreateOFDProtocolMessage done [19:14:03]OFDSenderStorePacket 112332 [19:14:03]StoreOFDPacket docnum=112332 [19:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 21 07 01 42 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 99 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B6 01 00 35 04 06 00 0E 5E 2D 67 6E 85 D3 20 CF BC 36 3C 69 E7 [19:14:03]CheckFolder [19:14:03]dirname=/storage/ofd_packets [19:14:03]CheckFolder done [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00112332 [19:14:03]NVStorageSaveData ofd_packets/00112332 [19:14:03]File name is /storage/ofd_packets/00112332 [19:14:03]Write 301 bytes [19:14:03]NVStorageSaveData done [19:14:03]OFDSenderStorePacket done [19:14:03]KKMCreateOFDPacket done [19:14:03]NVStorageSaveData kkm_last_timestamp [19:14:03]File name is /storage/kkm_last_timestamp [19:14:03]Write 4 bytes [19:14:03]NVStorageSaveData done [19:14:03]ExternCall_PrintAddStr [19:14:03]wPrintStart [19:14:03]Write to MH i2c: 01 00 00 7A 50 CA [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 7A 50 00 00 00 00 00 FF 0F DF [19:14:03]RasterBufferAndPrint [19:14:03]line Счет N : (1)321009 [19:14:03]line ИНН: 02508201610067 [19:14:03]line Контрольно-Кассовый Чек [19:14:03]line ПРОДАЖА [19:14:03]line ТРК (МРК, ГНК) : 11 [19:14:03]line Товар: 2710124130 [19:14:03]line Аи-92-К-5 [19:14:03]line 3.020 * 66.40 [19:14:03]line = 200.53 [19:14:03]line НДС 12% НСП 1% [19:14:03]line > о реализуемом товаре [19:14:03]line ОКРУГЛЕНИЕ: -0.53 [19:14:03]line ИТОГО: 200.00 [19:14:03]line Внесено: 200.00 [19:14:03]line СДАЧА: 0.00 [19:14:03]line НСП 1% : 1.77 [19:14:03]line НДС 12% : 21.29 [19:14:03]line Наличными: 200.00 [19:14:03]line Безнал.: 0.00 [19:14:03]line Место: АЗС № 65 "Партнер Нефть" [19:14:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:14:03]line СНО: Общий режим [19:14:03]line Чек 198 22.06.2024 19:14 [19:14:03]line Смена: 391 ФФД: 1.0 [19:14:03]line ЗНМ: 0300000198 [19:14:03]line РНМ: 0000000000092771 [19:14:03]line Версия ККМ: 001 [19:14:03]line ФМ: 0000000000875083 [19:14:03]line ФД: 112332 [19:14:03]line ФПД: 15797651467909 [19:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191433&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112332&fm=15797651467909&tin=02508201610067®Number=0000000000092771&sum=20000 [19:14:03]OFD Sender: Processing packet 112332 [packets to send 38, broken 37] [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00112332 [19:14:03]OFD Sender: To server: pG, [19:14:03]CommunicateWithHost lk.salyk.kg:30040 [19:14:03]ConnectInit lk.salyk.kg [19:14:03]written 0, free lines is 4095 [19:14:03]Connected sock=10 [19:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 21 07 01 42 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 99 22 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B6 01 00 35 04 06 00 0E 5E 2D 67 6E 85 D3 20 CF BC 36 3C 69 E7 [19:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A9 6E 47 00 7E 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B6 01 00 F4 03 04 00 9D B9 76 66 B6 04 01 00 00 D6 95 0F 6D 52 14 EE 04 [19:14:03]CommunicateWithHost err = 0 [19:14:03]CheckOFDResponse [19:14:03]1017 (14) - 77093643461234 [19:14:03]1041 (16) - 0000000000875083 [19:14:03]1040 (4) - 112332 [19:14:03]1012 (4) - 22.06.2024 11:46 [19:14:03]1206 (1) - 0 [19:14:03]OFD Sender: Remove packet 112332 [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00112332 [19:14:03]NVStorageDeleteData [19:14:03]Write to MH i2c: 01 00 00 A5 50 F5 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 A5 50 00 00 00 00 00 EF 0C F7 [19:14:03]RasterBufferAndPrint [19:14:03]line [19:14:03]line [19:14:03]line [19:14:03]line [19:14:03]line [19:14:03]written 0, free lines is 3317 [19:14:03]MH_Cut [19:14:03]Write to MH i2c: D1 01 00 AC 50 01 CE [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: D1 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: D1 01 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: D1 01 00 AC 50 00 CD [19:14:03]Write to MH i2c: 01 00 00 AD 50 FD [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:04]OFD Sender: No OFD packet to send [19:14:04]*** Cut start [19:14:04]*** Partial cut [19:14:04]*** CUTSNS_PIN = 1 [19:14:04]*** CUTSNS_PIN = 0 [19:14:04]*** Brake cut motor [19:14:05]Read from MH i2c: 01 [19:14:05]MH_I2C_Read... [19:14:05]*** Stop cut motor [19:14:05]*** Cut end [19:14:05]Read from MH i2c: 01 07 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: 01 07 00 AD 50 00 00 00 00 00 FF 0F 12 [19:14:05]process_action close_receipt done [19:14:05]requested_data is exist [19:14:05]produce_requested_data [19:14:05]requested_item fm.sn is exist - process it [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 11 00 00 [19:14:05]Write to MH i2c: E2 08 00 AE 50 80 11 00 00 00 00 00 00 78 [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 17 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 17 00 AE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [19:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:14:05]wFMCommunicate OK [19:14:05]requested_item fd.num is exist - process it [19:14:05]SAM_PROTO_GetFieldsCounters [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 00 00 [19:14:05]Write to MH i2c: E2 08 00 AF 50 80 13 00 00 00 00 00 00 7B [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 62 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 62 00 AF 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [19:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetFieldsCounters done [19:14:05]requested_item shift.num is exist - process it [19:14:05]requested_item shift.opened is exist - process it [19:14:05]req_shift_opened [19:14:05]FM_GetShiftState [19:14:05]SAM_PROTO_GetShiftState [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 01 00 [19:14:05]Write to MH i2c: E2 08 00 B0 50 80 13 01 00 00 00 00 00 7D [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:05]Read from MH i2c: E2 0E 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 B0 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B2 [19:14:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetShiftState done [19:14:05]FM_GetShiftState done [19:14:05]req_shift_opened done [19:14:05]requested_item shift.open_date is exist - process it [19:14:05]req_shift_open_date [19:14:05]req_shift_open_date done [19:14:05]produce_requested_data done [19:14:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112332,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:14:05]process_action_free close_receipt [19:14:05]json_value_free [19:14:05]json_value_free done [19:14:05]process_json_proto returns [19:14:05]Send response to host [19:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112332,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:14:05]free response buf [19:14:05]execute_script done [19:14:05]execute_script returns [19:14:05]free content buf [19:14:05]Sock 9.Close socket [19:14:05]Sock 9.Thread stoped [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:03]accept exits with 7 [19:18:03]New connection [19:18:03]New thread 3066813796 created [19:18:03]Thread 3066957156 joined [19:18:03]Waiting for new connection... [19:18:03] Sock 7.Parse request [19:18:03]Sock 7.Check first char [19:18:03]Sock 7.First char is OK [19:18:03]request: POST /json_proto HTTP/1.0 [19:18:03]Method: POST [19:18:03]URL: /json_proto [19:18:03]Method is POST - this is cgi request [19:18:03]url: /json_proto [19:18:03]query_string will be loaded in cgi processing [19:18:03]execute_cgi json_proto POST (null) [19:18:03]execute_cgi path=json_proto method=POST [19:18:03]POST find Content-Length [19:18:03]Host: 172.17.59.68:8080 [19:18:03]Content-Length: 677 [19:18:03]Content-Type: application/json [19:18:03] [19:18:03]POST finish read [19:18:03]Found Content-Length = 677 [19:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321010", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:03]execute_script... [19:18: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)321010", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:03]POST & json_proto [19:18:03]process_json_proto [19:18:03]json parsed OK: [19:18:03]protocol is kg_v1.0 [19:18:03]action value=close_receipt [19:18:03]process_action close_receipt [19:18:03]cmd_close_receipt [19:18:03]MH_GetDate [19:18:03]Write to MH i2c: F0 00 00 B1 50 F0 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: F0 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: F0 09 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: F0 09 00 B1 50 00 8B 23 77 66 BC EC 60 65 F1 [19:18:03]GetLastDocTimeStamp 1719083673 [19:18:03]current date 1719083915 [19:18:03]FM_GetShiftState [19:18:03]SAM_PROTO_GetShiftState [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 13 01 00 [19:18:03]Write to MH i2c: E2 08 00 B2 50 80 13 01 00 00 00 00 00 7F [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 B2 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B4 [19:18:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:18:03]wFMCommunicate OK [19:18:03]SAM_PROTO_GetShiftState done [19:18:03]FM_GetShiftState done [19:18:03]opened in 1719020067 [19:18:03]opened+sec_in_day 1719106467 [19:18:03]quantity*price = 20052 [19:18:03]sum+1 = 20054 [19:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 199 22.06.2024 19:18 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112333 ФПД: 156719829236967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191835&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112333&fm=156719829236967&tin=02508201610067®Number=0000000000092771&sum=20000 [19:18:04]StoreToDocumentArchive [19:18:04]shift 391 fd 112333 [19:18:04]save to /storage/0391/doc_00112333 [19:18:04]save last doc name /storage/0391/doc_00112333 to /storage/kkm_last_doc_name [19:18:04]save OK [19:18:04]Clear old archive folders... [19:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:04]tlvbuf is B6EDB580 [19:18:04]SAM_PROTO_ClearQueue [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 09 00 00 [19:18:04]Write to MH i2c: E2 08 00 BF 50 80 09 00 00 00 00 00 00 81 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 BF 50 00 90 00 83 [19:18:04]RAPDU: 90 00 [19:18:04]wFMCommunicate OK [19:18:04]SAM_PROTO_ClearQueue done [19:18:04]KKMCreateOFDPacket [19:18:04]OFDProtocolAddRootSTLVToBuf [19:18:04]FM_MakeSignedData [19:18:04]FM_MakeSignedData [19:18:04]SAM_PROTO_SignData [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 0D 01 02 [19:18:04]Write to MH i2c: E2 08 00 C0 50 80 0D 01 02 00 00 00 00 89 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]OFD Sender: No OFD packet to send [19:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 C0 50 00 90 00 84 [19:18:04]RAPDU: 90 00 [19:18:04]wFMCommunicate OK [19:18:04]wFMCommunicate request_size=255 [19:18:04]MH_SAM_APDU [19:18: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8B 23 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B6 01 00 35 04 06 00 8E [19:18:04]Write to MH i2c: E2 02 01 C1 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8B 23 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B6 01 00 35 04 06 00 8E 00 00 E8 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 C1 50 00 90 00 85 [19:18:04]RAPDU: 90 00 [19:18:04]wFMCommunicate OK [19:18:04]wFMCommunicate request_size=10 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 0D 02 02 05 89 2D C0 3C E7 [19:18:04]Write to MH i2c: E2 0D 00 C2 50 80 0D 02 02 05 00 89 2D C0 3C E7 00 00 2F [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 03 00 C2 50 00 90 00 86 [19:18:04]RAPDU: 90 00 [19:18:04]wFMCommunicate OK [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 0D 03 02 [19:18:04]Write to MH i2c: E2 08 00 C3 50 80 0D 03 02 00 00 00 00 8E [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0B 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0B 00 C3 50 00 E2 50 A9 43 64 6C 28 16 90 00 BB [19:18:04]RAPDU: E2 50 A9 43 64 6C 28 16 90 00 [19:18:04]wFMCommunicate OK [19:18:04]SAM_PROTO_SignData done [19:18:04]FM_MakeSignedData done [19:18:04]CreateOFDProtocolMessage [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 11 00 00 [19:18:04]Write to MH i2c: E2 08 00 C4 50 80 11 00 00 00 00 00 00 8E [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 17 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 17 00 C4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [19:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:18:04]wFMCommunicate OK [19:18:04]CreateOFDProtocolMessage done [19:18:04]OFDSenderStorePacket 112333 [19:18:04]StoreOFDPacket docnum=112333 [19:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 40 07 01 2D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8B 23 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B6 01 00 35 04 06 00 8E 89 2D C0 3C E7 E2 50 A9 43 64 6C 28 16 [19:18:04]CheckFolder [19:18:04]dirname=/storage/ofd_packets [19:18:04]CheckFolder done [19:18:04]ProducePacketName [19:18:04]name=ofd_packets/00112333 [19:18:04]NVStorageSaveData ofd_packets/00112333 [19:18:04]File name is /storage/ofd_packets/00112333 [19:18:04]Write 301 bytes [19:18:04]NVStorageSaveData done [19:18:04]OFDSenderStorePacket done [19:18:04]KKMCreateOFDPacket done [19:18:04]NVStorageSaveData kkm_last_timestamp [19:18:04]File name is /storage/kkm_last_timestamp [19:18:04]Write 4 bytes [19:18:04]NVStorageSaveData done [19:18:04]ExternCall_PrintAddStr [19:18:04]wPrintStart [19:18:04]Write to MH i2c: 01 00 00 C5 50 15 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: 01 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: 01 07 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: 01 07 00 C5 50 00 00 00 00 00 FF 0F 2A [19:18:04]RasterBufferAndPrint [19:18:04]line Счет N : (1)321010 [19:18:04]line ИНН: 02508201610067 [19:18:04]line Контрольно-Кассовый Чек [19:18:04]line ПРОДАЖА [19:18:04]line ТРК (МРК, ГНК) : 11 [19:18:04]line Товар: 2710124130 [19:18:04]line Аи-92-К-5 [19:18:04]line 3.020 * 66.40 [19:18:04]line = 200.53 [19:18:04]line НДС 12% НСП 1% [19:18:04]line > о реализуемом товаре [19:18:04]line ОКРУГЛЕНИЕ: -0.53 [19:18:04]line ИТОГО: 200.00 [19:18:04]line Внесено: 200.00 [19:18:04]line СДАЧА: 0.00 [19:18:04]line НСП 1% : 1.77 [19:18:04]line НДС 12% : 21.29 [19:18:04]line Наличными: 200.00 [19:18:04]line Безнал.: 0.00 [19:18:04]line Место: АЗС № 65 "Партнер Нефть" [19:18:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:18:04]line СНО: Общий режим [19:18:04]line Чек 199 22.06.2024 19:18 [19:18:04]line Смена: 391 ФФД: 1.0 [19:18:04]line ЗНМ: 0300000198 [19:18:04]line РНМ: 0000000000092771 [19:18:04]line Версия ККМ: 001 [19:18:04]line ФМ: 0000000000875083 [19:18:04]line ФД: 112333 [19:18:04]line ФПД: 156719829236967 [19:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191835&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112333&fm=156719829236967&tin=02508201610067®Number=0000000000092771&sum=20000 [19:18:05]OFD Sender: Processing packet 112333 [packets to send 38, broken 37] [19:18:05]ProducePacketName [19:18:05]name=ofd_packets/00112333 [19:18:05]OFD Sender: To server: pG, [19:18:05]CommunicateWithHost lk.salyk.kg:30040 [19:18:05]ConnectInit lk.salyk.kg [19:18:05]written 0, free lines is 4095 [19:18:05]Connected sock=10 [19:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 40 07 01 2D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8B 23 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B6 01 00 35 04 06 00 8E 89 2D C0 3C E7 E2 50 A9 43 64 6C 28 16 [19:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 B4 47 00 D3 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 35 30 38 33 10 04 04 00 CD B6 01 00 F4 03 04 00 8F BA 76 66 B6 04 01 00 00 A3 DB 6A 54 08 CC B0 F2 [19:18:05]CommunicateWithHost err = 0 [19:18:05]CheckOFDResponse [19:18:05]1017 (14) - 77093643461234 [19:18:05]1041 (16) - 0000000000875083 [19:18:05]1040 (4) - 112333 [19:18:05]1012 (4) - 22.06.2024 11:50 [19:18:05]1206 (1) - 0 [19:18:05]OFD Sender: Remove packet 112333 [19:18:05]ProducePacketName [19:18:05]name=ofd_packets/00112333 [19:18:05]NVStorageDeleteData [19:18:05]Write to MH i2c: 01 00 00 F0 50 40 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: 01 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: 01 07 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: 01 07 00 F0 50 00 00 00 00 00 EB 0C 3E [19:18:05]RasterBufferAndPrint [19:18:05]line [19:18:05]line [19:18:05]line [19:18:05]line [19:18:05]line [19:18:05]written 0, free lines is 3313 [19:18:05]MH_Cut [19:18:05]Write to MH i2c: D1 01 00 F7 50 01 19 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: D1 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: D1 01 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: D1 01 00 F7 50 00 18 [19:18:05]Write to MH i2c: 01 00 00 F8 50 48 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:06]OFD Sender: No OFD packet to send [19:18:06]*** Cut start [19:18:06]*** Partial cut [19:18:06]*** CUTSNS_PIN = 1 [19:18:06]*** CUTSNS_PIN = 0 [19:18:06]*** Brake cut motor [19:18:07]Read from MH i2c: 01 [19:18:07]MH_I2C_Read... [19:18:07]*** Stop cut motor [19:18:07]*** Cut end [19:18:07]Read from MH i2c: 01 07 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 07 00 F8 50 00 00 00 00 00 FF 0F 5D [19:18:07]process_action close_receipt done [19:18:07]requested_data is exist [19:18:07]produce_requested_data [19:18:07]requested_item fm.sn is exist - process it [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 11 00 00 [19:18:07]Write to MH i2c: E2 08 00 F9 50 80 11 00 00 00 00 00 00 C3 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 17 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 17 00 F9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [19:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:18:07]wFMCommunicate OK [19:18:07]requested_item fd.num is exist - process it [19:18:07]SAM_PROTO_GetFieldsCounters [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 13 00 00 [19:18:07]Write to MH i2c: E2 08 00 FA 50 80 13 00 00 00 00 00 00 C6 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 62 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 62 00 FA 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [19:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:07]wFMCommunicate OK [19:18:07]SAM_PROTO_GetFieldsCounters done [19:18:07]requested_item shift.num is exist - process it [19:18:07]requested_item shift.opened is exist - process it [19:18:07]req_shift_opened [19:18:07]FM_GetShiftState [19:18:07]SAM_PROTO_GetShiftState [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 13 01 00 [19:18:07]Write to MH i2c: E2 08 00 FB 50 80 13 01 00 00 00 00 00 C8 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 0E 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 0E 00 FB 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FD [19:18:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:18:07]wFMCommunicate OK [19:18:07]SAM_PROTO_GetShiftState done [19:18:07]FM_GetShiftState done [19:18:07]req_shift_opened done [19:18:07]requested_item shift.open_date is exist - process it [19:18:07]req_shift_open_date [19:18:07]req_shift_open_date done [19:18:07]produce_requested_data done [19:18:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112333,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:18:07]process_action_free close_receipt [19:18:07]json_value_free [19:18:07]json_value_free done [19:18:07]process_json_proto returns [19:18:07]Send response to host [19:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112333,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:18:07]free response buf [19:18:07]execute_script done [19:18:07]execute_script returns [19:18:07]free content buf [19:18:07]Sock 7.Close socket [19:18:07]Sock 7.Thread stoped [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [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:12]accept exits with 9 [19:20:12]New connection [19:20:12]New thread 3066957156 created [19:20:12]Thread 3066813796 joined [19:20:12]Waiting for new connection... [19:20:12] Sock 9.Parse request [19:20:12]Sock 9.Check first char [19:20:12]Sock 9.First char is OK [19:20:12]request: POST /json_proto HTTP/1.0 [19:20:12]Method: POST [19:20:12]URL: /json_proto [19:20:12]Method is POST - this is cgi request [19:20:12]url: /json_proto [19:20:12]query_string will be loaded in cgi processing [19:20:12]execute_cgi json_proto POST (null) [19:20:12]execute_cgi path=json_proto method=POST [19:20:12]POST find Content-Length [19:20:12]Host: 172.17.59.68:8080 [19:20:12]Content-Length: 682 [19:20:12]Content-Type: application/json [19:20:12] [19:20:12]POST finish read [19:20:12]Found Content-Length = 682 [19:20:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321011", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:12]execute_script... [19:20: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)321011", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:12]POST & json_proto [19:20:12]process_json_proto [19:20:12]json parsed OK: [19:20:12]protocol is kg_v1.0 [19:20:12]action value=close_receipt [19:20:12]process_action close_receipt [19:20:12]cmd_close_receipt [19:20:12]MH_GetDate [19:20:12]Write to MH i2c: F0 00 00 FC 50 3B [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: F0 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: F0 09 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: F0 09 00 FC 50 00 0D 24 77 66 BC EC 60 65 BF [19:20:12]GetLastDocTimeStamp 1719083915 [19:20:12]current date 1719084045 [19:20:12]FM_GetShiftState [19:20:12]SAM_PROTO_GetShiftState [19:20:12]wFMCommunicate request_size=4 [19:20:12]MH_SAM_APDU [19:20:12]CAPDU: 80 13 01 00 [19:20:12]Write to MH i2c: E2 08 00 FD 50 80 13 01 00 00 00 00 00 CA [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:12]Read from MH i2c: E2 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 0E 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 0E 00 FD 50 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FF [19:20:12]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:20:12]wFMCommunicate OK [19:20:12]SAM_PROTO_GetShiftState done [19:20:12]FM_GetShiftState done [19:20:12]opened in 1719020067 [19:20:12]opened+sec_in_day 1719106467 [19:20:12]quantity*price = 100064 [19:20:12]sum+1 = 100066 [19:20:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 200 22.06.2024 19:20 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112334 ФПД: 70143476593908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112334&fm=70143476593908&tin=02508201610067®Number=0000000000092771&sum=100000 [19:20:13]StoreToDocumentArchive [19:20:13]shift 391 fd 112334 [19:20:13]save to /storage/0391/doc_00112334 [19:20:13]save last doc name /storage/0391/doc_00112334 to /storage/kkm_last_doc_name [19:20:13]save OK [19:20:13]Clear old archive folders... [19:20:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:13]tlvbuf is 012C1A10 [19:20:13]SAM_PROTO_ClearQueue [19:20:13]wFMCommunicate request_size=4 [19:20:13]MH_SAM_APDU [19:20:13]CAPDU: 80 09 00 00 [19:20:13]Write to MH i2c: E2 08 00 0A 51 80 09 00 00 00 00 00 00 CD [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 0A 51 00 90 00 CF [19:20:14]RAPDU: 90 00 [19:20:14]wFMCommunicate OK [19:20:14]SAM_PROTO_ClearQueue done [19:20:14]KKMCreateOFDPacket [19:20:14]OFDProtocolAddRootSTLVToBuf [19:20:14]FM_MakeSignedData [19:20:14]FM_MakeSignedData [19:20:14]SAM_PROTO_SignData [19:20:14]wFMCommunicate request_size=4 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 0D 01 02 [19:20:14]Write to MH i2c: E2 08 00 0B 51 80 0D 01 02 00 00 00 00 D5 [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 0B 51 00 90 00 D0 [19:20:14]RAPDU: 90 00 [19:20:14]wFMCommunicate OK [19:20:14]wFMCommunicate request_size=255 [19:20:14]MH_SAM_APDU [19:20: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 0D 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B6 01 00 35 04 06 00 3F [19:20:14]Write to MH i2c: E2 02 01 0C 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 0D 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B6 01 00 35 04 06 00 3F 00 00 FB [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 0C 51 00 90 00 D1 [19:20:14]RAPDU: 90 00 [19:20:14]wFMCommunicate OK [19:20:14]wFMCommunicate request_size=10 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 0D 02 02 05 CB 8D 01 74 F4 [19:20:14]Write to MH i2c: E2 0D 00 0D 51 80 0D 02 02 05 00 CB 8D 01 74 F4 00 00 A3 [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 03 00 0D 51 00 90 00 D2 [19:20:14]RAPDU: 90 00 [19:20:14]wFMCommunicate OK [19:20:14]wFMCommunicate request_size=4 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 0D 03 02 [19:20:14]Write to MH i2c: E2 08 00 0E 51 80 0D 03 02 00 00 00 00 DA [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 0B 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 0B 00 0E 51 00 44 32 9F AA 10 0C E5 91 90 00 2C [19:20:14]RAPDU: 44 32 9F AA 10 0C E5 91 90 00 [19:20:14]wFMCommunicate OK [19:20:14]SAM_PROTO_SignData done [19:20:14]FM_MakeSignedData done [19:20:14]CreateOFDProtocolMessage [19:20:14]wFMCommunicate request_size=4 [19:20:14]MH_SAM_APDU [19:20:14]CAPDU: 80 11 00 00 [19:20:14]Write to MH i2c: E2 08 00 0F 51 80 11 00 00 00 00 00 00 DA [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:14]Read from MH i2c: E2 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 17 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: E2 17 00 0F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [19:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:20:14]wFMCommunicate OK [19:20:14]CreateOFDProtocolMessage done [19:20:14]OFDSenderStorePacket 112334 [19:20:14]StoreOFDPacket docnum=112334 [19:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 C6 07 01 DA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 0D 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B6 01 00 35 04 06 00 3F CB 8D 01 74 F4 44 32 9F AA 10 0C E5 91 [19:20:14]CheckFolder [19:20:14]dirname=/storage/ofd_packets [19:20:14]CheckFolder done [19:20:14]ProducePacketName [19:20:14]name=ofd_packets/00112334 [19:20:14]NVStorageSaveData ofd_packets/00112334 [19:20:14]File name is /storage/ofd_packets/00112334 [19:20:14]Write 301 bytes [19:20:14]NVStorageSaveData done [19:20:14]OFDSenderStorePacket done [19:20:14]KKMCreateOFDPacket done [19:20:14]NVStorageSaveData kkm_last_timestamp [19:20:14]File name is /storage/kkm_last_timestamp [19:20:14]Write 4 bytes [19:20:14]NVStorageSaveData done [19:20:14]ExternCall_PrintAddStr [19:20:14]wPrintStart [19:20:14]Write to MH i2c: 01 00 00 10 51 61 [19:20:14]Write i2c OK [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: 01 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: 01 07 00 [19:20:14]MH_I2C_Read... [19:20:14]Read from MH i2c: 01 07 00 10 51 00 00 00 00 00 FF 0F 76 [19:20:14]RasterBufferAndPrint [19:20:14]line Счет N : (1)321011 [19:20:14]line ИНН: 02508201610067 [19:20:14]line Контрольно-Кассовый Чек [19:20:14]line ПРОДАЖА [19:20:14]line ТРК (МРК, ГНК) : 11 [19:20:14]line Товар: 2710124130 [19:20:14]line Аи-92-К-5 [19:20:14]line 15.070 * 66.40 [19:20:14]line = 1000.65 [19:20:14]line НДС 12% НСП 1% [19:20:14]line > о реализуемом товаре [19:20:14]line ОКРУГЛЕНИЕ: -0.65 [19:20:14]line ИТОГО: 1000.00 [19:20:14]line Внесено: 1000.00 [19:20:14]line СДАЧА: 0.00 [19:20:14]line НСП 1% : 8.85 [19:20:14]line НДС 12% : 106.26 [19:20:14]line Наличными: 1000.00 [19:20:14]line Безнал.: 0.00 [19:20:14]line Место: АЗС № 65 "Партнер Нефть" [19:20:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:20:14]line СНО: Общий режим [19:20:14]line Чек 200 22.06.2024 19:20 [19:20:14]line Смена: 391 ФФД: 1.0 [19:20:14]line ЗНМ: 0300000198 [19:20:14]line РНМ: 0000000000092771 [19:20:14]line Версия ККМ: 001 [19:20:14]line ФМ: 0000000000875083 [19:20:14]line ФД: 112334 [19:20:14]line ФПД: 70143476593908 [19:20:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112334&fm=70143476593908&tin=02508201610067®Number=0000000000092771&sum=100000 [19:20:14]OFD Sender: Processing packet 112334 [packets to send 38, broken 37] [19:20:14]ProducePacketName [19:20:14]name=ofd_packets/00112334 [19:20:14]OFD Sender: To server: pG, [19:20:14]CommunicateWithHost lk.salyk.kg:30040 [19:20:14]ConnectInit lk.salyk.kg [19:20:14]written 0, free lines is 4095 [19:20:14]Connected sock=10 [19:20:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 C6 07 01 DA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 0D 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B6 01 00 35 04 06 00 3F CB 8D 01 74 F4 44 32 9F AA 10 0C E5 91 [19:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 78 47 00 19 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B6 01 00 F4 03 04 00 10 BB 76 66 B6 04 01 00 00 16 43 2E EE D0 92 ED F6 [19:20:15]CommunicateWithHost err = 0 [19:20:15]CheckOFDResponse [19:20:15]1017 (14) - 77093643461234 [19:20:15]1041 (16) - 0000000000875083 [19:20:15]1040 (4) - 112334 [19:20:15]1012 (4) - 22.06.2024 11:52 [19:20:15]1206 (1) - 0 [19:20:15]OFD Sender: Remove packet 112334 [19:20:15]ProducePacketName [19:20:15]name=ofd_packets/00112334 [19:20:15]NVStorageDeleteData [19:20:15]Write to MH i2c: 01 00 00 3B 51 8C [19:20:15]Write i2c OK [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: 01 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: 01 07 00 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: 01 07 00 3B 51 00 00 00 00 00 ED 0C 8C [19:20:15]RasterBufferAndPrint [19:20:15]line [19:20:15]line [19:20:15]line [19:20:15]line [19:20:15]line [19:20:15]written 0, free lines is 3315 [19:20:15]MH_Cut [19:20:15]Write to MH i2c: D1 01 00 42 51 01 65 [19:20:15]Write i2c OK [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: D1 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: D1 01 00 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: D1 01 00 42 51 00 64 [19:20:15]Write to MH i2c: 01 00 00 43 51 94 [19:20:15]Write i2c OK [19:20:15]MH_I2C_Read... [19:20:15]OFD Sender: No OFD packet to send [19:20:16]*** Cut start [19:20:16]*** Partial cut [19:20:16]*** CUTSNS_PIN = 1 [19:20:16]*** CUTSNS_PIN = 0 [19:20:16]*** Brake cut motor [19:20:16]Read from MH i2c: 01 [19:20:16]MH_I2C_Read... [19:20:16]*** Stop cut motor [19:20:16]*** Cut end [19:20:16]Read from MH i2c: 01 07 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: 01 07 00 43 51 00 00 00 00 00 FF 0F A9 [19:20:16]process_action close_receipt done [19:20:16]requested_data is exist [19:20:16]produce_requested_data [19:20:16]requested_item fm.sn is exist - process it [19:20:16]wFMCommunicate request_size=4 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 11 00 00 [19:20:16]Write to MH i2c: E2 08 00 44 51 80 11 00 00 00 00 00 00 0F [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 17 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 17 00 44 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [19:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:20:16]wFMCommunicate OK [19:20:16]requested_item fd.num is exist - process it [19:20:16]SAM_PROTO_GetFieldsCounters [19:20:16]wFMCommunicate request_size=4 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 13 00 00 [19:20:16]Write to MH i2c: E2 08 00 45 51 80 13 00 00 00 00 00 00 12 [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 62 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 62 00 45 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [19:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:16]wFMCommunicate OK [19:20:16]SAM_PROTO_GetFieldsCounters done [19:20:16]requested_item shift.num is exist - process it [19:20:16]requested_item shift.opened is exist - process it [19:20:16]req_shift_opened [19:20:16]FM_GetShiftState [19:20:16]SAM_PROTO_GetShiftState [19:20:16]wFMCommunicate request_size=4 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 13 01 00 [19:20:16]Write to MH i2c: E2 08 00 46 51 80 13 01 00 00 00 00 00 14 [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 0E 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 0E 00 46 51 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 49 [19:20:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:20:16]wFMCommunicate OK [19:20:16]SAM_PROTO_GetShiftState done [19:20:16]FM_GetShiftState done [19:20:16]req_shift_opened done [19:20:16]requested_item shift.open_date is exist - process it [19:20:16]req_shift_open_date [19:20:16]req_shift_open_date done [19:20:16]produce_requested_data done [19:20:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112334,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:20:16]process_action_free close_receipt [19:20:16]json_value_free [19:20:16]json_value_free done [19:20:16]process_json_proto returns [19:20:16]Send response to host [19:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112334,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:20:16]free response buf [19:20:16]execute_script done [19:20:16]execute_script returns [19:20:16]free content buf [19:20:16]Sock 9.Close socket [19:20:16]Sock 9.Thread stoped [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:31]accept exits with 7 [19:23:31]New connection [19:23:31]New thread 3066813796 created [19:23:31]Thread 3066957156 joined [19:23:31]Waiting for new connection... [19:23:31] Sock 7.Parse request [19:23:31]Sock 7.Check first char [19:23:31]Sock 7.First char is OK [19:23:31]request: POST /json_proto HTTP/1.0 [19:23:31]Method: POST [19:23:31]URL: /json_proto [19:23:31]Method is POST - this is cgi request [19:23:31]url: /json_proto [19:23:31]query_string will be loaded in cgi processing [19:23:31]execute_cgi json_proto POST (null) [19:23:31]execute_cgi path=json_proto method=POST [19:23:31]POST find Content-Length [19:23:31]Host: 172.17.59.68:8080 [19:23:31]Content-Length: 677 [19:23:31]Content-Type: application/json [19:23:31] [19:23:31]POST finish read [19:23:31]Found Content-Length = 677 [19:23:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321012", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:31]execute_script... [19:23: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)321012", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:31]POST & json_proto [19:23:31]process_json_proto [19:23:31]json parsed OK: [19:23:31]protocol is kg_v1.0 [19:23:31]action value=close_receipt [19:23:31]process_action close_receipt [19:23:31]cmd_close_receipt [19:23:31]MH_GetDate [19:23:31]Write to MH i2c: F0 00 00 47 51 87 [19:23:31]Write i2c OK [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: F0 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: F0 09 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: F0 09 00 47 51 00 D3 24 77 66 BC EC 60 65 D1 [19:23:31]GetLastDocTimeStamp 1719084045 [19:23:31]current date 1719084243 [19:23:31]FM_GetShiftState [19:23:31]SAM_PROTO_GetShiftState [19:23:31]wFMCommunicate request_size=4 [19:23:31]MH_SAM_APDU [19:23:31]CAPDU: 80 13 01 00 [19:23:31]Write to MH i2c: E2 08 00 48 51 80 13 01 00 00 00 00 00 16 [19:23:31]Write i2c OK [19:23:31]MH_I2C_Read... [19:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:31]Read from MH i2c: E2 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 0E 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 0E 00 48 51 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4B [19:23:31]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:23:31]wFMCommunicate OK [19:23:31]SAM_PROTO_GetShiftState done [19:23:31]FM_GetShiftState done [19:23:31]opened in 1719020067 [19:23:31]opened+sec_in_day 1719106467 [19:23:31]quantity*price = 20052 [19:23:31]sum+1 = 20054 [19:23:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 201 22.06.2024 19:24 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112335 ФПД: 45738095857233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192403&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112335&fm=45738095857233&tin=02508201610067®Number=0000000000092771&sum=20000 [19:23:32]StoreToDocumentArchive [19:23:32]shift 391 fd 112335 [19:23:32]save to /storage/0391/doc_00112335 [19:23:32]save last doc name /storage/0391/doc_00112335 to /storage/kkm_last_doc_name [19:23:32]save OK [19:23:32]Clear old archive folders... [19:23:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:32]tlvbuf is 011854E0 [19:23:32]SAM_PROTO_ClearQueue [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 09 00 00 [19:23:32]Write to MH i2c: E2 08 00 55 51 80 09 00 00 00 00 00 00 18 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 55 51 00 90 00 1A [19:23:32]RAPDU: 90 00 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_ClearQueue done [19:23:32]KKMCreateOFDPacket [19:23:32]OFDProtocolAddRootSTLVToBuf [19:23:32]FM_MakeSignedData [19:23:32]FM_MakeSignedData [19:23:32]SAM_PROTO_SignData [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 0D 01 02 [19:23:32]Write to MH i2c: E2 08 00 56 51 80 0D 01 02 00 00 00 00 20 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 56 51 00 90 00 1B [19:23:32]RAPDU: 90 00 [19:23:32]wFMCommunicate OK [19:23:32]wFMCommunicate request_size=255 [19:23:32]MH_SAM_APDU [19:23: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 D3 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B6 01 00 35 04 06 00 29 [19:23:32]Write to MH i2c: E2 02 01 57 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 D3 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B6 01 00 35 04 06 00 29 00 00 67 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 57 51 00 90 00 1C [19:23:32]RAPDU: 90 00 [19:23:32]wFMCommunicate OK [19:23:32]wFMCommunicate request_size=10 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 0D 02 02 05 99 3A F4 CE 51 [19:23:32]Write to MH i2c: E2 0D 00 58 51 80 0D 02 02 05 00 99 3A F4 CE 51 00 00 13 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 03 00 58 51 00 90 00 1D [19:23:32]RAPDU: 90 00 [19:23:32]wFMCommunicate OK [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 0D 03 02 [19:23:32]Write to MH i2c: E2 08 00 59 51 80 0D 03 02 00 00 00 00 25 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0B 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0B 00 59 51 00 D0 4D 21 A1 43 14 B2 D8 90 00 E6 [19:23:32]RAPDU: D0 4D 21 A1 43 14 B2 D8 90 00 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_SignData done [19:23:32]FM_MakeSignedData done [19:23:32]CreateOFDProtocolMessage [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 11 00 00 [19:23:32]Write to MH i2c: E2 08 00 5A 51 80 11 00 00 00 00 00 00 25 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 17 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 17 00 5A 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [19:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:23:32]wFMCommunicate OK [19:23:32]CreateOFDProtocolMessage done [19:23:32]OFDSenderStorePacket 112335 [19:23:32]StoreOFDPacket docnum=112335 [19:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 53 07 01 A2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 D3 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B6 01 00 35 04 06 00 29 99 3A F4 CE 51 D0 4D 21 A1 43 14 B2 D8 [19:23:32]CheckFolder [19:23:32]dirname=/storage/ofd_packets [19:23:32]CheckFolder done [19:23:32]ProducePacketName [19:23:32]name=ofd_packets/00112335 [19:23:32]NVStorageSaveData ofd_packets/00112335 [19:23:32]File name is /storage/ofd_packets/00112335 [19:23:32]Write 301 bytes [19:23:32]NVStorageSaveData done [19:23:32]OFDSenderStorePacket done [19:23:32]KKMCreateOFDPacket done [19:23:32]NVStorageSaveData kkm_last_timestamp [19:23:32]File name is /storage/kkm_last_timestamp [19:23:32]Write 4 bytes [19:23:32]NVStorageSaveData done [19:23:32]ExternCall_PrintAddStr [19:23:32]wPrintStart [19:23:32]Write to MH i2c: 01 00 00 5B 51 AC [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 07 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 07 00 5B 51 00 00 00 00 00 FF 0F C1 [19:23:32]RasterBufferAndPrint [19:23:32]line Счет N : (1)321012 [19:23:32]line ИНН: 02508201610067 [19:23:32]line Контрольно-Кассовый Чек [19:23:32]line ПРОДАЖА [19:23:32]line ТРК (МРК, ГНК) : 11 [19:23:32]line Товар: 2710124130 [19:23:32]line Аи-92-К-5 [19:23:32]line 3.020 * 66.40 [19:23:32]line = 200.53 [19:23:32]line НДС 12% НСП 1% [19:23:32]line > о реализуемом товаре [19:23:32]line ОКРУГЛЕНИЕ: -0.53 [19:23:32]line ИТОГО: 200.00 [19:23:32]line Внесено: 200.00 [19:23:32]line СДАЧА: 0.00 [19:23:32]line НСП 1% : 1.77 [19:23:32]line НДС 12% : 21.29 [19:23:32]line Наличными: 200.00 [19:23:32]line Безнал.: 0.00 [19:23:32]line Место: АЗС № 65 "Партнер Нефть" [19:23:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:23:32]line СНО: Общий режим [19:23:32]line Чек 201 22.06.2024 19:24 [19:23:32]line Смена: 391 ФФД: 1.0 [19:23:32]line ЗНМ: 0300000198 [19:23:32]line РНМ: 0000000000092771 [19:23:32]line Версия ККМ: 001 [19:23:32]line ФМ: 0000000000875083 [19:23:32]line ФД: 112335 [19:23:32]line ФПД: 45738095857233 [19:23:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192403&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112335&fm=45738095857233&tin=02508201610067®Number=0000000000092771&sum=20000 [19:23:33]OFD Sender: Processing packet 112335 [packets to send 38, broken 37] [19:23:33]ProducePacketName [19:23:33]name=ofd_packets/00112335 [19:23:33]OFD Sender: To server: pG, [19:23:33]CommunicateWithHost lk.salyk.kg:30040 [19:23:33]ConnectInit lk.salyk.kg [19:23:33]written 0, free lines is 4095 [19:23:33]Connected sock=10 [19:23:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 53 07 01 A2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 D3 24 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B6 01 00 35 04 06 00 29 99 3A F4 CE 51 D0 4D 21 A1 43 14 B2 D8 [19:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 EE 47 00 6A FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B6 01 00 F4 03 04 00 D7 BB 76 66 B6 04 01 00 00 60 94 31 62 35 43 63 98 [19:23:33]CommunicateWithHost err = 0 [19:23:33]CheckOFDResponse [19:23:33]1017 (14) - 77093643461234 [19:23:33]1041 (16) - 0000000000875083 [19:23:33]1040 (4) - 112335 [19:23:33]1012 (4) - 22.06.2024 11:56 [19:23:33]1206 (1) - 0 [19:23:33]OFD Sender: Remove packet 112335 [19:23:33]ProducePacketName [19:23:33]name=ofd_packets/00112335 [19:23:33]NVStorageDeleteData [19:23:33]Write to MH i2c: 01 00 00 86 51 D7 [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: 01 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: 01 07 00 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: 01 07 00 86 51 00 00 00 00 00 DF 0C C9 [19:23:33]RasterBufferAndPrint [19:23:33]line [19:23:33]line [19:23:33]line [19:23:33]line [19:23:33]line [19:23:33]written 0, free lines is 3304 [19:23:33]MH_Cut [19:23:33]Write to MH i2c: D1 01 00 8D 51 01 B0 [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: D1 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: D1 01 00 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: D1 01 00 8D 51 00 AF [19:23:33]Write to MH i2c: 01 00 00 8E 51 DF [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:33]OFD Sender: No OFD packet to send [19:23:34]*** Cut start [19:23:34]*** Partial cut [19:23:34]*** CUTSNS_PIN = 1 [19:23:34]*** CUTSNS_PIN = 0 [19:23:34]*** Brake cut motor [19:23:34]Read from MH i2c: 01 [19:23:34]MH_I2C_Read... [19:23:34]*** Stop cut motor [19:23:34]*** Cut end [19:23:34]Read from MH i2c: 01 07 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 07 00 8E 51 00 00 00 00 00 FF 0F F4 [19:23:34]process_action close_receipt done [19:23:34]requested_data is exist [19:23:34]produce_requested_data [19:23:34]requested_item fm.sn is exist - process it [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 11 00 00 [19:23:34]Write to MH i2c: E2 08 00 8F 51 80 11 00 00 00 00 00 00 5A [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 17 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 17 00 8F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [19:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:23:34]wFMCommunicate OK [19:23:34]requested_item fd.num is exist - process it [19:23:34]SAM_PROTO_GetFieldsCounters [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 13 00 00 [19:23:34]Write to MH i2c: E2 08 00 90 51 80 13 00 00 00 00 00 00 5D [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:35]Read from MH i2c: E2 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: E2 62 00 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: E2 62 00 90 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:23:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:35]wFMCommunicate OK [19:23:35]SAM_PROTO_GetFieldsCounters done [19:23:35]requested_item shift.num is exist - process it [19:23:35]requested_item shift.opened is exist - process it [19:23:35]req_shift_opened [19:23:35]FM_GetShiftState [19:23:35]SAM_PROTO_GetShiftState [19:23:35]wFMCommunicate request_size=4 [19:23:35]MH_SAM_APDU [19:23:35]CAPDU: 80 13 01 00 [19:23:35]Write to MH i2c: E2 08 00 91 51 80 13 01 00 00 00 00 00 5F [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:35]Read from MH i2c: E2 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: E2 0E 00 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: E2 0E 00 91 51 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 94 [19:23:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:23:35]wFMCommunicate OK [19:23:35]SAM_PROTO_GetShiftState done [19:23:35]FM_GetShiftState done [19:23:35]req_shift_opened done [19:23:35]requested_item shift.open_date is exist - process it [19:23:35]req_shift_open_date [19:23:35]req_shift_open_date done [19:23:35]produce_requested_data done [19:23:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112335,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:23:35]process_action_free close_receipt [19:23:35]json_value_free [19:23:35]json_value_free done [19:23:35]process_json_proto returns [19:23:35]Send response to host [19:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112335,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:23:35]free response buf [19:23:35]execute_script done [19:23:35]execute_script returns [19:23:35]free content buf [19:23:35]Sock 7.Close socket [19:23:35]Sock 7.Thread stoped [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:56]accept exits with 9 [19:26:56]New connection [19:26:56]New thread 3066957156 created [19:26:56]Thread 3066813796 joined [19:26:56]Waiting for new connection... [19:26:56] Sock 9.Parse request [19:26:56]Sock 9.Check first char [19:26:56]Sock 9.First char is OK [19:26:56]request: POST /json_proto HTTP/1.0 [19:26:56]Method: POST [19:26:56]URL: /json_proto [19:26:56]Method is POST - this is cgi request [19:26:56]url: /json_proto [19:26:56]query_string will be loaded in cgi processing [19:26:56]execute_cgi json_proto POST (null) [19:26:56]execute_cgi path=json_proto method=POST [19:26:56]POST find Content-Length [19:26:56]Host: 172.17.59.68:8080 [19:26:56]Content-Length: 677 [19:26:56]Content-Type: application/json [19:26:56] [19:26:56]POST finish read [19:26:56]Found Content-Length = 677 [19:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321013", "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.40, "quantity" : 3.790, "sum" : 251.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 251.00, "total" : 251.00, "payments": [ { "type": 0, "sum" : 251.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:56]execute_script... [19:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321013", "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.40, "quantity" : 3.790, "sum" : 251.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 251.00, "total" : 251.00, "payments": [ { "type": 0, "sum" : 251.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:56]POST & json_proto [19:26:56]process_json_proto [19:26:56]json parsed OK: [19:26:56]protocol is kg_v1.0 [19:26:56]action value=close_receipt [19:26:56]process_action close_receipt [19:26:56]cmd_close_receipt [19:26:56]MH_GetDate [19:26:56]Write to MH i2c: F0 00 00 92 51 D2 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: F0 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: F0 09 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: F0 09 00 92 51 00 A0 25 77 66 BC EC 60 65 EA [19:26:56]GetLastDocTimeStamp 1719084243 [19:26:56]current date 1719084448 [19:26:56]FM_GetShiftState [19:26:56]SAM_PROTO_GetShiftState [19:26:56]wFMCommunicate request_size=4 [19:26:56]MH_SAM_APDU [19:26:56]CAPDU: 80 13 01 00 [19:26:56]Write to MH i2c: E2 08 00 93 51 80 13 01 00 00 00 00 00 61 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 93 51 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 96 [19:26:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:26:56]wFMCommunicate OK [19:26:56]SAM_PROTO_GetShiftState done [19:26:56]FM_GetShiftState done [19:26:56]opened in 1719020067 [19:26:56]opened+sec_in_day 1719106467 [19:26:56]quantity*price = 25165 [19:26:56]sum+1 = 25167 [19:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 251.00 Внесено: 251.00 СДАЧА: 0.00 НСП 1% : 2.23 НДС 12% : 26.72 Наличными: 251.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 202 22.06.2024 19:27 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112336 ФПД: 66956190170726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112336&fm=66956190170726&tin=02508201610067®Number=0000000000092771&sum=25100 [19:26:57]StoreToDocumentArchive [19:26:57]shift 391 fd 112336 [19:26:57]save to /storage/0391/doc_00112336 [19:26:57]save last doc name /storage/0391/doc_00112336 to /storage/kkm_last_doc_name [19:26:57]save OK [19:26:57]Clear old archive folders... [19:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:57]tlvbuf is 011854E0 [19:26:57]SAM_PROTO_ClearQueue [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 09 00 00 [19:26:57]Write to MH i2c: E2 08 00 A0 51 80 09 00 00 00 00 00 00 63 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 A0 51 00 90 00 65 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_ClearQueue done [19:26:57]KKMCreateOFDPacket [19:26:57]OFDProtocolAddRootSTLVToBuf [19:26:57]FM_MakeSignedData [19:26:57]FM_MakeSignedData [19:26:57]SAM_PROTO_SignData [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 01 02 [19:26:57]Write to MH i2c: E2 08 00 A1 51 80 0D 01 02 00 00 00 00 6B [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 A1 51 00 90 00 66 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=255 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 25 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B6 01 00 35 04 06 00 3C [19:26:57]Write to MH i2c: E2 02 01 A2 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 25 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B6 01 00 35 04 06 00 3C 00 00 F6 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 A2 51 00 90 00 67 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=10 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 05 E5 73 EE 3E 66 [19:26:57]Write to MH i2c: E2 0D 00 A3 51 80 0D 02 02 05 00 E5 73 EE 3E 66 00 00 62 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 A3 51 00 90 00 68 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 03 02 [19:26:57]Write to MH i2c: E2 08 00 A4 51 80 0D 03 02 00 00 00 00 70 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 A4 51 00 9C A9 C5 37 DE 10 AC 12 90 00 5E [19:26:57]RAPDU: 9C A9 C5 37 DE 10 AC 12 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_SignData done [19:26:57]FM_MakeSignedData done [19:26:57]CreateOFDProtocolMessage [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 11 00 00 [19:26:57]Write to MH i2c: E2 08 00 A5 51 80 11 00 00 00 00 00 00 70 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 A5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [19:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:26:57]wFMCommunicate OK [19:26:57]CreateOFDProtocolMessage done [19:26:57]OFDSenderStorePacket 112336 [19:26:57]StoreOFDPacket docnum=112336 [19:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 64 07 01 6B 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 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 25 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B6 01 00 35 04 06 00 3C E5 73 EE 3E 66 9C A9 C5 37 DE 10 AC 12 [19:26:57]CheckFolder [19:26:57]dirname=/storage/ofd_packets [19:26:57]CheckFolder done [19:26:57]ProducePacketName [19:26:57]name=ofd_packets/00112336 [19:26:57]NVStorageSaveData ofd_packets/00112336 [19:26:57]File name is /storage/ofd_packets/00112336 [19:26:57]Write 301 bytes [19:26:57]NVStorageSaveData done [19:26:57]OFDSenderStorePacket done [19:26:57]KKMCreateOFDPacket done [19:26:57]NVStorageSaveData kkm_last_timestamp [19:26:57]File name is /storage/kkm_last_timestamp [19:26:57]Write 4 bytes [19:26:57]NVStorageSaveData done [19:26:57]ExternCall_PrintAddStr [19:26:57]wPrintStart [19:26:57]Write to MH i2c: 01 00 00 A6 51 F7 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 A6 51 00 00 00 00 00 FF 0F 0C [19:26:57]RasterBufferAndPrint [19:26:57]line Счет N : (1)321013 [19:26:57]line ИНН: 02508201610067 [19:26:57]line Контрольно-Кассовый Чек [19:26:57]line ПРОДАЖА [19:26:57]line ТРК (МРК, ГНК) : 11 [19:26:57]line Товар: 2710124130 [19:26:57]line Аи-92-К-5 [19:26:57]line 3.790 * 66.40 [19:26:57]line = 251.66 [19:26:57]line НДС 12% НСП 1% [19:26:57]line > о реализуемом товаре [19:26:57]line ОКРУГЛЕНИЕ: -0.66 [19:26:57]line ИТОГО: 251.00 [19:26:57]line Внесено: 251.00 [19:26:57]line СДАЧА: 0.00 [19:26:57]line НСП 1% : 2.23 [19:26:57]line НДС 12% : 26.72 [19:26:57]line Наличными: 251.00 [19:26:57]line Безнал.: 0.00 [19:26:57]line Место: АЗС № 65 "Партнер Нефть" [19:26:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:26:57]line СНО: Общий режим [19:26:57]line Чек 202 22.06.2024 19:27 [19:26:57]line Смена: 391 ФФД: 1.0 [19:26:57]line ЗНМ: 0300000198 [19:26:57]line РНМ: 0000000000092771 [19:26:57]line Версия ККМ: 001 [19:26:57]line ФМ: 0000000000875083 [19:26:57]line ФД: 112336 [19:26:57]line ФПД: 66956190170726 [19:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112336&fm=66956190170726&tin=02508201610067®Number=0000000000092771&sum=25100 [19:26:58]OFD Sender: Processing packet 112336 [packets to send 38, broken 37] [19:26:58]ProducePacketName [19:26:58]name=ofd_packets/00112336 [19:26:58]OFD Sender: To server: pG, [19:26:58]CommunicateWithHost lk.salyk.kg:30040 [19:26:58]ConnectInit lk.salyk.kg [19:26:58]written 0, free lines is 4095 [19:26:58]Connected sock=10 [19:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 64 07 01 6B 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 CE 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4E 62 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 0A 00 00 00 00 07 04 06 00 0C 62 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 25 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B6 01 00 35 04 06 00 3C E5 73 EE 3E 66 9C A9 C5 37 DE 10 AC 12 [19:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F6 40 47 00 5C 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 35 30 38 33 10 04 04 00 D0 B6 01 00 F4 03 04 00 A4 BC 76 66 B6 04 01 00 00 0B 44 7D D9 34 74 8E DB [19:26:58]CommunicateWithHost err = 0 [19:26:58]CheckOFDResponse [19:26:58]1017 (14) - 77093643461234 [19:26:58]1041 (16) - 0000000000875083 [19:26:58]1040 (4) - 112336 [19:26:58]1012 (4) - 22.06.2024 11:59 [19:26:58]1206 (1) - 0 [19:26:58]OFD Sender: Remove packet 112336 [19:26:58]ProducePacketName [19:26:58]name=ofd_packets/00112336 [19:26:58]NVStorageDeleteData [19:26:58]Write to MH i2c: 01 00 00 D1 51 22 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 D1 51 00 00 00 00 00 E9 0C 1E [19:26:58]RasterBufferAndPrint [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]written 0, free lines is 3315 [19:26:58]MH_Cut [19:26:58]Write to MH i2c: D1 01 00 D8 51 01 FB [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 01 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 01 00 D8 51 00 FA [19:26:58]Write to MH i2c: 01 00 00 D9 51 2A [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:59]OFD Sender: No OFD packet to send [19:26:59]*** Cut start [19:26:59]*** Partial cut [19:26:59]*** CUTSNS_PIN = 1 [19:26:59]*** CUTSNS_PIN = 0 [19:26:59]*** Brake cut motor [19:27:00]Read from MH i2c: 01 [19:27:00]MH_I2C_Read... [19:27:00]*** Stop cut motor [19:27:00]*** Cut end [19:27:00]Read from MH i2c: 01 07 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 D9 51 00 00 00 00 00 FF 0F 3F [19:27:00]process_action close_receipt done [19:27:00]requested_data is exist [19:27:00]produce_requested_data [19:27:00]requested_item fm.sn is exist - process it [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 11 00 00 [19:27:00]Write to MH i2c: E2 08 00 DA 51 80 11 00 00 00 00 00 00 A5 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 DA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [19:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:27:00]wFMCommunicate OK [19:27:00]requested_item fd.num is exist - process it [19:27:00]SAM_PROTO_GetFieldsCounters [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 13 00 00 [19:27:00]Write to MH i2c: E2 08 00 DB 51 80 13 00 00 00 00 00 00 A8 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 62 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 62 00 DB 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_GetFieldsCounters done [19:27:00]requested_item shift.num is exist - process it [19:27:00]requested_item shift.opened is exist - process it [19:27:00]req_shift_opened [19:27:00]FM_GetShiftState [19:27:00]SAM_PROTO_GetShiftState [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 13 01 00 [19:27:00]Write to MH i2c: E2 08 00 DC 51 80 13 01 00 00 00 00 00 AA [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0E 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0E 00 DC 51 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DF [19:27:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_GetShiftState done [19:27:00]FM_GetShiftState done [19:27:00]req_shift_opened done [19:27:00]requested_item shift.open_date is exist - process it [19:27:00]req_shift_open_date [19:27:00]req_shift_open_date done [19:27:00]produce_requested_data done [19:27:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112336,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:27:00]process_action_free close_receipt [19:27:00]json_value_free [19:27:00]json_value_free done [19:27:00]process_json_proto returns [19:27:00]Send response to host [19:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112336,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:27:00]free response buf [19:27:00]execute_script done [19:27:00]execute_script returns [19:27:00]free content buf [19:27:00]Sock 9.Close socket [19:27:00]Sock 9.Thread stoped [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [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:35]accept exits with 7 [19:28:35]New connection [19:28:35]New thread 3066813796 created [19:28:35]Thread 3066957156 joined [19:28:35]Waiting for new connection... [19:28:35] Sock 7.Parse request [19:28:35]Sock 7.Check first char [19:28:35]Sock 7.First char is OK [19:28:35]request: POST /json_proto HTTP/1.0 [19:28:35]Method: POST [19:28:35]URL: /json_proto [19:28:35]Method is POST - this is cgi request [19:28:35]url: /json_proto [19:28:35]query_string will be loaded in cgi processing [19:28:35]execute_cgi json_proto POST (null) [19:28:35]execute_cgi path=json_proto method=POST [19:28:35]POST find Content-Length [19:28:35]Host: 172.17.59.68:8080 [19:28:35]Content-Length: 679 [19:28:35]Content-Type: application/json [19:28:35] [19:28:35]POST finish read [19:28:35]Found Content-Length = 679 [19:28:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:35]execute_script... [19:28: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)321014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:35]POST & json_proto [19:28:35]process_json_proto [19:28:35]json parsed OK: [19:28:35]protocol is kg_v1.0 [19:28:35]action value=close_receipt [19:28:35]process_action close_receipt [19:28:35]cmd_close_receipt [19:28:35]MH_GetDate [19:28:35]Write to MH i2c: F0 00 00 DD 51 1D [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: F0 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: F0 09 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: F0 09 00 DD 51 00 04 26 77 66 BC EC 60 65 9A [19:28:35]GetLastDocTimeStamp 1719084448 [19:28:35]current date 1719084548 [19:28:35]FM_GetShiftState [19:28:35]SAM_PROTO_GetShiftState [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 13 01 00 [19:28:35]Write to MH i2c: E2 08 00 DE 51 80 13 01 00 00 00 00 00 AC [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 0E 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 0E 00 DE 51 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E1 [19:28:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:28:35]wFMCommunicate OK [19:28:35]SAM_PROTO_GetShiftState done [19:28:35]FM_GetShiftState done [19:28:35]opened in 1719020067 [19:28:35]opened+sec_in_day 1719106467 [19:28:35]quantity*price = 150028 [19:28:35]sum+1 = 150029 [19:28:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 203 22.06.2024 19:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112337 ФПД: 69223795128609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112337&fm=69223795128609&tin=02508201610067®Number=0000000000092771&sum=150000 [19:28:37]StoreToDocumentArchive [19:28:37]shift 391 fd 112337 [19:28:37]save to /storage/0391/doc_00112337 [19:28:37]save last doc name /storage/0391/doc_00112337 to /storage/kkm_last_doc_name [19:28:37]save OK [19:28:37]Clear old archive folders... [19:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:28:37]tlvbuf is 011EBB70 [19:28:37]SAM_PROTO_ClearQueue [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 09 00 00 [19:28:37]Write to MH i2c: E2 08 00 EB 51 80 09 00 00 00 00 00 00 AE [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 EB 51 00 90 00 B0 [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_ClearQueue done [19:28:37]KKMCreateOFDPacket [19:28:37]OFDProtocolAddRootSTLVToBuf [19:28:37]FM_MakeSignedData [19:28:37]FM_MakeSignedData [19:28:37]SAM_PROTO_SignData [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 01 02 [19:28:37]Write to MH i2c: E2 08 00 EC 51 80 0D 01 02 00 00 00 00 B6 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 EC 51 00 90 00 B1 [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]wFMCommunicate request_size=255 [19:28:37]MH_SAM_APDU [19:28: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 04 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B6 01 00 35 04 06 00 3E F5 6B B7 [19:28:37]Write to MH i2c: E2 02 01 ED 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 04 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B6 01 00 35 04 06 00 3E F5 6B B7 00 00 11 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 ED 51 00 90 00 B2 [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]wFMCommunicate request_size=7 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 02 02 02 F9 21 [19:28:37]Write to MH i2c: E2 0A 00 EE 51 80 0D 02 02 02 00 F9 21 00 00 D7 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 EE 51 00 90 00 B3 [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 03 02 [19:28:37]Write to MH i2c: E2 08 00 EF 51 80 0D 03 02 00 00 00 00 BB [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0B 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0B 00 EF 51 00 E9 39 BF 5F 26 FA 78 63 90 00 F7 [19:28:37]RAPDU: E9 39 BF 5F 26 FA 78 63 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_SignData done [19:28:37]FM_MakeSignedData done [19:28:37]CreateOFDProtocolMessage [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 11 00 00 [19:28:37]Write to MH i2c: E2 08 00 F0 51 80 11 00 00 00 00 00 00 BB [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 17 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 17 00 F0 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [19:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:28:37]wFMCommunicate OK [19:28:37]CreateOFDProtocolMessage done [19:28:37]OFDSenderStorePacket 112337 [19:28:37]StoreOFDPacket docnum=112337 [19:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C9 32 04 01 98 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 04 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B6 01 00 35 04 06 00 3E F5 6B B7 F9 21 E9 39 BF 5F 26 FA 78 63 [19:28:37]CheckFolder [19:28:37]dirname=/storage/ofd_packets [19:28:37]CheckFolder done [19:28:37]ProducePacketName [19:28:37]name=ofd_packets/00112337 [19:28:37]NVStorageSaveData ofd_packets/00112337 [19:28:37]File name is /storage/ofd_packets/00112337 [19:28:37]Write 298 bytes [19:28:37]NVStorageSaveData done [19:28:37]OFDSenderStorePacket done [19:28:37]KKMCreateOFDPacket done [19:28:37]NVStorageSaveData kkm_last_timestamp [19:28:37]File name is /storage/kkm_last_timestamp [19:28:37]Write 4 bytes [19:28:37]NVStorageSaveData done [19:28:37]ExternCall_PrintAddStr [19:28:37]wPrintStart [19:28:37]Write to MH i2c: 01 00 00 F1 51 42 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 07 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 07 00 F1 51 00 00 00 00 00 FF 0F 57 [19:28:37]RasterBufferAndPrint [19:28:37]line Счет N : (1)321014 [19:28:37]line ИНН: 02508201610067 [19:28:37]line Контрольно-Кассовый Чек [19:28:37]line ПРОДАЖА [19:28:37]line ТРК (МРК, ГНК) : 22 [19:28:37]line Товар: 2710194210 [19:28:37]line ДТ-К-5 [19:28:37]line 20.580 * 72.90 [19:28:37]line = 1500.28 [19:28:37]line НДС 12% НСП 1% [19:28:37]line > о реализуемом товаре [19:28:37]line ОКРУГЛЕНИЕ: -0.28 [19:28:37]line ИТОГО: 1500.00 [19:28:37]line Внесено: 1500.00 [19:28:37]line СДАЧА: 0.00 [19:28:37]line НСП 1% : 13.28 [19:28:37]line НДС 12% : 159.32 [19:28:37]line Наличными: 1500.00 [19:28:37]line Безнал.: 0.00 [19:28:37]line Место: АЗС № 65 "Партнер Нефть" [19:28:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:28:37]line СНО: Общий режим [19:28:37]line Чек 203 22.06.2024 19:29 [19:28:37]line Смена: 391 ФФД: 1.0 [19:28:37]line ЗНМ: 0300000198 [19:28:37]line РНМ: 0000000000092771 [19:28:37]line Версия ККМ: 001 [19:28:37]line ФМ: 0000000000875083 [19:28:37]line ФД: 112337 [19:28:37]line ФПД: 69223795128609 [19:28:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112337&fm=69223795128609&tin=02508201610067®Number=0000000000092771&sum=150000 [19:28:37]OFD Sender: Processing packet 112337 [packets to send 38, broken 37] [19:28:37]ProducePacketName [19:28:37]name=ofd_packets/00112337 [19:28:37]OFD Sender: To server: pG, [19:28:37]CommunicateWithHost lk.salyk.kg:30040 [19:28:37]ConnectInit lk.salyk.kg [19:28:37]written 0, free lines is 4095 [19:28:38]Connected sock=10 [19:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C9 32 04 01 98 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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 04 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B6 01 00 35 04 06 00 3E F5 6B B7 F9 21 E9 39 BF 5F 26 FA 78 63 [19:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A9 9B 47 00 BE BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B6 01 00 F4 03 04 00 07 BD 76 66 B6 04 01 00 00 5D 3E 32 F1 7D CD 9C 17 [19:28:38]CommunicateWithHost err = 0 [19:28:38]CheckOFDResponse [19:28:38]1017 (14) - 77093643461234 [19:28:38]1041 (16) - 0000000000875083 [19:28:38]1040 (4) - 112337 [19:28:38]1012 (4) - 22.06.2024 12:01 [19:28:38]1206 (1) - 0 [19:28:38]OFD Sender: Remove packet 112337 [19:28:38]ProducePacketName [19:28:38]name=ofd_packets/00112337 [19:28:38]NVStorageDeleteData [19:28:38]Write to MH i2c: 01 00 00 1C 52 6E [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: 01 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: 01 07 00 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: 01 07 00 1C 52 00 00 00 00 00 F9 0C 7A [19:28:38]RasterBufferAndPrint [19:28:38]line [19:28:38]line [19:28:38]line [19:28:38]line [19:28:38]line [19:28:38]written 0, free lines is 3330 [19:28:38]MH_Cut [19:28:38]Write to MH i2c: D1 01 00 23 52 01 47 [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: D1 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: D1 01 00 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: D1 01 00 23 52 00 46 [19:28:38]Write to MH i2c: 01 00 00 24 52 76 [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:38]OFD Sender: No OFD packet to send [19:28:39]*** Cut start [19:28:39]*** Partial cut [19:28:39]*** CUTSNS_PIN = 1 [19:28:39]*** CUTSNS_PIN = 0 [19:28:39]*** Brake cut motor [19:28:39]Read from MH i2c: 01 [19:28:39]MH_I2C_Read... [19:28:39]*** Stop cut motor [19:28:39]*** Cut end [19:28:39]Read from MH i2c: 01 07 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: 01 07 00 24 52 00 00 00 00 00 FF 0F 8B [19:28:39]process_action close_receipt done [19:28:39]requested_data is exist [19:28:39]produce_requested_data [19:28:39]requested_item fm.sn is exist - process it [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 11 00 00 [19:28:39]Write to MH i2c: E2 08 00 25 52 80 11 00 00 00 00 00 00 F1 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 17 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 17 00 25 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [19:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:28:39]wFMCommunicate OK [19:28:39]requested_item fd.num is exist - process it [19:28:39]SAM_PROTO_GetFieldsCounters [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 13 00 00 [19:28:39]Write to MH i2c: E2 08 00 26 52 80 13 00 00 00 00 00 00 F4 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 62 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 62 00 26 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [19:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:39]wFMCommunicate OK [19:28:39]SAM_PROTO_GetFieldsCounters done [19:28:39]requested_item shift.num is exist - process it [19:28:39]requested_item shift.opened is exist - process it [19:28:39]req_shift_opened [19:28:39]FM_GetShiftState [19:28:39]SAM_PROTO_GetShiftState [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 13 01 00 [19:28:39]Write to MH i2c: E2 08 00 27 52 80 13 01 00 00 00 00 00 F6 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 0E 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 0E 00 27 52 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2B [19:28:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:28:40]wFMCommunicate OK [19:28:40]SAM_PROTO_GetShiftState done [19:28:40]FM_GetShiftState done [19:28:40]req_shift_opened done [19:28:40]requested_item shift.open_date is exist - process it [19:28:40]req_shift_open_date [19:28:40]req_shift_open_date done [19:28:40]produce_requested_data done [19:28:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112337,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:28:40]process_action_free close_receipt [19:28:40]json_value_free [19:28:40]json_value_free done [19:28:40]process_json_proto returns [19:28:40]Send response to host [19:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112337,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:28:40]free response buf [19:28:40]execute_script done [19:28:40]execute_script returns [19:28:40]free content buf [19:28:40]Sock 7.Close socket [19:28:40]Sock 7.Thread stoped [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:55]accept exits with 9 [19:31:55]New connection [19:31:55]New thread 3066957156 created [19:31:55]Thread 3066813796 joined [19:31:55]Waiting for new connection... [19:31:55] Sock 9.Parse request [19:31:55]Sock 9.Check first char [19:31:55]Sock 9.First char is OK [19:31:55]request: POST /json_proto HTTP/1.0 [19:31:55]Method: POST [19:31:55]URL: /json_proto [19:31:55]Method is POST - this is cgi request [19:31:55]url: /json_proto [19:31:55]query_string will be loaded in cgi processing [19:31:55]execute_cgi json_proto POST (null) [19:31:55]execute_cgi path=json_proto method=POST [19:31:55]POST find Content-Length [19:31:55]Host: 172.17.59.68:8080 [19:31:55]Content-Length: 640 [19:31:55]Content-Type: application/json [19:31:55] [19:31:55]POST finish read [19:31:55]Found Content-Length = 640 [19:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321016", "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.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:55]execute_script... [19: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)321016", "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.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:55]POST & json_proto [19:31:55]process_json_proto [19:31:55]json parsed OK: [19:31:55]protocol is kg_v1.0 [19:31:55]action value=close_receipt [19:31:55]process_action close_receipt [19:31:55]cmd_close_receipt [19:31:55]MH_GetDate [19:31:55]Write to MH i2c: F0 00 00 28 52 69 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: F0 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: F0 09 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: F0 09 00 28 52 00 CC 26 77 66 BC EC 60 65 AE [19:31:55]GetLastDocTimeStamp 1719084548 [19:31:55]current date 1719084748 [19:31:55]FM_GetShiftState [19:31:55]SAM_PROTO_GetShiftState [19:31:55]wFMCommunicate request_size=4 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 13 01 00 [19:31:55]Write to MH i2c: E2 08 00 29 52 80 13 01 00 00 00 00 00 F8 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0E 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0E 00 29 52 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2D [19:31:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:31:55]wFMCommunicate OK [19:31:55]SAM_PROTO_GetShiftState done [19:31:55]FM_GetShiftState done [19:31:55]opened in 1719020067 [19:31:55]opened+sec_in_day 1719106467 [19:31:55]quantity*price = 66400 [19:31:55]sum+1 = 66401 [19:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 204 22.06.2024 19:32 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112338 ФПД: 105128392613806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112338&fm=105128392613806&tin=02508201610067®Number=0000000000092771&sum=66400 [19:31:56]StoreToDocumentArchive [19:31:56]shift 391 fd 112338 [19:31:56]save to /storage/0391/doc_00112338 [19:31:56]save last doc name /storage/0391/doc_00112338 to /storage/kkm_last_doc_name [19:31:56]save OK [19:31:56]Clear old archive folders... [19:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:56]tlvbuf is B6DA97B0 [19:31:56]SAM_PROTO_ClearQueue [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 09 00 00 [19:31:56]Write to MH i2c: E2 08 00 36 52 80 09 00 00 00 00 00 00 FA [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 36 52 00 90 00 FC [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]SAM_PROTO_ClearQueue done [19:31:56]KKMCreateOFDPacket [19:31:56]OFDProtocolAddRootSTLVToBuf [19:31:56]FM_MakeSignedData [19:31:56]FM_MakeSignedData [19:31:56]SAM_PROTO_SignData [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 01 02 [19:31:56]Write to MH i2c: E2 08 00 37 52 80 0D 01 02 00 00 00 00 02 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 37 52 00 90 00 FD [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]wFMCommunicate request_size=255 [19:31:56]MH_SAM_APDU [19: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CC 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B6 01 00 35 04 06 00 5F [19:31:56]Write to MH i2c: E2 02 01 38 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CC 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B6 01 00 35 04 06 00 5F 00 00 77 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 38 52 00 90 00 FE [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]wFMCommunicate request_size=10 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 02 02 05 9D 1C 7F 5F AE [19:31:56]Write to MH i2c: E2 0D 00 39 52 80 0D 02 02 05 00 9D 1C 7F 5F AE 00 00 54 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:56]Read from MH i2c: E2 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 [19:31:56]MH_I2C_Read... [19:31:56]Read from MH i2c: E2 03 00 39 52 00 90 00 FF [19:31:56]RAPDU: 90 00 [19:31:56]wFMCommunicate OK [19:31:56]wFMCommunicate request_size=4 [19:31:56]MH_SAM_APDU [19:31:56]CAPDU: 80 0D 03 02 [19:31:56]Write to MH i2c: E2 08 00 3A 52 80 0D 03 02 00 00 00 00 07 [19:31:56]Write i2c OK [19:31:56]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0B 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 0B 00 3A 52 00 1E 05 9C 8C 11 15 F7 5D 90 00 CD [19:31:57]RAPDU: 1E 05 9C 8C 11 15 F7 5D 90 00 [19:31:57]wFMCommunicate OK [19:31:57]SAM_PROTO_SignData done [19:31:57]FM_MakeSignedData done [19:31:57]CreateOFDProtocolMessage [19:31:57]wFMCommunicate request_size=4 [19:31:57]MH_SAM_APDU [19:31:57]CAPDU: 80 11 00 00 [19:31:57]Write to MH i2c: E2 08 00 3B 52 80 11 00 00 00 00 00 00 07 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:57]Read from MH i2c: E2 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 17 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: E2 17 00 3B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [19:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:57]wFMCommunicate OK [19:31:57]CreateOFDProtocolMessage done [19:31:57]OFDSenderStorePacket 112338 [19:31:57]StoreOFDPacket docnum=112338 [19:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 BC 07 01 F3 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CC 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B6 01 00 35 04 06 00 5F 9D 1C 7F 5F AE 1E 05 9C 8C 11 15 F7 5D [19:31:57]CheckFolder [19:31:57]dirname=/storage/ofd_packets [19:31:57]CheckFolder done [19:31:57]ProducePacketName [19:31:57]name=ofd_packets/00112338 [19:31:57]NVStorageSaveData ofd_packets/00112338 [19:31:57]File name is /storage/ofd_packets/00112338 [19:31:57]Write 301 bytes [19:31:57]NVStorageSaveData done [19:31:57]OFDSenderStorePacket done [19:31:57]KKMCreateOFDPacket done [19:31:57]NVStorageSaveData kkm_last_timestamp [19:31:57]File name is /storage/kkm_last_timestamp [19:31:57]Write 4 bytes [19:31:57]NVStorageSaveData done [19:31:57]ExternCall_PrintAddStr [19:31:57]wPrintStart [19:31:57]Write to MH i2c: 01 00 00 3C 52 8E [19:31:57]OFD Sender: Processing packet 112338 [packets to send 38, broken 37] [19:31:57]ProducePacketName [19:31:57]name=ofd_packets/00112338 [19:31:57]OFD Sender: To server: pG, [19:31:57]CommunicateWithHost lk.salyk.kg:30040 [19:31:57]ConnectInit lk.salyk.kg [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 3C 52 00 00 00 00 00 FF 0F A3 [19:31:57]RasterBufferAndPrint [19:31:57]line Счет N : (1)321016 [19:31:57]line ИНН: 02508201610067 [19:31:57]line Контрольно-Кассовый Чек [19:31:57]line ПРОДАЖА [19:31:57]line ТРК (МРК, ГНК) : 11 [19:31:57]line Товар: 2710124130 [19:31:57]line Аи-92-К-5 [19:31:57]line 10.000 * 66.40 [19:31:57]line = 664.00 [19:31:57]line НДС 12% НСП 1% [19:31:57]line > о реализуемом товаре [19:31:57]line ИТОГО: 664.00 [19:31:57]line НСП 1% : 5.88 [19:31:57]line НДС 12% : 70.51 [19:31:57]line Наличными: 664.00 [19:31:57]line Безнал.: 0.00 [19:31:57]line Место: АЗС № 65 "Партнер Нефть" [19:31:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:31:57]line СНО: Общий режим [19:31:57]line Чек 204 22.06.2024 19:32 [19:31:57]line Смена: 391 ФФД: 1.0 [19:31:57]line ЗНМ: 0300000198 [19:31:57]line РНМ: 0000000000092771 [19:31:57]line Версия ККМ: 001 [19:31:57]line ФМ: 0000000000875083 [19:31:57]line ФД: 112338 [19:31:57]line ФПД: 105128392613806 [19:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112338&fm=105128392613806&tin=02508201610067®Number=0000000000092771&sum=66400 [19:31:57]Connected sock=5 [19: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 35 30 38 33 0F 01 00 00 56 BC 07 01 F3 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 CC 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B6 01 00 35 04 06 00 5F 9D 1C 7F 5F AE 1E 05 9C 8C 11 15 F7 5D [19:31:57]written 0, free lines is 4095 [19:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 1D 47 00 81 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 35 30 38 33 10 04 04 00 D2 B6 01 00 F4 03 04 00 CF BD 76 66 B6 04 01 00 00 63 BB 66 01 69 30 9B 7C [19:31:57]CommunicateWithHost err = 0 [19:31:57]CheckOFDResponse [19:31:57]1017 (14) - 77093643461234 [19:31:57]1041 (16) - 0000000000875083 [19:31:57]1040 (4) - 112338 [19:31:57]1012 (4) - 22.06.2024 12:04 [19:31:57]1206 (1) - 0 [19:31:57]OFD Sender: Remove packet 112338 [19:31:57]ProducePacketName [19:31:57]name=ofd_packets/00112338 [19:31:57]NVStorageDeleteData [19:31:57]Write to MH i2c: 01 00 00 64 52 B6 [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: 01 07 00 64 52 00 00 00 00 00 0F 0D D9 [19:31:57]RasterBufferAndPrint [19:31:57]line [19:31:57]line [19:31:57]line [19:31:57]line [19:31:57]line [19:31:57]written 0, free lines is 3349 [19:31:57]MH_Cut [19:31:57]Write to MH i2c: D1 01 00 6B 52 01 8F [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: D1 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: D1 01 00 [19:31:57]MH_I2C_Read... [19:31:57]Read from MH i2c: D1 01 00 6B 52 00 8E [19:31:57]Write to MH i2c: 01 00 00 6C 52 BE [19:31:57]Write i2c OK [19:31:57]MH_I2C_Read... [19:31:58]OFD Sender: No OFD packet to send [19:31:58]*** Cut start [19:31:58]*** Partial cut [19:31:58]*** CUTSNS_PIN = 1 [19:31:58]*** CUTSNS_PIN = 0 [19:31:58]*** Brake cut motor [19:31:59]Read from MH i2c: 01 [19:31:59]MH_I2C_Read... [19:31:59]*** Stop cut motor [19:31:59]*** Cut end [19:31:59]Read from MH i2c: 01 07 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: 01 07 00 6C 52 00 00 00 00 00 FF 0F D3 [19:31:59]process_action close_receipt done [19:31:59]requested_data is exist [19:31:59]produce_requested_data [19:31:59]requested_item fm.sn is exist - process it [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 11 00 00 [19:31:59]Write to MH i2c: E2 08 00 6D 52 80 11 00 00 00 00 00 00 39 [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 17 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 17 00 6D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [19:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:59]wFMCommunicate OK [19:31:59]requested_item fd.num is exist - process it [19:31:59]SAM_PROTO_GetFieldsCounters [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 13 00 00 [19:31:59]Write to MH i2c: E2 08 00 6E 52 80 13 00 00 00 00 00 00 3C [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 62 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 62 00 6E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [19:31:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:59]wFMCommunicate OK [19:31:59]SAM_PROTO_GetFieldsCounters done [19:31:59]requested_item shift.num is exist - process it [19:31:59]requested_item shift.opened is exist - process it [19:31:59]req_shift_opened [19:31:59]FM_GetShiftState [19:31:59]SAM_PROTO_GetShiftState [19:31:59]wFMCommunicate request_size=4 [19:31:59]MH_SAM_APDU [19:31:59]CAPDU: 80 13 01 00 [19:31:59]Write to MH i2c: E2 08 00 6F 52 80 13 01 00 00 00 00 00 3E [19:31:59]Write i2c OK [19:31:59]MH_I2C_Read... [19:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:59]Read from MH i2c: E2 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 0E 00 [19:31:59]MH_I2C_Read... [19:31:59]Read from MH i2c: E2 0E 00 6F 52 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 73 [19:31:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:31:59]wFMCommunicate OK [19:31:59]SAM_PROTO_GetShiftState done [19:31:59]FM_GetShiftState done [19:31:59]req_shift_opened done [19:31:59]requested_item shift.open_date is exist - process it [19:31:59]req_shift_open_date [19:31:59]req_shift_open_date done [19:31:59]produce_requested_data done [19:31:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112338,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:31:59]process_action_free close_receipt [19:31:59]json_value_free [19:31:59]json_value_free done [19:31:59]process_json_proto returns [19:31:59]Send response to host [19:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112338,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:31:59]free response buf [19:31:59]execute_script done [19:31:59]execute_script returns [19:31:59]free content buf [19:31:59]Sock 9.Close socket [19:31:59]Sock 9.Thread stoped [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:30]accept exits with 7 [19:32:30]New connection [19:32:30]New thread 3066813796 created [19:32:30]Thread 3066957156 joined [19:32:30]Waiting for new connection... [19:32:30] Sock 7.Parse request [19:32:30]Sock 7.Check first char [19:32:30]Sock 7.First char is OK [19:32:30]request: POST /json_proto HTTP/1.0 [19:32:30]Method: POST [19:32:30]URL: /json_proto [19:32:30]Method is POST - this is cgi request [19:32:30]url: /json_proto [19:32:30]query_string will be loaded in cgi processing [19:32:30]execute_cgi json_proto POST (null) [19:32:30]execute_cgi path=json_proto method=POST [19:32:30]POST find Content-Length [19:32:30]Host: 172.17.59.68:8080 [19:32:30]Content-Length: 679 [19:32:30]Content-Type: application/json [19:32:30] [19:32:30]POST finish read [19:32:30]Found Content-Length = 679 [19:32:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:30]execute_script... [19:32: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)321015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:30]POST & json_proto [19:32:30]process_json_proto [19:32:30]json parsed OK: [19:32:30]protocol is kg_v1.0 [19:32:30]action value=close_receipt [19:32:30]process_action close_receipt [19:32:30]cmd_close_receipt [19:32:30]MH_GetDate [19:32:30]Write to MH i2c: F0 00 00 70 52 B1 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: F0 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: F0 09 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: F0 09 00 70 52 00 EF 26 77 66 BC EC 60 65 19 [19:32:30]GetLastDocTimeStamp 1719084748 [19:32:30]current date 1719084783 [19:32:30]FM_GetShiftState [19:32:30]SAM_PROTO_GetShiftState [19:32:30]wFMCommunicate request_size=4 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 13 01 00 [19:32:30]Write to MH i2c: E2 08 00 71 52 80 13 01 00 00 00 00 00 40 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 0E 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 0E 00 71 52 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 75 [19:32:30]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:32:30]wFMCommunicate OK [19:32:30]SAM_PROTO_GetShiftState done [19:32:30]FM_GetShiftState done [19:32:30]opened in 1719020067 [19:32:30]opened+sec_in_day 1719106467 [19:32:30]quantity*price = 250047 [19:32:30]sum+1 = 250048 [19:32:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 205 22.06.2024 19:33 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112339 ФПД: 56079628225674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193303&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112339&fm=56079628225674&tin=02508201610067®Number=0000000000092771&sum=250000 [19:32:31]StoreToDocumentArchive [19:32:31]shift 391 fd 112339 [19:32:31]save to /storage/0391/doc_00112339 [19:32:31]save last doc name /storage/0391/doc_00112339 to /storage/kkm_last_doc_name [19:32:31]save OK [19:32:31]Clear old archive folders... [19:32:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:31]tlvbuf is 0123F6C0 [19:32:31]SAM_PROTO_ClearQueue [19:32:31]wFMCommunicate request_size=4 [19:32:31]MH_SAM_APDU [19:32:31]CAPDU: 80 09 00 00 [19:32:31]Write to MH i2c: E2 08 00 7E 52 80 09 00 00 00 00 00 00 42 [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:31]Read from MH i2c: E2 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 03 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 03 00 7E 52 00 90 00 44 [19:32:31]RAPDU: 90 00 [19:32:31]wFMCommunicate OK [19:32:31]SAM_PROTO_ClearQueue done [19:32:31]KKMCreateOFDPacket [19:32:31]OFDProtocolAddRootSTLVToBuf [19:32:31]FM_MakeSignedData [19:32:31]FM_MakeSignedData [19:32:31]SAM_PROTO_SignData [19:32:31]wFMCommunicate request_size=4 [19:32:31]MH_SAM_APDU [19:32:31]CAPDU: 80 0D 01 02 [19:32:31]Write to MH i2c: E2 08 00 7F 52 80 0D 01 02 00 00 00 00 4A [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:31]Read from MH i2c: E2 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 03 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 03 00 7F 52 00 90 00 45 [19:32:31]RAPDU: 90 00 [19:32:31]wFMCommunicate OK [19:32:31]wFMCommunicate request_size=255 [19:32:31]MH_SAM_APDU [19:32: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 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 CD 00 00 00 F4 03 04 00 EF 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B6 01 00 35 04 06 00 33 01 0E 51 [19:32:31]Write to MH i2c: E2 02 01 80 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 CD 00 00 00 F4 03 04 00 EF 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B6 01 00 35 04 06 00 33 01 0E 51 00 00 48 [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 80 52 00 90 00 46 [19:32:32]RAPDU: 90 00 [19:32:32]wFMCommunicate OK [19:32:32]wFMCommunicate request_size=7 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 0D 02 02 02 CC 8A [19:32:32]Write to MH i2c: E2 0A 00 81 52 80 0D 02 02 02 00 CC 8A 00 00 A7 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 81 52 00 90 00 47 [19:32:32]RAPDU: 90 00 [19:32:32]wFMCommunicate OK [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 0D 03 02 [19:32:32]Write to MH i2c: E2 08 00 82 52 80 0D 03 02 00 00 00 00 4F [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 0B 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 0B 00 82 52 00 DE D4 2F 02 8D BC 6D 3C 90 00 25 [19:32:32]RAPDU: DE D4 2F 02 8D BC 6D 3C 90 00 [19:32:32]wFMCommunicate OK [19:32:32]SAM_PROTO_SignData done [19:32:32]FM_MakeSignedData done [19:32:32]CreateOFDProtocolMessage [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 11 00 00 [19:32:32]Write to MH i2c: E2 08 00 83 52 80 11 00 00 00 00 00 00 4F [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 17 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 17 00 83 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [19:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:32:32]wFMCommunicate OK [19:32:32]CreateOFDProtocolMessage done [19:32:32]OFDSenderStorePacket 112339 [19:32:32]StoreOFDPacket docnum=112339 [19:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 57 FA 04 01 1E 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 CD 00 00 00 F4 03 04 00 EF 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B6 01 00 35 04 06 00 33 01 0E 51 CC 8A DE D4 2F 02 8D BC 6D 3C [19:32:32]CheckFolder [19:32:32]dirname=/storage/ofd_packets [19:32:32]CheckFolder done [19:32:32]ProducePacketName [19:32:32]name=ofd_packets/00112339 [19:32:32]NVStorageSaveData ofd_packets/00112339 [19:32:32]File name is /storage/ofd_packets/00112339 [19:32:32]Write 298 bytes [19:32:32]NVStorageSaveData done [19:32:32]OFDSenderStorePacket done [19:32:32]KKMCreateOFDPacket done [19:32:32]NVStorageSaveData kkm_last_timestamp [19:32:32]File name is /storage/kkm_last_timestamp [19:32:32]Write 4 bytes [19:32:32]NVStorageSaveData done [19:32:32]ExternCall_PrintAddStr [19:32:32]wPrintStart [19:32:32]Write to MH i2c: 01 00 00 84 52 D6 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 84 52 00 00 00 00 00 FF 0F EB [19:32:32]RasterBufferAndPrint [19:32:32]line Счет N : (1)321015 [19:32:32]line ИНН: 02508201610067 [19:32:32]line Контрольно-Кассовый Чек [19:32:32]line ПРОДАЖА [19:32:32]line ТРК (МРК, ГНК) : 22 [19:32:32]line Товар: 2710194210 [19:32:32]line ДТ-К-5 [19:32:32]line 34.300 * 72.90 [19:32:32]line = 2500.47 [19:32:32]line НДС 12% НСП 1% [19:32:32]line > о реализуемом товаре [19:32:32]line ОКРУГЛЕНИЕ: -0.47 [19:32:32]line ИТОГО: 2500.00 [19:32:32]line Внесено: 2500.00 [19:32:32]line СДАЧА: 0.00 [19:32:32]line НСП 1% : 22.13 [19:32:32]line НДС 12% : 265.54 [19:32:32]line Наличными: 2500.00 [19:32:32]line Безнал.: 0.00 [19:32:32]line Место: АЗС № 65 "Партнер Нефть" [19:32:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:32:32]line СНО: Общий режим [19:32:32]line Чек 205 22.06.2024 19:33 [19:32:32]line Смена: 391 ФФД: 1.0 [19:32:32]line ЗНМ: 0300000198 [19:32:32]line РНМ: 0000000000092771 [19:32:32]line Версия ККМ: 001 [19:32:32]line ФМ: 0000000000875083 [19:32:32]line ФД: 112339 [19:32:32]line ФПД: 56079628225674 [19:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193303&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112339&fm=56079628225674&tin=02508201610067®Number=0000000000092771&sum=250000 [19:32:32]written 0, free lines is 4095 [19:32:32]OFD Sender: Processing packet 112339 [packets to send 38, broken 37] [19:32:32]ProducePacketName [19:32:32]name=ofd_packets/00112339 [19:32:32]OFD Sender: To server: pG, [19:32:32]CommunicateWithHost lk.salyk.kg:30040 [19:32:32]ConnectInit lk.salyk.kg [19:32:32]Connected sock=10 [19:32:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 57 FA 04 01 1E 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 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 CD 00 00 00 F4 03 04 00 EF 26 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B6 01 00 35 04 06 00 33 01 0E 51 CC 8A DE D4 2F 02 8D BC 6D 3C [19:32:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 08 47 00 AD BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B6 01 00 F4 03 04 00 F2 BD 76 66 B6 04 01 00 00 3A CD B8 DB 4D A0 B9 C6 [19:32:32]CommunicateWithHost err = 0 [19:32:32]CheckOFDResponse [19:32:32]1017 (14) - 77093643461234 [19:32:32]1041 (16) - 0000000000875083 [19:32:32]1040 (4) - 112339 [19:32:32]1012 (4) - 22.06.2024 12:05 [19:32:32]1206 (1) - 0 [19:32:32]OFD Sender: Remove packet 112339 [19:32:32]ProducePacketName [19:32:32]name=ofd_packets/00112339 [19:32:32]NVStorageDeleteData [19:32:32]Write to MH i2c: 01 00 00 AF 52 01 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 AF 52 00 00 00 00 00 E2 0C F6 [19:32:32]RasterBufferAndPrint [19:32:32]line [19:32:32]line [19:32:32]line [19:32:32]line [19:32:32]line [19:32:32]written 0, free lines is 3304 [19:32:32]MH_Cut [19:32:32]Write to MH i2c: D1 01 00 B6 52 01 DA [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: D1 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: D1 01 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: D1 01 00 B6 52 00 D9 [19:32:32]Write to MH i2c: 01 00 00 B7 52 09 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:33]OFD Sender: No OFD packet to send [19:32:33]*** Cut start [19:32:33]*** Partial cut [19:32:33]*** CUTSNS_PIN = 1 [19:32:33]*** CUTSNS_PIN = 0 [19:32:33]*** Brake cut motor [19:32:34]Read from MH i2c: 01 [19:32:34]MH_I2C_Read... [19:32:34]*** Stop cut motor [19:32:34]*** Cut end [19:32:34]Read from MH i2c: 01 07 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 B7 52 00 00 00 00 00 FF 0F 1E [19:32:34]process_action close_receipt done [19:32:34]requested_data is exist [19:32:34]produce_requested_data [19:32:34]requested_item fm.sn is exist - process it [19:32:34]wFMCommunicate request_size=4 [19:32:34]MH_SAM_APDU [19:32:34]CAPDU: 80 11 00 00 [19:32:34]Write to MH i2c: E2 08 00 B8 52 80 11 00 00 00 00 00 00 84 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:34]Read from MH i2c: E2 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 17 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 17 00 B8 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [19:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:32:34]wFMCommunicate OK [19:32:34]requested_item fd.num is exist - process it [19:32:34]SAM_PROTO_GetFieldsCounters [19:32:34]wFMCommunicate request_size=4 [19:32:34]MH_SAM_APDU [19:32:34]CAPDU: 80 13 00 00 [19:32:34]Write to MH i2c: E2 08 00 B9 52 80 13 00 00 00 00 00 00 87 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:34]Read from MH i2c: E2 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 62 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 62 00 B9 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [19:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:34]wFMCommunicate OK [19:32:34]SAM_PROTO_GetFieldsCounters done [19:32:34]requested_item shift.num is exist - process it [19:32:34]requested_item shift.opened is exist - process it [19:32:34]req_shift_opened [19:32:34]FM_GetShiftState [19:32:34]SAM_PROTO_GetShiftState [19:32:34]wFMCommunicate request_size=4 [19:32:34]MH_SAM_APDU [19:32:34]CAPDU: 80 13 01 00 [19:32:34]Write to MH i2c: E2 08 00 BA 52 80 13 01 00 00 00 00 00 89 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:34]Read from MH i2c: E2 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 0E 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 0E 00 BA 52 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BE [19:32:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:32:34]wFMCommunicate OK [19:32:34]SAM_PROTO_GetShiftState done [19:32:34]FM_GetShiftState done [19:32:34]req_shift_opened done [19:32:34]requested_item shift.open_date is exist - process it [19:32:34]req_shift_open_date [19:32:34]req_shift_open_date done [19:32:34]produce_requested_data done [19:32:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112339,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:32:34]process_action_free close_receipt [19:32:34]json_value_free [19:32:34]json_value_free done [19:32:34]process_json_proto returns [19:32:34]Send response to host [19:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112339,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:32:34]free response buf [19:32:34]execute_script done [19:32:34]execute_script returns [19:32:34]free content buf [19:32:34]Sock 7.Close socket [19:32:34]Sock 7.Thread stoped [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:01]accept exits with 9 [19:33:01]New connection [19:33:01]New thread 3066957156 created [19:33:01]Thread 3066813796 joined [19:33:01]Waiting for new connection... [19:33:01] Sock 9.Parse request [19:33:01]Sock 9.Check first char [19:33:01]Sock 9.First char is OK [19:33:01]request: POST /json_proto HTTP/1.0 [19:33:01]Method: POST [19:33:01]URL: /json_proto [19:33:01]Method is POST - this is cgi request [19:33:01]url: /json_proto [19:33:01]query_string will be loaded in cgi processing [19:33:01]execute_cgi json_proto POST (null) [19:33:01]execute_cgi path=json_proto method=POST [19:33:01]POST find Content-Length [19:33:01]Host: 172.17.59.68:8080 [19:33:01]Content-Length: 682 [19:33:01]Content-Type: application/json [19:33:01] [19:33:01]POST finish read [19:33:01]Found Content-Length = 682 [19:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321017", "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.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [19:33:01]execute_script... [19:33: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)321017", "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.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [19:33:01]POST & json_proto [19:33:01]process_json_proto [19:33:01]json parsed OK: [19:33:01]protocol is kg_v1.0 [19:33:01]action value=close_receipt [19:33:01]process_action close_receipt [19:33:01]cmd_close_receipt [19:33:01]MH_GetDate [19:33:01]Write to MH i2c: F0 00 00 BB 52 FC [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: F0 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: F0 09 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: F0 09 00 BB 52 00 0D 27 77 66 BC EC 60 65 83 [19:33:01]GetLastDocTimeStamp 1719084783 [19:33:01]current date 1719084813 [19:33:01]FM_GetShiftState [19:33:01]SAM_PROTO_GetShiftState [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 13 01 00 [19:33:01]Write to MH i2c: E2 08 00 BC 52 80 13 01 00 00 00 00 00 8B [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 0E 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 0E 00 BC 52 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C0 [19:33:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:33:01]wFMCommunicate OK [19:33:01]SAM_PROTO_GetShiftState done [19:33:01]FM_GetShiftState done [19:33:01]opened in 1719020067 [19:33:01]opened+sec_in_day 1719106467 [19:33:01]quantity*price = 150064 [19:33:01]sum+1 = 150065 [19:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 206 22.06.2024 19:33 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112340 ФПД: 152721452672719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112340&fm=152721452672719&tin=02508201610067®Number=0000000000092771&sum=150000 [19:33:02]StoreToDocumentArchive [19:33:02]shift 391 fd 112340 [19:33:02]save to /storage/0391/doc_00112340 [19:33:02]save last doc name /storage/0391/doc_00112340 to /storage/kkm_last_doc_name [19:33:02]save OK [19:33:02]Clear old archive folders... [19:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:02]tlvbuf is B6DA9010 [19:33:02]SAM_PROTO_ClearQueue [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 09 00 00 [19:33:02]Write to MH i2c: E2 08 00 C9 52 80 09 00 00 00 00 00 00 8D [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 C9 52 00 90 00 8F [19:33:02]RAPDU: 90 00 [19:33:02]wFMCommunicate OK [19:33:02]SAM_PROTO_ClearQueue done [19:33:02]KKMCreateOFDPacket [19:33:02]OFDProtocolAddRootSTLVToBuf [19:33:02]FM_MakeSignedData [19:33:02]FM_MakeSignedData [19:33:02]SAM_PROTO_SignData [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 0D 01 02 [19:33:02]Write to MH i2c: E2 08 00 CA 52 80 0D 01 02 00 00 00 00 95 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 CA 52 00 90 00 90 [19:33:02]RAPDU: 90 00 [19:33:02]wFMCommunicate OK [19:33:02]wFMCommunicate request_size=255 [19:33:02]MH_SAM_APDU [19:33: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 CE 00 00 00 F4 03 04 00 0D 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B6 01 00 35 04 06 00 8A [19:33:02]Write to MH i2c: E2 02 01 CB 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 CE 00 00 00 F4 03 04 00 0D 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B6 01 00 35 04 06 00 8A 00 00 69 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 CB 52 00 90 00 91 [19:33:02]RAPDU: 90 00 [19:33:02]wFMCommunicate OK [19:33:02]wFMCommunicate request_size=10 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 0D 02 02 05 E6 3B EF A6 CF [19:33:02]Write to MH i2c: E2 0D 00 CC 52 80 0D 02 02 05 00 E6 3B EF A6 CF 00 00 27 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 03 00 CC 52 00 90 00 92 [19:33:02]RAPDU: 90 00 [19:33:02]wFMCommunicate OK [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 0D 03 02 [19:33:02]Write to MH i2c: E2 08 00 CD 52 80 0D 03 02 00 00 00 00 9A [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 0B 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 0B 00 CD 52 00 F0 E6 87 5A E3 F3 1C 92 90 00 D6 [19:33:02]RAPDU: F0 E6 87 5A E3 F3 1C 92 90 00 [19:33:02]wFMCommunicate OK [19:33:02]SAM_PROTO_SignData done [19:33:02]FM_MakeSignedData done [19:33:02]CreateOFDProtocolMessage [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 11 00 00 [19:33:02]Write to MH i2c: E2 08 00 CE 52 80 11 00 00 00 00 00 00 9A [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 17 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 17 00 CE 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [19:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:33:02]wFMCommunicate OK [19:33:02]CreateOFDProtocolMessage done [19:33:02]OFDSenderStorePacket 112340 [19:33:02]StoreOFDPacket docnum=112340 [19:33:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F1 82 07 01 F5 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 CE 00 00 00 F4 03 04 00 0D 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B6 01 00 35 04 06 00 8A E6 3B EF A6 CF F0 E6 87 5A E3 F3 1C 92 [19:33:02]CheckFolder [19:33:02]dirname=/storage/ofd_packets [19:33:02]CheckFolder done [19:33:02]ProducePacketName [19:33:02]name=ofd_packets/00112340 [19:33:02]NVStorageSaveData ofd_packets/00112340 [19:33:02]File name is /storage/ofd_packets/00112340 [19:33:02]Write 301 bytes [19:33:02]NVStorageSaveData done [19:33:02]OFDSenderStorePacket done [19:33:02]KKMCreateOFDPacket done [19:33:02]NVStorageSaveData kkm_last_timestamp [19:33:02]File name is /storage/kkm_last_timestamp [19:33:02]Write 4 bytes [19:33:02]NVStorageSaveData done [19:33:02]ExternCall_PrintAddStr [19:33:02]wPrintStart [19:33:02]Write to MH i2c: 01 00 00 CF 52 21 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 CF 52 00 00 00 00 00 FF 0F 36 [19:33:02]RasterBufferAndPrint [19:33:02]line Счет N : (1)321017 [19:33:02]line ИНН: 02508201610067 [19:33:02]line Контрольно-Кассовый Чек [19:33:02]line ПРОДАЖА [19:33:02]line ТРК (МРК, ГНК) : 11 [19:33:02]line Товар: 2710124130 [19:33:02]line Аи-92-К-5 [19:33:02]line 22.600 * 66.40 [19:33:02]line = 1500.64 [19:33:02]line НДС 12% НСП 1% [19:33:02]line > о реализуемом товаре [19:33:02]line ОКРУГЛЕНИЕ: -0.64 [19:33:02]line ИТОГО: 1500.00 [19:33:02]line Внесено: 1500.00 [19:33:02]line СДАЧА: 0.00 [19:33:02]line НСП 1% : 13.28 [19:33:02]line НДС 12% : 159.36 [19:33:02]line Наличными: 1500.00 [19:33:02]line Безнал.: 0.00 [19:33:02]line Место: АЗС № 65 "Партнер Нефть" [19:33:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:33:02]line СНО: Общий режим [19:33:02]line Чек 206 22.06.2024 19:33 [19:33:02]line Смена: 391 ФФД: 1.0 [19:33:02]line ЗНМ: 0300000198 [19:33:02]line РНМ: 0000000000092771 [19:33:02]line Версия ККМ: 001 [19:33:02]line ФМ: 0000000000875083 [19:33:02]line ФД: 112340 [19:33:02]line ФПД: 152721452672719 [19:33:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112340&fm=152721452672719&tin=02508201610067®Number=0000000000092771&sum=150000 [19:33:03]OFD Sender: Processing packet 112340 [packets to send 38, broken 37] [19:33:03]ProducePacketName [19:33:03]name=ofd_packets/00112340 [19:33:03]OFD Sender: To server: pG, [19:33:03]CommunicateWithHost lk.salyk.kg:30040 [19:33:03]ConnectInit lk.salyk.kg [19:33:03]written 0, free lines is 4095 [19:33:03]Connected sock=11 [19:33:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F1 82 07 01 F5 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 CE 00 00 00 F4 03 04 00 0D 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B6 01 00 35 04 06 00 8A E6 3B EF A6 CF F0 E6 87 5A E3 F3 1C 92 [19:33:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B6 69 47 00 62 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B6 01 00 F4 03 04 00 11 BE 76 66 B6 04 01 00 00 16 2F 7C 77 C7 F2 5F 8D [19:33:03]CommunicateWithHost err = 0 [19:33:03]CheckOFDResponse [19:33:03]1017 (14) - 77093643461234 [19:33:03]1041 (16) - 0000000000875083 [19:33:03]1040 (4) - 112340 [19:33:03]1012 (4) - 22.06.2024 12:05 [19:33:03]1206 (1) - 0 [19:33:03]OFD Sender: Remove packet 112340 [19:33:03]ProducePacketName [19:33:03]name=ofd_packets/00112340 [19:33:03]NVStorageDeleteData [19:33:03]Write to MH i2c: 01 00 00 FA 52 4C [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: 01 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: 01 07 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: 01 07 00 FA 52 00 00 00 00 00 E1 0C 40 [19:33:03]RasterBufferAndPrint [19:33:03]line [19:33:03]line [19:33:03]line [19:33:03]line [19:33:03]line [19:33:03]written 0, free lines is 3303 [19:33:03]MH_Cut [19:33:03]Write to MH i2c: D1 01 00 01 53 01 26 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: D1 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: D1 01 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: D1 01 00 01 53 00 25 [19:33:03]Write to MH i2c: 01 00 00 02 53 55 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]OFD Sender: No OFD packet to send [19:33:04]*** Cut start [19:33:04]*** Partial cut [19:33:04]*** CUTSNS_PIN = 1 [19:33:04]*** CUTSNS_PIN = 0 [19:33:04]*** Brake cut motor [19:33:04]Read from MH i2c: 01 [19:33:04]MH_I2C_Read... [19:33:04]*** Stop cut motor [19:33:04]*** Cut end [19:33:04]Read from MH i2c: 01 07 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 02 53 00 00 00 00 00 FF 0F 6A [19:33:04]process_action close_receipt done [19:33:04]requested_data is exist [19:33:04]produce_requested_data [19:33:04]requested_item fm.sn is exist - process it [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 11 00 00 [19:33:04]Write to MH i2c: E2 08 00 03 53 80 11 00 00 00 00 00 00 D0 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 17 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 17 00 03 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [19:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:33:05]wFMCommunicate OK [19:33:05]requested_item fd.num is exist - process it [19:33:05]SAM_PROTO_GetFieldsCounters [19:33:05]wFMCommunicate request_size=4 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 13 00 00 [19:33:05]Write to MH i2c: E2 08 00 04 53 80 13 00 00 00 00 00 00 D3 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 62 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 62 00 04 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [19:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:05]wFMCommunicate OK [19:33:05]SAM_PROTO_GetFieldsCounters done [19:33:05]requested_item shift.num is exist - process it [19:33:05]requested_item shift.opened is exist - process it [19:33:05]req_shift_opened [19:33:05]FM_GetShiftState [19:33:05]SAM_PROTO_GetShiftState [19:33:05]wFMCommunicate request_size=4 [19:33:05]MH_SAM_APDU [19:33:05]CAPDU: 80 13 01 00 [19:33:05]Write to MH i2c: E2 08 00 05 53 80 13 01 00 00 00 00 00 D5 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:05]Read from MH i2c: E2 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 0E 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: E2 0E 00 05 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0A [19:33:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:33:05]wFMCommunicate OK [19:33:05]SAM_PROTO_GetShiftState done [19:33:05]FM_GetShiftState done [19:33:05]req_shift_opened done [19:33:05]requested_item shift.open_date is exist - process it [19:33:05]req_shift_open_date [19:33:05]req_shift_open_date done [19:33:05]produce_requested_data done [19:33:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112340,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:33:05]process_action_free close_receipt [19:33:05]json_value_free [19:33:05]json_value_free done [19:33:05]process_json_proto returns [19:33:05]Send response to host [19:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112340,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:33:05]free response buf [19:33:05]execute_script done [19:33:05]execute_script returns [19:33:05]free content buf [19:33:05]Sock 9.Close socket [19:33:05]Sock 9.Thread stoped [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:22]accept exits with 7 [19:34:22]New connection [19:34:22]New thread 3066813796 created [19:34:22]Thread 3066957156 joined [19:34:22]Waiting for new connection... [19:34:22] Sock 7.Parse request [19:34:22]Sock 7.Check first char [19:34:22]Sock 7.First char is OK [19:34:22]request: POST /json_proto HTTP/1.0 [19:34:22]Method: POST [19:34:22]URL: /json_proto [19:34:22]Method is POST - this is cgi request [19:34:22]url: /json_proto [19:34:22]query_string will be loaded in cgi processing [19:34:22]execute_cgi json_proto POST (null) [19:34:22]execute_cgi path=json_proto method=POST [19:34:22]POST find Content-Length [19:34:22]Host: 172.17.59.68:8080 [19:34:22]Content-Length: 682 [19:34:22]Content-Type: application/json [19:34:22] [19:34:22]POST finish read [19:34:22]Found Content-Length = 682 [19:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321018", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:22]execute_script... [19: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)321018", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:22]POST & json_proto [19:34:22]process_json_proto [19:34:22]json parsed OK: [19:34:22]protocol is kg_v1.0 [19:34:22]action value=close_receipt [19:34:22]process_action close_receipt [19:34:22]cmd_close_receipt [19:34:22]MH_GetDate [19:34:22]Write to MH i2c: F0 00 00 06 53 48 [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 09 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: F0 09 00 06 53 00 5F 27 77 66 BC EC 60 65 21 [19:34:22]GetLastDocTimeStamp 1719084813 [19:34:22]current date 1719084895 [19:34:22]FM_GetShiftState [19:34:22]SAM_PROTO_GetShiftState [19:34:22]wFMCommunicate request_size=4 [19:34:22]MH_SAM_APDU [19:34:22]CAPDU: 80 13 01 00 [19:34:22]Write to MH i2c: E2 08 00 07 53 80 13 01 00 00 00 00 00 D7 [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:22]Read from MH i2c: E2 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 07 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 0C [19:34:22]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:34:22]wFMCommunicate OK [19:34:22]SAM_PROTO_GetShiftState done [19:34:22]FM_GetShiftState done [19:34:22]opened in 1719020067 [19:34:22]opened+sec_in_day 1719106467 [19:34:22]quantity*price = 200063 [19:34:22]sum+1 = 200064 [19:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 207 22.06.2024 19:34 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112341 ФПД: 249158874005075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112341&fm=249158874005075&tin=02508201610067®Number=0000000000092771&sum=200000 [19:34:23]StoreToDocumentArchive [19:34:23]shift 391 fd 112341 [19:34:23]save to /storage/0391/doc_00112341 [19:34:23]save last doc name /storage/0391/doc_00112341 to /storage/kkm_last_doc_name [19:34:23]save OK [19:34:23]Clear old archive folders... [19:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:23]tlvbuf is 012012B0 [19:34:23]SAM_PROTO_ClearQueue [19:34:23]wFMCommunicate request_size=4 [19:34:23]MH_SAM_APDU [19:34:23]CAPDU: 80 09 00 00 [19:34:23]Write to MH i2c: E2 08 00 14 53 80 09 00 00 00 00 00 00 D9 [19:34:23]Write i2c OK [19:34:23]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 14 53 00 90 00 DB [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]SAM_PROTO_ClearQueue done [19:34:24]KKMCreateOFDPacket [19:34:24]OFDProtocolAddRootSTLVToBuf [19:34:24]FM_MakeSignedData [19:34:24]FM_MakeSignedData [19:34:24]SAM_PROTO_SignData [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 01 02 [19:34:24]Write to MH i2c: E2 08 00 15 53 80 0D 01 02 00 00 00 00 E1 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]OFD Sender: No OFD packet to send [19:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 15 53 00 90 00 DC [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=255 [19:34:24]MH_SAM_APDU [19:34: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 CF 00 00 00 F4 03 04 00 5F 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B6 01 00 35 04 06 00 E2 [19:34:24]Write to MH i2c: E2 02 01 16 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 CF 00 00 00 F4 03 04 00 5F 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B6 01 00 35 04 06 00 E2 00 00 B2 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 16 53 00 90 00 DD [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=10 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 02 02 05 9B D2 2D 7E 53 [19:34:24]Write to MH i2c: E2 0D 00 17 53 80 0D 02 02 05 00 9B D2 2D 7E 53 00 00 59 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 03 00 17 53 00 90 00 DE [19:34:24]RAPDU: 90 00 [19:34:24]wFMCommunicate OK [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 0D 03 02 [19:34:24]Write to MH i2c: E2 08 00 18 53 80 0D 03 02 00 00 00 00 E6 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 0B 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 0B 00 18 53 00 F8 35 AC 9D 8D 3D 0E 2D 90 00 62 [19:34:24]RAPDU: F8 35 AC 9D 8D 3D 0E 2D 90 00 [19:34:24]wFMCommunicate OK [19:34:24]SAM_PROTO_SignData done [19:34:24]FM_MakeSignedData done [19:34:24]CreateOFDProtocolMessage [19:34:24]wFMCommunicate request_size=4 [19:34:24]MH_SAM_APDU [19:34:24]CAPDU: 80 11 00 00 [19:34:24]Write to MH i2c: E2 08 00 19 53 80 11 00 00 00 00 00 00 E6 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:24]Read from MH i2c: E2 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 17 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: E2 17 00 19 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [19:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:34:24]wFMCommunicate OK [19:34:24]CreateOFDProtocolMessage done [19:34:24]OFDSenderStorePacket 112341 [19:34:24]StoreOFDPacket docnum=112341 [19:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B FA 07 01 A9 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 CF 00 00 00 F4 03 04 00 5F 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B6 01 00 35 04 06 00 E2 9B D2 2D 7E 53 F8 35 AC 9D 8D 3D 0E 2D [19:34:24]CheckFolder [19:34:24]dirname=/storage/ofd_packets [19:34:24]CheckFolder done [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00112341 [19:34:24]NVStorageSaveData ofd_packets/00112341 [19:34:24]File name is /storage/ofd_packets/00112341 [19:34:24]Write 301 bytes [19:34:24]NVStorageSaveData done [19:34:24]OFDSenderStorePacket done [19:34:24]KKMCreateOFDPacket done [19:34:24]NVStorageSaveData kkm_last_timestamp [19:34:24]File name is /storage/kkm_last_timestamp [19:34:24]Write 4 bytes [19:34:24]NVStorageSaveData done [19:34:24]ExternCall_PrintAddStr [19:34:24]wPrintStart [19:34:24]Write to MH i2c: 01 00 00 1A 53 6D [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 1A 53 00 00 00 00 00 FF 0F 82 [19:34:24]RasterBufferAndPrint [19:34:24]line Счет N : (1)321018 [19:34:24]line ИНН: 02508201610067 [19:34:24]line Контрольно-Кассовый Чек [19:34:24]line ПРОДАЖА [19:34:24]line ТРК (МРК, ГНК) : 11 [19:34:24]line Товар: 2710124130 [19:34:24]line Аи-92-К-5 [19:34:24]line 30.130 * 66.40 [19:34:24]line = 2000.63 [19:34:24]line НДС 12% НСП 1% [19:34:24]line > о реализуемом товаре [19:34:24]line ОКРУГЛЕНИЕ: -0.63 [19:34:24]line ИТОГО: 2000.00 [19:34:24]line Внесено: 2000.00 [19:34:24]line СДАЧА: 0.00 [19:34:24]line НСП 1% : 17.70 [19:34:24]line НДС 12% : 212.46 [19:34:24]line Наличными: 2000.00 [19:34:24]line Безнал.: 0.00 [19:34:24]line Место: АЗС № 65 "Партнер Нефть" [19:34:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:34:24]line СНО: Общий режим [19:34:24]line Чек 207 22.06.2024 19:34 [19:34:24]line Смена: 391 ФФД: 1.0 [19:34:24]line ЗНМ: 0300000198 [19:34:24]line РНМ: 0000000000092771 [19:34:24]line Версия ККМ: 001 [19:34:24]line ФМ: 0000000000875083 [19:34:24]line ФД: 112341 [19:34:24]line ФПД: 249158874005075 [19:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T193455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112341&fm=249158874005075&tin=02508201610067®Number=0000000000092771&sum=200000 [19:34:24]written 0, free lines is 4095 [19:34:24]OFD Sender: Processing packet 112341 [packets to send 38, broken 37] [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00112341 [19:34:24]OFD Sender: To server: pG, [19:34:24]CommunicateWithHost lk.salyk.kg:30040 [19:34:24]ConnectInit lk.salyk.kg [19:34:24]Connected sock=10 [19: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 35 30 38 33 0F 01 00 00 6B FA 07 01 A9 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 CF 00 00 00 F4 03 04 00 5F 27 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B6 01 00 35 04 06 00 E2 9B D2 2D 7E 53 F8 35 AC 9D 8D 3D 0E 2D [19:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 87 51 47 00 44 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B6 01 00 F4 03 04 00 62 BE 76 66 B6 04 01 00 00 9F F4 2C F7 E1 ED 40 B8 [19:34:24]CommunicateWithHost err = 0 [19:34:24]CheckOFDResponse [19:34:24]1017 (14) - 77093643461234 [19:34:24]1041 (16) - 0000000000875083 [19:34:24]1040 (4) - 112341 [19:34:24]1012 (4) - 22.06.2024 12:06 [19:34:24]1206 (1) - 0 [19:34:24]OFD Sender: Remove packet 112341 [19:34:24]ProducePacketName [19:34:24]name=ofd_packets/00112341 [19:34:24]NVStorageDeleteData [19:34:24]Write to MH i2c: 01 00 00 45 53 98 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: 01 07 00 45 53 00 00 00 00 00 D4 0C 7F [19:34:24]RasterBufferAndPrint [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]line [19:34:24]written 0, free lines is 3292 [19:34:24]MH_Cut [19:34:24]Write to MH i2c: D1 01 00 4C 53 01 71 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 01 00 [19:34:24]MH_I2C_Read... [19:34:24]Read from MH i2c: D1 01 00 4C 53 00 70 [19:34:24]Write to MH i2c: 01 00 00 4D 53 A0 [19:34:24]Write i2c OK [19:34:24]MH_I2C_Read... [19:34:25]OFD Sender: No OFD packet to send [19:34:25]*** Cut start [19:34:25]*** Partial cut [19:34:25]*** CUTSNS_PIN = 1 [19:34:25]*** CUTSNS_PIN = 0 [19:34:25]*** Brake cut motor [19:34:26]Read from MH i2c: 01 [19:34:26]MH_I2C_Read... [19:34:26]*** Stop cut motor [19:34:26]*** Cut end [19:34:26]Read from MH i2c: 01 07 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: 01 07 00 4D 53 00 00 00 00 00 FF 0F B5 [19:34:26]process_action close_receipt done [19:34:26]requested_data is exist [19:34:26]produce_requested_data [19:34:26]requested_item fm.sn is exist - process it [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 11 00 00 [19:34:26]Write to MH i2c: E2 08 00 4E 53 80 11 00 00 00 00 00 00 1B [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 17 00 4E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [19:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:34:26]wFMCommunicate OK [19:34:26]requested_item fd.num is exist - process it [19:34:26]SAM_PROTO_GetFieldsCounters [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 00 00 [19:34:26]Write to MH i2c: E2 08 00 4F 53 80 13 00 00 00 00 00 00 1E [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 62 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 62 00 4F 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_GetFieldsCounters done [19:34:26]requested_item shift.num is exist - process it [19:34:26]requested_item shift.opened is exist - process it [19:34:26]req_shift_opened [19:34:26]FM_GetShiftState [19:34:26]SAM_PROTO_GetShiftState [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 13 01 00 [19:34:26]Write to MH i2c: E2 08 00 50 53 80 13 01 00 00 00 00 00 20 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0E 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 0E 00 50 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 55 [19:34:26]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_GetShiftState done [19:34:26]FM_GetShiftState done [19:34:26]req_shift_opened done [19:34:26]requested_item shift.open_date is exist - process it [19:34:26]req_shift_open_date [19:34:26]req_shift_open_date done [19:34:26]produce_requested_data done [19:34:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112341,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:34:26]process_action_free close_receipt [19:34:26]json_value_free [19:34:26]json_value_free done [19:34:26]process_json_proto returns [19:34:26]Send response to host [19:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112341,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:34:26]free response buf [19:34:26]execute_script done [19:34:26]execute_script returns [19:34:26]free content buf [19:34:26]Sock 7.Close socket [19:34:26]Sock 7.Thread stoped [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:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:55]accept exits with 9 [19:49:55]New connection [19:49:55]New thread 3066957156 created [19:49:55]Thread 3066813796 joined [19:49:55]Waiting for new connection... [19:49:55] Sock 9.Parse request [19:49:55]Sock 9.Check first char [19:49:55]Sock 9.First char is OK [19:49:55]request: POST /json_proto HTTP/1.0 [19:49:55]Method: POST [19:49:55]URL: /json_proto [19:49:55]Method is POST - this is cgi request [19:49:55]url: /json_proto [19:49:55]query_string will be loaded in cgi processing [19:49:55]execute_cgi json_proto POST (null) [19:49:55]execute_cgi path=json_proto method=POST [19:49:55]POST find Content-Length [19:49:55]Host: 172.17.59.68:8080 [19:49:55]Content-Length: 674 [19:49:55]Content-Type: application/json [19:49:55] [19:49:55]POST finish read [19:49:55]Found Content-Length = 674 [19:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:55]execute_script... [19:49: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)321019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:55]POST & json_proto [19:49:55]process_json_proto [19:49:55]json parsed OK: [19:49:55]protocol is kg_v1.0 [19:49:55]action value=close_receipt [19:49:55]process_action close_receipt [19:49:55]cmd_close_receipt [19:49:55]MH_GetDate [19:49:55]Write to MH i2c: F0 00 00 51 53 93 [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: F0 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: F0 09 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: F0 09 00 51 53 00 04 2B 77 66 BC EC 60 65 15 [19:49:55]GetLastDocTimeStamp 1719084895 [19:49:55]current date 1719085828 [19:49:55]FM_GetShiftState [19:49:55]SAM_PROTO_GetShiftState [19:49:55]wFMCommunicate request_size=4 [19:49:55]MH_SAM_APDU [19:49:55]CAPDU: 80 13 01 00 [19:49:55]Write to MH i2c: E2 08 00 52 53 80 13 01 00 00 00 00 00 22 [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:55]Read from MH i2c: E2 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: E2 0E 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: E2 0E 00 52 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 57 [19:49:55]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:49:55]wFMCommunicate OK [19:49:55]SAM_PROTO_GetShiftState done [19:49:55]FM_GetShiftState done [19:49:55]opened in 1719020067 [19:49:55]opened+sec_in_day 1719106467 [19:49:55]quantity*price = 70056 [19:49:55]sum+1 = 70058 [19:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 208 22.06.2024 19:50 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112342 ФПД: 109883780854414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T195028&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112342&fm=109883780854414&tin=02508201610067®Number=0000000000092771&sum=70000 [19:49:57]StoreToDocumentArchive [19:49:57]shift 391 fd 112342 [19:49:57]save to /storage/0391/doc_00112342 [19:49:57]save last doc name /storage/0391/doc_00112342 to /storage/kkm_last_doc_name [19:49:57]save OK [19:49:57]Clear old archive folders... [19:49:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:49:57]tlvbuf is 01201450 [19:49:57]SAM_PROTO_ClearQueue [19:49:57]wFMCommunicate request_size=4 [19:49:57]MH_SAM_APDU [19:49:57]CAPDU: 80 09 00 00 [19:49:57]Write to MH i2c: E2 08 00 5F 53 80 09 00 00 00 00 00 00 24 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 5F 53 00 90 00 26 [19:49:57]RAPDU: 90 00 [19:49:57]wFMCommunicate OK [19:49:57]SAM_PROTO_ClearQueue done [19:49:57]KKMCreateOFDPacket [19:49:57]OFDProtocolAddRootSTLVToBuf [19:49:57]FM_MakeSignedData [19:49:57]FM_MakeSignedData [19:49:57]SAM_PROTO_SignData [19:49:57]wFMCommunicate request_size=4 [19:49:57]MH_SAM_APDU [19:49:57]CAPDU: 80 0D 01 02 [19:49:57]Write to MH i2c: E2 08 00 60 53 80 0D 01 02 00 00 00 00 2C [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 60 53 00 90 00 27 [19:49:57]RAPDU: 90 00 [19:49:57]wFMCommunicate OK [19:49:57]wFMCommunicate request_size=255 [19:49:57]MH_SAM_APDU [19:49: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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 04 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B6 01 00 35 04 06 00 63 F0 4F B9 [19:49:57]Write to MH i2c: E2 02 01 61 53 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 04 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B6 01 00 35 04 06 00 63 F0 4F B9 00 00 74 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 61 53 00 90 00 28 [19:49:57]RAPDU: 90 00 [19:49:57]wFMCommunicate OK [19:49:57]wFMCommunicate request_size=7 [19:49:57]MH_SAM_APDU [19:49:57]CAPDU: 80 0D 02 02 02 72 8E [19:49:57]Write to MH i2c: E2 0A 00 62 53 80 0D 02 02 02 00 72 8E 00 00 33 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 03 00 62 53 00 90 00 29 [19:49:57]RAPDU: 90 00 [19:49:57]wFMCommunicate OK [19:49:57]wFMCommunicate request_size=4 [19:49:57]MH_SAM_APDU [19:49:57]CAPDU: 80 0D 03 02 [19:49:57]Write to MH i2c: E2 08 00 63 53 80 0D 03 02 00 00 00 00 31 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 0B 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 0B 00 63 53 00 43 44 37 94 BE 7E 2E 25 90 00 13 [19:49:57]RAPDU: 43 44 37 94 BE 7E 2E 25 90 00 [19:49:57]wFMCommunicate OK [19:49:57]SAM_PROTO_SignData done [19:49:57]FM_MakeSignedData done [19:49:57]CreateOFDProtocolMessage [19:49:57]wFMCommunicate request_size=4 [19:49:57]MH_SAM_APDU [19:49:57]CAPDU: 80 11 00 00 [19:49:57]Write to MH i2c: E2 08 00 64 53 80 11 00 00 00 00 00 00 31 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 17 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 17 00 64 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [19:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:49:57]wFMCommunicate OK [19:49:57]CreateOFDProtocolMessage done [19:49:57]OFDSenderStorePacket 112342 [19:49:57]StoreOFDPacket docnum=112342 [19:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F0 F2 04 01 FE 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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 04 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B6 01 00 35 04 06 00 63 F0 4F B9 72 8E 43 44 37 94 BE 7E 2E 25 [19:49:57]CheckFolder [19:49:57]dirname=/storage/ofd_packets [19:49:57]CheckFolder done [19:49:57]ProducePacketName [19:49:57]name=ofd_packets/00112342 [19:49:57]NVStorageSaveData ofd_packets/00112342 [19:49:57]File name is /storage/ofd_packets/00112342 [19:49:57]Write 298 bytes [19:49:57]NVStorageSaveData done [19:49:57]OFDSenderStorePacket done [19:49:57]KKMCreateOFDPacket done [19:49:57]NVStorageSaveData kkm_last_timestamp [19:49:57]File name is /storage/kkm_last_timestamp [19:49:57]Write 4 bytes [19:49:57]NVStorageSaveData done [19:49:57]ExternCall_PrintAddStr [19:49:57]wPrintStart [19:49:57]Write to MH i2c: 01 00 00 65 53 B8 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: 01 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: 01 07 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: 01 07 00 65 53 00 00 00 00 00 FF 0F CD [19:49:57]RasterBufferAndPrint [19:49:57]line Счет N : (1)321019 [19:49:57]line ИНН: 02508201610067 [19:49:57]line Контрольно-Кассовый Чек [19:49:57]line ПРОДАЖА [19:49:57]line ТРК (МРК, ГНК) : 22 [19:49:57]line Товар: 2710194210 [19:49:57]line ДТ-К-5 [19:49:57]line 9.610 * 72.90 [19:49:57]line = 700.57 [19:49:57]line НДС 12% НСП 1% [19:49:57]line > о реализуемом товаре [19:49:57]line ОКРУГЛЕНИЕ: -0.57 [19:49:57]line ИТОГО: 700.00 [19:49:57]line Внесено: 700.00 [19:49:57]line СДАЧА: 0.00 [19:49:57]line НСП 1% : 6.20 [19:49:57]line НДС 12% : 74.40 [19:49:57]line Наличными: 700.00 [19:49:57]line Безнал.: 0.00 [19:49:57]line Место: АЗС № 65 "Партнер Нефть" [19:49:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:49:57]line СНО: Общий режим [19:49:57]line Чек 208 22.06.2024 19:50 [19:49:57]line Смена: 391 ФФД: 1.0 [19:49:57]line ЗНМ: 0300000198 [19:49:57]line РНМ: 0000000000092771 [19:49:57]line Версия ККМ: 001 [19:49:57]line ФМ: 0000000000875083 [19:49:57]line ФД: 112342 [19:49:57]line ФПД: 109883780854414 [19:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T195028&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112342&fm=109883780854414&tin=02508201610067®Number=0000000000092771&sum=70000 [19:49:57]OFD Sender: Processing packet 112342 [packets to send 38, broken 37] [19:49:57]ProducePacketName [19:49:57]name=ofd_packets/00112342 [19:49:57]OFD Sender: To server: pG, [19:49:57]CommunicateWithHost lk.salyk.kg:30040 [19:49:57]ConnectInit lk.salyk.kg [19:49:57]written 0, free lines is 4095 [19:49:58]Connected sock=10 [19:49:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F0 F2 04 01 FE 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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 04 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B6 01 00 35 04 06 00 63 F0 4F B9 72 8E 43 44 37 94 BE 7E 2E 25 [19:49:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F4 E4 47 00 D9 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B6 01 00 F4 03 04 00 07 C2 76 66 B6 04 01 00 00 9C C7 55 B8 93 4A DE 1E [19:49:58]CommunicateWithHost err = 0 [19:49:58]CheckOFDResponse [19:49:58]1017 (14) - 77093643461234 [19:49:58]1041 (16) - 0000000000875083 [19:49:58]1040 (4) - 112342 [19:49:58]1012 (4) - 22.06.2024 12:22 [19:49:58]1206 (1) - 0 [19:49:58]OFD Sender: Remove packet 112342 [19:49:58]ProducePacketName [19:49:58]name=ofd_packets/00112342 [19:49:58]NVStorageDeleteData [19:49:58]Write to MH i2c: 01 00 00 90 53 E3 [19:49:58]Write i2c OK [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: 01 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: 01 07 00 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: 01 07 00 90 53 00 00 00 00 00 E1 0C D7 [19:49:58]RasterBufferAndPrint [19:49:58]line [19:49:58]line [19:49:58]line [19:49:58]line [19:49:58]line [19:49:58]written 0, free lines is 3302 [19:49:58]MH_Cut [19:49:58]Write to MH i2c: D1 01 00 97 53 01 BC [19:49:58]Write i2c OK [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: D1 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: D1 01 00 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: D1 01 00 97 53 00 BB [19:49:58]Write to MH i2c: 01 00 00 98 53 EB [19:49:58]Write i2c OK [19:49:58]MH_I2C_Read... [19:49:58]OFD Sender: No OFD packet to send [19:49:59]*** Cut start [19:49:59]*** Partial cut [19:49:59]*** CUTSNS_PIN = 1 [19:49:59]*** CUTSNS_PIN = 0 [19:49:59]*** Brake cut motor [19:49:59]Read from MH i2c: 01 [19:49:59]MH_I2C_Read... [19:49:59]*** Stop cut motor [19:49:59]*** Cut end [19:49:59]Read from MH i2c: 01 07 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: 01 07 00 98 53 00 00 00 00 00 FF 0F 00 [19:49:59]process_action close_receipt done [19:49:59]requested_data is exist [19:49:59]produce_requested_data [19:49:59]requested_item fm.sn is exist - process it [19:49:59]wFMCommunicate request_size=4 [19:49:59]MH_SAM_APDU [19:49:59]CAPDU: 80 11 00 00 [19:49:59]Write to MH i2c: E2 08 00 99 53 80 11 00 00 00 00 00 00 66 [19:49:59]Write i2c OK [19:49:59]MH_I2C_Read... [19:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:59]Read from MH i2c: E2 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 17 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 17 00 99 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [19:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:49:59]wFMCommunicate OK [19:49:59]requested_item fd.num is exist - process it [19:49:59]SAM_PROTO_GetFieldsCounters [19:49:59]wFMCommunicate request_size=4 [19:49:59]MH_SAM_APDU [19:49:59]CAPDU: 80 13 00 00 [19:49:59]Write to MH i2c: E2 08 00 9A 53 80 13 00 00 00 00 00 00 69 [19:49:59]Write i2c OK [19:49:59]MH_I2C_Read... [19:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:59]Read from MH i2c: E2 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 62 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 62 00 9A 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [19:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:59]wFMCommunicate OK [19:49:59]SAM_PROTO_GetFieldsCounters done [19:49:59]requested_item shift.num is exist - process it [19:49:59]requested_item shift.opened is exist - process it [19:49:59]req_shift_opened [19:49:59]FM_GetShiftState [19:49:59]SAM_PROTO_GetShiftState [19:49:59]wFMCommunicate request_size=4 [19:49:59]MH_SAM_APDU [19:49:59]CAPDU: 80 13 01 00 [19:49:59]Write to MH i2c: E2 08 00 9B 53 80 13 01 00 00 00 00 00 6B [19:49:59]Write i2c OK [19:49:59]MH_I2C_Read... [19:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:59]Read from MH i2c: E2 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 0E 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 0E 00 9B 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A0 [19:49:59]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:49:59]wFMCommunicate OK [19:49:59]SAM_PROTO_GetShiftState done [19:49:59]FM_GetShiftState done [19:49:59]req_shift_opened done [19:49:59]requested_item shift.open_date is exist - process it [19:49:59]req_shift_open_date [19:49:59]req_shift_open_date done [19:49:59]produce_requested_data done [19:49:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112342,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:49:59]process_action_free close_receipt [19:49:59]json_value_free [19:49:59]json_value_free done [19:49:59]process_json_proto returns [19:49:59]Send response to host [19:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112342,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:49:59]free response buf [19:49:59]execute_script done [19:49:59]execute_script returns [19:49:59]free content buf [19:49:59]Sock 9.Close socket [19:49:59]Sock 9.Thread stoped [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]accept exits with 7 [19:53:03]New connection [19:53:03]New thread 3066813796 created [19:53:03]Thread 3066957156 joined [19:53:03]Waiting for new connection... [19:53:03] Sock 7.Parse request [19:53:03]Sock 7.Check first char [19:53:03]Sock 7.First char is OK [19:53:03]request: POST /json_proto HTTP/1.0 [19:53:03]Method: POST [19:53:03]URL: /json_proto [19:53:03]Method is POST - this is cgi request [19:53:03]url: /json_proto [19:53:03]query_string will be loaded in cgi processing [19:53:03]execute_cgi json_proto POST (null) [19:53:03]execute_cgi path=json_proto method=POST [19:53:03]POST find Content-Length [19:53:03]Host: 172.17.59.68:8080 [19:53:03]Content-Length: 677 [19:53:03]Content-Type: application/json [19:53:03] [19:53:03]POST finish read [19:53:03]Found Content-Length = 677 [19:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321020", "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.40, "quantity" : 5.430, "sum" : 360.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:03]execute_script... [19:53: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)321020", "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.40, "quantity" : 5.430, "sum" : 360.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:03]POST & json_proto [19:53:03]process_json_proto [19:53:03]json parsed OK: [19:53:03]protocol is kg_v1.0 [19:53:03]action value=close_receipt [19:53:03]process_action close_receipt [19:53:03]cmd_close_receipt [19:53:03]MH_GetDate [19:53:03]Write to MH i2c: F0 00 00 9C 53 DE [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: F0 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: F0 09 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: F0 09 00 9C 53 00 C0 2B 77 66 BC EC 60 65 1C [19:53:03]GetLastDocTimeStamp 1719085828 [19:53:03]current date 1719086016 [19:53:03]FM_GetShiftState [19:53:03]SAM_PROTO_GetShiftState [19:53:03]wFMCommunicate request_size=4 [19:53:03]MH_SAM_APDU [19:53:03]CAPDU: 80 13 01 00 [19:53:03]Write to MH i2c: E2 08 00 9D 53 80 13 01 00 00 00 00 00 6D [19:53:03]Write i2c OK [19:53:03]MH_I2C_Read... [19:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:03]Read from MH i2c: E2 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 0E 00 [19:53:03]MH_I2C_Read... [19:53:03]Read from MH i2c: E2 0E 00 9D 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A2 [19:53:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:53:03]wFMCommunicate OK [19:53:03]SAM_PROTO_GetShiftState done [19:53:03]FM_GetShiftState done [19:53:03]opened in 1719020067 [19:53:03]opened+sec_in_day 1719106467 [19:53:03]quantity*price = 36055 [19:53:03]sum+1 = 36056 [19:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 209 22.06.2024 19:53 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112343 ФПД: 9513368537682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T195336&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112343&fm=9513368537682&tin=02508201610067®Number=0000000000092771&sum=36000 [19:53:04]StoreToDocumentArchive [19:53:04]shift 391 fd 112343 [19:53:04]save to /storage/0391/doc_00112343 [19:53:04]save last doc name /storage/0391/doc_00112343 to /storage/kkm_last_doc_name [19:53:04]save OK [19:53:04]Clear old archive folders... [19:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:04]tlvbuf is 011C74A0 [19:53:04]SAM_PROTO_ClearQueue [19:53:04]wFMCommunicate request_size=4 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 09 00 00 [19:53:04]Write to MH i2c: E2 08 00 AA 53 80 09 00 00 00 00 00 00 6F [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:04]Read from MH i2c: E2 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 03 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 03 00 AA 53 00 90 00 71 [19:53:04]RAPDU: 90 00 [19:53:04]wFMCommunicate OK [19:53:04]SAM_PROTO_ClearQueue done [19:53:04]KKMCreateOFDPacket [19:53:04]OFDProtocolAddRootSTLVToBuf [19:53:04]FM_MakeSignedData [19:53:04]FM_MakeSignedData [19:53:04]SAM_PROTO_SignData [19:53:04]wFMCommunicate request_size=4 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 0D 01 02 [19:53:04]Write to MH i2c: E2 08 00 AB 53 80 0D 01 02 00 00 00 00 77 [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:04]Read from MH i2c: E2 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 03 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 03 00 AB 53 00 90 00 72 [19:53:04]RAPDU: 90 00 [19:53:04]wFMCommunicate OK [19:53:04]wFMCommunicate request_size=255 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C0 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B6 01 00 35 04 06 00 08 [19:53:04]Write to MH i2c: E2 02 01 AC 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C0 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B6 01 00 35 04 06 00 08 00 00 8A [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:04]Read from MH i2c: E2 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 03 00 [19:53:04]MH_I2C_Read... [19:53:04]Read from MH i2c: E2 03 00 AC 53 00 90 00 73 [19:53:04]RAPDU: 90 00 [19:53:04]wFMCommunicate OK [19:53:04]wFMCommunicate request_size=10 [19:53:04]MH_SAM_APDU [19:53:04]CAPDU: 80 0D 02 02 05 A7 00 F3 CA 52 [19:53:04]Write to MH i2c: E2 0D 00 AD 53 80 0D 02 02 05 00 A7 00 F3 CA 52 00 00 3A [19:53:04]Write i2c OK [19:53:04]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 03 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 03 00 AD 53 00 90 00 74 [19:53:05]RAPDU: 90 00 [19:53:05]wFMCommunicate OK [19:53:05]wFMCommunicate request_size=4 [19:53:05]MH_SAM_APDU [19:53:05]CAPDU: 80 0D 03 02 [19:53:05]Write to MH i2c: E2 08 00 AE 53 80 0D 03 02 00 00 00 00 7C [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 0B 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 0B 00 AE 53 00 D7 D6 A0 6A 4B E3 1B 60 90 00 DD [19:53:05]RAPDU: D7 D6 A0 6A 4B E3 1B 60 90 00 [19:53:05]wFMCommunicate OK [19:53:05]SAM_PROTO_SignData done [19:53:05]FM_MakeSignedData done [19:53:05]CreateOFDProtocolMessage [19:53:05]wFMCommunicate request_size=4 [19:53:05]MH_SAM_APDU [19:53:05]CAPDU: 80 11 00 00 [19:53:05]Write to MH i2c: E2 08 00 AF 53 80 11 00 00 00 00 00 00 7C [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 17 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 17 00 AF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [19:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:53:05]wFMCommunicate OK [19:53:05]CreateOFDProtocolMessage done [19:53:05]OFDSenderStorePacket 112343 [19:53:05]StoreOFDPacket docnum=112343 [19:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E8 4F 07 01 5C 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 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C0 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B6 01 00 35 04 06 00 08 A7 00 F3 CA 52 D7 D6 A0 6A 4B E3 1B 60 [19:53:05]CheckFolder [19:53:05]dirname=/storage/ofd_packets [19:53:05]CheckFolder done [19:53:05]ProducePacketName [19:53:05]name=ofd_packets/00112343 [19:53:05]NVStorageSaveData ofd_packets/00112343 [19:53:05]File name is /storage/ofd_packets/00112343 [19:53:05]Write 301 bytes [19:53:05]NVStorageSaveData done [19:53:05]OFDSenderStorePacket done [19:53:05]KKMCreateOFDPacket done [19:53:05]NVStorageSaveData kkm_last_timestamp [19:53:05]File name is /storage/kkm_last_timestamp [19:53:05]Write 4 bytes [19:53:05]NVStorageSaveData done [19:53:05]ExternCall_PrintAddStr [19:53:05]wPrintStart [19:53:05]Write to MH i2c: 01 00 00 B0 53 03 [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 07 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 07 00 B0 53 00 00 00 00 00 FF 0F 18 [19:53:05]RasterBufferAndPrint [19:53:05]line Счет N : (1)321020 [19:53:05]line ИНН: 02508201610067 [19:53:05]line Контрольно-Кассовый Чек [19:53:05]line ПРОДАЖА [19:53:05]line ТРК (МРК, ГНК) : 11 [19:53:05]line Товар: 2710124130 [19:53:05]line Аи-92-К-5 [19:53:05]line 5.430 * 66.40 [19:53:05]line = 360.55 [19:53:05]line НДС 12% НСП 1% [19:53:05]line > о реализуемом товаре [19:53:05]line ОКРУГЛЕНИЕ: -0.55 [19:53:05]line ИТОГО: 360.00 [19:53:05]line Внесено: 360.00 [19:53:05]line СДАЧА: 0.00 [19:53:05]line НСП 1% : 3.19 [19:53:05]line НДС 12% : 38.29 [19:53:05]line Наличными: 360.00 [19:53:05]line Безнал.: 0.00 [19:53:05]line Место: АЗС № 65 "Партнер Нефть" [19:53:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:53:05]line СНО: Общий режим [19:53:05]line Чек 209 22.06.2024 19:53 [19:53:05]line Смена: 391 ФФД: 1.0 [19:53:05]line ЗНМ: 0300000198 [19:53:05]line РНМ: 0000000000092771 [19:53:05]line Версия ККМ: 001 [19:53:05]line ФМ: 0000000000875083 [19:53:05]line ФД: 112343 [19:53:05]line ФПД: 9513368537682 [19:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T195336&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112343&fm=9513368537682&tin=02508201610067®Number=0000000000092771&sum=36000 [19:53:05]OFD Sender: Processing packet 112343 [packets to send 38, broken 37] [19:53:05]ProducePacketName [19:53:05]name=ofd_packets/00112343 [19:53:05]OFD Sender: To server: pG, [19:53:05]CommunicateWithHost lk.salyk.kg:30040 [19:53:05]ConnectInit lk.salyk.kg [19:53:05]written 0, free lines is 4095 [19:53:05]Connected sock=10 [19:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E8 4F 07 01 5C 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 36 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D7 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 C0 2B 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B6 01 00 35 04 06 00 08 A7 00 F3 CA 52 D7 D6 A0 6A 4B E3 1B 60 [19:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6F B5 47 00 3F 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B6 01 00 F4 03 04 00 C3 C2 76 66 B6 04 01 00 00 73 10 6F C2 77 C3 F8 0E [19:53:05]CommunicateWithHost err = 0 [19:53:05]CheckOFDResponse [19:53:05]1017 (14) - 77093643461234 [19:53:05]1041 (16) - 0000000000875083 [19:53:05]1040 (4) - 112343 [19:53:05]1012 (4) - 22.06.2024 12:25 [19:53:05]1206 (1) - 0 [19:53:05]OFD Sender: Remove packet 112343 [19:53:05]ProducePacketName [19:53:05]name=ofd_packets/00112343 [19:53:05]NVStorageDeleteData [19:53:05]Write to MH i2c: 01 00 00 DB 53 2E [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 07 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: 01 07 00 DB 53 00 00 00 00 00 EB 0C 2C [19:53:05]RasterBufferAndPrint [19:53:05]line [19:53:05]line [19:53:05]line [19:53:05]line [19:53:05]line [19:53:05]written 0, free lines is 3313 [19:53:05]MH_Cut [19:53:05]Write to MH i2c: D1 01 00 E2 53 01 07 [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: D1 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: D1 01 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: D1 01 00 E2 53 00 06 [19:53:05]Write to MH i2c: 01 00 00 E3 53 36 [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:06]OFD Sender: No OFD packet to send [19:53:06]*** Cut start [19:53:06]*** Partial cut [19:53:06]*** CUTSNS_PIN = 1 [19:53:06]*** CUTSNS_PIN = 0 [19:53:06]*** Brake cut motor [19:53:07]Read from MH i2c: 01 [19:53:07]MH_I2C_Read... [19:53:07]*** Stop cut motor [19:53:07]*** Cut end [19:53:07]Read from MH i2c: 01 07 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 07 00 E3 53 00 00 00 00 00 FF 0F 4B [19:53:07]process_action close_receipt done [19:53:07]requested_data is exist [19:53:07]produce_requested_data [19:53:07]requested_item fm.sn is exist - process it [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 11 00 00 [19:53:07]Write to MH i2c: E2 08 00 E4 53 80 11 00 00 00 00 00 00 B1 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 17 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 17 00 E4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [19:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:53:07]wFMCommunicate OK [19:53:07]requested_item fd.num is exist - process it [19:53:07]SAM_PROTO_GetFieldsCounters [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 13 00 00 [19:53:07]Write to MH i2c: E2 08 00 E5 53 80 13 00 00 00 00 00 00 B4 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 62 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 62 00 E5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [19:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:07]wFMCommunicate OK [19:53:07]SAM_PROTO_GetFieldsCounters done [19:53:07]requested_item shift.num is exist - process it [19:53:07]requested_item shift.opened is exist - process it [19:53:07]req_shift_opened [19:53:07]FM_GetShiftState [19:53:07]SAM_PROTO_GetShiftState [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 13 01 00 [19:53:07]Write to MH i2c: E2 08 00 E6 53 80 13 01 00 00 00 00 00 B6 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 0E 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 0E 00 E6 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 EB [19:53:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:53:07]wFMCommunicate OK [19:53:07]SAM_PROTO_GetShiftState done [19:53:07]FM_GetShiftState done [19:53:07]req_shift_opened done [19:53:07]requested_item shift.open_date is exist - process it [19:53:07]req_shift_open_date [19:53:07]req_shift_open_date done [19:53:07]produce_requested_data done [19:53:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112343,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:53:07]process_action_free close_receipt [19:53:07]json_value_free [19:53:07]json_value_free done [19:53:07]process_json_proto returns [19:53:07]Send response to host [19:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112343,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:53:07]free response buf [19:53:07]execute_script done [19:53:07]execute_script returns [19:53:07]free content buf [19:53:07]Sock 7.Close socket [19:53:07]Sock 7.Thread stoped [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:24]accept exits with 9 [19:56:24]New connection [19:56:24]New thread 3066957156 created [19:56:24]Thread 3066813796 joined [19:56:24]Waiting for new connection... [19:56:24] Sock 9.Parse request [19:56:24]Sock 9.Check first char [19:56:24]Sock 9.First char is OK [19:56:24]request: POST /json_proto HTTP/1.0 [19:56:24]Method: POST [19:56:24]URL: /json_proto [19:56:24]Method is POST - this is cgi request [19:56:24]url: /json_proto [19:56:24]query_string will be loaded in cgi processing [19:56:24]execute_cgi json_proto POST (null) [19:56:24]execute_cgi path=json_proto method=POST [19:56:24]POST find Content-Length [19:56:24]Host: 172.17.59.68:8080 [19:56:24]Content-Length: 675 [19:56:24]Content-Type: application/json [19:56:24] [19:56:24]POST finish read [19:56:24]Found Content-Length = 675 [19:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "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" ] } } [19:56:24]execute_script... [19:56: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)321021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "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" ] } } [19:56:24]POST & json_proto [19:56:24]process_json_proto [19:56:24]json parsed OK: [19:56:24]protocol is kg_v1.0 [19:56:24]action value=close_receipt [19:56:24]process_action close_receipt [19:56:24]cmd_close_receipt [19:56:24]MH_GetDate [19:56:24]Write to MH i2c: F0 00 00 E7 53 29 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: F0 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: F0 09 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: F0 09 00 E7 53 00 8A 2C 77 66 BC EC 60 65 32 [19:56:24]GetLastDocTimeStamp 1719086016 [19:56:24]current date 1719086218 [19:56:24]FM_GetShiftState [19:56:24]SAM_PROTO_GetShiftState [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 13 01 00 [19:56:24]Write to MH i2c: E2 08 00 E8 53 80 13 01 00 00 00 00 00 B8 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:25]Read from MH i2c: E2 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 0E 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: E2 0E 00 E8 53 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 ED [19:56:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:56:25]wFMCommunicate OK [19:56:25]SAM_PROTO_GetShiftState done [19:56:25]FM_GetShiftState done [19:56:25]opened in 1719020067 [19:56:25]opened+sec_in_day 1719106467 [19:56:25]quantity*price = 90031 [19:56:25]sum+1 = 90033 [19:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 210 22.06.2024 19:56 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112344 ФПД: 140055351301626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T195658&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112344&fm=140055351301626&tin=02508201610067®Number=0000000000092771&sum=90000 [19:56:26]StoreToDocumentArchive [19:56:26]shift 391 fd 112344 [19:56:26]save to /storage/0391/doc_00112344 [19:56:26]save last doc name /storage/0391/doc_00112344 to /storage/kkm_last_doc_name [19:56:26]save OK [19:56:26]Clear old archive folders... [19:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:26]tlvbuf is 0114B6B0 [19:56:26]SAM_PROTO_ClearQueue [19:56:26]wFMCommunicate request_size=4 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 09 00 00 [19:56:26]Write to MH i2c: E2 08 00 F5 53 80 09 00 00 00 00 00 00 BA [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 F5 53 00 90 00 BC [19:56:26]RAPDU: 90 00 [19:56:26]wFMCommunicate OK [19:56:26]SAM_PROTO_ClearQueue done [19:56:26]KKMCreateOFDPacket [19:56:26]OFDProtocolAddRootSTLVToBuf [19:56:26]FM_MakeSignedData [19:56:26]FM_MakeSignedData [19:56:26]SAM_PROTO_SignData [19:56:26]wFMCommunicate request_size=4 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 0D 01 02 [19:56:26]Write to MH i2c: E2 08 00 F6 53 80 0D 01 02 00 00 00 00 C2 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 F6 53 00 90 00 BD [19:56:26]RAPDU: 90 00 [19:56:26]wFMCommunicate OK [19:56:26]wFMCommunicate request_size=255 [19:56:26]MH_SAM_APDU [19:56: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 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 8A 2C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B6 01 00 35 04 06 00 7F 61 2D 76 [19:56:26]Write to MH i2c: E2 02 01 F7 53 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 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 8A 2C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B6 01 00 35 04 06 00 7F 61 2D 76 00 00 B0 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]OFD Sender: No OFD packet to send [19:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 F7 53 00 90 00 BE [19:56:26]RAPDU: 90 00 [19:56:26]wFMCommunicate OK [19:56:26]wFMCommunicate request_size=7 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 0D 02 02 02 95 FA [19:56:26]Write to MH i2c: E2 0A 00 F8 53 80 0D 02 02 02 00 95 FA 00 00 58 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 03 00 F8 53 00 90 00 BF [19:56:26]RAPDU: 90 00 [19:56:26]wFMCommunicate OK [19:56:26]wFMCommunicate request_size=4 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 0D 03 02 [19:56:26]Write to MH i2c: E2 08 00 F9 53 80 0D 03 02 00 00 00 00 C7 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 0B 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 0B 00 F9 53 00 0A CD 94 10 FF 60 B8 91 90 00 EB [19:56:26]RAPDU: 0A CD 94 10 FF 60 B8 91 90 00 [19:56:26]wFMCommunicate OK [19:56:26]SAM_PROTO_SignData done [19:56:26]FM_MakeSignedData done [19:56:26]CreateOFDProtocolMessage [19:56:26]wFMCommunicate request_size=4 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 11 00 00 [19:56:26]Write to MH i2c: E2 08 00 FA 53 80 11 00 00 00 00 00 00 C7 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 17 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 17 00 FA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 19 [19:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:56:26]wFMCommunicate OK [19:56:26]CreateOFDProtocolMessage done [19:56:26]OFDSenderStorePacket 112344 [19:56:26]StoreOFDPacket docnum=112344 [19:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 46 84 04 01 70 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 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 8A 2C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B6 01 00 35 04 06 00 7F 61 2D 76 95 FA 0A CD 94 10 FF 60 B8 91 [19:56:26]CheckFolder [19:56:26]dirname=/storage/ofd_packets [19:56:26]CheckFolder done [19:56:26]ProducePacketName [19:56:26]name=ofd_packets/00112344 [19:56:26]NVStorageSaveData ofd_packets/00112344 [19:56:26]File name is /storage/ofd_packets/00112344 [19:56:26]Write 298 bytes [19:56:26]NVStorageSaveData done [19:56:26]OFDSenderStorePacket done [19:56:26]KKMCreateOFDPacket done [19:56:26]NVStorageSaveData kkm_last_timestamp [19:56:26]File name is /storage/kkm_last_timestamp [19:56:26]Write 4 bytes [19:56:26]NVStorageSaveData done [19:56:26]ExternCall_PrintAddStr [19:56:26]wPrintStart [19:56:26]Write to MH i2c: 01 00 00 FB 53 4E [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 07 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 07 00 FB 53 00 00 00 00 00 FF 0F 63 [19:56:26]RasterBufferAndPrint [19:56:26]line Счет N : (1)321021 [19:56:26]line ИНН: 02508201610067 [19:56:26]line Контрольно-Кассовый Чек [19:56:26]line ПРОДАЖА [19:56:26]line ТРК (МРК, ГНК) : 22 [19:56:26]line Товар: 2710194210 [19:56:26]line ДТ-К-5 [19:56:26]line 12.350 * 72.90 [19:56:26]line = 900.32 [19:56:26]line НДС 12% НСП 1% [19:56:26]line > о реализуемом товаре [19:56:26]line ОКРУГЛЕНИЕ: -0.32 [19:56:26]line ИТОГО: 900.00 [19:56:26]line Внесено: 900.00 [19:56:26]line СДАЧА: 0.00 [19:56:26]line НСП 1% : 7.97 [19:56:26]line НДС 12% : 95.61 [19:56:26]line Наличными: 900.00 [19:56:26]line Безнал.: 0.00 [19:56:26]line Место: АЗС № 65 "Партнер Нефть" [19:56:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:56:26]line СНО: Общий режим [19:56:26]line Чек 210 22.06.2024 19:56 [19:56:26]line Смена: 391 ФФД: 1.0 [19:56:26]line ЗНМ: 0300000198 [19:56:26]line РНМ: 0000000000092771 [19:56:26]line Версия ККМ: 001 [19:56:26]line ФМ: 0000000000875083 [19:56:26]line ФД: 112344 [19:56:26]line ФПД: 140055351301626 [19:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T195658&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112344&fm=140055351301626&tin=02508201610067®Number=0000000000092771&sum=90000 [19:56:27]OFD Sender: Processing packet 112344 [packets to send 38, broken 37] [19:56:27]ProducePacketName [19:56:27]name=ofd_packets/00112344 [19:56:27]OFD Sender: To server: pG, [19:56:27]CommunicateWithHost lk.salyk.kg:30040 [19:56:27]ConnectInit lk.salyk.kg [19:56:27]written 0, free lines is 4095 [19:56:27]Connected sock=10 [19:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 46 84 04 01 70 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 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 8A 2C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B6 01 00 35 04 06 00 7F 61 2D 76 95 FA 0A CD 94 10 FF 60 B8 91 [19:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F 47 47 00 AB FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B6 01 00 F4 03 04 00 8D C3 76 66 B6 04 01 00 00 98 AC D1 28 46 8B 0F 82 [19:56:27]CommunicateWithHost err = 0 [19:56:27]CheckOFDResponse [19:56:27]1017 (14) - 77093643461234 [19:56:27]1041 (16) - 0000000000875083 [19:56:27]1040 (4) - 112344 [19:56:27]1012 (4) - 22.06.2024 12:29 [19:56:27]1206 (1) - 0 [19:56:27]OFD Sender: Remove packet 112344 [19:56:27]ProducePacketName [19:56:27]name=ofd_packets/00112344 [19:56:27]NVStorageDeleteData [19:56:27]Write to MH i2c: 01 00 00 26 54 7A [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: 01 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: 01 07 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: 01 07 00 26 54 00 00 00 00 00 E9 0C 76 [19:56:27]RasterBufferAndPrint [19:56:27]line [19:56:27]line [19:56:27]line [19:56:27]line [19:56:27]line [19:56:27]written 0, free lines is 3311 [19:56:27]MH_Cut [19:56:27]Write to MH i2c: D1 01 00 2D 54 01 53 [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: D1 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: D1 01 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: D1 01 00 2D 54 00 52 [19:56:27]Write to MH i2c: 01 00 00 2E 54 82 [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]OFD Sender: No OFD packet to send [19:56:28]*** Cut start [19:56:28]*** Partial cut [19:56:28]*** CUTSNS_PIN = 1 [19:56:28]*** CUTSNS_PIN = 0 [19:56:28]*** Brake cut motor [19:56:28]Read from MH i2c: 01 [19:56:28]MH_I2C_Read... [19:56:28]*** Stop cut motor [19:56:28]*** Cut end [19:56:28]Read from MH i2c: 01 07 00 [19:56:28]MH_I2C_Read... [19:56:28]Read from MH i2c: 01 07 00 2E 54 00 00 00 00 00 FF 0F 97 [19:56:28]process_action close_receipt done [19:56:28]requested_data is exist [19:56:28]produce_requested_data [19:56:28]requested_item fm.sn is exist - process it [19:56:28]wFMCommunicate request_size=4 [19:56:28]MH_SAM_APDU [19:56:28]CAPDU: 80 11 00 00 [19:56:28]Write to MH i2c: E2 08 00 2F 54 80 11 00 00 00 00 00 00 FD [19:56:28]Write i2c OK [19:56:28]MH_I2C_Read... [19:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:28]Read from MH i2c: E2 [19:56:28]MH_I2C_Read... [19:56:28]Read from MH i2c: E2 17 00 [19:56:28]MH_I2C_Read... [19:56:28]Read from MH i2c: E2 17 00 2F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [19:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:56:28]wFMCommunicate OK [19:56:28]requested_item fd.num is exist - process it [19:56:28]SAM_PROTO_GetFieldsCounters [19:56:28]wFMCommunicate request_size=4 [19:56:28]MH_SAM_APDU [19:56:28]CAPDU: 80 13 00 00 [19:56:28]Write to MH i2c: E2 08 00 30 54 80 13 00 00 00 00 00 00 00 [19:56:28]Write i2c OK [19:56:28]MH_I2C_Read... [19:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:29]Read from MH i2c: E2 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: E2 62 00 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: E2 62 00 30 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:29]wFMCommunicate OK [19:56:29]SAM_PROTO_GetFieldsCounters done [19:56:29]requested_item shift.num is exist - process it [19:56:29]requested_item shift.opened is exist - process it [19:56:29]req_shift_opened [19:56:29]FM_GetShiftState [19:56:29]SAM_PROTO_GetShiftState [19:56:29]wFMCommunicate request_size=4 [19:56:29]MH_SAM_APDU [19:56:29]CAPDU: 80 13 01 00 [19:56:29]Write to MH i2c: E2 08 00 31 54 80 13 01 00 00 00 00 00 02 [19:56:29]Write i2c OK [19:56:29]MH_I2C_Read... [19:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:29]Read from MH i2c: E2 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: E2 0E 00 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: E2 0E 00 31 54 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 37 [19:56:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [19:56:29]wFMCommunicate OK [19:56:29]SAM_PROTO_GetShiftState done [19:56:29]FM_GetShiftState done [19:56:29]req_shift_opened done [19:56:29]requested_item shift.open_date is exist - process it [19:56:29]req_shift_open_date [19:56:29]req_shift_open_date done [19:56:29]produce_requested_data done [19:56:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112344,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [19:56:29]process_action_free close_receipt [19:56:29]json_value_free [19:56:29]json_value_free done [19:56:29]process_json_proto returns [19:56:29]Send response to host [19:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112344,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [19:56:29]free response buf [19:56:29]execute_script done [19:56:29]execute_script returns [19:56:29]free content buf [19:56:29]Sock 9.Close socket [19:56:29]Sock 9.Thread stoped [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:51]accept exits with 7 [20:06:51]New connection [20:06:51]New thread 3066813796 created [20:06:51]Thread 3066957156 joined [20:06:51]Waiting for new connection... [20:06:51] Sock 7.Parse request [20:06:51]Sock 7.Check first char [20:06:51]Sock 7.First char is OK [20:06:51]request: POST /json_proto HTTP/1.0 [20:06:51]Method: POST [20:06:51]URL: /json_proto [20:06:51]Method is POST - this is cgi request [20:06:51]url: /json_proto [20:06:51]query_string will be loaded in cgi processing [20:06:51]execute_cgi json_proto POST (null) [20:06:51]execute_cgi path=json_proto method=POST [20:06:51]POST find Content-Length [20:06:51]Host: 172.17.59.68:8080 [20:06:51]Content-Length: 678 [20:06:51]Content-Type: application/json [20:06:51] [20:06:51]POST finish read [20:06:51]Found Content-Length = 678 [20:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321022", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:51]execute_script... [20:06: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)321022", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:51]POST & json_proto [20:06:51]process_json_proto [20:06:51]json parsed OK: [20:06:51]protocol is kg_v1.0 [20:06:51]action value=close_receipt [20:06:51]process_action close_receipt [20:06:51]cmd_close_receipt [20:06:51]MH_GetDate [20:06:51]Write to MH i2c: F0 00 00 32 54 75 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: F0 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: F0 09 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: F0 09 00 32 54 00 FD 2E 77 66 BC EC 60 65 F3 [20:06:51]GetLastDocTimeStamp 1719086218 [20:06:51]current date 1719086845 [20:06:51]FM_GetShiftState [20:06:51]SAM_PROTO_GetShiftState [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 13 01 00 [20:06:51]Write to MH i2c: E2 08 00 33 54 80 13 01 00 00 00 00 00 04 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:52]Read from MH i2c: E2 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: E2 0E 00 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: E2 0E 00 33 54 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 39 [20:06:52]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:06:52]wFMCommunicate OK [20:06:52]SAM_PROTO_GetShiftState done [20:06:52]FM_GetShiftState done [20:06:52]opened in 1719020067 [20:06:52]opened+sec_in_day 1719106467 [20:06:52]quantity*price = 70052 [20:06:52]sum+1 = 70053 [20:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 211 22.06.2024 20:07 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112345 ФПД: 61663444331847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T200725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112345&fm=61663444331847&tin=02508201610067®Number=0000000000092771&sum=70000 [20:06:53]StoreToDocumentArchive [20:06:53]shift 391 fd 112345 [20:06:53]save to /storage/0391/doc_00112345 [20:06:53]save last doc name /storage/0391/doc_00112345 to /storage/kkm_last_doc_name [20:06:53]save OK [20:06:53]Clear old archive folders... [20:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:53]tlvbuf is 012E3390 [20:06:53]SAM_PROTO_ClearQueue [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 09 00 00 [20:06:53]Write to MH i2c: E2 08 00 40 54 80 09 00 00 00 00 00 00 06 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 40 54 00 90 00 08 [20:06:53]RAPDU: 90 00 [20:06:53]wFMCommunicate OK [20:06:53]SAM_PROTO_ClearQueue done [20:06:53]KKMCreateOFDPacket [20:06:53]OFDProtocolAddRootSTLVToBuf [20:06:53]FM_MakeSignedData [20:06:53]FM_MakeSignedData [20:06:53]SAM_PROTO_SignData [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 0D 01 02 [20:06:53]Write to MH i2c: E2 08 00 41 54 80 0D 01 02 00 00 00 00 0E [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 41 54 00 90 00 09 [20:06:53]RAPDU: 90 00 [20:06:53]wFMCommunicate OK [20:06:53]wFMCommunicate request_size=255 [20:06:53]MH_SAM_APDU [20:06: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FD 2E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B6 01 00 35 04 06 00 38 [20:06:53]Write to MH i2c: E2 02 01 42 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FD 2E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B6 01 00 35 04 06 00 38 00 00 FF [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]OFD Sender: No OFD packet to send [20:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 42 54 00 90 00 0A [20:06:53]RAPDU: 90 00 [20:06:53]wFMCommunicate OK [20:06:53]wFMCommunicate request_size=10 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 0D 02 02 05 15 23 B1 ED 47 [20:06:53]Write to MH i2c: E2 0D 00 43 54 80 0D 02 02 05 00 15 23 B1 ED 47 00 00 38 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [20:06:53]RAPDU: 90 00 [20:06:53]wFMCommunicate OK [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 0D 03 02 [20:06:53]Write to MH i2c: E2 08 00 44 54 80 0D 03 02 00 00 00 00 13 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 0B 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 0B 00 44 54 00 66 4A 96 D7 82 44 6D 09 90 00 6D [20:06:53]RAPDU: 66 4A 96 D7 82 44 6D 09 90 00 [20:06:53]wFMCommunicate OK [20:06:53]SAM_PROTO_SignData done [20:06:53]FM_MakeSignedData done [20:06:53]CreateOFDProtocolMessage [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 11 00 00 [20:06:53]Write to MH i2c: E2 08 00 45 54 80 11 00 00 00 00 00 00 13 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 17 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 17 00 45 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [20:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:06:53]wFMCommunicate OK [20:06:53]CreateOFDProtocolMessage done [20:06:53]OFDSenderStorePacket 112345 [20:06:53]StoreOFDPacket docnum=112345 [20:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 18 07 01 6B 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FD 2E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B6 01 00 35 04 06 00 38 15 23 B1 ED 47 66 4A 96 D7 82 44 6D 09 [20:06:53]CheckFolder [20:06:53]dirname=/storage/ofd_packets [20:06:53]CheckFolder done [20:06:53]ProducePacketName [20:06:53]name=ofd_packets/00112345 [20:06:53]NVStorageSaveData ofd_packets/00112345 [20:06:53]File name is /storage/ofd_packets/00112345 [20:06:53]Write 301 bytes [20:06:53]NVStorageSaveData done [20:06:53]OFDSenderStorePacket done [20:06:53]KKMCreateOFDPacket done [20:06:53]NVStorageSaveData kkm_last_timestamp [20:06:53]File name is /storage/kkm_last_timestamp [20:06:53]Write 4 bytes [20:06:53]NVStorageSaveData done [20:06:53]ExternCall_PrintAddStr [20:06:53]wPrintStart [20:06:53]Write to MH i2c: 01 00 00 46 54 9A [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: 01 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: 01 07 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: 01 07 00 46 54 00 00 00 00 00 FF 0F AF [20:06:53]RasterBufferAndPrint [20:06:53]line Счет N : (1)321022 [20:06:53]line ИНН: 02508201610067 [20:06:53]line Контрольно-Кассовый Чек [20:06:53]line ПРОДАЖА [20:06:53]line ТРК (МРК, ГНК) : 11 [20:06:53]line Товар: 2710124130 [20:06:53]line Аи-92-К-5 [20:06:53]line 10.550 * 66.40 [20:06:53]line = 700.52 [20:06:53]line НДС 12% НСП 1% [20:06:53]line > о реализуемом товаре [20:06:53]line ОКРУГЛЕНИЕ: -0.52 [20:06:53]line ИТОГО: 700.00 [20:06:53]line Внесено: 700.00 [20:06:53]line СДАЧА: 0.00 [20:06:53]line НСП 1% : 6.20 [20:06:53]line НДС 12% : 74.39 [20:06:53]line Наличными: 700.00 [20:06:53]line Безнал.: 0.00 [20:06:53]line Место: АЗС № 65 "Партнер Нефть" [20:06:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:06:53]line СНО: Общий режим [20:06:53]line Чек 211 22.06.2024 20:07 [20:06:53]line Смена: 391 ФФД: 1.0 [20:06:53]line ЗНМ: 0300000198 [20:06:53]line РНМ: 0000000000092771 [20:06:53]line Версия ККМ: 001 [20:06:53]line ФМ: 0000000000875083 [20:06:53]line ФД: 112345 [20:06:53]line ФПД: 61663444331847 [20:06:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T200725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112345&fm=61663444331847&tin=02508201610067®Number=0000000000092771&sum=70000 [20:06:53]OFD Sender: Processing packet 112345 [packets to send 38, broken 37] [20:06:53]ProducePacketName [20:06:53]name=ofd_packets/00112345 [20:06:53]OFD Sender: To server: pG, [20:06:53]CommunicateWithHost lk.salyk.kg:30040 [20:06:53]ConnectInit lk.salyk.kg [20:06:53]written 0, free lines is 4095 [20:06:54]Connected sock=10 [20:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 18 07 01 6B 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FD 2E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B6 01 00 35 04 06 00 38 15 23 B1 ED 47 66 4A 96 D7 82 44 6D 09 [20:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 91 FF 47 00 2F 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B6 01 00 F4 03 04 00 00 C6 76 66 B6 04 01 00 00 A1 2E C6 81 2A C0 46 04 [20:06:54]CommunicateWithHost err = 0 [20:06:54]CheckOFDResponse [20:06:54]1017 (14) - 77093643461234 [20:06:54]1041 (16) - 0000000000875083 [20:06:54]1040 (4) - 112345 [20:06:54]1012 (4) - 22.06.2024 12:39 [20:06:54]1206 (1) - 0 [20:06:54]OFD Sender: Remove packet 112345 [20:06:54]ProducePacketName [20:06:54]name=ofd_packets/00112345 [20:06:54]NVStorageDeleteData [20:06:54]Write to MH i2c: 01 00 00 71 54 C5 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 07 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 07 00 71 54 00 00 00 00 00 D7 0C AF [20:06:54]RasterBufferAndPrint [20:06:54]line [20:06:54]line [20:06:54]line [20:06:54]line [20:06:54]line [20:06:54]written 0, free lines is 3290 [20:06:54]MH_Cut [20:06:54]Write to MH i2c: D1 01 00 78 54 01 9E [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: D1 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: D1 01 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: D1 01 00 78 54 00 9D [20:06:54]Write to MH i2c: 01 00 00 79 54 CD [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]OFD Sender: No OFD packet to send [20:06:55]*** Cut start [20:06:55]*** Partial cut [20:06:55]*** CUTSNS_PIN = 1 [20:06:55]*** CUTSNS_PIN = 0 [20:06:55]*** Brake cut motor [20:06:55]Read from MH i2c: 01 [20:06:55]MH_I2C_Read... [20:06:55]*** Stop cut motor [20:06:55]*** Cut end [20:06:55]Read from MH i2c: 01 07 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 07 00 79 54 00 00 00 00 00 FF 0F E2 [20:06:55]process_action close_receipt done [20:06:55]requested_data is exist [20:06:55]produce_requested_data [20:06:55]requested_item fm.sn is exist - process it [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 11 00 00 [20:06:55]Write to MH i2c: E2 08 00 7A 54 80 11 00 00 00 00 00 00 48 [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 17 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 17 00 7A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [20:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:06:55]wFMCommunicate OK [20:06:55]requested_item fd.num is exist - process it [20:06:55]SAM_PROTO_GetFieldsCounters [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 13 00 00 [20:06:55]Write to MH i2c: E2 08 00 7B 54 80 13 00 00 00 00 00 00 4B [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 62 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 62 00 7B 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:06:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:55]wFMCommunicate OK [20:06:55]SAM_PROTO_GetFieldsCounters done [20:06:55]requested_item shift.num is exist - process it [20:06:55]requested_item shift.opened is exist - process it [20:06:55]req_shift_opened [20:06:55]FM_GetShiftState [20:06:55]SAM_PROTO_GetShiftState [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 13 01 00 [20:06:55]Write to MH i2c: E2 08 00 7C 54 80 13 01 00 00 00 00 00 4D [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 0E 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 0E 00 7C 54 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 82 [20:06:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:06:56]wFMCommunicate OK [20:06:56]SAM_PROTO_GetShiftState done [20:06:56]FM_GetShiftState done [20:06:56]req_shift_opened done [20:06:56]requested_item shift.open_date is exist - process it [20:06:56]req_shift_open_date [20:06:56]req_shift_open_date done [20:06:56]produce_requested_data done [20:06:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112345,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:06:56]process_action_free close_receipt [20:06:56]json_value_free [20:06:56]json_value_free done [20:06:56]process_json_proto returns [20:06:56]Send response to host [20:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112345,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:06:56]free response buf [20:06:56]execute_script done [20:06:56]execute_script returns [20:06:56]free content buf [20:06:56]Sock 7.Close socket [20:06:56]Sock 7.Thread stoped [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:25]accept exits with 9 [20:08:25]New connection [20:08:25]New thread 3066957156 created [20:08:25]Thread 3066813796 joined [20:08:25]Waiting for new connection... [20:08:25] Sock 9.Parse request [20:08:25]Sock 9.Check first char [20:08:25]Sock 9.First char is OK [20:08:25]request: POST /json_proto HTTP/1.0 [20:08:25]Method: POST [20:08:25]URL: /json_proto [20:08:25]Method is POST - this is cgi request [20:08:25]url: /json_proto [20:08:25]query_string will be loaded in cgi processing [20:08:25]execute_cgi json_proto POST (null) [20:08:25]execute_cgi path=json_proto method=POST [20:08:25]POST find Content-Length [20:08:25]Host: 172.17.59.68:8080 [20:08:25]Content-Length: 682 [20:08:25]Content-Type: application/json [20:08:25] [20:08:25]POST finish read [20:08:25]Found Content-Length = 682 [20:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321023", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:25]execute_script... [20:08: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)321023", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:25]POST & json_proto [20:08:25]process_json_proto [20:08:25]json parsed OK: [20:08:25]protocol is kg_v1.0 [20:08:25]action value=close_receipt [20:08:25]process_action close_receipt [20:08:25]cmd_close_receipt [20:08:25]MH_GetDate [20:08:25]Write to MH i2c: F0 00 00 7D 54 C0 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: F0 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: F0 09 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: F0 09 00 7D 54 00 5A 2F 77 66 BC EC 60 65 9C [20:08:25]GetLastDocTimeStamp 1719086845 [20:08:25]current date 1719086938 [20:08:25]FM_GetShiftState [20:08:25]SAM_PROTO_GetShiftState [20:08:25]wFMCommunicate request_size=4 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 13 01 00 [20:08:25]Write to MH i2c: E2 08 00 7E 54 80 13 01 00 00 00 00 00 4F [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 0E 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 0E 00 7E 54 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 84 [20:08:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:08:25]wFMCommunicate OK [20:08:25]SAM_PROTO_GetShiftState done [20:08:25]FM_GetShiftState done [20:08:25]opened in 1719020067 [20:08:25]opened+sec_in_day 1719106467 [20:08:25]quantity*price = 100064 [20:08:25]sum+1 = 100066 [20:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 212 22.06.2024 20:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112346 ФПД: 137035378232096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T200858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112346&fm=137035378232096&tin=02508201610067®Number=0000000000092771&sum=100000 [20:08:26]StoreToDocumentArchive [20:08:26]shift 391 fd 112346 [20:08:26]save to /storage/0391/doc_00112346 [20:08:26]save last doc name /storage/0391/doc_00112346 to /storage/kkm_last_doc_name [20:08:26]save OK [20:08:26]Clear old archive folders... [20:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:26]tlvbuf is 0114B650 [20:08:26]SAM_PROTO_ClearQueue [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 09 00 00 [20:08:26]Write to MH i2c: E2 08 00 8B 54 80 09 00 00 00 00 00 00 51 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 8B 54 00 90 00 53 [20:08:26]RAPDU: 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_ClearQueue done [20:08:26]KKMCreateOFDPacket [20:08:26]OFDProtocolAddRootSTLVToBuf [20:08:26]FM_MakeSignedData [20:08:26]FM_MakeSignedData [20:08:26]SAM_PROTO_SignData [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 0D 01 02 [20:08:26]Write to MH i2c: E2 08 00 8C 54 80 0D 01 02 00 00 00 00 59 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 8C 54 00 90 00 54 [20:08:26]RAPDU: 90 00 [20:08:26]wFMCommunicate OK [20:08:26]wFMCommunicate request_size=255 [20:08:26]MH_SAM_APDU [20:08: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 5A 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B6 01 00 35 04 06 00 7C [20:08:26]Write to MH i2c: E2 02 01 8D 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 5A 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B6 01 00 35 04 06 00 7C 00 00 2C [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 8D 54 00 90 00 55 [20:08:26]RAPDU: 90 00 [20:08:26]wFMCommunicate OK [20:08:26]wFMCommunicate request_size=10 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 0D 02 02 05 A2 09 0A 8B 20 [20:08:26]Write to MH i2c: E2 0D 00 8E 54 80 0D 02 02 05 00 A2 09 0A 8B 20 00 00 C6 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 03 00 8E 54 00 90 00 56 [20:08:26]RAPDU: 90 00 [20:08:26]wFMCommunicate OK [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 0D 03 02 [20:08:26]Write to MH i2c: E2 08 00 8F 54 80 0D 03 02 00 00 00 00 5E [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0B 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0B 00 8F 54 00 C5 D7 EF E2 AC 0E 69 BC 90 00 AB [20:08:26]RAPDU: C5 D7 EF E2 AC 0E 69 BC 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_SignData done [20:08:26]FM_MakeSignedData done [20:08:26]CreateOFDProtocolMessage [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 11 00 00 [20:08:26]Write to MH i2c: E2 08 00 90 54 80 11 00 00 00 00 00 00 5E [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 17 00 90 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [20:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:08:26]wFMCommunicate OK [20:08:26]CreateOFDProtocolMessage done [20:08:26]OFDSenderStorePacket 112346 [20:08:26]StoreOFDPacket docnum=112346 [20:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 80 07 01 D0 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 5A 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B6 01 00 35 04 06 00 7C A2 09 0A 8B 20 C5 D7 EF E2 AC 0E 69 BC [20:08:26]CheckFolder [20:08:26]dirname=/storage/ofd_packets [20:08:26]CheckFolder done [20:08:26]ProducePacketName [20:08:26]name=ofd_packets/00112346 [20:08:26]NVStorageSaveData ofd_packets/00112346 [20:08:26]File name is /storage/ofd_packets/00112346 [20:08:26]Write 301 bytes [20:08:26]NVStorageSaveData done [20:08:26]OFDSenderStorePacket done [20:08:26]KKMCreateOFDPacket done [20:08:26]NVStorageSaveData kkm_last_timestamp [20:08:26]File name is /storage/kkm_last_timestamp [20:08:26]Write 4 bytes [20:08:26]NVStorageSaveData done [20:08:26]OFD Sender: Processing packet 112346 [packets to send 38, broken 37] [20:08:26]ProducePacketName [20:08:26]name=ofd_packets/00112346 [20:08:26]OFD Sender: To server: pG, [20:08:26]CommunicateWithHost lk.salyk.kg:30040 [20:08:26]ConnectInit lk.salyk.kg [20:08:26]ExternCall_PrintAddStr [20:08:26]wPrintStart [20:08:26]Write to MH i2c: 01 00 00 91 54 E5 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 91 54 00 00 00 00 00 FF 0F FA [20:08:26]RasterBufferAndPrint [20:08:26]line Счет N : (1)321023 [20:08:26]line ИНН: 02508201610067 [20:08:26]line Контрольно-Кассовый Чек [20:08:26]line ПРОДАЖА [20:08:26]line ТРК (МРК, ГНК) : 11 [20:08:26]line Товар: 2710124130 [20:08:26]line Аи-92-К-5 [20:08:26]line 15.070 * 66.40 [20:08:26]line = 1000.65 [20:08:26]line НДС 12% НСП 1% [20:08:26]line > о реализуемом товаре [20:08:26]line ОКРУГЛЕНИЕ: -0.65 [20:08:26]line ИТОГО: 1000.00 [20:08:26]line Внесено: 1000.00 [20:08:26]line СДАЧА: 0.00 [20:08:26]line НСП 1% : 8.85 [20:08:26]line НДС 12% : 106.26 [20:08:26]line Наличными: 1000.00 [20:08:26]line Безнал.: 0.00 [20:08:26]line Место: АЗС № 65 "Партнер Нефть" [20:08:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:08:26]line СНО: Общий режим [20:08:26]line Чек 212 22.06.2024 20:08 [20:08:26]line Смена: 391 ФФД: 1.0 [20:08:26]line ЗНМ: 0300000198 [20:08:26]line РНМ: 0000000000092771 [20:08:26]line Версия ККМ: 001 [20:08:26]line ФМ: 0000000000875083 [20:08:26]line ФД: 112346 [20:08:26]line ФПД: 137035378232096 [20:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T200858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112346&fm=137035378232096&tin=02508201610067®Number=0000000000092771&sum=100000 [20:08:27]Connected sock=11 [20:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 80 07 01 D0 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 5A 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B6 01 00 35 04 06 00 7C A2 09 0A 8B 20 C5 D7 EF E2 AC 0E 69 BC [20:08:27]written 0, free lines is 4095 [20:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E 52 47 00 8B EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B6 01 00 F4 03 04 00 5D C6 76 66 B6 04 01 00 00 1E BC 8D D6 68 7E C8 37 [20:08:27]CommunicateWithHost err = 0 [20:08:27]CheckOFDResponse [20:08:27]1017 (14) - 77093643461234 [20:08:27]1041 (16) - 0000000000875083 [20:08:27]1040 (4) - 112346 [20:08:27]1012 (4) - 22.06.2024 12:41 [20:08:27]1206 (1) - 0 [20:08:27]OFD Sender: Remove packet 112346 [20:08:27]ProducePacketName [20:08:27]name=ofd_packets/00112346 [20:08:27]NVStorageDeleteData [20:08:27]Write to MH i2c: 01 00 00 BC 54 10 [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: 01 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: 01 07 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: 01 07 00 BC 54 00 00 00 00 00 D6 0C F9 [20:08:27]RasterBufferAndPrint [20:08:27]line [20:08:27]line [20:08:27]line [20:08:27]line [20:08:27]line [20:08:27]written 0, free lines is 3294 [20:08:27]MH_Cut [20:08:27]Write to MH i2c: D1 01 00 C3 54 01 E9 [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: D1 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: D1 01 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: D1 01 00 C3 54 00 E8 [20:08:27]Write to MH i2c: 01 00 00 C4 54 18 [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]OFD Sender: No OFD packet to send [20:08:28]*** Cut start [20:08:28]*** Partial cut [20:08:28]*** CUTSNS_PIN = 1 [20:08:28]*** CUTSNS_PIN = 0 [20:08:28]*** Brake cut motor [20:08:29]Read from MH i2c: 01 [20:08:29]MH_I2C_Read... [20:08:29]*** Stop cut motor [20:08:29]*** Cut end [20:08:29]Read from MH i2c: 01 07 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 07 00 C4 54 00 00 00 00 00 FF 0F 2D [20:08:29]process_action close_receipt done [20:08:29]requested_data is exist [20:08:29]produce_requested_data [20:08:29]requested_item fm.sn is exist - process it [20:08:29]wFMCommunicate request_size=4 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 11 00 00 [20:08:29]Write to MH i2c: E2 08 00 C5 54 80 11 00 00 00 00 00 00 93 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 17 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 17 00 C5 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [20:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:08:29]wFMCommunicate OK [20:08:29]requested_item fd.num is exist - process it [20:08:29]SAM_PROTO_GetFieldsCounters [20:08:29]wFMCommunicate request_size=4 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 13 00 00 [20:08:29]Write to MH i2c: E2 08 00 C6 54 80 13 00 00 00 00 00 00 96 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 62 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 62 00 C6 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [20:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:29]wFMCommunicate OK [20:08:29]SAM_PROTO_GetFieldsCounters done [20:08:29]requested_item shift.num is exist - process it [20:08:29]requested_item shift.opened is exist - process it [20:08:29]req_shift_opened [20:08:29]FM_GetShiftState [20:08:29]SAM_PROTO_GetShiftState [20:08:29]wFMCommunicate request_size=4 [20:08:29]MH_SAM_APDU [20:08:29]CAPDU: 80 13 01 00 [20:08:29]Write to MH i2c: E2 08 00 C7 54 80 13 01 00 00 00 00 00 98 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:29]Read from MH i2c: E2 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 0E 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: E2 0E 00 C7 54 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CD [20:08:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:08:29]wFMCommunicate OK [20:08:29]SAM_PROTO_GetShiftState done [20:08:29]FM_GetShiftState done [20:08:29]req_shift_opened done [20:08:29]requested_item shift.open_date is exist - process it [20:08:29]req_shift_open_date [20:08:29]req_shift_open_date done [20:08:29]produce_requested_data done [20:08:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112346,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:08:29]process_action_free close_receipt [20:08:29]json_value_free [20:08:29]json_value_free done [20:08:29]process_json_proto returns [20:08:29]Send response to host [20:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112346,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:08:29]free response buf [20:08:29]execute_script done [20:08:29]execute_script returns [20:08:29]free content buf [20:08:29]Sock 9.Close socket [20:08:29]Sock 9.Thread stoped [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:05]accept exits with 7 [20:11:05]New connection [20:11:05]New thread 3066813796 created [20:11:05]Thread 3066957156 joined [20:11:05]Waiting for new connection... [20:11:05] Sock 7.Parse request [20:11:05]Sock 7.Check first char [20:11:05]Sock 7.First char is OK [20:11:05]request: POST /json_proto HTTP/1.0 [20:11:05]Method: POST [20:11:05]URL: /json_proto [20:11:05]Method is POST - this is cgi request [20:11:05]url: /json_proto [20:11:05]query_string will be loaded in cgi processing [20:11:05]execute_cgi json_proto POST (null) [20:11:05]execute_cgi path=json_proto method=POST [20:11:05]POST find Content-Length [20:11:05]Host: 172.17.59.68:8080 [20:11:05]Content-Length: 677 [20:11:05]Content-Type: application/json [20:11:05] [20:11:05]POST finish read [20:11:05]Found Content-Length = 677 [20:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321024", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:05]execute_script... [20:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321024", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:05]POST & json_proto [20:11:05]process_json_proto [20:11:05]json parsed OK: [20:11:05]protocol is kg_v1.0 [20:11:05]action value=close_receipt [20:11:05]process_action close_receipt [20:11:05]cmd_close_receipt [20:11:05]MH_GetDate [20:11:05]Write to MH i2c: F0 00 00 C8 54 0B [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: F0 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: F0 09 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: F0 09 00 C8 54 00 FB 2F 77 66 BC EC 60 65 88 [20:11:05]GetLastDocTimeStamp 1719086938 [20:11:05]current date 1719087099 [20:11:05]FM_GetShiftState [20:11:05]SAM_PROTO_GetShiftState [20:11:05]wFMCommunicate request_size=4 [20:11:05]MH_SAM_APDU [20:11:05]CAPDU: 80 13 01 00 [20:11:05]Write to MH i2c: E2 08 00 C9 54 80 13 01 00 00 00 00 00 9A [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:05]Read from MH i2c: E2 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: E2 0E 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: E2 0E 00 C9 54 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CF [20:11:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:11:05]wFMCommunicate OK [20:11:05]SAM_PROTO_GetShiftState done [20:11:05]FM_GetShiftState done [20:11:05]opened in 1719020067 [20:11:05]opened+sec_in_day 1719106467 [20:11:05]quantity*price = 50065 [20:11:05]sum+1 = 50067 [20:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 213 22.06.2024 20:11 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112347 ФПД: 251380119869002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T201139&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112347&fm=251380119869002&tin=02508201610067®Number=0000000000092771&sum=50000 [20:11:06]StoreToDocumentArchive [20:11:06]shift 391 fd 112347 [20:11:06]save to /storage/0391/doc_00112347 [20:11:06]save last doc name /storage/0391/doc_00112347 to /storage/kkm_last_doc_name [20:11:06]save OK [20:11:06]Clear old archive folders... [20:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:06]tlvbuf is 011EBB30 [20:11:06]SAM_PROTO_ClearQueue [20:11:06]wFMCommunicate request_size=4 [20:11:06]MH_SAM_APDU [20:11:06]CAPDU: 80 09 00 00 [20:11:06]Write to MH i2c: E2 08 00 D6 54 80 09 00 00 00 00 00 00 9C [20:11:06]Write i2c OK [20:11:06]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 D6 54 00 90 00 9E [20:11:07]RAPDU: 90 00 [20:11:07]wFMCommunicate OK [20:11:07]SAM_PROTO_ClearQueue done [20:11:07]KKMCreateOFDPacket [20:11:07]OFDProtocolAddRootSTLVToBuf [20:11:07]FM_MakeSignedData [20:11:07]FM_MakeSignedData [20:11:07]SAM_PROTO_SignData [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 0D 01 02 [20:11:07]Write to MH i2c: E2 08 00 D7 54 80 0D 01 02 00 00 00 00 A4 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 D7 54 00 90 00 9F [20:11:07]RAPDU: 90 00 [20:11:07]wFMCommunicate OK [20:11:07]wFMCommunicate request_size=255 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 FB 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B6 01 00 35 04 06 00 E4 [20:11:07]Write to MH i2c: E2 02 01 D8 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 FB 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B6 01 00 35 04 06 00 E4 00 00 32 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 D8 54 00 90 00 A0 [20:11:07]RAPDU: 90 00 [20:11:07]wFMCommunicate OK [20:11:07]wFMCommunicate request_size=10 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 0D 02 02 05 A0 FE BF 96 4A [20:11:07]Write to MH i2c: E2 0D 00 D9 54 80 0D 02 02 05 00 A0 FE BF 96 4A 00 00 EE [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 D9 54 00 90 00 A1 [20:11:07]RAPDU: 90 00 [20:11:07]wFMCommunicate OK [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 0D 03 02 [20:11:07]Write to MH i2c: E2 08 00 DA 54 80 0D 03 02 00 00 00 00 A9 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 0B 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 0B 00 DA 54 00 EA 07 88 50 BE 30 AF A9 90 00 B9 [20:11:07]RAPDU: EA 07 88 50 BE 30 AF A9 90 00 [20:11:07]wFMCommunicate OK [20:11:07]SAM_PROTO_SignData done [20:11:07]FM_MakeSignedData done [20:11:07]CreateOFDProtocolMessage [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 11 00 00 [20:11:07]Write to MH i2c: E2 08 00 DB 54 80 11 00 00 00 00 00 00 A9 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 17 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 17 00 DB 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [20:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:11:07]wFMCommunicate OK [20:11:07]CreateOFDProtocolMessage done [20:11:07]OFDSenderStorePacket 112347 [20:11:07]StoreOFDPacket docnum=112347 [20:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 C9 07 01 0E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 FB 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B6 01 00 35 04 06 00 E4 A0 FE BF 96 4A EA 07 88 50 BE 30 AF A9 [20:11:07]CheckFolder [20:11:07]dirname=/storage/ofd_packets [20:11:07]CheckFolder done [20:11:07]ProducePacketName [20:11:07]name=ofd_packets/00112347 [20:11:07]NVStorageSaveData ofd_packets/00112347 [20:11:07]File name is /storage/ofd_packets/00112347 [20:11:07]Write 301 bytes [20:11:07]NVStorageSaveData done [20:11:07]OFDSenderStorePacket done [20:11:07]KKMCreateOFDPacket done [20:11:07]NVStorageSaveData kkm_last_timestamp [20:11:07]File name is /storage/kkm_last_timestamp [20:11:07]Write 4 bytes [20:11:07]NVStorageSaveData done [20:11:07]ExternCall_PrintAddStr [20:11:07]wPrintStart [20:11:07]Write to MH i2c: 01 00 00 DC 54 30 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: 01 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: 01 07 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: 01 07 00 DC 54 00 00 00 00 00 FF 0F 45 [20:11:07]RasterBufferAndPrint [20:11:07]line Счет N : (1)321024 [20:11:07]line ИНН: 02508201610067 [20:11:07]line Контрольно-Кассовый Чек [20:11:07]line ПРОДАЖА [20:11:07]line ТРК (МРК, ГНК) : 11 [20:11:07]line Товар: 2710124130 [20:11:07]line Аи-92-К-5 [20:11:07]line 7.540 * 66.40 [20:11:07]line = 500.66 [20:11:07]line НДС 12% НСП 1% [20:11:07]line > о реализуемом товаре [20:11:07]line ОКРУГЛЕНИЕ: -0.66 [20:11:07]line ИТОГО: 500.00 [20:11:07]line Внесено: 500.00 [20:11:07]line СДАЧА: 0.00 [20:11:07]line НСП 1% : 4.43 [20:11:07]line НДС 12% : 53.17 [20:11:07]line Наличными: 500.00 [20:11:07]line Безнал.: 0.00 [20:11:07]line Место: АЗС № 65 "Партнер Нефть" [20:11:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:11:07]line СНО: Общий режим [20:11:07]line Чек 213 22.06.2024 20:11 [20:11:07]line Смена: 391 ФФД: 1.0 [20:11:07]line ЗНМ: 0300000198 [20:11:07]line РНМ: 0000000000092771 [20:11:07]line Версия ККМ: 001 [20:11:07]line ФМ: 0000000000875083 [20:11:07]line ФД: 112347 [20:11:07]line ФПД: 251380119869002 [20:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T201139&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112347&fm=251380119869002&tin=02508201610067®Number=0000000000092771&sum=50000 [20:11:07]OFD Sender: Processing packet 112347 [packets to send 38, broken 37] [20:11:07]ProducePacketName [20:11:07]name=ofd_packets/00112347 [20:11:07]OFD Sender: To server: pG, [20:11:07]CommunicateWithHost lk.salyk.kg:30040 [20:11:07]ConnectInit lk.salyk.kg [20:11:07]written 0, free lines is 4095 [20:11:07]Connected sock=9 [20:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 C9 07 01 0E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 FB 2F 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B6 01 00 35 04 06 00 E4 A0 FE BF 96 4A EA 07 88 50 BE 30 AF A9 [20:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 B2 47 00 A0 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 35 30 38 33 10 04 04 00 DB B6 01 00 F4 03 04 00 FD C6 76 66 B6 04 01 00 00 49 D5 13 2C EA 13 5C 10 [20:11:08]CommunicateWithHost err = 0 [20:11:08]CheckOFDResponse [20:11:08]1017 (14) - 77093643461234 [20:11:08]1041 (16) - 0000000000875083 [20:11:08]1040 (4) - 112347 [20:11:08]1012 (4) - 22.06.2024 12:43 [20:11:08]1206 (1) - 0 [20:11:08]OFD Sender: Remove packet 112347 [20:11:08]ProducePacketName [20:11:08]name=ofd_packets/00112347 [20:11:08]NVStorageDeleteData [20:11:08]Write to MH i2c: 01 00 00 07 55 5C [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 07 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 07 00 07 55 00 00 00 00 00 CF 0C 3E [20:11:08]RasterBufferAndPrint [20:11:08]line [20:11:08]line [20:11:08]line [20:11:08]line [20:11:08]line [20:11:08]written 0, free lines is 3288 [20:11:08]MH_Cut [20:11:08]Write to MH i2c: D1 01 00 0E 55 01 35 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: D1 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: D1 01 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: D1 01 00 0E 55 00 34 [20:11:08]Write to MH i2c: 01 00 00 0F 55 64 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]OFD Sender: No OFD packet to send [20:11:09]*** Cut start [20:11:09]*** Partial cut [20:11:09]*** CUTSNS_PIN = 1 [20:11:09]*** CUTSNS_PIN = 0 [20:11:09]*** Brake cut motor [20:11:09]Read from MH i2c: 01 [20:11:09]MH_I2C_Read... [20:11:09]*** Stop cut motor [20:11:09]*** Cut end [20:11:09]Read from MH i2c: 01 07 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: 01 07 00 0F 55 00 00 00 00 00 FF 0F 79 [20:11:09]process_action close_receipt done [20:11:09]requested_data is exist [20:11:09]produce_requested_data [20:11:09]requested_item fm.sn is exist - process it [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 11 00 00 [20:11:09]Write to MH i2c: E2 08 00 10 55 80 11 00 00 00 00 00 00 DF [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 17 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 17 00 10 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [20:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:11:09]wFMCommunicate OK [20:11:09]requested_item fd.num is exist - process it [20:11:09]SAM_PROTO_GetFieldsCounters [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 13 00 00 [20:11:09]Write to MH i2c: E2 08 00 11 55 80 13 00 00 00 00 00 00 E2 [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 62 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 62 00 11 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [20:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:09]wFMCommunicate OK [20:11:09]SAM_PROTO_GetFieldsCounters done [20:11:09]requested_item shift.num is exist - process it [20:11:09]requested_item shift.opened is exist - process it [20:11:09]req_shift_opened [20:11:09]FM_GetShiftState [20:11:09]SAM_PROTO_GetShiftState [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 13 01 00 [20:11:09]Write to MH i2c: E2 08 00 12 55 80 13 01 00 00 00 00 00 E4 [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 0E 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 0E 00 12 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 19 [20:11:09]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:11:09]wFMCommunicate OK [20:11:09]SAM_PROTO_GetShiftState done [20:11:09]FM_GetShiftState done [20:11:09]req_shift_opened done [20:11:09]requested_item shift.open_date is exist - process it [20:11:09]req_shift_open_date [20:11:09]req_shift_open_date done [20:11:09]produce_requested_data done [20:11:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112347,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:11:09]process_action_free close_receipt [20:11:09]json_value_free [20:11:09]json_value_free done [20:11:09]process_json_proto returns [20:11:09]Send response to host [20:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112347,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:11:09]free response buf [20:11:09]execute_script done [20:11:09]execute_script returns [20:11:09]free content buf [20:11:09]Sock 7.Close socket [20:11:09]Sock 7.Thread stoped [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:00]accept exits with 10 [20:18:00]New connection [20:18:00]New thread 3066957156 created [20:18:00]Thread 3066813796 joined [20:18:00]Waiting for new connection... [20:18:00] Sock 10.Parse request [20:18:00]Sock 10.Check first char [20:18:00]Sock 10.First char is OK [20:18:00]request: POST /json_proto HTTP/1.0 [20:18:00]Method: POST [20:18:00]URL: /json_proto [20:18:00]Method is POST - this is cgi request [20:18:00]url: /json_proto [20:18:00]query_string will be loaded in cgi processing [20:18:00]execute_cgi json_proto POST (null) [20:18:00]execute_cgi path=json_proto method=POST [20:18:00]POST find Content-Length [20:18:00]Host: 172.17.59.68:8080 [20:18:00]Content-Length: 677 [20:18:00]Content-Type: application/json [20:18:00] [20:18:00]POST finish read [20:18:00]Found Content-Length = 677 [20:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321025", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:00]execute_script... [20:18: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)321025", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:00]POST & json_proto [20:18:00]process_json_proto [20:18:00]json parsed OK: [20:18:00]protocol is kg_v1.0 [20:18:00]action value=close_receipt [20:18:00]process_action close_receipt [20:18:00]cmd_close_receipt [20:18:00]MH_GetDate [20:18:00]Write to MH i2c: F0 00 00 13 55 57 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: F0 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: F0 09 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: F0 09 00 13 55 00 9A 31 77 66 BC EC 60 65 75 [20:18:00]GetLastDocTimeStamp 1719087099 [20:18:00]current date 1719087514 [20:18:00]FM_GetShiftState [20:18:00]SAM_PROTO_GetShiftState [20:18:00]wFMCommunicate request_size=4 [20:18:00]MH_SAM_APDU [20:18:00]CAPDU: 80 13 01 00 [20:18:00]Write to MH i2c: E2 08 00 14 55 80 13 01 00 00 00 00 00 E6 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:00]Read from MH i2c: E2 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: E2 0E 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: E2 0E 00 14 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1B [20:18:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:18:00]wFMCommunicate OK [20:18:00]SAM_PROTO_GetShiftState done [20:18:00]FM_GetShiftState done [20:18:00]opened in 1719020067 [20:18:00]opened+sec_in_day 1719106467 [20:18:00]quantity*price = 50065 [20:18:00]sum+1 = 50067 [20:18:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 214 22.06.2024 20:18 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112348 ФПД: 137760044627794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T201834&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112348&fm=137760044627794&tin=02508201610067®Number=0000000000092771&sum=50000 [20:18:01]StoreToDocumentArchive [20:18:01]shift 391 fd 112348 [20:18:01]save to /storage/0391/doc_00112348 [20:18:01]save last doc name /storage/0391/doc_00112348 to /storage/kkm_last_doc_name [20:18:01]save OK [20:18:01]Clear old archive folders... [20:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:01]tlvbuf is 012BAA90 [20:18:01]SAM_PROTO_ClearQueue [20:18:01]wFMCommunicate request_size=4 [20:18:01]MH_SAM_APDU [20:18:01]CAPDU: 80 09 00 00 [20:18:01]Write to MH i2c: E2 08 00 21 55 80 09 00 00 00 00 00 00 E8 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:01]Read from MH i2c: E2 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 03 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 03 00 21 55 00 90 00 EA [20:18:01]RAPDU: 90 00 [20:18:01]wFMCommunicate OK [20:18:01]SAM_PROTO_ClearQueue done [20:18:01]KKMCreateOFDPacket [20:18:01]OFDProtocolAddRootSTLVToBuf [20:18:01]FM_MakeSignedData [20:18:01]FM_MakeSignedData [20:18:01]SAM_PROTO_SignData [20:18:01]wFMCommunicate request_size=4 [20:18:01]MH_SAM_APDU [20:18:01]CAPDU: 80 0D 01 02 [20:18:01]Write to MH i2c: E2 08 00 22 55 80 0D 01 02 00 00 00 00 F0 [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:01]Read from MH i2c: E2 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 03 00 [20:18:01]MH_I2C_Read... [20:18:01]Read from MH i2c: E2 03 00 22 55 00 90 00 EB [20:18:01]RAPDU: 90 00 [20:18:01]wFMCommunicate OK [20:18:01]wFMCommunicate request_size=255 [20:18:01]MH_SAM_APDU [20:18: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9A 31 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B6 01 00 35 04 06 00 7D [20:18:01]Write to MH i2c: E2 02 01 23 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9A 31 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B6 01 00 35 04 06 00 7D 00 00 BA [20:18:01]Write i2c OK [20:18:01]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 03 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 03 00 23 55 00 90 00 EC [20:18:02]RAPDU: 90 00 [20:18:02]wFMCommunicate OK [20:18:02]wFMCommunicate request_size=10 [20:18:02]MH_SAM_APDU [20:18:02]CAPDU: 80 0D 02 02 05 4A C2 86 37 52 [20:18:02]Write to MH i2c: E2 0D 00 24 55 80 0D 02 02 05 00 4A C2 86 37 52 00 00 18 [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 03 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 03 00 24 55 00 90 00 ED [20:18:02]RAPDU: 90 00 [20:18:02]wFMCommunicate OK [20:18:02]wFMCommunicate request_size=4 [20:18:02]MH_SAM_APDU [20:18:02]CAPDU: 80 0D 03 02 [20:18:02]Write to MH i2c: E2 08 00 25 55 80 0D 03 02 00 00 00 00 F5 [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 0B 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 0B 00 25 55 00 2F 4D 61 A5 D1 B6 53 8A 90 00 DC [20:18:02]RAPDU: 2F 4D 61 A5 D1 B6 53 8A 90 00 [20:18:02]wFMCommunicate OK [20:18:02]SAM_PROTO_SignData done [20:18:02]FM_MakeSignedData done [20:18:02]CreateOFDProtocolMessage [20:18:02]wFMCommunicate request_size=4 [20:18:02]MH_SAM_APDU [20:18:02]CAPDU: 80 11 00 00 [20:18:02]Write to MH i2c: E2 08 00 26 55 80 11 00 00 00 00 00 00 F5 [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 17 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 17 00 26 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [20:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:18:02]wFMCommunicate OK [20:18:02]CreateOFDProtocolMessage done [20:18:02]OFDSenderStorePacket 112348 [20:18:02]StoreOFDPacket docnum=112348 [20:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB 72 07 01 5B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9A 31 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B6 01 00 35 04 06 00 7D 4A C2 86 37 52 2F 4D 61 A5 D1 B6 53 8A [20:18:02]CheckFolder [20:18:02]dirname=/storage/ofd_packets [20:18:02]CheckFolder done [20:18:02]ProducePacketName [20:18:02]name=ofd_packets/00112348 [20:18:02]NVStorageSaveData ofd_packets/00112348 [20:18:02]File name is /storage/ofd_packets/00112348 [20:18:02]Write 301 bytes [20:18:02]NVStorageSaveData done [20:18:02]OFDSenderStorePacket done [20:18:02]KKMCreateOFDPacket done [20:18:02]NVStorageSaveData kkm_last_timestamp [20:18:02]File name is /storage/kkm_last_timestamp [20:18:02]Write 4 bytes [20:18:02]NVStorageSaveData done [20:18:02]ExternCall_PrintAddStr [20:18:02]wPrintStart [20:18:02]Write to MH i2c: 01 00 00 27 55 7C [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: 01 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: 01 07 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: 01 07 00 27 55 00 00 00 00 00 FF 0F 91 [20:18:02]RasterBufferAndPrint [20:18:02]line Счет N : (1)321025 [20:18:02]line ИНН: 02508201610067 [20:18:02]line Контрольно-Кассовый Чек [20:18:02]line ПРОДАЖА [20:18:02]line ТРК (МРК, ГНК) : 11 [20:18:02]line Товар: 2710124130 [20:18:02]line Аи-92-К-5 [20:18:02]line 7.540 * 66.40 [20:18:02]line = 500.66 [20:18:02]line НДС 12% НСП 1% [20:18:02]line > о реализуемом товаре [20:18:02]line ОКРУГЛЕНИЕ: -0.66 [20:18:02]line ИТОГО: 500.00 [20:18:02]line Внесено: 500.00 [20:18:02]line СДАЧА: 0.00 [20:18:02]line НСП 1% : 4.43 [20:18:02]line НДС 12% : 53.17 [20:18:02]line Наличными: 500.00 [20:18:02]line Безнал.: 0.00 [20:18:02]line Место: АЗС № 65 "Партнер Нефть" [20:18:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:18:02]line СНО: Общий режим [20:18:02]line Чек 214 22.06.2024 20:18 [20:18:02]line Смена: 391 ФФД: 1.0 [20:18:02]line ЗНМ: 0300000198 [20:18:02]line РНМ: 0000000000092771 [20:18:02]line Версия ККМ: 001 [20:18:02]line ФМ: 0000000000875083 [20:18:02]line ФД: 112348 [20:18:02]line ФПД: 137760044627794 [20:18:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T201834&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112348&fm=137760044627794&tin=02508201610067®Number=0000000000092771&sum=50000 [20:18:02]OFD Sender: Processing packet 112348 [packets to send 38, broken 37] [20:18:02]ProducePacketName [20:18:02]name=ofd_packets/00112348 [20:18:02]OFD Sender: To server: pG, [20:18:02]CommunicateWithHost lk.salyk.kg:30040 [20:18:02]ConnectInit lk.salyk.kg [20:18:02]written 0, free lines is 4095 [20:18:02]Connected sock=9 [20:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB 72 07 01 5B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9A 31 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B6 01 00 35 04 06 00 7D 4A C2 86 37 52 2F 4D 61 A5 D1 B6 53 8A [20:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC E5 47 00 12 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B6 01 00 F4 03 04 00 9C C8 76 66 B6 04 01 00 00 DE 3E 83 11 D1 8B 57 10 [20:18:03]CommunicateWithHost err = 0 [20:18:03]CheckOFDResponse [20:18:03]1017 (14) - 77093643461234 [20:18:03]1041 (16) - 0000000000875083 [20:18:03]1040 (4) - 112348 [20:18:03]1012 (4) - 22.06.2024 12:50 [20:18:03]1206 (1) - 0 [20:18:03]OFD Sender: Remove packet 112348 [20:18:03]ProducePacketName [20:18:03]name=ofd_packets/00112348 [20:18:03]NVStorageDeleteData [20:18:03]Write to MH i2c: 01 00 00 52 55 A7 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: 01 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: 01 07 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: 01 07 00 52 55 00 00 00 00 00 CD 0C 87 [20:18:03]RasterBufferAndPrint [20:18:03]line [20:18:03]line [20:18:03]line [20:18:03]line [20:18:03]line [20:18:03]written 0, free lines is 3283 [20:18:03]MH_Cut [20:18:03]Write to MH i2c: D1 01 00 59 55 01 80 [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: D1 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: D1 01 00 [20:18:03]MH_I2C_Read... [20:18:03]Read from MH i2c: D1 01 00 59 55 00 7F [20:18:03]Write to MH i2c: 01 00 00 5A 55 AF [20:18:03]Write i2c OK [20:18:03]MH_I2C_Read... [20:18:03]OFD Sender: No OFD packet to send [20:18:03]*** Cut start [20:18:03]*** Partial cut [20:18:03]*** CUTSNS_PIN = 1 [20:18:04]*** CUTSNS_PIN = 0 [20:18:04]*** Brake cut motor [20:18:04]Read from MH i2c: 01 [20:18:04]MH_I2C_Read... [20:18:04]*** Stop cut motor [20:18:04]*** Cut end [20:18:04]Read from MH i2c: 01 07 00 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: 01 07 00 5A 55 00 00 00 00 00 FF 0F C4 [20:18:04]process_action close_receipt done [20:18:04]requested_data is exist [20:18:04]produce_requested_data [20:18:04]requested_item fm.sn is exist - process it [20:18:04]wFMCommunicate request_size=4 [20:18:04]MH_SAM_APDU [20:18:04]CAPDU: 80 11 00 00 [20:18:04]Write to MH i2c: E2 08 00 5B 55 80 11 00 00 00 00 00 00 2A [20:18:04]Write i2c OK [20:18:04]MH_I2C_Read... [20:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:04]Read from MH i2c: E2 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: E2 17 00 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: E2 17 00 5B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [20:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:18:04]wFMCommunicate OK [20:18:04]requested_item fd.num is exist - process it [20:18:04]SAM_PROTO_GetFieldsCounters [20:18:04]wFMCommunicate request_size=4 [20:18:04]MH_SAM_APDU [20:18:04]CAPDU: 80 13 00 00 [20:18:04]Write to MH i2c: E2 08 00 5C 55 80 13 00 00 00 00 00 00 2D [20:18:04]Write i2c OK [20:18:04]MH_I2C_Read... [20:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:04]Read from MH i2c: E2 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: E2 62 00 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: E2 62 00 5C 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [20:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:04]wFMCommunicate OK [20:18:04]SAM_PROTO_GetFieldsCounters done [20:18:04]requested_item shift.num is exist - process it [20:18:04]requested_item shift.opened is exist - process it [20:18:04]req_shift_opened [20:18:04]FM_GetShiftState [20:18:04]SAM_PROTO_GetShiftState [20:18:04]wFMCommunicate request_size=4 [20:18:04]MH_SAM_APDU [20:18:04]CAPDU: 80 13 01 00 [20:18:04]Write to MH i2c: E2 08 00 5D 55 80 13 01 00 00 00 00 00 2F [20:18:04]Write i2c OK [20:18:04]MH_I2C_Read... [20:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:04]Read from MH i2c: E2 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: E2 0E 00 [20:18:04]MH_I2C_Read... [20:18:04]Read from MH i2c: E2 0E 00 5D 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 64 [20:18:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:18:04]wFMCommunicate OK [20:18:04]SAM_PROTO_GetShiftState done [20:18:04]FM_GetShiftState done [20:18:04]req_shift_opened done [20:18:04]requested_item shift.open_date is exist - process it [20:18:04]req_shift_open_date [20:18:04]req_shift_open_date done [20:18:04]produce_requested_data done [20:18:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112348,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:18:04]process_action_free close_receipt [20:18:04]json_value_free [20:18:04]json_value_free done [20:18:04]process_json_proto returns [20:18:04]Send response to host [20:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112348,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:18:04]free response buf [20:18:04]execute_script done [20:18:04]execute_script returns [20:18:04]free content buf [20:18:04]Sock 10.Close socket [20:18:04]Sock 10.Thread stoped [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:37]accept exits with 7 [20:22:37]New connection [20:22:37]New thread 3066813796 created [20:22:37]Thread 3066957156 joined [20:22:37]Waiting for new connection... [20:22:37] Sock 7.Parse request [20:22:37]Sock 7.Check first char [20:22:37]Sock 7.First char is OK [20:22:37]request: POST /json_proto HTTP/1.0 [20:22:37]Method: POST [20:22:37]URL: /json_proto [20:22:37]Method is POST - this is cgi request [20:22:37]url: /json_proto [20:22:37]query_string will be loaded in cgi processing [20:22:37]execute_cgi json_proto POST (null) [20:22:37]execute_cgi path=json_proto method=POST [20:22:37]POST find Content-Length [20:22:37]Host: 172.17.59.68:8080 [20:22:37]Content-Length: 808 [20:22:37]Content-Type: application/json [20:22:37] [20:22:37]POST finish read [20:22:37]Found Content-Length = 808 [20:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321026", "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.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:37]execute_script... [20:22: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)321026", "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.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:37]POST & json_proto [20:22:37]process_json_proto [20:22:37]json parsed OK: [20:22:37]protocol is kg_v1.0 [20:22:37]action value=close_receipt [20:22:37]process_action close_receipt [20:22:37]cmd_close_receipt [20:22:37]MH_GetDate [20:22:37]Write to MH i2c: F0 00 00 5E 55 A2 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: F0 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: F0 09 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: F0 09 00 5E 55 00 AF 32 77 66 BC EC 60 65 D6 [20:22:37]GetLastDocTimeStamp 1719087514 [20:22:37]current date 1719087791 [20:22:37]FM_GetShiftState [20:22:37]SAM_PROTO_GetShiftState [20:22:37]wFMCommunicate request_size=4 [20:22:37]MH_SAM_APDU [20:22:37]CAPDU: 80 13 01 00 [20:22:37]Write to MH i2c: E2 08 00 5F 55 80 13 01 00 00 00 00 00 31 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:37]Read from MH i2c: E2 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 0E 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 0E 00 5F 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 66 [20:22:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:22:37]wFMCommunicate OK [20:22:37]SAM_PROTO_GetShiftState done [20:22:37]FM_GetShiftState done [20:22:37]opened in 1719020067 [20:22:37]opened+sec_in_day 1719106467 [20:22:37]quantity*price = 150064 [20:22:37]sum+1 = 150065 [20:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 215 22.06.2024 20:23 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112349 ФПД: 121852614298818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T202311&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112349&fm=121852614298818&tin=02508201610067®Number=0000000000092771&sum=150064 [20:22:38]StoreToDocumentArchive [20:22:38]shift 391 fd 112349 [20:22:38]save to /storage/0391/doc_00112349 [20:22:38]save last doc name /storage/0391/doc_00112349 to /storage/kkm_last_doc_name [20:22:38]save OK [20:22:38]Clear old archive folders... [20:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:38]tlvbuf is 012E28A0 [20:22:38]SAM_PROTO_ClearQueue [20:22:38]wFMCommunicate request_size=4 [20:22:38]MH_SAM_APDU [20:22:38]CAPDU: 80 09 00 00 [20:22:38]Write to MH i2c: E2 08 00 6C 55 80 09 00 00 00 00 00 00 33 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 6C 55 00 90 00 35 [20:22:38]RAPDU: 90 00 [20:22:38]wFMCommunicate OK [20:22:38]SAM_PROTO_ClearQueue done [20:22:38]KKMCreateOFDPacket [20:22:38]OFDProtocolAddRootSTLVToBuf [20:22:38]FM_MakeSignedData [20:22:38]FM_MakeSignedData [20:22:38]SAM_PROTO_SignData [20:22:38]wFMCommunicate request_size=4 [20:22:38]MH_SAM_APDU [20:22:38]CAPDU: 80 0D 01 02 [20:22:38]Write to MH i2c: E2 08 00 6D 55 80 0D 01 02 00 00 00 00 3B [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 6D 55 00 90 00 36 [20:22:38]RAPDU: 90 00 [20:22:38]wFMCommunicate OK [20:22:38]wFMCommunicate request_size=255 [20:22:38]MH_SAM_APDU [20:22: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF 32 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B6 01 00 35 04 06 00 6E [20:22:38]Write to MH i2c: E2 02 01 6E 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF 32 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B6 01 00 35 04 06 00 6E 00 00 34 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]OFD Sender: No OFD packet to send [20:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 6E 55 00 90 00 37 [20:22:38]RAPDU: 90 00 [20:22:38]wFMCommunicate OK [20:22:38]wFMCommunicate request_size=10 [20:22:38]MH_SAM_APDU [20:22:38]CAPDU: 80 0D 02 02 05 D3 05 CA 4C C2 [20:22:38]Write to MH i2c: E2 0D 00 6F 55 80 0D 02 02 05 00 D3 05 CA 4C C2 00 00 F8 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 03 00 6F 55 00 90 00 38 [20:22:38]RAPDU: 90 00 [20:22:38]wFMCommunicate OK [20:22:38]wFMCommunicate request_size=4 [20:22:38]MH_SAM_APDU [20:22:38]CAPDU: 80 0D 03 02 [20:22:38]Write to MH i2c: E2 08 00 70 55 80 0D 03 02 00 00 00 00 40 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 0B 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 0B 00 70 55 00 6D FA A9 18 F3 05 36 42 90 00 D9 [20:22:38]RAPDU: 6D FA A9 18 F3 05 36 42 90 00 [20:22:38]wFMCommunicate OK [20:22:38]SAM_PROTO_SignData done [20:22:38]FM_MakeSignedData done [20:22:38]CreateOFDProtocolMessage [20:22:38]wFMCommunicate request_size=4 [20:22:38]MH_SAM_APDU [20:22:38]CAPDU: 80 11 00 00 [20:22:38]Write to MH i2c: E2 08 00 71 55 80 11 00 00 00 00 00 00 40 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 17 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 17 00 71 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [20:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:22:38]wFMCommunicate OK [20:22:38]CreateOFDProtocolMessage done [20:22:38]OFDSenderStorePacket 112349 [20:22:38]StoreOFDPacket docnum=112349 [20:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 81 07 01 44 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF 32 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B6 01 00 35 04 06 00 6E D3 05 CA 4C C2 6D FA A9 18 F3 05 36 42 [20:22:38]CheckFolder [20:22:38]dirname=/storage/ofd_packets [20:22:38]CheckFolder done [20:22:38]ProducePacketName [20:22:38]name=ofd_packets/00112349 [20:22:38]NVStorageSaveData ofd_packets/00112349 [20:22:38]File name is /storage/ofd_packets/00112349 [20:22:38]Write 301 bytes [20:22:38]NVStorageSaveData done [20:22:38]OFDSenderStorePacket done [20:22:38]KKMCreateOFDPacket done [20:22:38]NVStorageSaveData kkm_last_timestamp [20:22:38]File name is /storage/kkm_last_timestamp [20:22:38]Write 4 bytes [20:22:38]NVStorageSaveData done [20:22:38]ExternCall_PrintAddStr [20:22:38]wPrintStart [20:22:38]Write to MH i2c: 01 00 00 72 55 C7 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: 01 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: 01 07 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: 01 07 00 72 55 00 00 00 00 00 FF 0F DC [20:22:38]RasterBufferAndPrint [20:22:38]line Счет N : (1)321026 [20:22:38]line ИНН: 02508201610067 [20:22:38]line Контрольно-Кассовый Чек [20:22:38]line ПРОДАЖА [20:22:38]line ТРК (МРК, ГНК) : 11 [20:22:38]line Товар: 2710124130 [20:22:38]line Аи-92-К-5 [20:22:38]line 22.600 * 66.40 [20:22:38]line = 1500.64 [20:22:38]line НДС 12% НСП 1% [20:22:38]line > о реализуемом товаре [20:22:38]line ИТОГО: 1500.64 [20:22:38]line НСП 1% : 13.28 [20:22:38]line НДС 12% : 159.36 [20:22:38]line Наличными: 0.00 [20:22:38]line Безнал.: 1500.64 [20:22:38]line Место: АЗС № 65 "Партнер Нефть" [20:22:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:22:38]line СНО: Общий режим [20:22:38]line Чек 215 22.06.2024 20:23 [20:22:38]line Смена: 391 ФФД: 1.0 [20:22:38]line ЗНМ: 0300000198 [20:22:38]line РНМ: 0000000000092771 [20:22:38]line Версия ККМ: 001 [20:22:38]line Платежная система: О! деньги [20:22:38]line ФМ: 0000000000875083 [20:22:38]line ФД: 112349 [20:22:38]line ФПД: 121852614298818 [20:22:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T202311&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112349&fm=121852614298818&tin=02508201610067®Number=0000000000092771&sum=150064 [20:22:38]written 0, free lines is 4095 [20:22:38]OFD Sender: Processing packet 112349 [packets to send 38, broken 37] [20:22:38]ProducePacketName [20:22:38]name=ofd_packets/00112349 [20:22:38]OFD Sender: To server: pG, [20:22:38]CommunicateWithHost lk.salyk.kg:30040 [20:22:39]ConnectInit lk.salyk.kg [20:22:39]Connected sock=10 [20:22:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 81 07 01 44 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF 32 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B6 01 00 35 04 06 00 6E D3 05 CA 4C C2 6D FA A9 18 F3 05 36 42 [20:22:39]Write to MH i2c: 01 00 00 9C 55 F1 [20:22:39]Write i2c OK [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: 01 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: 01 07 00 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: 01 07 00 9C 55 00 00 00 00 00 F4 0C F8 [20:22:39]RasterBufferAndPrint [20:22:39]line [20:22:39]line [20:22:39]line [20:22:39]line [20:22:39]line [20:22:39]written 0, free lines is 3323 [20:22:39]MH_Cut [20:22:39]Write to MH i2c: D1 01 00 A3 55 01 CA [20:22:39]Write i2c OK [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: D1 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: D1 01 00 [20:22:39]MH_I2C_Read... [20:22:39]Read from MH i2c: D1 01 00 A3 55 00 C9 [20:22:39]Write to MH i2c: 01 00 00 A4 55 F9 [20:22:39]Write i2c OK [20:22:39]MH_I2C_Read... [20:22:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F A6 47 00 58 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 35 30 38 33 10 04 04 00 DD B6 01 00 F4 03 04 00 B1 C9 76 66 B6 04 01 00 00 52 60 6F 13 2C EB F5 97 [20:22:39]CommunicateWithHost err = 0 [20:22:39]CheckOFDResponse [20:22:39]1017 (14) - 77093643461234 [20:22:39]1041 (16) - 0000000000875083 [20:22:39]1040 (4) - 112349 [20:22:39]1012 (4) - 22.06.2024 12:55 [20:22:39]1206 (1) - 0 [20:22:39]OFD Sender: Remove packet 112349 [20:22:39]ProducePacketName [20:22:39]name=ofd_packets/00112349 [20:22:39]NVStorageDeleteData [20:22:40]OFD Sender: No OFD packet to send [20:22:40]*** Cut start [20:22:40]*** Partial cut [20:22:40]*** CUTSNS_PIN = 1 [20:22:40]*** CUTSNS_PIN = 0 [20:22:40]*** Brake cut motor [20:22:40]Read from MH i2c: 01 [20:22:40]MH_I2C_Read... [20:22:40]*** Stop cut motor [20:22:40]*** Cut end [20:22:40]Read from MH i2c: 01 07 00 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 07 00 A4 55 00 00 00 00 00 FF 0F 0E [20:22:40]process_action close_receipt done [20:22:40]requested_data is exist [20:22:40]produce_requested_data [20:22:40]requested_item fm.sn is exist - process it [20:22:40]wFMCommunicate request_size=4 [20:22:40]MH_SAM_APDU [20:22:40]CAPDU: 80 11 00 00 [20:22:40]Write to MH i2c: E2 08 00 A5 55 80 11 00 00 00 00 00 00 74 [20:22:40]Write i2c OK [20:22:40]MH_I2C_Read... [20:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:40]Read from MH i2c: E2 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: E2 17 00 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: E2 17 00 A5 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [20:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:22:40]wFMCommunicate OK [20:22:40]requested_item fd.num is exist - process it [20:22:40]SAM_PROTO_GetFieldsCounters [20:22:40]wFMCommunicate request_size=4 [20:22:40]MH_SAM_APDU [20:22:40]CAPDU: 80 13 00 00 [20:22:40]Write to MH i2c: E2 08 00 A6 55 80 13 00 00 00 00 00 00 77 [20:22:40]Write i2c OK [20:22:40]MH_I2C_Read... [20:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:40]Read from MH i2c: E2 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: E2 62 00 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: E2 62 00 A6 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [20:22:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:40]wFMCommunicate OK [20:22:40]SAM_PROTO_GetFieldsCounters done [20:22:40]requested_item shift.num is exist - process it [20:22:40]requested_item shift.opened is exist - process it [20:22:40]req_shift_opened [20:22:40]FM_GetShiftState [20:22:40]SAM_PROTO_GetShiftState [20:22:40]wFMCommunicate request_size=4 [20:22:40]MH_SAM_APDU [20:22:40]CAPDU: 80 13 01 00 [20:22:40]Write to MH i2c: E2 08 00 A7 55 80 13 01 00 00 00 00 00 79 [20:22:40]Write i2c OK [20:22:40]MH_I2C_Read... [20:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:41]Read from MH i2c: E2 [20:22:41]MH_I2C_Read... [20:22:41]Read from MH i2c: E2 0E 00 [20:22:41]MH_I2C_Read... [20:22:41]Read from MH i2c: E2 0E 00 A7 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AE [20:22:41]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:22:41]wFMCommunicate OK [20:22:41]SAM_PROTO_GetShiftState done [20:22:41]FM_GetShiftState done [20:22:41]req_shift_opened done [20:22:41]requested_item shift.open_date is exist - process it [20:22:41]req_shift_open_date [20:22:41]req_shift_open_date done [20:22:41]produce_requested_data done [20:22:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112349,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:22:41]process_action_free close_receipt [20:22:41]json_value_free [20:22:41]json_value_free done [20:22:41]process_json_proto returns [20:22:41]Send response to host [20:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112349,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:22:41]free response buf [20:22:41]execute_script done [20:22:41]execute_script returns [20:22:41]free content buf [20:22:41]Sock 7.Close socket [20:22:41]Sock 7.Thread stoped [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:15]accept exits with 9 [20:25:15]New connection [20:25:15]New thread 3066957156 created [20:25:15]Thread 3066813796 joined [20:25:15]Waiting for new connection... [20:25:15] Sock 9.Parse request [20:25:15]Sock 9.Check first char [20:25:15]Sock 9.First char is OK [20:25:15]request: POST /json_proto HTTP/1.0 [20:25:15]Method: POST [20:25:15]URL: /json_proto [20:25:15]Method is POST - this is cgi request [20:25:15]url: /json_proto [20:25:15]query_string will be loaded in cgi processing [20:25:15]execute_cgi json_proto POST (null) [20:25:15]execute_cgi path=json_proto method=POST [20:25:15]POST find Content-Length [20:25:15]Host: 172.17.59.68:8080 [20:25:15]Content-Length: 677 [20:25:15]Content-Type: application/json [20:25:15] [20:25:15]POST finish read [20:25:15]Found Content-Length = 677 [20:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321027", "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.40, "quantity" : 1.510, "sum" : 100.26, "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" ] } } [20:25:15]execute_script... [20:25:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321027", "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.40, "quantity" : 1.510, "sum" : 100.26, "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" ] } } [20:25:15]POST & json_proto [20:25:15]process_json_proto [20:25:15]json parsed OK: [20:25:15]protocol is kg_v1.0 [20:25:15]action value=close_receipt [20:25:15]process_action close_receipt [20:25:15]cmd_close_receipt [20:25:15]MH_GetDate [20:25:15]Write to MH i2c: F0 00 00 A8 55 EC [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: F0 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: F0 09 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: F0 09 00 A8 55 00 4D 33 77 66 BC EC 60 65 BF [20:25:15]GetLastDocTimeStamp 1719087791 [20:25:15]current date 1719087949 [20:25:15]FM_GetShiftState [20:25:15]SAM_PROTO_GetShiftState [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 13 01 00 [20:25:15]Write to MH i2c: E2 08 00 A9 55 80 13 01 00 00 00 00 00 7B [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0E 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0E 00 A9 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B0 [20:25:16]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:25:16]wFMCommunicate OK [20:25:16]SAM_PROTO_GetShiftState done [20:25:16]FM_GetShiftState done [20:25:16]opened in 1719020067 [20:25:16]opened+sec_in_day 1719106467 [20:25:16]quantity*price = 10026 [20:25:16]sum+1 = 10027 [20:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 216 22.06.2024 20:25 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112350 ФПД: 47564222729382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T202549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112350&fm=47564222729382&tin=02508201610067®Number=0000000000092771&sum=10000 [20:25:17]StoreToDocumentArchive [20:25:17]shift 391 fd 112350 [20:25:17]save to /storage/0391/doc_00112350 [20:25:17]save last doc name /storage/0391/doc_00112350 to /storage/kkm_last_doc_name [20:25:17]save OK [20:25:17]Clear old archive folders... [20:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:17]tlvbuf is 012012B0 [20:25:17]SAM_PROTO_ClearQueue [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 09 00 00 [20:25:17]Write to MH i2c: E2 08 00 B6 55 80 09 00 00 00 00 00 00 7D [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 B6 55 00 90 00 7F [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_ClearQueue done [20:25:17]KKMCreateOFDPacket [20:25:17]OFDProtocolAddRootSTLVToBuf [20:25:17]FM_MakeSignedData [20:25:17]FM_MakeSignedData [20:25:17]SAM_PROTO_SignData [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 01 02 [20:25:17]Write to MH i2c: E2 08 00 B7 55 80 0D 01 02 00 00 00 00 85 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 B7 55 00 90 00 80 [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=255 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 29 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 D8 00 00 00 F4 03 04 00 4D 33 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B6 01 00 35 04 06 00 2B [20:25:17]Write to MH i2c: E2 02 01 B8 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 29 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 D8 00 00 00 F4 03 04 00 4D 33 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B6 01 00 35 04 06 00 2B 00 00 45 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 B8 55 00 90 00 81 [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=10 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 02 02 05 42 68 99 8C A6 [20:25:17]Write to MH i2c: E2 0D 00 B9 55 80 0D 02 02 05 00 42 68 99 8C A6 00 00 07 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 B9 55 00 90 00 82 [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 03 02 [20:25:17]Write to MH i2c: E2 08 00 BA 55 80 0D 03 02 00 00 00 00 8A [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 0B 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 0B 00 BA 55 00 C0 2A F9 99 B0 7A 9E CE 90 00 9D [20:25:17]RAPDU: C0 2A F9 99 B0 7A 9E CE 90 00 [20:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_SignData done [20:25:17]FM_MakeSignedData done [20:25:17]CreateOFDProtocolMessage [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 11 00 00 [20:25:17]Write to MH i2c: E2 08 00 BB 55 80 11 00 00 00 00 00 00 8A [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 17 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 17 00 BB 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [20:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:25:17]wFMCommunicate OK [20:25:17]CreateOFDProtocolMessage done [20:25:17]OFDSenderStorePacket 112350 [20:25:17]StoreOFDPacket docnum=112350 [20:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A2 AF 07 01 9E 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 29 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 D8 00 00 00 F4 03 04 00 4D 33 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B6 01 00 35 04 06 00 2B 42 68 99 8C A6 C0 2A F9 99 B0 7A 9E CE [20:25:17]CheckFolder [20:25:17]dirname=/storage/ofd_packets [20:25:17]CheckFolder done [20:25:17]ProducePacketName [20:25:17]name=ofd_packets/00112350 [20:25:17]NVStorageSaveData ofd_packets/00112350 [20:25:17]File name is /storage/ofd_packets/00112350 [20:25:17]Write 301 bytes [20:25:17]NVStorageSaveData done [20:25:17]OFDSenderStorePacket done [20:25:17]KKMCreateOFDPacket done [20:25:17]NVStorageSaveData kkm_last_timestamp [20:25:17]File name is /storage/kkm_last_timestamp [20:25:17]Write 4 bytes [20:25:17]NVStorageSaveData done [20:25:17]ExternCall_PrintAddStr [20:25:17]wPrintStart [20:25:17]Write to MH i2c: 01 00 00 BC 55 11 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 BC 55 00 00 00 00 00 FF 0F 26 [20:25:17]RasterBufferAndPrint [20:25:17]line Счет N : (1)321027 [20:25:17]line ИНН: 02508201610067 [20:25:17]line Контрольно-Кассовый Чек [20:25:17]line ПРОДАЖА [20:25:17]line ТРК (МРК, ГНК) : 11 [20:25:17]line Товар: 2710124130 [20:25:17]line Аи-92-К-5 [20:25:17]line 1.510 * 66.40 [20:25:17]line = 100.26 [20:25:17]line НДС 12% НСП 1% [20:25:17]line > о реализуемом товаре [20:25:17]line ОКРУГЛЕНИЕ: -0.26 [20:25:17]line ИТОГО: 100.00 [20:25:17]line Внесено: 100.00 [20:25:17]line СДАЧА: 0.00 [20:25:17]line НСП 1% : 0.89 [20:25:17]line НДС 12% : 10.65 [20:25:17]line Наличными: 100.00 [20:25:17]line Безнал.: 0.00 [20:25:17]line Место: АЗС № 65 "Партнер Нефть" [20:25:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:25:17]line СНО: Общий режим [20:25:17]line Чек 216 22.06.2024 20:25 [20:25:17]line Смена: 391 ФФД: 1.0 [20:25:17]line ЗНМ: 0300000198 [20:25:17]line РНМ: 0000000000092771 [20:25:17]line Версия ККМ: 001 [20:25:17]line ФМ: 0000000000875083 [20:25:17]line ФД: 112350 [20:25:17]line ФПД: 47564222729382 [20:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T202549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112350&fm=47564222729382&tin=02508201610067®Number=0000000000092771&sum=10000 [20:25:18]OFD Sender: Processing packet 112350 [packets to send 38, broken 37] [20:25:18]ProducePacketName [20:25:18]name=ofd_packets/00112350 [20:25:18]OFD Sender: To server: pG, [20:25:18]CommunicateWithHost lk.salyk.kg:30040 [20:25:18]ConnectInit lk.salyk.kg [20:25:18]written 0, free lines is 4095 [20:25:18]Connected sock=10 [20:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A2 AF 07 01 9E 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 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 29 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 D8 00 00 00 F4 03 04 00 4D 33 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B6 01 00 35 04 06 00 2B 42 68 99 8C A6 C0 2A F9 99 B0 7A 9E CE [20:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 36 54 47 00 29 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B6 01 00 F4 03 04 00 50 CA 76 66 B6 04 01 00 00 10 59 FF 70 C2 3C 78 5A [20:25:18]CommunicateWithHost err = 0 [20:25:18]CheckOFDResponse [20:25:18]1017 (14) - 77093643461234 [20:25:18]1041 (16) - 0000000000875083 [20:25:18]1040 (4) - 112350 [20:25:18]1012 (4) - 22.06.2024 12:57 [20:25:18]1206 (1) - 0 [20:25:18]OFD Sender: Remove packet 112350 [20:25:18]ProducePacketName [20:25:18]name=ofd_packets/00112350 [20:25:18]NVStorageDeleteData [20:25:18]Write to MH i2c: 01 00 00 E7 55 3C [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 07 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 07 00 E7 55 00 00 00 00 00 D6 0C 25 [20:25:18]RasterBufferAndPrint [20:25:18]line [20:25:18]line [20:25:18]line [20:25:18]line [20:25:18]line [20:25:18]written 0, free lines is 3293 [20:25:18]MH_Cut [20:25:18]Write to MH i2c: D1 01 00 EE 55 01 15 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: D1 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: D1 01 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: D1 01 00 EE 55 00 14 [20:25:18]Write to MH i2c: 01 00 00 EF 55 44 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]OFD Sender: No OFD packet to send [20:25:19]*** Cut start [20:25:19]*** Partial cut [20:25:19]*** CUTSNS_PIN = 1 [20:25:19]*** CUTSNS_PIN = 0 [20:25:19]*** Brake cut motor [20:25:19]Read from MH i2c: 01 [20:25:19]MH_I2C_Read... [20:25:19]*** Stop cut motor [20:25:19]*** Cut end [20:25:19]Read from MH i2c: 01 07 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: 01 07 00 EF 55 00 00 00 00 00 FF 0F 59 [20:25:19]process_action close_receipt done [20:25:19]requested_data is exist [20:25:19]produce_requested_data [20:25:19]requested_item fm.sn is exist - process it [20:25:19]wFMCommunicate request_size=4 [20:25:19]MH_SAM_APDU [20:25:19]CAPDU: 80 11 00 00 [20:25:19]Write to MH i2c: E2 08 00 F0 55 80 11 00 00 00 00 00 00 BF [20:25:19]Write i2c OK [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 [20:25:19]MH_I2C_Read... [20:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:19]Read from MH i2c: E2 17 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 17 00 F0 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [20:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:25:19]wFMCommunicate OK [20:25:19]requested_item fd.num is exist - process it [20:25:19]SAM_PROTO_GetFieldsCounters [20:25:19]wFMCommunicate request_size=4 [20:25:19]MH_SAM_APDU [20:25:19]CAPDU: 80 13 00 00 [20:25:19]Write to MH i2c: E2 08 00 F1 55 80 13 00 00 00 00 00 00 C2 [20:25:19]Write i2c OK [20:25:19]MH_I2C_Read... [20:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:20]Read from MH i2c: E2 [20:25:20]MH_I2C_Read... [20:25:20]Read from MH i2c: E2 62 00 [20:25:20]MH_I2C_Read... [20:25:20]Read from MH i2c: E2 62 00 F1 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [20:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:20]wFMCommunicate OK [20:25:20]SAM_PROTO_GetFieldsCounters done [20:25:20]requested_item shift.num is exist - process it [20:25:20]requested_item shift.opened is exist - process it [20:25:20]req_shift_opened [20:25:20]FM_GetShiftState [20:25:20]SAM_PROTO_GetShiftState [20:25:20]wFMCommunicate request_size=4 [20:25:20]MH_SAM_APDU [20:25:20]CAPDU: 80 13 01 00 [20:25:20]Write to MH i2c: E2 08 00 F2 55 80 13 01 00 00 00 00 00 C4 [20:25:20]Write i2c OK [20:25:20]MH_I2C_Read... [20:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:20]Read from MH i2c: E2 [20:25:20]MH_I2C_Read... [20:25:20]Read from MH i2c: E2 0E 00 [20:25:20]MH_I2C_Read... [20:25:20]Read from MH i2c: E2 0E 00 F2 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F9 [20:25:20]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:25:20]wFMCommunicate OK [20:25:20]SAM_PROTO_GetShiftState done [20:25:20]FM_GetShiftState done [20:25:20]req_shift_opened done [20:25:20]requested_item shift.open_date is exist - process it [20:25:20]req_shift_open_date [20:25:20]req_shift_open_date done [20:25:20]produce_requested_data done [20:25:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112350,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:25:20]process_action_free close_receipt [20:25:20]json_value_free [20:25:20]json_value_free done [20:25:20]process_json_proto returns [20:25:20]Send response to host [20:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112350,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:25:20]free response buf [20:25:20]execute_script done [20:25:20]execute_script returns [20:25:20]free content buf [20:25:20]Sock 9.Close socket [20:25:20]Sock 9.Thread stoped [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:36]accept exits with 7 [20:37:36]New connection [20:37:36]New thread 3066813796 created [20:37:36]Thread 3066957156 joined [20:37:36]Waiting for new connection... [20:37:36] Sock 7.Parse request [20:37:36]Sock 7.Check first char [20:37:36]Sock 7.First char is OK [20:37:36]request: POST /json_proto HTTP/1.0 [20:37:36]Method: POST [20:37:36]URL: /json_proto [20:37:36]Method is POST - this is cgi request [20:37:36]url: /json_proto [20:37:36]query_string will be loaded in cgi processing [20:37:36]execute_cgi json_proto POST (null) [20:37:36]execute_cgi path=json_proto method=POST [20:37:36]POST find Content-Length [20:37:36]Host: 172.17.59.68:8080 [20:37:36]Content-Length: 677 [20:37:36]Content-Type: application/json [20:37:36] [20:37:36]POST finish read [20:37:36]Found Content-Length = 677 [20:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321028", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:36]execute_script... [20:37:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321028", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:36]POST & json_proto [20:37:36]process_json_proto [20:37:36]json parsed OK: [20:37:36]protocol is kg_v1.0 [20:37:36]action value=close_receipt [20:37:36]process_action close_receipt [20:37:36]cmd_close_receipt [20:37:36]MH_GetDate [20:37:36]Write to MH i2c: F0 00 00 F3 55 37 [20:37:36]Write i2c OK [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: F0 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: F0 09 00 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: F0 09 00 F3 55 00 32 36 77 66 BC EC 60 65 F2 [20:37:36]GetLastDocTimeStamp 1719087949 [20:37:36]current date 1719088690 [20:37:36]FM_GetShiftState [20:37:36]SAM_PROTO_GetShiftState [20:37:36]wFMCommunicate request_size=4 [20:37:36]MH_SAM_APDU [20:37:36]CAPDU: 80 13 01 00 [20:37:36]Write to MH i2c: E2 08 00 F4 55 80 13 01 00 00 00 00 00 C6 [20:37:36]Write i2c OK [20:37:36]MH_I2C_Read... [20:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:36]Read from MH i2c: E2 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: E2 0E 00 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: E2 0E 00 F4 55 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 FB [20:37:36]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:37:36]wFMCommunicate OK [20:37:36]SAM_PROTO_GetShiftState done [20:37:36]FM_GetShiftState done [20:37:36]opened in 1719020067 [20:37:36]opened+sec_in_day 1719106467 [20:37:36]quantity*price = 60025 [20:37:36]sum+1 = 60027 [20:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 217 22.06.2024 20:38 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112351 ФПД: 104266242858880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T203810&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112351&fm=104266242858880&tin=02508201610067®Number=0000000000092771&sum=60000 [20:37:37]StoreToDocumentArchive [20:37:37]shift 391 fd 112351 [20:37:37]save to /storage/0391/doc_00112351 [20:37:37]save last doc name /storage/0391/doc_00112351 to /storage/kkm_last_doc_name [20:37:37]save OK [20:37:37]Clear old archive folders... [20:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:37]tlvbuf is 011EB8B0 [20:37:37]SAM_PROTO_ClearQueue [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 09 00 00 [20:37:37]Write to MH i2c: E2 08 00 01 56 80 09 00 00 00 00 00 00 C9 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 01 56 00 90 00 CB [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]SAM_PROTO_ClearQueue done [20:37:37]KKMCreateOFDPacket [20:37:37]OFDProtocolAddRootSTLVToBuf [20:37:37]FM_MakeSignedData [20:37:37]FM_MakeSignedData [20:37:37]SAM_PROTO_SignData [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 01 02 [20:37:37]Write to MH i2c: E2 08 00 02 56 80 0D 01 02 00 00 00 00 D1 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 02 56 00 90 00 CC [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]wFMCommunicate request_size=255 [20:37:37]MH_SAM_APDU [20:37: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 32 36 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B6 01 00 35 04 06 00 5E [20:37:37]Write to MH i2c: E2 02 01 03 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 32 36 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B6 01 00 35 04 06 00 5E 00 00 FC [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 03 56 00 90 00 CD [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]wFMCommunicate request_size=10 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 02 02 05 D4 60 5E 1F 80 [20:37:37]Write to MH i2c: E2 0D 00 04 56 80 0D 02 02 05 00 D4 60 5E 1F 80 00 00 0F [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 04 56 00 90 00 CE [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 03 02 [20:37:37]Write to MH i2c: E2 08 00 05 56 80 0D 03 02 00 00 00 00 D6 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 0B 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 0B 00 05 56 00 E4 F8 E5 C7 8D 62 79 6A 90 00 31 [20:37:37]RAPDU: E4 F8 E5 C7 8D 62 79 6A 90 00 [20:37:37]wFMCommunicate OK [20:37:37]SAM_PROTO_SignData done [20:37:37]FM_MakeSignedData done [20:37:37]CreateOFDProtocolMessage [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 11 00 00 [20:37:37]Write to MH i2c: E2 08 00 06 56 80 11 00 00 00 00 00 00 D6 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 17 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 17 00 06 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [20:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:37:37]wFMCommunicate OK [20:37:37]CreateOFDProtocolMessage done [20:37:37]OFDSenderStorePacket 112351 [20:37:37]StoreOFDPacket docnum=112351 [20:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B A8 07 01 96 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 32 36 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B6 01 00 35 04 06 00 5E D4 60 5E 1F 80 E4 F8 E5 C7 8D 62 79 6A [20:37:37]CheckFolder [20:37:37]dirname=/storage/ofd_packets [20:37:37]CheckFolder done [20:37:37]ProducePacketName [20:37:37]name=ofd_packets/00112351 [20:37:37]NVStorageSaveData ofd_packets/00112351 [20:37:37]File name is /storage/ofd_packets/00112351 [20:37:37]Write 301 bytes [20:37:37]NVStorageSaveData done [20:37:37]OFDSenderStorePacket done [20:37:37]KKMCreateOFDPacket done [20:37:37]NVStorageSaveData kkm_last_timestamp [20:37:37]File name is /storage/kkm_last_timestamp [20:37:37]Write 4 bytes [20:37:37]NVStorageSaveData done [20:37:37]OFD Sender: Processing packet 112351 [packets to send 38, broken 37] [20:37:37]ProducePacketName [20:37:37]name=ofd_packets/00112351 [20:37:37]OFD Sender: To server: pG, [20:37:37]CommunicateWithHost lk.salyk.kg:30040 [20:37:37]ConnectInit lk.salyk.kg [20:37:37]ExternCall_PrintAddStr [20:37:37]wPrintStart [20:37:37]Write to MH i2c: 01 00 00 07 56 5D [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: 01 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: 01 07 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: 01 07 00 07 56 00 00 00 00 00 FF 0F 72 [20:37:37]RasterBufferAndPrint [20:37:37]line Счет N : (1)321028 [20:37:37]line ИНН: 02508201610067 [20:37:37]line Контрольно-Кассовый Чек [20:37:37]line ПРОДАЖА [20:37:37]line ТРК (МРК, ГНК) : 11 [20:37:37]line Товар: 2710124130 [20:37:37]line Аи-92-К-5 [20:37:37]line 9.040 * 66.40 [20:37:37]line = 600.26 [20:37:37]line НДС 12% НСП 1% [20:37:37]line > о реализуемом товаре [20:37:37]line ОКРУГЛЕНИЕ: -0.26 [20:37:37]line ИТОГО: 600.00 [20:37:37]line Внесено: 600.00 [20:37:37]line СДАЧА: 0.00 [20:37:37]line НСП 1% : 5.31 [20:37:37]line НДС 12% : 63.74 [20:37:37]line Наличными: 600.00 [20:37:37]line Безнал.: 0.00 [20:37:37]line Место: АЗС № 65 "Партнер Нефть" [20:37:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:37:37]line СНО: Общий режим [20:37:37]line Чек 217 22.06.2024 20:38 [20:37:37]line Смена: 391 ФФД: 1.0 [20:37:37]line ЗНМ: 0300000198 [20:37:37]line РНМ: 0000000000092771 [20:37:37]line Версия ККМ: 001 [20:37:37]line ФМ: 0000000000875083 [20:37:37]line ФД: 112351 [20:37:37]line ФПД: 104266242858880 [20:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T203810&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112351&fm=104266242858880&tin=02508201610067®Number=0000000000092771&sum=60000 [20:37:38]Connected sock=11 [20:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B A8 07 01 96 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 32 36 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B6 01 00 35 04 06 00 5E D4 60 5E 1F 80 E4 F8 E5 C7 8D 62 79 6A [20:37:38]written 0, free lines is 4095 [20:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E2 E3 47 00 9B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B6 01 00 F4 03 04 00 34 CD 76 66 B6 04 01 00 00 9C 92 3F 0A 7D 3B 22 8F [20:37:38]CommunicateWithHost err = 0 [20:37:38]CheckOFDResponse [20:37:38]1017 (14) - 77093643461234 [20:37:38]1041 (16) - 0000000000875083 [20:37:38]1040 (4) - 112351 [20:37:38]1012 (4) - 22.06.2024 13:10 [20:37:38]1206 (1) - 0 [20:37:38]OFD Sender: Remove packet 112351 [20:37:38]ProducePacketName [20:37:38]name=ofd_packets/00112351 [20:37:38]NVStorageDeleteData [20:37:38]Write to MH i2c: 01 00 00 32 56 88 [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: 01 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: 01 07 00 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: 01 07 00 32 56 00 00 00 00 00 D4 0C 6F [20:37:38]RasterBufferAndPrint [20:37:38]line [20:37:38]line [20:37:38]line [20:37:38]line [20:37:38]line [20:37:38]written 0, free lines is 3290 [20:37:38]MH_Cut [20:37:38]Write to MH i2c: D1 01 00 39 56 01 61 [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: D1 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: D1 01 00 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: D1 01 00 39 56 00 60 [20:37:38]Write to MH i2c: 01 00 00 3A 56 90 [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]OFD Sender: No OFD packet to send [20:37:39]*** Cut start [20:37:39]*** Partial cut [20:37:39]*** CUTSNS_PIN = 1 [20:37:39]*** CUTSNS_PIN = 0 [20:37:39]*** Brake cut motor [20:37:39]Read from MH i2c: 01 [20:37:39]MH_I2C_Read... [20:37:39]*** Stop cut motor [20:37:39]*** Cut end [20:37:39]Read from MH i2c: 01 07 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: 01 07 00 3A 56 00 00 00 00 00 FF 0F A5 [20:37:39]process_action close_receipt done [20:37:39]requested_data is exist [20:37:39]produce_requested_data [20:37:39]requested_item fm.sn is exist - process it [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 11 00 00 [20:37:39]Write to MH i2c: E2 08 00 3B 56 80 11 00 00 00 00 00 00 0B [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:40]Read from MH i2c: E2 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 17 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 17 00 3B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [20:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:37:40]wFMCommunicate OK [20:37:40]requested_item fd.num is exist - process it [20:37:40]SAM_PROTO_GetFieldsCounters [20:37:40]wFMCommunicate request_size=4 [20:37:40]MH_SAM_APDU [20:37:40]CAPDU: 80 13 00 00 [20:37:40]Write to MH i2c: E2 08 00 3C 56 80 13 00 00 00 00 00 00 0E [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:40]Read from MH i2c: E2 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 62 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 62 00 3C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [20:37:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:40]wFMCommunicate OK [20:37:40]SAM_PROTO_GetFieldsCounters done [20:37:40]requested_item shift.num is exist - process it [20:37:40]requested_item shift.opened is exist - process it [20:37:40]req_shift_opened [20:37:40]FM_GetShiftState [20:37:40]SAM_PROTO_GetShiftState [20:37:40]wFMCommunicate request_size=4 [20:37:40]MH_SAM_APDU [20:37:40]CAPDU: 80 13 01 00 [20:37:40]Write to MH i2c: E2 08 00 3D 56 80 13 01 00 00 00 00 00 10 [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:40]Read from MH i2c: E2 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 0E 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 0E 00 3D 56 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 45 [20:37:40]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:37:40]wFMCommunicate OK [20:37:40]SAM_PROTO_GetShiftState done [20:37:40]FM_GetShiftState done [20:37:40]req_shift_opened done [20:37:40]requested_item shift.open_date is exist - process it [20:37:40]req_shift_open_date [20:37:40]req_shift_open_date done [20:37:40]produce_requested_data done [20:37:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112351,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:37:40]process_action_free close_receipt [20:37:40]json_value_free [20:37:40]json_value_free done [20:37:40]process_json_proto returns [20:37:40]Send response to host [20:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112351,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:37:40]free response buf [20:37:40]execute_script done [20:37:40]execute_script returns [20:37:40]free content buf [20:37:40]Sock 7.Close socket [20:37:40]Sock 7.Thread stoped [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:57]accept exits with 9 [20:48:57]New connection [20:48:57]New thread 3066957156 created [20:48:57]Thread 3066813796 joined [20:48:57]Waiting for new connection... [20:48:57] Sock 9.Parse request [20:48:57]Sock 9.Check first char [20:48:57]Sock 9.First char is OK [20:48:57]request: POST /json_proto HTTP/1.0 [20:48:57]Method: POST [20:48:57]URL: /json_proto [20:48:57]Method is POST - this is cgi request [20:48:57]url: /json_proto [20:48:57]query_string will be loaded in cgi processing [20:48:57]execute_cgi json_proto POST (null) [20:48:57]execute_cgi path=json_proto method=POST [20:48:57]POST find Content-Length [20:48:57]Host: 172.17.59.68:8080 [20:48:57]Content-Length: 802 [20:48:57]Content-Type: application/json [20:48:57] [20:48:57]POST finish read [20:48:57]Found Content-Length = 802 [20:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:57]execute_script... [20:48: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)321029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:57]POST & json_proto [20:48:57]process_json_proto [20:48:57]json parsed OK: [20:48:57]protocol is kg_v1.0 [20:48:57]action value=close_receipt [20:48:57]process_action close_receipt [20:48:57]cmd_close_receipt [20:48:57]MH_GetDate [20:48:57]Write to MH i2c: F0 00 00 3E 56 83 [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: F0 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: F0 09 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: F0 09 00 3E 56 00 DB 38 77 66 BC EC 60 65 E9 [20:48:57]GetLastDocTimeStamp 1719088690 [20:48:57]current date 1719089371 [20:48:57]FM_GetShiftState [20:48:57]SAM_PROTO_GetShiftState [20:48:57]wFMCommunicate request_size=4 [20:48:57]MH_SAM_APDU [20:48:57]CAPDU: 80 13 01 00 [20:48:57]Write to MH i2c: E2 08 00 3F 56 80 13 01 00 00 00 00 00 12 [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:57]Read from MH i2c: E2 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 0E 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 0E 00 3F 56 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 47 [20:48:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:48:57]wFMCommunicate OK [20:48:57]SAM_PROTO_GetShiftState done [20:48:57]FM_GetShiftState done [20:48:57]opened in 1719020067 [20:48:57]opened+sec_in_day 1719106467 [20:48:57]quantity*price = 20047 [20:48:57]sum+1 = 20049 [20:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.48 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.48 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 218 22.06.2024 20:49 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112352 ФПД: 184260201156952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T204931&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112352&fm=184260201156952&tin=02508201610067®Number=0000000000092771&sum=20048 [20:48:58]StoreToDocumentArchive [20:48:58]shift 391 fd 112352 [20:48:58]save to /storage/0391/doc_00112352 [20:48:58]save last doc name /storage/0391/doc_00112352 to /storage/kkm_last_doc_name [20:48:58]save OK [20:48:58]Clear old archive folders... [20:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:48:58]tlvbuf is 01196650 [20:48:58]SAM_PROTO_ClearQueue [20:48:58]wFMCommunicate request_size=4 [20:48:58]MH_SAM_APDU [20:48:58]CAPDU: 80 09 00 00 [20:48:58]Write to MH i2c: E2 08 00 4C 56 80 09 00 00 00 00 00 00 14 [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:58]Read from MH i2c: E2 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 4C 56 00 90 00 16 [20:48:58]RAPDU: 90 00 [20:48:58]wFMCommunicate OK [20:48:58]SAM_PROTO_ClearQueue done [20:48:58]KKMCreateOFDPacket [20:48:58]OFDProtocolAddRootSTLVToBuf [20:48:58]FM_MakeSignedData [20:48:58]FM_MakeSignedData [20:48:58]SAM_PROTO_SignData [20:48:58]wFMCommunicate request_size=4 [20:48:58]MH_SAM_APDU [20:48:58]CAPDU: 80 0D 01 02 [20:48:58]Write to MH i2c: E2 08 00 4D 56 80 0D 01 02 00 00 00 00 1C [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:58]Read from MH i2c: E2 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 4D 56 00 90 00 17 [20:48:58]RAPDU: 90 00 [20:48:58]wFMCommunicate OK [20:48:58]wFMCommunicate request_size=255 [20:48:58]MH_SAM_APDU [20:48: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 DB 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B6 01 00 35 04 06 00 A7 95 6B D6 [20:48:58]Write to MH i2c: E2 02 01 4E 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 DB 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B6 01 00 35 04 06 00 A7 95 6B D6 00 00 21 [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 [20:48:58]MH_I2C_Read... [20:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:58]Read from MH i2c: E2 03 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 4E 56 00 90 00 18 [20:48:58]RAPDU: 90 00 [20:48:58]wFMCommunicate OK [20:48:58]wFMCommunicate request_size=7 [20:48:58]MH_SAM_APDU [20:48:58]CAPDU: 80 0D 02 02 02 11 58 [20:48:58]Write to MH i2c: E2 0A 00 4F 56 80 0D 02 02 02 00 11 58 00 00 8C [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:58]Read from MH i2c: E2 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 03 00 4F 56 00 90 00 19 [20:48:58]RAPDU: 90 00 [20:48:58]wFMCommunicate OK [20:48:58]wFMCommunicate request_size=4 [20:48:58]MH_SAM_APDU [20:48:58]CAPDU: 80 0D 03 02 [20:48:58]Write to MH i2c: E2 08 00 50 56 80 0D 03 02 00 00 00 00 21 [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:58]Read from MH i2c: E2 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 0B 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 0B 00 50 56 00 10 80 88 C7 C2 26 33 77 90 00 93 [20:48:58]RAPDU: 10 80 88 C7 C2 26 33 77 90 00 [20:48:58]wFMCommunicate OK [20:48:58]SAM_PROTO_SignData done [20:48:58]FM_MakeSignedData done [20:48:58]CreateOFDProtocolMessage [20:48:58]wFMCommunicate request_size=4 [20:48:58]MH_SAM_APDU [20:48:58]CAPDU: 80 11 00 00 [20:48:58]Write to MH i2c: E2 08 00 51 56 80 11 00 00 00 00 00 00 21 [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:58]Read from MH i2c: E2 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 17 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: E2 17 00 51 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [20:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:48:58]wFMCommunicate OK [20:48:58]CreateOFDProtocolMessage done [20:48:58]OFDSenderStorePacket 112352 [20:48:58]StoreOFDPacket docnum=112352 [20:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A6 4C 04 01 54 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 DB 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B6 01 00 35 04 06 00 A7 95 6B D6 11 58 10 80 88 C7 C2 26 33 77 [20:48:58]CheckFolder [20:48:58]dirname=/storage/ofd_packets [20:48:58]CheckFolder done [20:48:58]ProducePacketName [20:48:58]name=ofd_packets/00112352 [20:48:58]NVStorageSaveData ofd_packets/00112352 [20:48:58]File name is /storage/ofd_packets/00112352 [20:48:58]Write 298 bytes [20:48:58]NVStorageSaveData done [20:48:58]OFDSenderStorePacket done [20:48:58]KKMCreateOFDPacket done [20:48:58]NVStorageSaveData kkm_last_timestamp [20:48:58]File name is /storage/kkm_last_timestamp [20:48:58]Write 4 bytes [20:48:58]NVStorageSaveData done [20:48:58]ExternCall_PrintAddStr [20:48:58]wPrintStart [20:48:58]Write to MH i2c: 01 00 00 52 56 A8 [20:48:58]Write i2c OK [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: 01 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: 01 07 00 [20:48:58]MH_I2C_Read... [20:48:58]Read from MH i2c: 01 07 00 52 56 00 00 00 00 00 FF 0F BD [20:48:58]RasterBufferAndPrint [20:48:58]line Счет N : (1)321029 [20:48:58]line ИНН: 02508201610067 [20:48:58]line Контрольно-Кассовый Чек [20:48:58]line ПРОДАЖА [20:48:58]line ТРК (МРК, ГНК) : 22 [20:48:58]line Товар: 2710194210 [20:48:58]line ДТ-К-5 [20:48:58]line 2.750 * 72.90 [20:48:58]line = 200.48 [20:48:58]line НДС 12% НСП 1% [20:48:58]line > о реализуемом товаре [20:48:58]line ИТОГО: 200.48 [20:48:58]line НСП 1% : 1.77 [20:48:58]line НДС 12% : 21.29 [20:48:58]line Наличными: 0.00 [20:48:58]line Безнал.: 200.48 [20:48:58]line Место: АЗС № 65 "Партнер Нефть" [20:48:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:48:58]line СНО: Общий режим [20:48:58]line Чек 218 22.06.2024 20:49 [20:48:58]line Смена: 391 ФФД: 1.0 [20:48:58]line ЗНМ: 0300000198 [20:48:58]line РНМ: 0000000000092771 [20:48:58]line Версия ККМ: 001 [20:48:58]line Платежная система: О! деньги [20:48:58]line ФМ: 0000000000875083 [20:48:58]line ФД: 112352 [20:48:58]line ФПД: 184260201156952 [20:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T204931&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112352&fm=184260201156952&tin=02508201610067®Number=0000000000092771&sum=20048 [20:48:59]OFD Sender: Processing packet 112352 [packets to send 38, broken 37] [20:48:59]ProducePacketName [20:48:59]name=ofd_packets/00112352 [20:48:59]OFD Sender: To server: pG, [20:48:59]CommunicateWithHost lk.salyk.kg:30040 [20:48:59]ConnectInit lk.salyk.kg [20:48:59]written 0, free lines is 4095 [20:48:59]Connected sock=10 [20:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A6 4C 04 01 54 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 DB 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B6 01 00 35 04 06 00 A7 95 6B D6 11 58 10 80 88 C7 C2 26 33 77 [20:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9E 44 47 00 D5 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B6 01 00 F4 03 04 00 DD CF 76 66 B6 04 01 00 00 74 5F EC FD 89 78 C1 14 [20:48:59]CommunicateWithHost err = 0 [20:48:59]CheckOFDResponse [20:48:59]1017 (14) - 77093643461234 [20:48:59]1041 (16) - 0000000000875083 [20:48:59]1040 (4) - 112352 [20:48:59]1012 (4) - 22.06.2024 13:21 [20:48:59]1206 (1) - 0 [20:48:59]OFD Sender: Remove packet 112352 [20:48:59]ProducePacketName [20:48:59]name=ofd_packets/00112352 [20:48:59]NVStorageDeleteData [20:48:59]Write to MH i2c: 01 00 00 7C 56 D2 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 7C 56 00 00 00 00 00 DD 0C C2 [20:48:59]RasterBufferAndPrint [20:48:59]line [20:48:59]line [20:48:59]line [20:48:59]line [20:48:59]line [20:48:59]written 0, free lines is 3300 [20:48:59]MH_Cut [20:48:59]Write to MH i2c: D1 01 00 83 56 01 AB [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: D1 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: D1 01 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: D1 01 00 83 56 00 AA [20:48:59]Write to MH i2c: 01 00 00 84 56 DA [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]OFD Sender: No OFD packet to send [20:49:00]*** Cut start [20:49:00]*** Partial cut [20:49:00]*** CUTSNS_PIN = 1 [20:49:00]*** CUTSNS_PIN = 0 [20:49:00]*** Brake cut motor [20:49:00]Read from MH i2c: 01 [20:49:00]MH_I2C_Read... [20:49:00]*** Stop cut motor [20:49:00]*** Cut end [20:49:00]Read from MH i2c: 01 07 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: 01 07 00 84 56 00 00 00 00 00 FF 0F EF [20:49:00]process_action close_receipt done [20:49:00]requested_data is exist [20:49:00]produce_requested_data [20:49:00]requested_item fm.sn is exist - process it [20:49:00]wFMCommunicate request_size=4 [20:49:00]MH_SAM_APDU [20:49:00]CAPDU: 80 11 00 00 [20:49:00]Write to MH i2c: E2 08 00 85 56 80 11 00 00 00 00 00 00 55 [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:00]Read from MH i2c: E2 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 17 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: E2 17 00 85 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [20:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:00]wFMCommunicate OK [20:49:00]requested_item fd.num is exist - process it [20:49:00]SAM_PROTO_GetFieldsCounters [20:49:00]wFMCommunicate request_size=4 [20:49:00]MH_SAM_APDU [20:49:00]CAPDU: 80 13 00 00 [20:49:00]Write to MH i2c: E2 08 00 86 56 80 13 00 00 00 00 00 00 58 [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 62 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 62 00 86 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [20:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:01]wFMCommunicate OK [20:49:01]SAM_PROTO_GetFieldsCounters done [20:49:01]requested_item shift.num is exist - process it [20:49:01]requested_item shift.opened is exist - process it [20:49:01]req_shift_opened [20:49:01]FM_GetShiftState [20:49:01]SAM_PROTO_GetShiftState [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 13 01 00 [20:49:01]Write to MH i2c: E2 08 00 87 56 80 13 01 00 00 00 00 00 5A [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 0E 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 0E 00 87 56 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8F [20:49:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:49:01]wFMCommunicate OK [20:49:01]SAM_PROTO_GetShiftState done [20:49:01]FM_GetShiftState done [20:49:01]req_shift_opened done [20:49:01]requested_item shift.open_date is exist - process it [20:49:01]req_shift_open_date [20:49:01]req_shift_open_date done [20:49:01]produce_requested_data done [20:49:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112352,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:49:01]process_action_free close_receipt [20:49:01]json_value_free [20:49:01]json_value_free done [20:49:01]process_json_proto returns [20:49:01]Send response to host [20:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112352,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:49:01]free response buf [20:49:01]execute_script done [20:49:01]execute_script returns [20:49:01]free content buf [20:49:01]Sock 9.Close socket [20:49:01]Sock 9.Thread stoped [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]accept exits with 7 [20:49:19]New connection [20:49:19]New thread 3066813796 created [20:49:19]Thread 3066957156 joined [20:49:19]Waiting for new connection... [20:49:19] Sock 7.Parse request [20:49:19]Sock 7.Check first char [20:49:19]Sock 7.First char is OK [20:49:19]request: POST /json_proto HTTP/1.0 [20:49:19]Method: POST [20:49:19]URL: /json_proto [20:49:19]Method is POST - this is cgi request [20:49:19]url: /json_proto [20:49:19]query_string will be loaded in cgi processing [20:49:19]execute_cgi json_proto POST (null) [20:49:19]execute_cgi path=json_proto method=POST [20:49:19]POST find Content-Length [20:49:19]Host: 172.17.59.68:8080 [20:49:19]Content-Length: 677 [20:49:19]Content-Type: application/json [20:49:19] [20:49:19]POST finish read [20:49:19]Found Content-Length = 677 [20:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321030", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:49:19]execute_script... [20:49: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)321030", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:49:19]POST & json_proto [20:49:19]process_json_proto [20:49:19]json parsed OK: [20:49:19]protocol is kg_v1.0 [20:49:19]action value=close_receipt [20:49:19]process_action close_receipt [20:49:19]cmd_close_receipt [20:49:19]MH_GetDate [20:49:19]Write to MH i2c: F0 00 00 88 56 CD [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: F0 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: F0 09 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: F0 09 00 88 56 00 F1 38 77 66 BC EC 60 65 49 [20:49:19]GetLastDocTimeStamp 1719089371 [20:49:19]current date 1719089393 [20:49:19]FM_GetShiftState [20:49:19]SAM_PROTO_GetShiftState [20:49:19]wFMCommunicate request_size=4 [20:49:19]MH_SAM_APDU [20:49:19]CAPDU: 80 13 01 00 [20:49:19]Write to MH i2c: E2 08 00 89 56 80 13 01 00 00 00 00 00 5C [20:49:19]Write i2c OK [20:49:19]MH_I2C_Read... [20:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:19]Read from MH i2c: E2 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 0E 00 [20:49:19]MH_I2C_Read... [20:49:19]Read from MH i2c: E2 0E 00 89 56 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 91 [20:49:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:49:19]wFMCommunicate OK [20:49:19]SAM_PROTO_GetShiftState done [20:49:19]FM_GetShiftState done [20:49:19]opened in 1719020067 [20:49:19]opened+sec_in_day 1719106467 [20:49:19]quantity*price = 30012 [20:49:19]sum+1 = 30014 [20:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 219 22.06.2024 20:49 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112353 ФПД: 232185607102182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T204953&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112353&fm=232185607102182&tin=02508201610067®Number=0000000000092771&sum=30000 [20:49:20]StoreToDocumentArchive [20:49:20]shift 391 fd 112353 [20:49:20]save to /storage/0391/doc_00112353 [20:49:20]save last doc name /storage/0391/doc_00112353 to /storage/kkm_last_doc_name [20:49:20]save OK [20:49:20]Clear old archive folders... [20:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:20]tlvbuf is 0126F3D0 [20:49:20]SAM_PROTO_ClearQueue [20:49:20]wFMCommunicate request_size=4 [20:49:20]MH_SAM_APDU [20:49:20]CAPDU: 80 09 00 00 [20:49:20]Write to MH i2c: E2 08 00 96 56 80 09 00 00 00 00 00 00 5E [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:20]Read from MH i2c: E2 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 96 56 00 90 00 60 [20:49:20]RAPDU: 90 00 [20:49:20]wFMCommunicate OK [20:49:20]SAM_PROTO_ClearQueue done [20:49:20]KKMCreateOFDPacket [20:49:20]OFDProtocolAddRootSTLVToBuf [20:49:20]FM_MakeSignedData [20:49:20]FM_MakeSignedData [20:49:20]SAM_PROTO_SignData [20:49:20]wFMCommunicate request_size=4 [20:49:20]MH_SAM_APDU [20:49:20]CAPDU: 80 0D 01 02 [20:49:20]Write to MH i2c: E2 08 00 97 56 80 0D 01 02 00 00 00 00 66 [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:20]Read from MH i2c: E2 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 97 56 00 90 00 61 [20:49:20]RAPDU: 90 00 [20:49:20]wFMCommunicate OK [20:49:20]wFMCommunicate request_size=255 [20:49:20]MH_SAM_APDU [20:49: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 F1 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B6 01 00 35 04 06 00 D3 [20:49:20]Write to MH i2c: E2 02 01 98 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 F1 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B6 01 00 35 04 06 00 D3 00 00 8C [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:20]Read from MH i2c: E2 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 98 56 00 90 00 62 [20:49:20]RAPDU: 90 00 [20:49:20]wFMCommunicate OK [20:49:20]wFMCommunicate request_size=10 [20:49:20]MH_SAM_APDU [20:49:20]CAPDU: 80 0D 02 02 05 2B EC A2 1E E6 [20:49:20]Write to MH i2c: E2 0D 00 99 56 80 0D 02 02 05 00 2B EC A2 1E E6 00 00 30 [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:20]Read from MH i2c: E2 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 03 00 99 56 00 90 00 63 [20:49:20]RAPDU: 90 00 [20:49:20]wFMCommunicate OK [20:49:20]wFMCommunicate request_size=4 [20:49:20]MH_SAM_APDU [20:49:20]CAPDU: 80 0D 03 02 [20:49:20]Write to MH i2c: E2 08 00 9A 56 80 0D 03 02 00 00 00 00 6B [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:20]Read from MH i2c: E2 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 0B 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 0B 00 9A 56 00 48 F5 3A 6A D6 89 E8 FB 90 00 8F [20:49:20]RAPDU: 48 F5 3A 6A D6 89 E8 FB 90 00 [20:49:20]wFMCommunicate OK [20:49:20]SAM_PROTO_SignData done [20:49:20]FM_MakeSignedData done [20:49:20]CreateOFDProtocolMessage [20:49:20]wFMCommunicate request_size=4 [20:49:20]MH_SAM_APDU [20:49:20]CAPDU: 80 11 00 00 [20:49:20]Write to MH i2c: E2 08 00 9B 56 80 11 00 00 00 00 00 00 6B [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:20]Read from MH i2c: E2 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 17 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: E2 17 00 9B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [20:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:20]wFMCommunicate OK [20:49:20]CreateOFDProtocolMessage done [20:49:20]OFDSenderStorePacket 112353 [20:49:20]StoreOFDPacket docnum=112353 [20:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 28 07 01 86 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 F1 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B6 01 00 35 04 06 00 D3 2B EC A2 1E E6 48 F5 3A 6A D6 89 E8 FB [20:49:20]CheckFolder [20:49:20]dirname=/storage/ofd_packets [20:49:20]CheckFolder done [20:49:20]ProducePacketName [20:49:20]name=ofd_packets/00112353 [20:49:20]NVStorageSaveData ofd_packets/00112353 [20:49:20]File name is /storage/ofd_packets/00112353 [20:49:20]Write 301 bytes [20:49:20]NVStorageSaveData done [20:49:20]OFDSenderStorePacket done [20:49:20]KKMCreateOFDPacket done [20:49:20]NVStorageSaveData kkm_last_timestamp [20:49:20]File name is /storage/kkm_last_timestamp [20:49:20]Write 4 bytes [20:49:20]NVStorageSaveData done [20:49:20]ExternCall_PrintAddStr [20:49:20]wPrintStart [20:49:20]Write to MH i2c: 01 00 00 9C 56 F2 [20:49:20]Write i2c OK [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: 01 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: 01 07 00 [20:49:20]MH_I2C_Read... [20:49:20]Read from MH i2c: 01 07 00 9C 56 00 00 00 00 00 FF 0F 07 [20:49:20]RasterBufferAndPrint [20:49:20]line Счет N : (1)321030 [20:49:20]line ИНН: 02508201610067 [20:49:20]line Контрольно-Кассовый Чек [20:49:20]line ПРОДАЖА [20:49:20]line ТРК (МРК, ГНК) : 11 [20:49:20]line Товар: 2710124130 [20:49:20]line Аи-92-К-5 [20:49:20]line 4.520 * 66.40 [20:49:20]line = 300.13 [20:49:20]line НДС 12% НСП 1% [20:49:20]line > о реализуемом товаре [20:49:20]line ОКРУГЛЕНИЕ: -0.13 [20:49:20]line ИТОГО: 300.00 [20:49:20]line Внесено: 300.00 [20:49:20]line СДАЧА: 0.00 [20:49:20]line НСП 1% : 2.66 [20:49:20]line НДС 12% : 31.87 [20:49:20]line Наличными: 300.00 [20:49:20]line Безнал.: 0.00 [20:49:20]line Место: АЗС № 65 "Партнер Нефть" [20:49:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:49:20]line СНО: Общий режим [20:49:20]line Чек 219 22.06.2024 20:49 [20:49:20]line Смена: 391 ФФД: 1.0 [20:49:20]line ЗНМ: 0300000198 [20:49:20]line РНМ: 0000000000092771 [20:49:20]line Версия ККМ: 001 [20:49:20]line ФМ: 0000000000875083 [20:49:20]line ФД: 112353 [20:49:20]line ФПД: 232185607102182 [20:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T204953&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112353&fm=232185607102182&tin=02508201610067®Number=0000000000092771&sum=30000 [20:49:21]OFD Sender: Processing packet 112353 [packets to send 38, broken 37] [20:49:21]ProducePacketName [20:49:21]name=ofd_packets/00112353 [20:49:21]OFD Sender: To server: pG, [20:49:21]CommunicateWithHost lk.salyk.kg:30040 [20:49:21]ConnectInit lk.salyk.kg [20:49:21]written 0, free lines is 4095 [20:49:21]Connected sock=10 [20:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 28 07 01 86 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 F1 38 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B6 01 00 35 04 06 00 D3 2B EC A2 1E E6 48 F5 3A 6A D6 89 E8 FB [20:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 37 BB 47 00 7E 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B6 01 00 F4 03 04 00 F3 CF 76 66 B6 04 01 00 00 F4 4C 2B EE 20 5B B2 E6 [20:49:21]CommunicateWithHost err = 0 [20:49:21]CheckOFDResponse [20:49:21]1017 (14) - 77093643461234 [20:49:21]1041 (16) - 0000000000875083 [20:49:21]1040 (4) - 112353 [20:49:21]1012 (4) - 22.06.2024 13:21 [20:49:21]1206 (1) - 0 [20:49:21]OFD Sender: Remove packet 112353 [20:49:21]ProducePacketName [20:49:21]name=ofd_packets/00112353 [20:49:21]NVStorageDeleteData [20:49:21]Write to MH i2c: 01 00 00 C7 56 1D [20:49:21]Write i2c OK [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: 01 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: 01 07 00 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: 01 07 00 C7 56 00 00 00 00 00 D4 0C 04 [20:49:21]RasterBufferAndPrint [20:49:21]line [20:49:21]line [20:49:21]line [20:49:21]line [20:49:21]line [20:49:21]written 0, free lines is 3292 [20:49:21]MH_Cut [20:49:21]Write to MH i2c: D1 01 00 CE 56 01 F6 [20:49:21]Write i2c OK [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: D1 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: D1 01 00 [20:49:21]MH_I2C_Read... [20:49:21]Read from MH i2c: D1 01 00 CE 56 00 F5 [20:49:21]Write to MH i2c: 01 00 00 CF 56 25 [20:49:21]Write i2c OK [20:49:21]MH_I2C_Read... [20:49:21]OFD Sender: No OFD packet to send [20:49:22]*** Cut start [20:49:22]*** Partial cut [20:49:22]*** CUTSNS_PIN = 1 [20:49:22]*** CUTSNS_PIN = 0 [20:49:22]*** Brake cut motor [20:49:22]Read from MH i2c: 01 [20:49:22]MH_I2C_Read... [20:49:22]*** Stop cut motor [20:49:22]*** Cut end [20:49:22]Read from MH i2c: 01 07 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 07 00 CF 56 00 00 00 00 00 FF 0F 3A [20:49:22]process_action close_receipt done [20:49:22]requested_data is exist [20:49:22]produce_requested_data [20:49:22]requested_item fm.sn is exist - process it [20:49:22]wFMCommunicate request_size=4 [20:49:22]MH_SAM_APDU [20:49:22]CAPDU: 80 11 00 00 [20:49:22]Write to MH i2c: E2 08 00 D0 56 80 11 00 00 00 00 00 00 A0 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:23]Read from MH i2c: E2 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: E2 17 00 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: E2 17 00 D0 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [20:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:23]wFMCommunicate OK [20:49:23]requested_item fd.num is exist - process it [20:49:23]SAM_PROTO_GetFieldsCounters [20:49:23]wFMCommunicate request_size=4 [20:49:23]MH_SAM_APDU [20:49:23]CAPDU: 80 13 00 00 [20:49:23]Write to MH i2c: E2 08 00 D1 56 80 13 00 00 00 00 00 00 A3 [20:49:23]Write i2c OK [20:49:23]MH_I2C_Read... [20:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:23]Read from MH i2c: E2 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: E2 62 00 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: E2 62 00 D1 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [20:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:23]wFMCommunicate OK [20:49:23]SAM_PROTO_GetFieldsCounters done [20:49:23]requested_item shift.num is exist - process it [20:49:23]requested_item shift.opened is exist - process it [20:49:23]req_shift_opened [20:49:23]FM_GetShiftState [20:49:23]SAM_PROTO_GetShiftState [20:49:23]wFMCommunicate request_size=4 [20:49:23]MH_SAM_APDU [20:49:23]CAPDU: 80 13 01 00 [20:49:23]Write to MH i2c: E2 08 00 D2 56 80 13 01 00 00 00 00 00 A5 [20:49:23]Write i2c OK [20:49:23]MH_I2C_Read... [20:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:23]Read from MH i2c: E2 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: E2 0E 00 [20:49:23]MH_I2C_Read... [20:49:23]Read from MH i2c: E2 0E 00 D2 56 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DA [20:49:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:49:23]wFMCommunicate OK [20:49:23]SAM_PROTO_GetShiftState done [20:49:23]FM_GetShiftState done [20:49:23]req_shift_opened done [20:49:23]requested_item shift.open_date is exist - process it [20:49:23]req_shift_open_date [20:49:23]req_shift_open_date done [20:49:23]produce_requested_data done [20:49:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112353,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:49:23]process_action_free close_receipt [20:49:23]json_value_free [20:49:23]json_value_free done [20:49:23]process_json_proto returns [20:49:23]Send response to host [20:49:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112353,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:49:23]free response buf [20:49:23]execute_script done [20:49:23]execute_script returns [20:49:23]free content buf [20:49:23]Sock 7.Close socket [20:49:23]Sock 7.Thread stoped [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:49]accept exits with 9 [20:55:49]New connection [20:55:49]New thread 3066957156 created [20:55:49]Thread 3066813796 joined [20:55:49]Waiting for new connection... [20:55:49] Sock 9.Parse request [20:55:49]Sock 9.Check first char [20:55:49]Sock 9.First char is OK [20:55:49]request: POST /json_proto HTTP/1.0 [20:55:49]Method: POST [20:55:49]URL: /json_proto [20:55:49]Method is POST - this is cgi request [20:55:49]url: /json_proto [20:55:49]query_string will be loaded in cgi processing [20:55:49]execute_cgi json_proto POST (null) [20:55:49]execute_cgi path=json_proto method=POST [20:55:49]POST find Content-Length [20:55:49]Host: 172.17.59.68:8080 [20:55:49]Content-Length: 682 [20:55:49]Content-Type: application/json [20:55:49] [20:55:49]POST finish read [20:55:49]Found Content-Length = 682 [20:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321031", "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.40, "quantity" : 60.250, "sum" : 4000.60, "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" ] } } [20:55:49]execute_script... [20:55: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)321031", "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.40, "quantity" : 60.250, "sum" : 4000.60, "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" ] } } [20:55:49]POST & json_proto [20:55:49]process_json_proto [20:55:49]json parsed OK: [20:55:49]protocol is kg_v1.0 [20:55:49]action value=close_receipt [20:55:49]process_action close_receipt [20:55:49]cmd_close_receipt [20:55:49]MH_GetDate [20:55:49]Write to MH i2c: F0 00 00 D3 56 18 [20:55:49]Write i2c OK [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: F0 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: F0 09 00 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: F0 09 00 D3 56 00 77 3A 77 66 BC EC 60 65 1C [20:55:49]GetLastDocTimeStamp 1719089393 [20:55:49]current date 1719089783 [20:55:49]FM_GetShiftState [20:55:49]SAM_PROTO_GetShiftState [20:55:49]wFMCommunicate request_size=4 [20:55:49]MH_SAM_APDU [20:55:49]CAPDU: 80 13 01 00 [20:55:49]Write to MH i2c: E2 08 00 D4 56 80 13 01 00 00 00 00 00 A7 [20:55:49]Write i2c OK [20:55:49]MH_I2C_Read... [20:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:49]Read from MH i2c: E2 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: E2 0E 00 [20:55:49]MH_I2C_Read... [20:55:49]Read from MH i2c: E2 0E 00 D4 56 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DC [20:55:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:55:49]wFMCommunicate OK [20:55:49]SAM_PROTO_GetShiftState done [20:55:49]FM_GetShiftState done [20:55:49]opened in 1719020067 [20:55:49]opened+sec_in_day 1719106467 [20:55:49]quantity*price = 400060 [20:55:49]sum+1 = 400061 [20:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 220 22.06.2024 20:56 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112354 ФПД: 139601580824109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T205623&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112354&fm=139601580824109&tin=02508201610067®Number=0000000000092771&sum=400000 [20:55:50]StoreToDocumentArchive [20:55:50]shift 391 fd 112354 [20:55:50]save to /storage/0391/doc_00112354 [20:55:50]save last doc name /storage/0391/doc_00112354 to /storage/kkm_last_doc_name [20:55:50]save OK [20:55:50]Clear old archive folders... [20:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:50]tlvbuf is B6F56230 [20:55:50]SAM_PROTO_ClearQueue [20:55:50]wFMCommunicate request_size=4 [20:55:50]MH_SAM_APDU [20:55:50]CAPDU: 80 09 00 00 [20:55:50]Write to MH i2c: E2 08 00 E1 56 80 09 00 00 00 00 00 00 A9 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:50]Read from MH i2c: E2 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 E1 56 00 90 00 AB [20:55:50]RAPDU: 90 00 [20:55:50]wFMCommunicate OK [20:55:50]SAM_PROTO_ClearQueue done [20:55:50]KKMCreateOFDPacket [20:55:50]OFDProtocolAddRootSTLVToBuf [20:55:50]FM_MakeSignedData [20:55:50]FM_MakeSignedData [20:55:50]SAM_PROTO_SignData [20:55:50]wFMCommunicate request_size=4 [20:55:50]MH_SAM_APDU [20:55:50]CAPDU: 80 0D 01 02 [20:55:50]Write to MH i2c: E2 08 00 E2 56 80 0D 01 02 00 00 00 00 B1 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:50]Read from MH i2c: E2 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 E2 56 00 90 00 AC [20:55:50]RAPDU: 90 00 [20:55:50]wFMCommunicate OK [20:55:50]wFMCommunicate request_size=255 [20:55:50]MH_SAM_APDU [20:55: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 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 DC 00 00 00 F4 03 04 00 77 3A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B6 01 00 35 04 06 00 7E [20:55:50]Write to MH i2c: E2 02 01 E3 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 DC 00 00 00 F4 03 04 00 77 3A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B6 01 00 35 04 06 00 7E 00 00 A8 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:50]Read from MH i2c: E2 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 E3 56 00 90 00 AD [20:55:50]RAPDU: 90 00 [20:55:50]wFMCommunicate OK [20:55:50]wFMCommunicate request_size=10 [20:55:50]MH_SAM_APDU [20:55:50]CAPDU: 80 0D 02 02 05 F7 86 A2 96 2D [20:55:50]Write to MH i2c: E2 0D 00 E4 56 80 0D 02 02 05 00 F7 86 A2 96 2D 00 00 A0 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:50]Read from MH i2c: E2 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 03 00 E4 56 00 90 00 AE [20:55:50]RAPDU: 90 00 [20:55:50]wFMCommunicate OK [20:55:50]wFMCommunicate request_size=4 [20:55:50]MH_SAM_APDU [20:55:50]CAPDU: 80 0D 03 02 [20:55:50]Write to MH i2c: E2 08 00 E5 56 80 0D 03 02 00 00 00 00 B6 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:50]Read from MH i2c: E2 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 0B 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 0B 00 E5 56 00 8D 40 C6 F9 0D 76 7D 47 90 00 8A [20:55:50]RAPDU: 8D 40 C6 F9 0D 76 7D 47 90 00 [20:55:50]wFMCommunicate OK [20:55:50]SAM_PROTO_SignData done [20:55:50]FM_MakeSignedData done [20:55:50]CreateOFDProtocolMessage [20:55:50]wFMCommunicate request_size=4 [20:55:50]MH_SAM_APDU [20:55:50]CAPDU: 80 11 00 00 [20:55:50]Write to MH i2c: E2 08 00 E6 56 80 11 00 00 00 00 00 00 B6 [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:50]Read from MH i2c: E2 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 17 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: E2 17 00 E6 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [20:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:55:50]wFMCommunicate OK [20:55:50]CreateOFDProtocolMessage done [20:55:50]OFDSenderStorePacket 112354 [20:55:50]StoreOFDPacket docnum=112354 [20:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 9A 07 01 6D 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 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 DC 00 00 00 F4 03 04 00 77 3A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B6 01 00 35 04 06 00 7E F7 86 A2 96 2D 8D 40 C6 F9 0D 76 7D 47 [20:55:50]CheckFolder [20:55:50]dirname=/storage/ofd_packets [20:55:50]CheckFolder done [20:55:50]ProducePacketName [20:55:50]name=ofd_packets/00112354 [20:55:50]NVStorageSaveData ofd_packets/00112354 [20:55:50]File name is /storage/ofd_packets/00112354 [20:55:50]Write 301 bytes [20:55:50]NVStorageSaveData done [20:55:50]OFDSenderStorePacket done [20:55:50]KKMCreateOFDPacket done [20:55:50]NVStorageSaveData kkm_last_timestamp [20:55:50]File name is /storage/kkm_last_timestamp [20:55:50]Write 4 bytes [20:55:50]NVStorageSaveData done [20:55:50]ExternCall_PrintAddStr [20:55:50]wPrintStart [20:55:50]Write to MH i2c: 01 00 00 E7 56 3D [20:55:50]Write i2c OK [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: 01 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: 01 07 00 [20:55:50]MH_I2C_Read... [20:55:50]Read from MH i2c: 01 07 00 E7 56 00 00 00 00 00 FF 0F 52 [20:55:50]RasterBufferAndPrint [20:55:50]line Счет N : (1)321031 [20:55:50]line ИНН: 02508201610067 [20:55:50]line Контрольно-Кассовый Чек [20:55:50]line ПРОДАЖА [20:55:50]line ТРК (МРК, ГНК) : 11 [20:55:50]line Товар: 2710124130 [20:55:50]line Аи-92-К-5 [20:55:50]line 60.250 * 66.40 [20:55:50]line = 4000.60 [20:55:50]line НДС 12% НСП 1% [20:55:50]line > о реализуемом товаре [20:55:50]line ОКРУГЛЕНИЕ: -0.60 [20:55:50]line ИТОГО: 4000.00 [20:55:50]line Внесено: 4000.00 [20:55:50]line СДАЧА: 0.00 [20:55:50]line НСП 1% : 35.40 [20:55:50]line НДС 12% : 424.84 [20:55:50]line Наличными: 4000.00 [20:55:50]line Безнал.: 0.00 [20:55:50]line Место: АЗС № 65 "Партнер Нефть" [20:55:50]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:55:50]line СНО: Общий режим [20:55:50]line Чек 220 22.06.2024 20:56 [20:55:50]line Смена: 391 ФФД: 1.0 [20:55:50]line ЗНМ: 0300000198 [20:55:50]line РНМ: 0000000000092771 [20:55:50]line Версия ККМ: 001 [20:55:50]line ФМ: 0000000000875083 [20:55:50]line ФД: 112354 [20:55:50]line ФПД: 139601580824109 [20:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T205623&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112354&fm=139601580824109&tin=02508201610067®Number=0000000000092771&sum=400000 [20:55:51]OFD Sender: Processing packet 112354 [packets to send 38, broken 37] [20:55:51]ProducePacketName [20:55:51]name=ofd_packets/00112354 [20:55:51]OFD Sender: To server: pG, [20:55:51]CommunicateWithHost lk.salyk.kg:30040 [20:55:51]ConnectInit lk.salyk.kg [20:55:51]written 0, free lines is 4095 [20:55:51]Connected sock=10 [20:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 9A 07 01 6D 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 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 DC 00 00 00 F4 03 04 00 77 3A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B6 01 00 35 04 06 00 7E F7 86 A2 96 2D 8D 40 C6 F9 0D 76 7D 47 [20:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 90 47 00 03 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B6 01 00 F4 03 04 00 79 D1 76 66 B6 04 01 00 00 71 12 CA 8F F8 51 C4 28 [20:55:51]CommunicateWithHost err = 0 [20:55:51]CheckOFDResponse [20:55:51]1017 (14) - 77093643461234 [20:55:51]1041 (16) - 0000000000875083 [20:55:51]1040 (4) - 112354 [20:55:51]1012 (4) - 22.06.2024 13:28 [20:55:51]1206 (1) - 0 [20:55:51]OFD Sender: Remove packet 112354 [20:55:51]ProducePacketName [20:55:51]name=ofd_packets/00112354 [20:55:51]NVStorageDeleteData [20:55:51]Write to MH i2c: 01 00 00 12 57 69 [20:55:51]Write i2c OK [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: 01 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: 01 07 00 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: 01 07 00 12 57 00 00 00 00 00 E2 0C 5E [20:55:51]RasterBufferAndPrint [20:55:51]line [20:55:51]line [20:55:51]line [20:55:51]line [20:55:51]line [20:55:51]written 0, free lines is 3304 [20:55:51]MH_Cut [20:55:51]Write to MH i2c: D1 01 00 19 57 01 42 [20:55:51]Write i2c OK [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: D1 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: D1 01 00 [20:55:51]MH_I2C_Read... [20:55:51]Read from MH i2c: D1 01 00 19 57 00 41 [20:55:51]Write to MH i2c: 01 00 00 1A 57 71 [20:55:51]Write i2c OK [20:55:51]MH_I2C_Read... [20:55:52]OFD Sender: No OFD packet to send [20:55:52]*** Cut start [20:55:52]*** Partial cut [20:55:52]*** CUTSNS_PIN = 1 [20:55:52]*** CUTSNS_PIN = 0 [20:55:52]*** Brake cut motor [20:55:53]Read from MH i2c: 01 [20:55:53]MH_I2C_Read... [20:55:53]*** Stop cut motor [20:55:53]*** Cut end [20:55:53]Read from MH i2c: 01 07 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: 01 07 00 1A 57 00 00 00 00 00 FF 0F 86 [20:55:53]process_action close_receipt done [20:55:53]requested_data is exist [20:55:53]produce_requested_data [20:55:53]requested_item fm.sn is exist - process it [20:55:53]wFMCommunicate request_size=4 [20:55:53]MH_SAM_APDU [20:55:53]CAPDU: 80 11 00 00 [20:55:53]Write to MH i2c: E2 08 00 1B 57 80 11 00 00 00 00 00 00 EC [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:53]Read from MH i2c: E2 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 17 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 17 00 1B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [20:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:55:53]wFMCommunicate OK [20:55:53]requested_item fd.num is exist - process it [20:55:53]SAM_PROTO_GetFieldsCounters [20:55:53]wFMCommunicate request_size=4 [20:55:53]MH_SAM_APDU [20:55:53]CAPDU: 80 13 00 00 [20:55:53]Write to MH i2c: E2 08 00 1C 57 80 13 00 00 00 00 00 00 EF [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:53]Read from MH i2c: E2 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 62 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 62 00 1C 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [20:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:53]wFMCommunicate OK [20:55:53]SAM_PROTO_GetFieldsCounters done [20:55:53]requested_item shift.num is exist - process it [20:55:53]requested_item shift.opened is exist - process it [20:55:53]req_shift_opened [20:55:53]FM_GetShiftState [20:55:53]SAM_PROTO_GetShiftState [20:55:53]wFMCommunicate request_size=4 [20:55:53]MH_SAM_APDU [20:55:53]CAPDU: 80 13 01 00 [20:55:53]Write to MH i2c: E2 08 00 1D 57 80 13 01 00 00 00 00 00 F1 [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:53]Read from MH i2c: E2 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 0E 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: E2 0E 00 1D 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 26 [20:55:53]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [20:55:53]wFMCommunicate OK [20:55:53]SAM_PROTO_GetShiftState done [20:55:53]FM_GetShiftState done [20:55:53]req_shift_opened done [20:55:53]requested_item shift.open_date is exist - process it [20:55:53]req_shift_open_date [20:55:53]req_shift_open_date done [20:55:53]produce_requested_data done [20:55:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112354,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [20:55:53]process_action_free close_receipt [20:55:53]json_value_free [20:55:53]json_value_free done [20:55:53]process_json_proto returns [20:55:53]Send response to host [20:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112354,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [20:55:53]free response buf [20:55:53]execute_script done [20:55:53]execute_script returns [20:55:53]free content buf [20:55:53]Sock 9.Close socket [20:55:53]Sock 9.Thread stoped [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:39]accept exits with 7 [21:04:39]New connection [21:04:39]New thread 3066813796 created [21:04:39]Thread 3066957156 joined [21:04:39]Waiting for new connection... [21:04:39] Sock 7.Parse request [21:04:39]Sock 7.Check first char [21:04:39]Sock 7.First char is OK [21:04:39]request: POST /json_proto HTTP/1.0 [21:04:39]Method: POST [21:04:39]URL: /json_proto [21:04:39]Method is POST - this is cgi request [21:04:39]url: /json_proto [21:04:39]query_string will be loaded in cgi processing [21:04:39]execute_cgi json_proto POST (null) [21:04:39]execute_cgi path=json_proto method=POST [21:04:39]POST find Content-Length [21:04:39]Host: 172.17.59.68:8080 [21:04:39]Content-Length: 808 [21:04:39]Content-Type: application/json [21:04:39] [21:04:39]POST finish read [21:04:39]Found Content-Length = 808 [21:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321032", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:39]execute_script... [21:04: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)321032", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:39]POST & json_proto [21:04:39]process_json_proto [21:04:39]json parsed OK: [21:04:39]protocol is kg_v1.0 [21:04:39]action value=close_receipt [21:04:39]process_action close_receipt [21:04:39]cmd_close_receipt [21:04:39]MH_GetDate [21:04:39]Write to MH i2c: F0 00 00 1E 57 64 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: F0 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: F0 09 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: F0 09 00 1E 57 00 8A 3C 77 66 BC EC 60 65 7D [21:04:39]GetLastDocTimeStamp 1719089783 [21:04:39]current date 1719090314 [21:04:39]FM_GetShiftState [21:04:39]SAM_PROTO_GetShiftState [21:04:39]wFMCommunicate request_size=4 [21:04:39]MH_SAM_APDU [21:04:39]CAPDU: 80 13 01 00 [21:04:39]Write to MH i2c: E2 08 00 1F 57 80 13 01 00 00 00 00 00 F3 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:39]Read from MH i2c: E2 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: E2 0E 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: E2 0E 00 1F 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 28 [21:04:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:04:39]wFMCommunicate OK [21:04:39]SAM_PROTO_GetShiftState done [21:04:39]FM_GetShiftState done [21:04:39]opened in 1719020067 [21:04:39]opened+sec_in_day 1719106467 [21:04:39]quantity*price = 200063 [21:04:39]sum+1 = 200064 [21:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 221 22.06.2024 21:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112355 ФПД: 3139923694863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T210514&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112355&fm=3139923694863&tin=02508201610067®Number=0000000000092771&sum=200063 [21:04:40]StoreToDocumentArchive [21:04:40]shift 391 fd 112355 [21:04:40]save to /storage/0391/doc_00112355 [21:04:40]save last doc name /storage/0391/doc_00112355 to /storage/kkm_last_doc_name [21:04:40]save OK [21:04:40]Clear old archive folders... [21:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:40]tlvbuf is 012E2CA0 [21:04:40]SAM_PROTO_ClearQueue [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 09 00 00 [21:04:40]Write to MH i2c: E2 08 00 2C 57 80 09 00 00 00 00 00 00 F5 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2C 57 00 90 00 F7 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]SAM_PROTO_ClearQueue done [21:04:40]KKMCreateOFDPacket [21:04:40]OFDProtocolAddRootSTLVToBuf [21:04:40]FM_MakeSignedData [21:04:40]FM_MakeSignedData [21:04:40]SAM_PROTO_SignData [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 01 02 [21:04:40]Write to MH i2c: E2 08 00 2D 57 80 0D 01 02 00 00 00 00 FD [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2D 57 00 90 00 F8 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=255 [21:04:40]MH_SAM_APDU [21:04: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 3C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B6 01 00 35 04 06 00 02 [21:04:40]Write to MH i2c: E2 02 01 2E 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 3C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B6 01 00 35 04 06 00 02 00 00 C8 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 2E 57 00 90 00 F9 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=10 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 02 02 05 DB 12 09 55 0F [21:04:40]Write to MH i2c: E2 0D 00 2F 57 80 0D 02 02 05 00 DB 12 09 55 0F 00 00 64 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 03 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 03 00 2F 57 00 90 00 FA [21:04:41]RAPDU: 90 00 [21:04:41]wFMCommunicate OK [21:04:41]wFMCommunicate request_size=4 [21:04:41]MH_SAM_APDU [21:04:41]CAPDU: 80 0D 03 02 [21:04:41]Write to MH i2c: E2 08 00 30 57 80 0D 03 02 00 00 00 00 02 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0B 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 0B 00 30 57 00 F1 71 CD E8 14 5D 70 DF 90 00 DA [21:04:41]RAPDU: F1 71 CD E8 14 5D 70 DF 90 00 [21:04:41]wFMCommunicate OK [21:04:41]SAM_PROTO_SignData done [21:04:41]FM_MakeSignedData done [21:04:41]CreateOFDProtocolMessage [21:04:41]wFMCommunicate request_size=4 [21:04:41]MH_SAM_APDU [21:04:41]CAPDU: 80 11 00 00 [21:04:41]Write to MH i2c: E2 08 00 31 57 80 11 00 00 00 00 00 00 02 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:41]Read from MH i2c: E2 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 17 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: E2 17 00 31 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [21:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:04:41]wFMCommunicate OK [21:04:41]CreateOFDProtocolMessage done [21:04:41]OFDSenderStorePacket 112355 [21:04:41]StoreOFDPacket docnum=112355 [21:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E AC 07 01 C3 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 3C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B6 01 00 35 04 06 00 02 DB 12 09 55 0F F1 71 CD E8 14 5D 70 DF [21:04:41]CheckFolder [21:04:41]dirname=/storage/ofd_packets [21:04:41]CheckFolder done [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00112355 [21:04:41]NVStorageSaveData ofd_packets/00112355 [21:04:41]File name is /storage/ofd_packets/00112355 [21:04:41]Write 301 bytes [21:04:41]NVStorageSaveData done [21:04:41]OFDSenderStorePacket done [21:04:41]KKMCreateOFDPacket done [21:04:41]NVStorageSaveData kkm_last_timestamp [21:04:41]File name is /storage/kkm_last_timestamp [21:04:41]Write 4 bytes [21:04:41]NVStorageSaveData done [21:04:41]ExternCall_PrintAddStr [21:04:41]wPrintStart [21:04:41]Write to MH i2c: 01 00 00 32 57 89 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 32 57 00 00 00 00 00 FF 0F 9E [21:04:41]RasterBufferAndPrint [21:04:41]line Счет N : (1)321032 [21:04:41]line ИНН: 02508201610067 [21:04:41]line Контрольно-Кассовый Чек [21:04:41]line ПРОДАЖА [21:04:41]line ТРК (МРК, ГНК) : 11 [21:04:41]line Товар: 2710124130 [21:04:41]line Аи-92-К-5 [21:04:41]line 30.130 * 66.40 [21:04:41]line = 2000.63 [21:04:41]line НДС 12% НСП 1% [21:04:41]line > о реализуемом товаре [21:04:41]line ИТОГО: 2000.63 [21:04:41]line НСП 1% : 17.70 [21:04:41]line НДС 12% : 212.46 [21:04:41]line Наличными: 0.00 [21:04:41]line Безнал.: 2000.63 [21:04:41]line Место: АЗС № 65 "Партнер Нефть" [21:04:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:04:41]line СНО: Общий режим [21:04:41]line Чек 221 22.06.2024 21:05 [21:04:41]line Смена: 391 ФФД: 1.0 [21:04:41]line ЗНМ: 0300000198 [21:04:41]line РНМ: 0000000000092771 [21:04:41]line Версия ККМ: 001 [21:04:41]line Платежная система: О! деньги [21:04:41]line ФМ: 0000000000875083 [21:04:41]line ФД: 112355 [21:04:41]line ФПД: 3139923694863 [21:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T210514&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112355&fm=3139923694863&tin=02508201610067®Number=0000000000092771&sum=200063 [21:04:41]written 0, free lines is 4095 [21:04:41]OFD Sender: Processing packet 112355 [packets to send 38, broken 37] [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00112355 [21:04:41]OFD Sender: To server: pG, [21:04:41]CommunicateWithHost lk.salyk.kg:30040 [21:04:41]ConnectInit lk.salyk.kg [21:04:41]Connected sock=9 [21:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E AC 07 01 C3 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 3C 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B6 01 00 35 04 06 00 02 DB 12 09 55 0F F1 71 CD E8 14 5D 70 DF [21:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2C D4 47 00 27 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B6 01 00 F4 03 04 00 8B D3 76 66 B6 04 01 00 00 C3 B3 7D 59 41 D6 2C 33 [21:04:41]CommunicateWithHost err = 0 [21:04:41]CheckOFDResponse [21:04:41]1017 (14) - 77093643461234 [21:04:41]1041 (16) - 0000000000875083 [21:04:41]1040 (4) - 112355 [21:04:41]1012 (4) - 22.06.2024 13:37 [21:04:41]1206 (1) - 0 [21:04:41]OFD Sender: Remove packet 112355 [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00112355 [21:04:41]NVStorageDeleteData [21:04:41]Write to MH i2c: 01 00 00 5C 57 B3 [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: 01 07 00 5C 57 00 00 00 00 00 E7 0C AD [21:04:41]RasterBufferAndPrint [21:04:41]line [21:04:41]line [21:04:41]line [21:04:41]line [21:04:41]line [21:04:41]written 0, free lines is 3310 [21:04:41]MH_Cut [21:04:41]Write to MH i2c: D1 01 00 63 57 01 8C [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: D1 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: D1 01 00 [21:04:41]MH_I2C_Read... [21:04:41]Read from MH i2c: D1 01 00 63 57 00 8B [21:04:41]Write to MH i2c: 01 00 00 64 57 BB [21:04:41]Write i2c OK [21:04:41]MH_I2C_Read... [21:04:42]OFD Sender: No OFD packet to send [21:04:42]*** Cut start [21:04:42]*** Partial cut [21:04:42]*** CUTSNS_PIN = 1 [21:04:42]*** CUTSNS_PIN = 0 [21:04:42]*** Brake cut motor [21:04:43]Read from MH i2c: 01 [21:04:43]MH_I2C_Read... [21:04:43]*** Stop cut motor [21:04:43]*** Cut end [21:04:43]Read from MH i2c: 01 07 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 07 00 64 57 00 00 00 00 00 FF 0F D0 [21:04:43]process_action close_receipt done [21:04:43]requested_data is exist [21:04:43]produce_requested_data [21:04:43]requested_item fm.sn is exist - process it [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 11 00 00 [21:04:43]Write to MH i2c: E2 08 00 65 57 80 11 00 00 00 00 00 00 36 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 17 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 17 00 65 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [21:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:04:43]wFMCommunicate OK [21:04:43]requested_item fd.num is exist - process it [21:04:43]SAM_PROTO_GetFieldsCounters [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 13 00 00 [21:04:43]Write to MH i2c: E2 08 00 66 57 80 13 00 00 00 00 00 00 39 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 62 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 62 00 66 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [21:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:43]wFMCommunicate OK [21:04:43]SAM_PROTO_GetFieldsCounters done [21:04:43]requested_item shift.num is exist - process it [21:04:43]requested_item shift.opened is exist - process it [21:04:43]req_shift_opened [21:04:43]FM_GetShiftState [21:04:43]SAM_PROTO_GetShiftState [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 13 01 00 [21:04:43]Write to MH i2c: E2 08 00 67 57 80 13 01 00 00 00 00 00 3B [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0E 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0E 00 67 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 70 [21:04:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:04:43]wFMCommunicate OK [21:04:43]SAM_PROTO_GetShiftState done [21:04:43]FM_GetShiftState done [21:04:43]req_shift_opened done [21:04:43]requested_item shift.open_date is exist - process it [21:04:43]req_shift_open_date [21:04:43]req_shift_open_date done [21:04:43]produce_requested_data done [21:04:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112355,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:04:43]process_action_free close_receipt [21:04:43]json_value_free [21:04:43]json_value_free done [21:04:43]process_json_proto returns [21:04:43]Send response to host [21:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112355,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:04:43]free response buf [21:04:43]execute_script done [21:04:43]execute_script returns [21:04:43]free content buf [21:04:43]Sock 7.Close socket [21:04:43]Sock 7.Thread stoped [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:01]accept exits with 10 [21:11:01]New connection [21:11:01]New thread 3066957156 created [21:11:01]Thread 3066813796 joined [21:11:01]Waiting for new connection... [21:11:01] Sock 10.Parse request [21:11:01]Sock 10.Check first char [21:11:01]Sock 10.First char is OK [21:11:01]request: POST /json_proto HTTP/1.0 [21:11:01]Method: POST [21:11:01]URL: /json_proto [21:11:01]Method is POST - this is cgi request [21:11:01]url: /json_proto [21:11:01]query_string will be loaded in cgi processing [21:11:01]execute_cgi json_proto POST (null) [21:11:01]execute_cgi path=json_proto method=POST [21:11:01]POST find Content-Length [21:11:01]Host: 172.17.59.68:8080 [21:11:01]Content-Length: 677 [21:11:01]Content-Type: application/json [21:11:01] [21:11:01]POST finish read [21:11:01]Found Content-Length = 677 [21:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321033", "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.40, "quantity" : 6.780, "sum" : 450.19, "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" ] } } [21:11:01]execute_script... [21:11:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321033", "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.40, "quantity" : 6.780, "sum" : 450.19, "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" ] } } [21:11:01]POST & json_proto [21:11:01]process_json_proto [21:11:01]json parsed OK: [21:11:01]protocol is kg_v1.0 [21:11:01]action value=close_receipt [21:11:01]process_action close_receipt [21:11:01]cmd_close_receipt [21:11:01]MH_GetDate [21:11:01]Write to MH i2c: F0 00 00 68 57 AE [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: F0 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: F0 09 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: F0 09 00 68 57 00 08 3E 77 66 BC EC 60 65 47 [21:11:01]GetLastDocTimeStamp 1719090314 [21:11:01]current date 1719090696 [21:11:01]FM_GetShiftState [21:11:01]SAM_PROTO_GetShiftState [21:11:01]wFMCommunicate request_size=4 [21:11:01]MH_SAM_APDU [21:11:01]CAPDU: 80 13 01 00 [21:11:01]Write to MH i2c: E2 08 00 69 57 80 13 01 00 00 00 00 00 3D [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:01]Read from MH i2c: E2 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 0E 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 0E 00 69 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 72 [21:11:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:11:01]wFMCommunicate OK [21:11:01]SAM_PROTO_GetShiftState done [21:11:01]FM_GetShiftState done [21:11:01]opened in 1719020067 [21:11:01]opened+sec_in_day 1719106467 [21:11:01]quantity*price = 45019 [21:11:01]sum+1 = 45020 [21:11:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 222 22.06.2024 21:11 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112356 ФПД: 162006100692856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T211136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112356&fm=162006100692856&tin=02508201610067®Number=0000000000092771&sum=45000 [21:11:02]StoreToDocumentArchive [21:11:02]shift 391 fd 112356 [21:11:02]save to /storage/0391/doc_00112356 [21:11:02]save last doc name /storage/0391/doc_00112356 to /storage/kkm_last_doc_name [21:11:02]save OK [21:11:02]Clear old archive folders... [21:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:02]tlvbuf is 012C1AF0 [21:11:02]SAM_PROTO_ClearQueue [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 09 00 00 [21:11:02]Write to MH i2c: E2 08 00 76 57 80 09 00 00 00 00 00 00 3F [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 76 57 00 90 00 41 [21:11:02]RAPDU: 90 00 [21:11:02]wFMCommunicate OK [21:11:02]SAM_PROTO_ClearQueue done [21:11:02]KKMCreateOFDPacket [21:11:02]OFDProtocolAddRootSTLVToBuf [21:11:02]FM_MakeSignedData [21:11:02]FM_MakeSignedData [21:11:02]SAM_PROTO_SignData [21:11:02]wFMCommunicate request_size=4 [21:11:02]MH_SAM_APDU [21:11:02]CAPDU: 80 0D 01 02 [21:11:02]Write to MH i2c: E2 08 00 77 57 80 0D 01 02 00 00 00 00 47 [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:02]Read from MH i2c: E2 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 [21:11:02]MH_I2C_Read... [21:11:02]Read from MH i2c: E2 03 00 77 57 00 90 00 42 [21:11:02]RAPDU: 90 00 [21:11:02]wFMCommunicate OK [21:11:02]wFMCommunicate request_size=255 [21:11:02]MH_SAM_APDU [21:11: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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 DE 00 00 00 F4 03 04 00 08 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B6 01 00 35 04 06 00 93 [21:11:02]Write to MH i2c: E2 02 01 78 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 DE 00 00 00 F4 03 04 00 08 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B6 01 00 35 04 06 00 93 00 00 6D [21:11:02]Write i2c OK [21:11:02]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 03 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 03 00 78 57 00 90 00 43 [21:11:03]RAPDU: 90 00 [21:11:03]wFMCommunicate OK [21:11:03]wFMCommunicate request_size=10 [21:11:03]MH_SAM_APDU [21:11:03]CAPDU: 80 0D 02 02 05 57 FC 15 4F 78 [21:11:03]Write to MH i2c: E2 0D 00 79 57 80 0D 02 02 05 00 57 FC 15 4F 78 00 00 83 [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 03 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 03 00 79 57 00 90 00 44 [21:11:03]RAPDU: 90 00 [21:11:03]wFMCommunicate OK [21:11:03]wFMCommunicate request_size=4 [21:11:03]MH_SAM_APDU [21:11:03]CAPDU: 80 0D 03 02 [21:11:03]Write to MH i2c: E2 08 00 7A 57 80 0D 03 02 00 00 00 00 4C [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 0B 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 0B 00 7A 57 00 49 53 25 FF BF 4B 8F 4E 90 00 F4 [21:11:03]RAPDU: 49 53 25 FF BF 4B 8F 4E 90 00 [21:11:03]wFMCommunicate OK [21:11:03]SAM_PROTO_SignData done [21:11:03]FM_MakeSignedData done [21:11:03]CreateOFDProtocolMessage [21:11:03]wFMCommunicate request_size=4 [21:11:03]MH_SAM_APDU [21:11:03]CAPDU: 80 11 00 00 [21:11:03]Write to MH i2c: E2 08 00 7B 57 80 11 00 00 00 00 00 00 4C [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:03]Read from MH i2c: E2 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 17 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: E2 17 00 7B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [21:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:11:03]wFMCommunicate OK [21:11:03]CreateOFDProtocolMessage done [21:11:03]OFDSenderStorePacket 112356 [21:11:03]StoreOFDPacket docnum=112356 [21:11:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 69 07 01 9F 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 DE 00 00 00 F4 03 04 00 08 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B6 01 00 35 04 06 00 93 57 FC 15 4F 78 49 53 25 FF BF 4B 8F 4E [21:11:03]CheckFolder [21:11:03]dirname=/storage/ofd_packets [21:11:03]CheckFolder done [21:11:03]ProducePacketName [21:11:03]name=ofd_packets/00112356 [21:11:03]NVStorageSaveData ofd_packets/00112356 [21:11:03]File name is /storage/ofd_packets/00112356 [21:11:03]Write 301 bytes [21:11:03]NVStorageSaveData done [21:11:03]OFDSenderStorePacket done [21:11:03]KKMCreateOFDPacket done [21:11:03]NVStorageSaveData kkm_last_timestamp [21:11:03]File name is /storage/kkm_last_timestamp [21:11:03]Write 4 bytes [21:11:03]NVStorageSaveData done [21:11:03]ExternCall_PrintAddStr [21:11:03]wPrintStart [21:11:03]Write to MH i2c: 01 00 00 7C 57 D3 [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 07 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 07 00 7C 57 00 00 00 00 00 FF 0F E8 [21:11:03]RasterBufferAndPrint [21:11:03]line Счет N : (1)321033 [21:11:03]line ИНН: 02508201610067 [21:11:03]line Контрольно-Кассовый Чек [21:11:03]line ПРОДАЖА [21:11:03]line ТРК (МРК, ГНК) : 11 [21:11:03]line Товар: 2710124130 [21:11:03]line Аи-92-К-5 [21:11:03]line 6.780 * 66.40 [21:11:03]line = 450.19 [21:11:03]line НДС 12% НСП 1% [21:11:03]line > о реализуемом товаре [21:11:03]line ОКРУГЛЕНИЕ: -0.19 [21:11:03]line ИТОГО: 450.00 [21:11:03]line Внесено: 450.00 [21:11:03]line СДАЧА: 0.00 [21:11:03]line НСП 1% : 3.98 [21:11:03]line НДС 12% : 47.81 [21:11:03]line Наличными: 450.00 [21:11:03]line Безнал.: 0.00 [21:11:03]line Место: АЗС № 65 "Партнер Нефть" [21:11:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:11:03]line СНО: Общий режим [21:11:03]line Чек 222 22.06.2024 21:11 [21:11:03]line Смена: 391 ФФД: 1.0 [21:11:03]line ЗНМ: 0300000198 [21:11:03]line РНМ: 0000000000092771 [21:11:03]line Версия ККМ: 001 [21:11:03]line ФМ: 0000000000875083 [21:11:03]line ФД: 112356 [21:11:03]line ФПД: 162006100692856 [21:11:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T211136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112356&fm=162006100692856&tin=02508201610067®Number=0000000000092771&sum=45000 [21:11:03]written 0, free lines is 4095 [21:11:03]OFD Sender: Processing packet 112356 [packets to send 38, broken 37] [21:11:03]ProducePacketName [21:11:03]name=ofd_packets/00112356 [21:11:03]OFD Sender: To server: pG, [21:11:03]CommunicateWithHost lk.salyk.kg:30040 [21:11:03]ConnectInit lk.salyk.kg [21:11:03]Connected sock=11 [21:11:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 69 07 01 9F 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 DE 00 00 00 F4 03 04 00 08 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B6 01 00 35 04 06 00 93 57 FC 15 4F 78 49 53 25 FF BF 4B 8F 4E [21:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 5B 47 00 AA DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B6 01 00 F4 03 04 00 09 D5 76 66 B6 04 01 00 00 4F 1D D5 B8 7E 26 63 06 [21:11:03]CommunicateWithHost err = 0 [21:11:03]CheckOFDResponse [21:11:03]1017 (14) - 77093643461234 [21:11:03]1041 (16) - 0000000000875083 [21:11:03]1040 (4) - 112356 [21:11:03]1012 (4) - 22.06.2024 13:43 [21:11:03]1206 (1) - 0 [21:11:03]OFD Sender: Remove packet 112356 [21:11:03]ProducePacketName [21:11:03]name=ofd_packets/00112356 [21:11:03]NVStorageDeleteData [21:11:03]Write to MH i2c: 01 00 00 A7 57 FE [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 07 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: 01 07 00 A7 57 00 00 00 00 00 D7 0C E8 [21:11:03]RasterBufferAndPrint [21:11:03]line [21:11:03]line [21:11:03]line [21:11:03]line [21:11:03]line [21:11:03]written 0, free lines is 3290 [21:11:03]MH_Cut [21:11:03]Write to MH i2c: D1 01 00 AE 57 01 D7 [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: D1 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: D1 01 00 [21:11:03]MH_I2C_Read... [21:11:03]Read from MH i2c: D1 01 00 AE 57 00 D6 [21:11:03]Write to MH i2c: 01 00 00 AF 57 06 [21:11:03]Write i2c OK [21:11:03]MH_I2C_Read... [21:11:04]OFD Sender: No OFD packet to send [21:11:04]*** Cut start [21:11:04]*** Partial cut [21:11:04]*** CUTSNS_PIN = 1 [21:11:04]*** CUTSNS_PIN = 0 [21:11:04]*** Brake cut motor [21:11:05]Read from MH i2c: 01 [21:11:05]MH_I2C_Read... [21:11:05]*** Stop cut motor [21:11:05]*** Cut end [21:11:05]Read from MH i2c: 01 07 00 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: 01 07 00 AF 57 00 00 00 00 00 FF 0F 1B [21:11:05]process_action close_receipt done [21:11:05]requested_data is exist [21:11:05]produce_requested_data [21:11:05]requested_item fm.sn is exist - process it [21:11:05]wFMCommunicate request_size=4 [21:11:05]MH_SAM_APDU [21:11:05]CAPDU: 80 11 00 00 [21:11:05]Write to MH i2c: E2 08 00 B0 57 80 11 00 00 00 00 00 00 81 [21:11:05]Write i2c OK [21:11:05]MH_I2C_Read... [21:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:05]Read from MH i2c: E2 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 17 00 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 17 00 B0 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [21:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:11:05]wFMCommunicate OK [21:11:05]requested_item fd.num is exist - process it [21:11:05]SAM_PROTO_GetFieldsCounters [21:11:05]wFMCommunicate request_size=4 [21:11:05]MH_SAM_APDU [21:11:05]CAPDU: 80 13 00 00 [21:11:05]Write to MH i2c: E2 08 00 B1 57 80 13 00 00 00 00 00 00 84 [21:11:05]Write i2c OK [21:11:05]MH_I2C_Read... [21:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:05]Read from MH i2c: E2 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 62 00 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 62 00 B1 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:05]wFMCommunicate OK [21:11:05]SAM_PROTO_GetFieldsCounters done [21:11:05]requested_item shift.num is exist - process it [21:11:05]requested_item shift.opened is exist - process it [21:11:05]req_shift_opened [21:11:05]FM_GetShiftState [21:11:05]SAM_PROTO_GetShiftState [21:11:05]wFMCommunicate request_size=4 [21:11:05]MH_SAM_APDU [21:11:05]CAPDU: 80 13 01 00 [21:11:05]Write to MH i2c: E2 08 00 B2 57 80 13 01 00 00 00 00 00 86 [21:11:05]Write i2c OK [21:11:05]MH_I2C_Read... [21:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:05]Read from MH i2c: E2 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 0E 00 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 0E 00 B2 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BB [21:11:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:11:05]wFMCommunicate OK [21:11:05]SAM_PROTO_GetShiftState done [21:11:05]FM_GetShiftState done [21:11:05]req_shift_opened done [21:11:05]requested_item shift.open_date is exist - process it [21:11:05]req_shift_open_date [21:11:05]req_shift_open_date done [21:11:05]produce_requested_data done [21:11:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112356,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:11:05]process_action_free close_receipt [21:11:05]json_value_free [21:11:05]json_value_free done [21:11:05]process_json_proto returns [21:11:05]Send response to host [21:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112356,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:11:05]free response buf [21:11:05]execute_script done [21:11:05]execute_script returns [21:11:05]free content buf [21:11:05]Sock 10.Close socket [21:11:05]Sock 10.Thread stoped [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:12]accept exits with 7 [21:12:12]New connection [21:12:12]New thread 3066813796 created [21:12:12]Thread 3066957156 joined [21:12:12]Waiting for new connection... [21:12:12] Sock 7.Parse request [21:12:12]Sock 7.Check first char [21:12:12]Sock 7.First char is OK [21:12:12]request: POST /json_proto HTTP/1.0 [21:12:12]Method: POST [21:12:12]URL: /json_proto [21:12:12]Method is POST - this is cgi request [21:12:12]url: /json_proto [21:12:12]query_string will be loaded in cgi processing [21:12:12]execute_cgi json_proto POST (null) [21:12:12]execute_cgi path=json_proto method=POST [21:12:12]POST find Content-Length [21:12:12]Host: 172.17.59.68:8080 [21:12:12]Content-Length: 674 [21:12:12]Content-Type: application/json [21:12:12] [21:12:12]POST finish read [21:12:12]Found Content-Length = 674 [21:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:12]execute_script... [21:12: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)321034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:12]POST & json_proto [21:12:12]process_json_proto [21:12:12]json parsed OK: [21:12:12]protocol is kg_v1.0 [21:12:12]action value=close_receipt [21:12:12]process_action close_receipt [21:12:12]cmd_close_receipt [21:12:12]MH_GetDate [21:12:12]Write to MH i2c: F0 00 00 B3 57 F9 [21:12:12]Write i2c OK [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: F0 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: F0 09 00 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: F0 09 00 B3 57 00 4F 3E 77 66 BC EC 60 65 D9 [21:12:12]GetLastDocTimeStamp 1719090696 [21:12:12]current date 1719090767 [21:12:12]FM_GetShiftState [21:12:12]SAM_PROTO_GetShiftState [21:12:12]wFMCommunicate request_size=4 [21:12:12]MH_SAM_APDU [21:12:12]CAPDU: 80 13 01 00 [21:12:12]Write to MH i2c: E2 08 00 B4 57 80 13 01 00 00 00 00 00 88 [21:12:12]Write i2c OK [21:12:12]MH_I2C_Read... [21:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:12]Read from MH i2c: E2 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: E2 0E 00 [21:12:12]MH_I2C_Read... [21:12:12]Read from MH i2c: E2 0E 00 B4 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BD [21:12:12]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:12:12]wFMCommunicate OK [21:12:12]SAM_PROTO_GetShiftState done [21:12:12]FM_GetShiftState done [21:12:12]opened in 1719020067 [21:12:12]opened+sec_in_day 1719106467 [21:12:12]quantity*price = 50009 [21:12:12]sum+1 = 50010 [21:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 223 22.06.2024 21:12 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112357 ФПД: 190418866754161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T211247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112357&fm=190418866754161&tin=02508201610067®Number=0000000000092771&sum=50000 [21:12:14]StoreToDocumentArchive [21:12:14]shift 391 fd 112357 [21:12:14]save to /storage/0391/doc_00112357 [21:12:14]save last doc name /storage/0391/doc_00112357 to /storage/kkm_last_doc_name [21:12:14]save OK [21:12:14]Clear old archive folders... [21:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:12:14]tlvbuf is 0119A590 [21:12:14]SAM_PROTO_ClearQueue [21:12:14]wFMCommunicate request_size=4 [21:12:14]MH_SAM_APDU [21:12:14]CAPDU: 80 09 00 00 [21:12:14]Write to MH i2c: E2 08 00 C1 57 80 09 00 00 00 00 00 00 8A [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 C1 57 00 90 00 8C [21:12:14]RAPDU: 90 00 [21:12:14]wFMCommunicate OK [21:12:14]SAM_PROTO_ClearQueue done [21:12:14]KKMCreateOFDPacket [21:12:14]OFDProtocolAddRootSTLVToBuf [21:12:14]FM_MakeSignedData [21:12:14]FM_MakeSignedData [21:12:14]SAM_PROTO_SignData [21:12:14]wFMCommunicate request_size=4 [21:12:14]MH_SAM_APDU [21:12:14]CAPDU: 80 0D 01 02 [21:12:14]Write to MH i2c: E2 08 00 C2 57 80 0D 01 02 00 00 00 00 92 [21:12:14]OFD Sender: No OFD packet to send [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 C2 57 00 90 00 8D [21:12:14]RAPDU: 90 00 [21:12:14]wFMCommunicate OK [21:12:14]wFMCommunicate request_size=255 [21:12:14]MH_SAM_APDU [21:12: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4F 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B6 01 00 35 04 06 00 AD 2F 58 E9 [21:12:14]Write to MH i2c: E2 02 01 C3 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4F 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B6 01 00 35 04 06 00 AD 2F 58 E9 00 00 C6 [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 C3 57 00 90 00 8E [21:12:14]RAPDU: 90 00 [21:12:14]wFMCommunicate OK [21:12:14]wFMCommunicate request_size=7 [21:12:14]MH_SAM_APDU [21:12:14]CAPDU: 80 0D 02 02 02 52 71 [21:12:14]Write to MH i2c: E2 0A 00 C4 57 80 0D 02 02 02 00 52 71 00 00 5C [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 03 00 C4 57 00 90 00 8F [21:12:14]RAPDU: 90 00 [21:12:14]wFMCommunicate OK [21:12:14]wFMCommunicate request_size=4 [21:12:14]MH_SAM_APDU [21:12:14]CAPDU: 80 0D 03 02 [21:12:14]Write to MH i2c: E2 08 00 C5 57 80 0D 03 02 00 00 00 00 97 [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 0B 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 0B 00 C5 57 00 8D 60 01 6A 57 E3 B9 5E 90 00 41 [21:12:14]RAPDU: 8D 60 01 6A 57 E3 B9 5E 90 00 [21:12:14]wFMCommunicate OK [21:12:14]SAM_PROTO_SignData done [21:12:14]FM_MakeSignedData done [21:12:14]CreateOFDProtocolMessage [21:12:14]wFMCommunicate request_size=4 [21:12:14]MH_SAM_APDU [21:12:14]CAPDU: 80 11 00 00 [21:12:14]Write to MH i2c: E2 08 00 C6 57 80 11 00 00 00 00 00 00 97 [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:14]Read from MH i2c: E2 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 17 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: E2 17 00 C6 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [21:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:12:14]wFMCommunicate OK [21:12:14]CreateOFDProtocolMessage done [21:12:14]OFDSenderStorePacket 112357 [21:12:14]StoreOFDPacket docnum=112357 [21:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EF 53 04 01 9D 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4F 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B6 01 00 35 04 06 00 AD 2F 58 E9 52 71 8D 60 01 6A 57 E3 B9 5E [21:12:14]CheckFolder [21:12:14]dirname=/storage/ofd_packets [21:12:14]CheckFolder done [21:12:14]ProducePacketName [21:12:14]name=ofd_packets/00112357 [21:12:14]NVStorageSaveData ofd_packets/00112357 [21:12:14]File name is /storage/ofd_packets/00112357 [21:12:14]Write 298 bytes [21:12:14]NVStorageSaveData done [21:12:14]OFDSenderStorePacket done [21:12:14]KKMCreateOFDPacket done [21:12:14]NVStorageSaveData kkm_last_timestamp [21:12:14]File name is /storage/kkm_last_timestamp [21:12:14]Write 4 bytes [21:12:14]NVStorageSaveData done [21:12:14]ExternCall_PrintAddStr [21:12:14]wPrintStart [21:12:14]Write to MH i2c: 01 00 00 C7 57 1E [21:12:14]Write i2c OK [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: 01 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: 01 07 00 [21:12:14]MH_I2C_Read... [21:12:14]Read from MH i2c: 01 07 00 C7 57 00 00 00 00 00 FF 0F 33 [21:12:14]RasterBufferAndPrint [21:12:14]line Счет N : (1)321034 [21:12:14]line ИНН: 02508201610067 [21:12:14]line Контрольно-Кассовый Чек [21:12:14]line ПРОДАЖА [21:12:14]line ТРК (МРК, ГНК) : 22 [21:12:14]line Товар: 2710194210 [21:12:14]line ДТ-К-5 [21:12:14]line 6.860 * 72.90 [21:12:14]line = 500.09 [21:12:14]line НДС 12% НСП 1% [21:12:14]line > о реализуемом товаре [21:12:14]line ОКРУГЛЕНИЕ: -0.09 [21:12:14]line ИТОГО: 500.00 [21:12:14]line Внесено: 500.00 [21:12:14]line СДАЧА: 0.00 [21:12:14]line НСП 1% : 4.43 [21:12:14]line НДС 12% : 53.11 [21:12:14]line Наличными: 500.00 [21:12:14]line Безнал.: 0.00 [21:12:14]line Место: АЗС № 65 "Партнер Нефть" [21:12:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:12:14]line СНО: Общий режим [21:12:14]line Чек 223 22.06.2024 21:12 [21:12:14]line Смена: 391 ФФД: 1.0 [21:12:14]line ЗНМ: 0300000198 [21:12:14]line РНМ: 0000000000092771 [21:12:14]line Версия ККМ: 001 [21:12:14]line ФМ: 0000000000875083 [21:12:14]line ФД: 112357 [21:12:14]line ФПД: 190418866754161 [21:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T211247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112357&fm=190418866754161&tin=02508201610067®Number=0000000000092771&sum=50000 [21:12:14]OFD Sender: Processing packet 112357 [packets to send 38, broken 37] [21:12:14]ProducePacketName [21:12:14]name=ofd_packets/00112357 [21:12:14]OFD Sender: To server: pG, [21:12:14]CommunicateWithHost lk.salyk.kg:30040 [21:12:14]ConnectInit lk.salyk.kg [21:12:14]written 0, free lines is 4095 [21:12:15]Connected sock=10 [21:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EF 53 04 01 9D 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 4F 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B6 01 00 35 04 06 00 AD 2F 58 E9 52 71 8D 60 01 6A 57 E3 B9 5E [21:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 87 47 00 BE 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B6 01 00 F4 03 04 00 51 D5 76 66 B6 04 01 00 00 A6 9C 52 80 8B E9 EF 02 [21:12:15]CommunicateWithHost err = 0 [21:12:15]CheckOFDResponse [21:12:15]1017 (14) - 77093643461234 [21:12:15]1041 (16) - 0000000000875083 [21:12:15]1040 (4) - 112357 [21:12:15]1012 (4) - 22.06.2024 13:44 [21:12:15]1206 (1) - 0 [21:12:15]OFD Sender: Remove packet 112357 [21:12:15]ProducePacketName [21:12:15]name=ofd_packets/00112357 [21:12:15]NVStorageDeleteData [21:12:15]Write to MH i2c: 01 00 00 F2 57 49 [21:12:15]Write i2c OK [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: 01 [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: 01 07 00 [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: 01 07 00 F2 57 00 00 00 00 00 D9 0C 35 [21:12:15]RasterBufferAndPrint [21:12:15]line [21:12:15]line [21:12:15]line [21:12:15]line [21:12:15]line [21:12:15]written 0, free lines is 3296 [21:12:15]MH_Cut [21:12:15]Write to MH i2c: D1 01 00 F9 57 01 22 [21:12:15]Write i2c OK [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: D1 [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: D1 01 00 [21:12:15]MH_I2C_Read... [21:12:15]Read from MH i2c: D1 01 00 F9 57 00 21 [21:12:15]Write to MH i2c: 01 00 00 FA 57 51 [21:12:15]Write i2c OK [21:12:15]MH_I2C_Read... [21:12:15]OFD Sender: No OFD packet to send [21:12:16]*** Cut start [21:12:16]*** Partial cut [21:12:16]*** CUTSNS_PIN = 1 [21:12:16]*** CUTSNS_PIN = 0 [21:12:16]*** Brake cut motor [21:12:16]Read from MH i2c: 01 [21:12:16]MH_I2C_Read... [21:12:16]*** Stop cut motor [21:12:16]*** Cut end [21:12:16]Read from MH i2c: 01 07 00 [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: 01 07 00 FA 57 00 00 00 00 00 FF 0F 66 [21:12:16]process_action close_receipt done [21:12:16]requested_data is exist [21:12:16]produce_requested_data [21:12:16]requested_item fm.sn is exist - process it [21:12:16]wFMCommunicate request_size=4 [21:12:16]MH_SAM_APDU [21:12:16]CAPDU: 80 11 00 00 [21:12:16]Write to MH i2c: E2 08 00 FB 57 80 11 00 00 00 00 00 00 CC [21:12:16]Write i2c OK [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: E2 [21:12:16]MH_I2C_Read... [21:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:16]Read from MH i2c: E2 17 00 [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: E2 17 00 FB 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [21:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:12:16]wFMCommunicate OK [21:12:16]requested_item fd.num is exist - process it [21:12:16]SAM_PROTO_GetFieldsCounters [21:12:16]wFMCommunicate request_size=4 [21:12:16]MH_SAM_APDU [21:12:16]CAPDU: 80 13 00 00 [21:12:16]Write to MH i2c: E2 08 00 FC 57 80 13 00 00 00 00 00 00 CF [21:12:16]Write i2c OK [21:12:16]MH_I2C_Read... [21:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:16]Read from MH i2c: E2 [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: E2 62 00 [21:12:16]MH_I2C_Read... [21:12:16]Read from MH i2c: E2 62 00 FC 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [21:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:16]wFMCommunicate OK [21:12:16]SAM_PROTO_GetFieldsCounters done [21:12:16]requested_item shift.num is exist - process it [21:12:16]requested_item shift.opened is exist - process it [21:12:16]req_shift_opened [21:12:16]FM_GetShiftState [21:12:16]SAM_PROTO_GetShiftState [21:12:16]wFMCommunicate request_size=4 [21:12:16]MH_SAM_APDU [21:12:16]CAPDU: 80 13 01 00 [21:12:16]Write to MH i2c: E2 08 00 FD 57 80 13 01 00 00 00 00 00 D1 [21:12:16]Write i2c OK [21:12:16]MH_I2C_Read... [21:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:17]Read from MH i2c: E2 [21:12:17]MH_I2C_Read... [21:12:17]Read from MH i2c: E2 0E 00 [21:12:17]MH_I2C_Read... [21:12:17]Read from MH i2c: E2 0E 00 FD 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 06 [21:12:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:12:17]wFMCommunicate OK [21:12:17]SAM_PROTO_GetShiftState done [21:12:17]FM_GetShiftState done [21:12:17]req_shift_opened done [21:12:17]requested_item shift.open_date is exist - process it [21:12:17]req_shift_open_date [21:12:17]req_shift_open_date done [21:12:17]produce_requested_data done [21:12:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112357,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:12:17]process_action_free close_receipt [21:12:17]json_value_free [21:12:17]json_value_free done [21:12:17]process_json_proto returns [21:12:17]Send response to host [21:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112357,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:12:17]free response buf [21:12:17]execute_script done [21:12:17]execute_script returns [21:12:17]free content buf [21:12:17]Sock 7.Close socket [21:12:17]Sock 7.Thread stoped [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:13:57]accept exits with 9 [21:13:57]New connection [21:13:57]New thread 3066957156 created [21:13:57]Thread 3066813796 joined [21:13:57]Waiting for new connection... [21:13:57] Sock 9.Parse request [21:13:57]Sock 9.Check first char [21:13:57]Sock 9.First char is OK [21:13:57]request: POST /json_proto HTTP/1.0 [21:13:57]Method: POST [21:13:57]URL: /json_proto [21:13:57]Method is POST - this is cgi request [21:13:57]url: /json_proto [21:13:57]query_string will be loaded in cgi processing [21:13:57]execute_cgi json_proto POST (null) [21:13:57]execute_cgi path=json_proto method=POST [21:13:57]POST find Content-Length [21:13:57]Host: 172.17.59.68:8080 [21:13:57]Content-Length: 679 [21:13:57]Content-Type: application/json [21:13:57] [21:13:57]POST finish read [21:13:57]Found Content-Length = 679 [21:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:57]execute_script... [21: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)321035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:57]POST & json_proto [21:13:57]process_json_proto [21:13:57]json parsed OK: [21:13:57]protocol is kg_v1.0 [21:13:57]action value=close_receipt [21:13:57]process_action close_receipt [21:13:57]cmd_close_receipt [21:13:57]MH_GetDate [21:13:57]Write to MH i2c: F0 00 00 FE 57 44 [21:13:57]Write i2c OK [21:13:57]MH_I2C_Read... [21:13:57]Read from MH i2c: F0 [21:13:57]MH_I2C_Read... [21:13:57]Read from MH i2c: F0 09 00 [21:13:57]MH_I2C_Read... [21:13:57]Read from MH i2c: F0 09 00 FE 57 00 B8 3E 77 66 BC EC 60 65 8D [21:13:57]GetLastDocTimeStamp 1719090767 [21:13:57]current date 1719090872 [21:13:57]FM_GetShiftState [21:13:57]SAM_PROTO_GetShiftState [21:13:57]wFMCommunicate request_size=4 [21:13:57]MH_SAM_APDU [21:13:57]CAPDU: 80 13 01 00 [21:13:57]Write to MH i2c: E2 08 00 FF 57 80 13 01 00 00 00 00 00 D3 [21:13:57]Write i2c OK [21:13:57]MH_I2C_Read... [21:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:57]Read from MH i2c: E2 [21:13:57]MH_I2C_Read... [21:13:57]Read from MH i2c: E2 0E 00 [21:13:57]MH_I2C_Read... [21:13:57]Read from MH i2c: E2 0E 00 FF 57 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 08 [21:13:57]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:13:57]wFMCommunicate OK [21:13:57]SAM_PROTO_GetShiftState done [21:13:57]FM_GetShiftState done [21:13:57]opened in 1719020067 [21:13:57]opened+sec_in_day 1719106467 [21:13:57]quantity*price = 120066 [21:13:57]sum+1 = 120067 [21:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 224 22.06.2024 21:14 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112358 ФПД: 41970101466505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T211432&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112358&fm=41970101466505&tin=02508201610067®Number=0000000000092771&sum=120000 [21:13:59]StoreToDocumentArchive [21:13:59]shift 391 fd 112358 [21:13:59]save to /storage/0391/doc_00112358 [21:13:59]save last doc name /storage/0391/doc_00112358 to /storage/kkm_last_doc_name [21:13:59]save OK [21:13:59]Clear old archive folders... [21:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:13:59]tlvbuf is 0126F9C0 [21:13:59]SAM_PROTO_ClearQueue [21:13:59]wFMCommunicate request_size=4 [21:13:59]MH_SAM_APDU [21:13:59]CAPDU: 80 09 00 00 [21:13:59]Write to MH i2c: E2 08 00 0C 58 80 09 00 00 00 00 00 00 D6 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 0C 58 00 90 00 D8 [21:13:59]RAPDU: 90 00 [21:13:59]wFMCommunicate OK [21:13:59]SAM_PROTO_ClearQueue done [21:13:59]KKMCreateOFDPacket [21:13:59]OFDProtocolAddRootSTLVToBuf [21:13:59]FM_MakeSignedData [21:13:59]FM_MakeSignedData [21:13:59]SAM_PROTO_SignData [21:13:59]wFMCommunicate request_size=4 [21:13:59]MH_SAM_APDU [21:13:59]CAPDU: 80 0D 01 02 [21:13:59]Write to MH i2c: E2 08 00 0D 58 80 0D 01 02 00 00 00 00 DE [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 0D 58 00 90 00 D9 [21:13:59]RAPDU: 90 00 [21:13:59]wFMCommunicate OK [21:13:59]wFMCommunicate request_size=255 [21:13:59]MH_SAM_APDU [21:13:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B8 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B6 01 00 35 04 06 00 26 2B EC FD [21:13:59]Write to MH i2c: E2 02 01 0E 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B8 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B6 01 00 35 04 06 00 26 2B EC FD 00 00 A4 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 0E 58 00 90 00 DA [21:13:59]RAPDU: 90 00 [21:13:59]wFMCommunicate OK [21:13:59]wFMCommunicate request_size=7 [21:13:59]MH_SAM_APDU [21:13:59]CAPDU: 80 0D 02 02 02 35 89 [21:13:59]Write to MH i2c: E2 0A 00 0F 58 80 0D 02 02 02 00 35 89 00 00 A3 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 03 00 0F 58 00 90 00 DB [21:13:59]RAPDU: 90 00 [21:13:59]wFMCommunicate OK [21:13:59]wFMCommunicate request_size=4 [21:13:59]MH_SAM_APDU [21:13:59]CAPDU: 80 0D 03 02 [21:13:59]Write to MH i2c: E2 08 00 10 58 80 0D 03 02 00 00 00 00 E3 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 0B 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 0B 00 10 58 00 40 FA 66 25 23 EB B4 3A 90 00 A5 [21:13:59]RAPDU: 40 FA 66 25 23 EB B4 3A 90 00 [21:13:59]wFMCommunicate OK [21:13:59]SAM_PROTO_SignData done [21:13:59]FM_MakeSignedData done [21:13:59]CreateOFDProtocolMessage [21:13:59]wFMCommunicate request_size=4 [21:13:59]MH_SAM_APDU [21:13:59]CAPDU: 80 11 00 00 [21:13:59]Write to MH i2c: E2 08 00 11 58 80 11 00 00 00 00 00 00 E3 [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:59]Read from MH i2c: E2 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 17 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: E2 17 00 11 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [21:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:13:59]wFMCommunicate OK [21:13:59]CreateOFDProtocolMessage done [21:13:59]OFDSenderStorePacket 112358 [21:13:59]StoreOFDPacket docnum=112358 [21:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 77 9E 04 01 21 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B8 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B6 01 00 35 04 06 00 26 2B EC FD 35 89 40 FA 66 25 23 EB B4 3A [21:13:59]CheckFolder [21:13:59]dirname=/storage/ofd_packets [21:13:59]CheckFolder done [21:13:59]ProducePacketName [21:13:59]name=ofd_packets/00112358 [21:13:59]NVStorageSaveData ofd_packets/00112358 [21:13:59]File name is /storage/ofd_packets/00112358 [21:13:59]Write 298 bytes [21:13:59]NVStorageSaveData done [21:13:59]OFDSenderStorePacket done [21:13:59]KKMCreateOFDPacket done [21:13:59]NVStorageSaveData kkm_last_timestamp [21:13:59]File name is /storage/kkm_last_timestamp [21:13:59]Write 4 bytes [21:13:59]NVStorageSaveData done [21:13:59]ExternCall_PrintAddStr [21:13:59]wPrintStart [21:13:59]Write to MH i2c: 01 00 00 12 58 6A [21:13:59]Write i2c OK [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: 01 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: 01 07 00 [21:13:59]MH_I2C_Read... [21:13:59]Read from MH i2c: 01 07 00 12 58 00 00 00 00 00 FF 0F 7F [21:13:59]RasterBufferAndPrint [21:13:59]line Счет N : (1)321035 [21:13:59]line ИНН: 02508201610067 [21:13:59]line Контрольно-Кассовый Чек [21:13:59]line ПРОДАЖА [21:13:59]line ТРК (МРК, ГНК) : 22 [21:13:59]line Товар: 2710194210 [21:13:59]line ДТ-К-5 [21:13:59]line 16.470 * 72.90 [21:13:59]line = 1200.66 [21:13:59]line НДС 12% НСП 1% [21:13:59]line > о реализуемом товаре [21:13:59]line ОКРУГЛЕНИЕ: -0.66 [21:13:59]line ИТОГО: 1200.00 [21:13:59]line Внесено: 1200.00 [21:13:59]line СДАЧА: 0.00 [21:13:59]line НСП 1% : 10.62 [21:13:59]line НДС 12% : 127.50 [21:13:59]line Наличными: 1200.00 [21:13:59]line Безнал.: 0.00 [21:13:59]line Место: АЗС № 65 "Партнер Нефть" [21:13:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:13:59]line СНО: Общий режим [21:13:59]line Чек 224 22.06.2024 21:14 [21:13:59]line Смена: 391 ФФД: 1.0 [21:13:59]line ЗНМ: 0300000198 [21:13:59]line РНМ: 0000000000092771 [21:13:59]line Версия ККМ: 001 [21:13:59]line ФМ: 0000000000875083 [21:13:59]line ФД: 112358 [21:13:59]line ФПД: 41970101466505 [21:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T211432&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112358&fm=41970101466505&tin=02508201610067®Number=0000000000092771&sum=120000 [21:13:59]OFD Sender: Processing packet 112358 [packets to send 38, broken 37] [21:13:59]ProducePacketName [21:13:59]name=ofd_packets/00112358 [21:13:59]OFD Sender: To server: pG, [21:13:59]CommunicateWithHost lk.salyk.kg:30040 [21:13:59]ConnectInit lk.salyk.kg [21:13:59]written 0, free lines is 4095 [21:14:00]Connected sock=10 [21:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 77 9E 04 01 21 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 B8 3E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B6 01 00 35 04 06 00 26 2B EC FD 35 89 40 FA 66 25 23 EB B4 3A [21:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC E9 47 00 4F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B6 01 00 F4 03 04 00 BA D5 76 66 B6 04 01 00 00 EE 9C A4 55 A1 84 A7 E1 [21:14:00]CommunicateWithHost err = 0 [21:14:00]CheckOFDResponse [21:14:00]1017 (14) - 77093643461234 [21:14:00]1041 (16) - 0000000000875083 [21:14:00]1040 (4) - 112358 [21:14:00]1012 (4) - 22.06.2024 13:46 [21:14:00]1206 (1) - 0 [21:14:00]OFD Sender: Remove packet 112358 [21:14:00]ProducePacketName [21:14:00]name=ofd_packets/00112358 [21:14:00]NVStorageDeleteData [21:14:00]Write to MH i2c: 01 00 00 3D 58 95 [21:14:00]Write i2c OK [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: 01 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: 01 07 00 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: 01 07 00 3D 58 00 00 00 00 00 DC 0C 84 [21:14:00]RasterBufferAndPrint [21:14:00]line [21:14:00]line [21:14:00]line [21:14:00]line [21:14:00]line [21:14:00]written 0, free lines is 3298 [21:14:00]MH_Cut [21:14:00]Write to MH i2c: D1 01 00 44 58 01 6E [21:14:00]Write i2c OK [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: D1 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: D1 01 00 [21:14:00]MH_I2C_Read... [21:14:00]Read from MH i2c: D1 01 00 44 58 00 6D [21:14:00]Write to MH i2c: 01 00 00 45 58 9D [21:14:00]Write i2c OK [21:14:00]MH_I2C_Read... [21:14:00]OFD Sender: No OFD packet to send [21:14:01]*** Cut start [21:14:01]*** Partial cut [21:14:01]*** CUTSNS_PIN = 1 [21:14:01]*** CUTSNS_PIN = 0 [21:14:01]*** Brake cut motor [21:14:01]Read from MH i2c: 01 [21:14:01]MH_I2C_Read... [21:14:01]*** Stop cut motor [21:14:01]*** Cut end [21:14:01]Read from MH i2c: 01 07 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: 01 07 00 45 58 00 00 00 00 00 FF 0F B2 [21:14:01]process_action close_receipt done [21:14:01]requested_data is exist [21:14:01]produce_requested_data [21:14:01]requested_item fm.sn is exist - process it [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 11 00 00 [21:14:01]Write to MH i2c: E2 08 00 46 58 80 11 00 00 00 00 00 00 18 [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:01]Read from MH i2c: E2 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 17 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 17 00 46 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [21:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:14:01]wFMCommunicate OK [21:14:01]requested_item fd.num is exist - process it [21:14:01]SAM_PROTO_GetFieldsCounters [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 13 00 00 [21:14:01]Write to MH i2c: E2 08 00 47 58 80 13 00 00 00 00 00 00 1B [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:01]Read from MH i2c: E2 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 62 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: E2 62 00 47 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [21:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:01]wFMCommunicate OK [21:14:01]SAM_PROTO_GetFieldsCounters done [21:14:01]requested_item shift.num is exist - process it [21:14:01]requested_item shift.opened is exist - process it [21:14:01]req_shift_opened [21:14:01]FM_GetShiftState [21:14:01]SAM_PROTO_GetShiftState [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 13 01 00 [21:14:01]Write to MH i2c: E2 08 00 48 58 80 13 01 00 00 00 00 00 1D [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0E 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0E 00 48 58 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 52 [21:14:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:14:02]wFMCommunicate OK [21:14:02]SAM_PROTO_GetShiftState done [21:14:02]FM_GetShiftState done [21:14:02]req_shift_opened done [21:14:02]requested_item shift.open_date is exist - process it [21:14:02]req_shift_open_date [21:14:02]req_shift_open_date done [21:14:02]produce_requested_data done [21:14:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112358,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:14:02]process_action_free close_receipt [21:14:02]json_value_free [21:14:02]json_value_free done [21:14:02]process_json_proto returns [21:14:02]Send response to host [21:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112358,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:14:02]free response buf [21:14:02]execute_script done [21:14:02]execute_script returns [21:14:02]free content buf [21:14:02]Sock 9.Close socket [21:14:02]Sock 9.Thread stoped [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:10]accept exits with 7 [21:33:10]New connection [21:33:10]New thread 3066813796 created [21:33:10]Thread 3066957156 joined [21:33:10]Waiting for new connection... [21:33:10] Sock 7.Parse request [21:33:10]Sock 7.Check first char [21:33:10]Sock 7.First char is OK [21:33:10]request: POST /json_proto HTTP/1.0 [21:33:10]Method: POST [21:33:10]URL: /json_proto [21:33:10]Method is POST - this is cgi request [21:33:10]url: /json_proto [21:33:10]query_string will be loaded in cgi processing [21:33:10]execute_cgi json_proto POST (null) [21:33:10]execute_cgi path=json_proto method=POST [21:33:10]POST find Content-Length [21:33:10]Host: 172.17.59.68:8080 [21:33:10]Content-Length: 808 [21:33:10]Content-Type: application/json [21:33:10] [21:33:10]POST finish read [21:33:10]Found Content-Length = 808 [21:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321036", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:10]execute_script... [21:33:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321036", "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.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:10]POST & json_proto [21:33:10]process_json_proto [21:33:10]json parsed OK: [21:33:10]protocol is kg_v1.0 [21:33:10]action value=close_receipt [21:33:10]process_action close_receipt [21:33:10]cmd_close_receipt [21:33:10]MH_GetDate [21:33:10]Write to MH i2c: F0 00 00 49 58 90 [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: F0 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: F0 09 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: F0 09 00 49 58 00 3A 43 77 66 BC EC 60 65 60 [21:33:10]GetLastDocTimeStamp 1719090872 [21:33:10]current date 1719092026 [21:33:10]FM_GetShiftState [21:33:10]SAM_PROTO_GetShiftState [21:33:10]wFMCommunicate request_size=4 [21:33:10]MH_SAM_APDU [21:33:10]CAPDU: 80 13 01 00 [21:33:10]Write to MH i2c: E2 08 00 4A 58 80 13 01 00 00 00 00 00 1F [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 0E 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 0E 00 4A 58 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 54 [21:33:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:33:10]wFMCommunicate OK [21:33:10]SAM_PROTO_GetShiftState done [21:33:10]FM_GetShiftState done [21:33:10]opened in 1719020067 [21:33:10]opened+sec_in_day 1719106467 [21:33:10]quantity*price = 200063 [21:33:10]sum+1 = 200064 [21:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 225 22.06.2024 21:33 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112359 ФПД: 18123096376412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213346&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112359&fm=18123096376412&tin=02508201610067®Number=0000000000092771&sum=200063 [21:33:11]StoreToDocumentArchive [21:33:11]shift 391 fd 112359 [21:33:11]save to /storage/0391/doc_00112359 [21:33:11]save last doc name /storage/0391/doc_00112359 to /storage/kkm_last_doc_name [21:33:11]save OK [21:33:11]Clear old archive folders... [21:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:11]tlvbuf is B6EDBAE0 [21:33:11]SAM_PROTO_ClearQueue [21:33:11]wFMCommunicate request_size=4 [21:33:11]MH_SAM_APDU [21:33:11]CAPDU: 80 09 00 00 [21:33:11]Write to MH i2c: E2 08 00 57 58 80 09 00 00 00 00 00 00 21 [21:33:11]Write i2c OK [21:33:11]MH_I2C_Read... [21:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:11]Read from MH i2c: E2 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: E2 03 00 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: E2 03 00 57 58 00 90 00 23 [21:33:11]RAPDU: 90 00 [21:33:11]wFMCommunicate OK [21:33:11]SAM_PROTO_ClearQueue done [21:33:11]KKMCreateOFDPacket [21:33:11]OFDProtocolAddRootSTLVToBuf [21:33:11]FM_MakeSignedData [21:33:11]FM_MakeSignedData [21:33:11]SAM_PROTO_SignData [21:33:11]wFMCommunicate request_size=4 [21:33:11]MH_SAM_APDU [21:33:11]CAPDU: 80 0D 01 02 [21:33:11]Write to MH i2c: E2 08 00 58 58 80 0D 01 02 00 00 00 00 29 [21:33:11]Write i2c OK [21:33:11]MH_I2C_Read... [21:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:11]Read from MH i2c: E2 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: E2 03 00 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: E2 03 00 58 58 00 90 00 24 [21:33:11]RAPDU: 90 00 [21:33:11]wFMCommunicate OK [21:33:11]wFMCommunicate request_size=255 [21:33:11]MH_SAM_APDU [21:33: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3A 43 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B6 01 00 35 04 06 00 10 [21:33:11]Write to MH i2c: E2 02 01 59 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3A 43 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B6 01 00 35 04 06 00 10 00 00 C1 [21:33:11]Write i2c OK [21:33:11]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 03 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 03 00 59 58 00 90 00 25 [21:33:12]RAPDU: 90 00 [21:33:12]wFMCommunicate OK [21:33:12]wFMCommunicate request_size=10 [21:33:12]MH_SAM_APDU [21:33:12]CAPDU: 80 0D 02 02 05 7B 9C B8 C4 5C [21:33:12]Write to MH i2c: E2 0D 00 5A 58 80 0D 02 02 05 00 7B 9C B8 C4 5C 00 00 25 [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 03 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 03 00 5A 58 00 90 00 26 [21:33:12]RAPDU: 90 00 [21:33:12]wFMCommunicate OK [21:33:12]wFMCommunicate request_size=4 [21:33:12]MH_SAM_APDU [21:33:12]CAPDU: 80 0D 03 02 [21:33:12]Write to MH i2c: E2 08 00 5B 58 80 0D 03 02 00 00 00 00 2E [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 0B 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 0B 00 5B 58 00 98 B2 46 AB 97 F8 C2 38 90 00 F3 [21:33:12]RAPDU: 98 B2 46 AB 97 F8 C2 38 90 00 [21:33:12]wFMCommunicate OK [21:33:12]SAM_PROTO_SignData done [21:33:12]FM_MakeSignedData done [21:33:12]CreateOFDProtocolMessage [21:33:12]wFMCommunicate request_size=4 [21:33:12]MH_SAM_APDU [21:33:12]CAPDU: 80 11 00 00 [21:33:12]Write to MH i2c: E2 08 00 5C 58 80 11 00 00 00 00 00 00 2E [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 17 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 17 00 5C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [21:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:33:12]wFMCommunicate OK [21:33:12]CreateOFDProtocolMessage done [21:33:12]OFDSenderStorePacket 112359 [21:33:12]StoreOFDPacket docnum=112359 [21:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 E6 07 01 5D 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3A 43 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B6 01 00 35 04 06 00 10 7B 9C B8 C4 5C 98 B2 46 AB 97 F8 C2 38 [21:33:12]CheckFolder [21:33:12]dirname=/storage/ofd_packets [21:33:12]CheckFolder done [21:33:12]ProducePacketName [21:33:12]name=ofd_packets/00112359 [21:33:12]NVStorageSaveData ofd_packets/00112359 [21:33:12]File name is /storage/ofd_packets/00112359 [21:33:12]Write 301 bytes [21:33:12]NVStorageSaveData done [21:33:12]OFDSenderStorePacket done [21:33:12]KKMCreateOFDPacket done [21:33:12]NVStorageSaveData kkm_last_timestamp [21:33:12]File name is /storage/kkm_last_timestamp [21:33:12]Write 4 bytes [21:33:12]NVStorageSaveData done [21:33:12]ExternCall_PrintAddStr [21:33:12]wPrintStart [21:33:12]Write to MH i2c: 01 00 00 5D 58 B5 [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: 01 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: 01 07 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: 01 07 00 5D 58 00 00 00 00 00 FF 0F CA [21:33:12]RasterBufferAndPrint [21:33:12]line Счет N : (1)321036 [21:33:12]line ИНН: 02508201610067 [21:33:12]line Контрольно-Кассовый Чек [21:33:12]line ПРОДАЖА [21:33:12]line ТРК (МРК, ГНК) : 11 [21:33:12]line Товар: 2710124130 [21:33:12]line Аи-92-К-5 [21:33:12]line 30.130 * 66.40 [21:33:12]line = 2000.63 [21:33:12]line НДС 12% НСП 1% [21:33:12]line > о реализуемом товаре [21:33:12]line ИТОГО: 2000.63 [21:33:12]line НСП 1% : 17.70 [21:33:12]line НДС 12% : 212.46 [21:33:12]line Наличными: 0.00 [21:33:12]line Безнал.: 2000.63 [21:33:12]line Место: АЗС № 65 "Партнер Нефть" [21:33:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:33:12]line СНО: Общий режим [21:33:12]line Чек 225 22.06.2024 21:33 [21:33:12]line Смена: 391 ФФД: 1.0 [21:33:12]line ЗНМ: 0300000198 [21:33:12]line РНМ: 0000000000092771 [21:33:12]line Версия ККМ: 001 [21:33:12]line Платежная система: О! деньги [21:33:12]line ФМ: 0000000000875083 [21:33:12]line ФД: 112359 [21:33:12]line ФПД: 18123096376412 [21:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213346&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112359&fm=18123096376412&tin=02508201610067®Number=0000000000092771&sum=200063 [21:33:12]OFD Sender: Processing packet 112359 [packets to send 38, broken 37] [21:33:12]ProducePacketName [21:33:12]name=ofd_packets/00112359 [21:33:12]OFD Sender: To server: pG, [21:33:12]CommunicateWithHost lk.salyk.kg:30040 [21:33:12]ConnectInit lk.salyk.kg [21:33:12]written 0, free lines is 4095 [21:33:12]Connected sock=10 [21:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 E6 07 01 5D 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3A 43 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B6 01 00 35 04 06 00 10 7B 9C B8 C4 5C 98 B2 46 AB 97 F8 C2 38 [21:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B0 C6 47 00 8E EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B6 01 00 F4 03 04 00 3A DA 76 66 B6 04 01 00 00 51 36 ED 2D B1 3D 2A A8 [21:33:13]CommunicateWithHost err = 0 [21:33:13]CheckOFDResponse [21:33:13]1017 (14) - 77093643461234 [21:33:13]1041 (16) - 0000000000875083 [21:33:13]1040 (4) - 112359 [21:33:13]1012 (4) - 22.06.2024 14:05 [21:33:13]1206 (1) - 0 [21:33:13]OFD Sender: Remove packet 112359 [21:33:13]ProducePacketName [21:33:13]name=ofd_packets/00112359 [21:33:13]NVStorageDeleteData [21:33:13]Write to MH i2c: 01 00 00 87 58 DF [21:33:13]Write i2c OK [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: 01 [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: 01 07 00 [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: 01 07 00 87 58 00 00 00 00 00 DF 0C D1 [21:33:13]RasterBufferAndPrint [21:33:13]line [21:33:13]line [21:33:13]line [21:33:13]line [21:33:13]line [21:33:13]written 0, free lines is 3304 [21:33:13]MH_Cut [21:33:13]Write to MH i2c: D1 01 00 8E 58 01 B8 [21:33:13]Write i2c OK [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: D1 [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: D1 01 00 [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: D1 01 00 8E 58 00 B7 [21:33:13]Write to MH i2c: 01 00 00 8F 58 E7 [21:33:13]Write i2c OK [21:33:13]MH_I2C_Read... [21:33:13]OFD Sender: No OFD packet to send [21:33:13]*** Cut start [21:33:13]*** Partial cut [21:33:13]*** CUTSNS_PIN = 1 [21:33:13]*** CUTSNS_PIN = 0 [21:33:14]*** Brake cut motor [21:33:14]Read from MH i2c: 01 [21:33:14]MH_I2C_Read... [21:33:14]*** Stop cut motor [21:33:14]*** Cut end [21:33:14]Read from MH i2c: 01 07 00 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: 01 07 00 8F 58 00 00 00 00 00 FF 0F FC [21:33:14]process_action close_receipt done [21:33:14]requested_data is exist [21:33:14]produce_requested_data [21:33:14]requested_item fm.sn is exist - process it [21:33:14]wFMCommunicate request_size=4 [21:33:14]MH_SAM_APDU [21:33:14]CAPDU: 80 11 00 00 [21:33:14]Write to MH i2c: E2 08 00 90 58 80 11 00 00 00 00 00 00 62 [21:33:14]Write i2c OK [21:33:14]MH_I2C_Read... [21:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:14]Read from MH i2c: E2 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: E2 17 00 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: E2 17 00 90 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [21:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:33:14]wFMCommunicate OK [21:33:14]requested_item fd.num is exist - process it [21:33:14]SAM_PROTO_GetFieldsCounters [21:33:14]wFMCommunicate request_size=4 [21:33:14]MH_SAM_APDU [21:33:14]CAPDU: 80 13 00 00 [21:33:14]Write to MH i2c: E2 08 00 91 58 80 13 00 00 00 00 00 00 65 [21:33:14]Write i2c OK [21:33:14]MH_I2C_Read... [21:33:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:14]Read from MH i2c: E2 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: E2 62 00 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: E2 62 00 91 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [21:33:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:14]wFMCommunicate OK [21:33:14]SAM_PROTO_GetFieldsCounters done [21:33:14]requested_item shift.num is exist - process it [21:33:14]requested_item shift.opened is exist - process it [21:33:14]req_shift_opened [21:33:14]FM_GetShiftState [21:33:14]SAM_PROTO_GetShiftState [21:33:14]wFMCommunicate request_size=4 [21:33:14]MH_SAM_APDU [21:33:14]CAPDU: 80 13 01 00 [21:33:14]Write to MH i2c: E2 08 00 92 58 80 13 01 00 00 00 00 00 67 [21:33:14]Write i2c OK [21:33:14]MH_I2C_Read... [21:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:14]Read from MH i2c: E2 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: E2 0E 00 [21:33:14]MH_I2C_Read... [21:33:14]Read from MH i2c: E2 0E 00 92 58 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9C [21:33:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:33:14]wFMCommunicate OK [21:33:14]SAM_PROTO_GetShiftState done [21:33:14]FM_GetShiftState done [21:33:14]req_shift_opened done [21:33:14]requested_item shift.open_date is exist - process it [21:33:14]req_shift_open_date [21:33:14]req_shift_open_date done [21:33:14]produce_requested_data done [21:33:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112359,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:33:14]process_action_free close_receipt [21:33:14]json_value_free [21:33:14]json_value_free done [21:33:14]process_json_proto returns [21:33:14]Send response to host [21:33:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112359,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:33:14]free response buf [21:33:14]execute_script done [21:33:14]execute_script returns [21:33:14]free content buf [21:33:14]Sock 7.Close socket [21:33:14]Sock 7.Thread stoped [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:06]accept exits with 9 [21:37:06]New connection [21:37:06]New thread 3066957156 created [21:37:06]Thread 3066813796 joined [21:37:06]Waiting for new connection... [21:37:06] Sock 9.Parse request [21:37:06]Sock 9.Check first char [21:37:06]Sock 9.First char is OK [21:37:06]request: POST /json_proto HTTP/1.0 [21:37:06]Method: POST [21:37:06]URL: /json_proto [21:37:06]Method is POST - this is cgi request [21:37:06]url: /json_proto [21:37:06]query_string will be loaded in cgi processing [21:37:06]execute_cgi json_proto POST (null) [21:37:06]execute_cgi path=json_proto method=POST [21:37:06]POST find Content-Length [21:37:06]Host: 172.17.59.68:8080 [21:37:06]Content-Length: 677 [21:37:06]Content-Type: application/json [21:37:06] [21:37:06]POST finish read [21:37:06]Found Content-Length = 677 [21:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321038", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:37:06]execute_script... [21:37:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321038", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:37:06]POST & json_proto [21:37:06]process_json_proto [21:37:06]json parsed OK: [21:37:06]protocol is kg_v1.0 [21:37:06]action value=close_receipt [21:37:06]process_action close_receipt [21:37:06]cmd_close_receipt [21:37:06]MH_GetDate [21:37:06]Write to MH i2c: F0 00 00 93 58 DA [21:37:06]Write i2c OK [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: F0 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: F0 09 00 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: F0 09 00 93 58 00 26 44 77 66 BC EC 60 65 97 [21:37:06]GetLastDocTimeStamp 1719092026 [21:37:06]current date 1719092262 [21:37:06]FM_GetShiftState [21:37:06]SAM_PROTO_GetShiftState [21:37:06]wFMCommunicate request_size=4 [21:37:06]MH_SAM_APDU [21:37:06]CAPDU: 80 13 01 00 [21:37:06]Write to MH i2c: E2 08 00 94 58 80 13 01 00 00 00 00 00 69 [21:37:06]Write i2c OK [21:37:06]MH_I2C_Read... [21:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:06]Read from MH i2c: E2 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 0E 00 [21:37:06]MH_I2C_Read... [21:37:06]Read from MH i2c: E2 0E 00 94 58 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9E [21:37:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:37:06]wFMCommunicate OK [21:37:06]SAM_PROTO_GetShiftState done [21:37:06]FM_GetShiftState done [21:37:06]opened in 1719020067 [21:37:06]opened+sec_in_day 1719106467 [21:37:06]quantity*price = 20052 [21:37:06]sum+1 = 20054 [21:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 226 22.06.2024 21:37 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112360 ФПД: 173170140210412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213742&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112360&fm=173170140210412&tin=02508201610067®Number=0000000000092771&sum=20000 [21:37:08]StoreToDocumentArchive [21:37:08]shift 391 fd 112360 [21:37:08]save to /storage/0391/doc_00112360 [21:37:08]save last doc name /storage/0391/doc_00112360 to /storage/kkm_last_doc_name [21:37:08]save OK [21:37:08]Clear old archive folders... [21:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:08]tlvbuf is B6F565F0 [21:37:08]SAM_PROTO_ClearQueue [21:37:08]wFMCommunicate request_size=4 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 09 00 00 [21:37:08]Write to MH i2c: E2 08 00 A1 58 80 09 00 00 00 00 00 00 6B [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 A1 58 00 90 00 6D [21:37:08]RAPDU: 90 00 [21:37:08]wFMCommunicate OK [21:37:08]SAM_PROTO_ClearQueue done [21:37:08]KKMCreateOFDPacket [21:37:08]OFDProtocolAddRootSTLVToBuf [21:37:08]FM_MakeSignedData [21:37:08]FM_MakeSignedData [21:37:08]SAM_PROTO_SignData [21:37:08]wFMCommunicate request_size=4 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 0D 01 02 [21:37:08]Write to MH i2c: E2 08 00 A2 58 80 0D 01 02 00 00 00 00 73 [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 A2 58 00 90 00 6E [21:37:08]RAPDU: 90 00 [21:37:08]wFMCommunicate OK [21:37:08]wFMCommunicate request_size=255 [21:37:08]MH_SAM_APDU [21:37: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 26 44 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B6 01 00 35 04 06 00 9D [21:37:08]Write to MH i2c: E2 02 01 A3 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 26 44 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B6 01 00 35 04 06 00 9D 00 00 D3 [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 A3 58 00 90 00 6F [21:37:08]RAPDU: 90 00 [21:37:08]wFMCommunicate OK [21:37:08]wFMCommunicate request_size=10 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 0D 02 02 05 7F 50 B1 64 EC [21:37:08]Write to MH i2c: E2 0D 00 A4 58 80 0D 02 02 05 00 7F 50 B1 64 EC 00 00 50 [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 03 00 A4 58 00 90 00 70 [21:37:08]RAPDU: 90 00 [21:37:08]wFMCommunicate OK [21:37:08]wFMCommunicate request_size=4 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 0D 03 02 [21:37:08]Write to MH i2c: E2 08 00 A5 58 80 0D 03 02 00 00 00 00 78 [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 0B 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 0B 00 A5 58 00 3B 84 EF 8A E2 B5 DA CC 90 00 EE [21:37:08]RAPDU: 3B 84 EF 8A E2 B5 DA CC 90 00 [21:37:08]wFMCommunicate OK [21:37:08]SAM_PROTO_SignData done [21:37:08]FM_MakeSignedData done [21:37:08]CreateOFDProtocolMessage [21:37:08]wFMCommunicate request_size=4 [21:37:08]MH_SAM_APDU [21:37:08]CAPDU: 80 11 00 00 [21:37:08]Write to MH i2c: E2 08 00 A6 58 80 11 00 00 00 00 00 00 78 [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:08]Read from MH i2c: E2 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 17 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: E2 17 00 A6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [21:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:37:08]wFMCommunicate OK [21:37:08]CreateOFDProtocolMessage done [21:37:08]OFDSenderStorePacket 112360 [21:37:08]StoreOFDPacket docnum=112360 [21:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 59 07 01 1D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 26 44 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B6 01 00 35 04 06 00 9D 7F 50 B1 64 EC 3B 84 EF 8A E2 B5 DA CC [21:37:08]CheckFolder [21:37:08]dirname=/storage/ofd_packets [21:37:08]CheckFolder done [21:37:08]ProducePacketName [21:37:08]name=ofd_packets/00112360 [21:37:08]NVStorageSaveData ofd_packets/00112360 [21:37:08]File name is /storage/ofd_packets/00112360 [21:37:08]Write 301 bytes [21:37:08]NVStorageSaveData done [21:37:08]OFDSenderStorePacket done [21:37:08]KKMCreateOFDPacket done [21:37:08]NVStorageSaveData kkm_last_timestamp [21:37:08]File name is /storage/kkm_last_timestamp [21:37:08]Write 4 bytes [21:37:08]NVStorageSaveData done [21:37:08]ExternCall_PrintAddStr [21:37:08]wPrintStart [21:37:08]Write to MH i2c: 01 00 00 A7 58 FF [21:37:08]Write i2c OK [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: 01 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: 01 07 00 [21:37:08]MH_I2C_Read... [21:37:08]Read from MH i2c: 01 07 00 A7 58 00 00 00 00 00 FF 0F 14 [21:37:08]RasterBufferAndPrint [21:37:08]line Счет N : (1)321038 [21:37:08]line ИНН: 02508201610067 [21:37:08]line Контрольно-Кассовый Чек [21:37:08]line ПРОДАЖА [21:37:08]line ТРК (МРК, ГНК) : 11 [21:37:08]line Товар: 2710124130 [21:37:08]line Аи-92-К-5 [21:37:08]line 3.020 * 66.40 [21:37:08]line = 200.53 [21:37:08]line НДС 12% НСП 1% [21:37:08]line > о реализуемом товаре [21:37:08]line ОКРУГЛЕНИЕ: -0.53 [21:37:08]line ИТОГО: 200.00 [21:37:08]line Внесено: 200.00 [21:37:08]line СДАЧА: 0.00 [21:37:08]line НСП 1% : 1.77 [21:37:08]line НДС 12% : 21.29 [21:37:08]line Наличными: 200.00 [21:37:08]line Безнал.: 0.00 [21:37:08]line Место: АЗС № 65 "Партнер Нефть" [21:37:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:37:08]line СНО: Общий режим [21:37:08]line Чек 226 22.06.2024 21:37 [21:37:08]line Смена: 391 ФФД: 1.0 [21:37:08]line ЗНМ: 0300000198 [21:37:08]line РНМ: 0000000000092771 [21:37:08]line Версия ККМ: 001 [21:37:08]line ФМ: 0000000000875083 [21:37:08]line ФД: 112360 [21:37:08]line ФПД: 173170140210412 [21:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213742&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112360&fm=173170140210412&tin=02508201610067®Number=0000000000092771&sum=20000 [21:37:08]OFD Sender: Processing packet 112360 [packets to send 38, broken 37] [21:37:08]ProducePacketName [21:37:08]name=ofd_packets/00112360 [21:37:08]OFD Sender: To server: pG, [21:37:08]CommunicateWithHost lk.salyk.kg:30040 [21:37:08]ConnectInit lk.salyk.kg [21:37:08]written 0, free lines is 4095 [21:37:09]Connected sock=10 [21:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 59 07 01 1D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 26 44 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B6 01 00 35 04 06 00 9D 7F 50 B1 64 EC 3B 84 EF 8A E2 B5 DA CC [21:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C 30 47 00 2D 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B6 01 00 F4 03 04 00 27 DB 76 66 B6 04 01 00 00 68 F7 71 52 A5 93 E3 A5 [21:37:09]CommunicateWithHost err = 0 [21:37:09]CheckOFDResponse [21:37:09]1017 (14) - 77093643461234 [21:37:09]1041 (16) - 0000000000875083 [21:37:09]1040 (4) - 112360 [21:37:09]1012 (4) - 22.06.2024 14:09 [21:37:09]1206 (1) - 0 [21:37:09]OFD Sender: Remove packet 112360 [21:37:09]ProducePacketName [21:37:09]name=ofd_packets/00112360 [21:37:09]NVStorageDeleteData [21:37:09]Write to MH i2c: 01 00 00 D2 58 2A [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 07 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 07 00 D2 58 00 00 00 00 00 CF 0C 0C [21:37:09]RasterBufferAndPrint [21:37:09]line [21:37:09]line [21:37:09]line [21:37:09]line [21:37:09]line [21:37:09]written 0, free lines is 3287 [21:37:09]MH_Cut [21:37:09]Write to MH i2c: D1 01 00 D9 58 01 03 [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: D1 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: D1 01 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: D1 01 00 D9 58 00 02 [21:37:09]Write to MH i2c: 01 00 00 DA 58 32 [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]OFD Sender: No OFD packet to send [21:37:10]*** Cut start [21:37:10]*** Partial cut [21:37:10]*** CUTSNS_PIN = 1 [21:37:10]*** CUTSNS_PIN = 0 [21:37:10]*** Brake cut motor [21:37:10]Read from MH i2c: 01 [21:37:10]MH_I2C_Read... [21:37:10]*** Stop cut motor [21:37:10]*** Cut end [21:37:10]Read from MH i2c: 01 07 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: 01 07 00 DA 58 00 00 00 00 00 FF 0F 47 [21:37:10]process_action close_receipt done [21:37:10]requested_data is exist [21:37:10]produce_requested_data [21:37:10]requested_item fm.sn is exist - process it [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 11 00 00 [21:37:10]Write to MH i2c: E2 08 00 DB 58 80 11 00 00 00 00 00 00 AD [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:10]Read from MH i2c: E2 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 17 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 17 00 DB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [21:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:37:10]wFMCommunicate OK [21:37:10]requested_item fd.num is exist - process it [21:37:10]SAM_PROTO_GetFieldsCounters [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 13 00 00 [21:37:10]Write to MH i2c: E2 08 00 DC 58 80 13 00 00 00 00 00 00 B0 [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:10]Read from MH i2c: E2 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 62 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 62 00 DC 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [21:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:10]wFMCommunicate OK [21:37:10]SAM_PROTO_GetFieldsCounters done [21:37:10]requested_item shift.num is exist - process it [21:37:10]requested_item shift.opened is exist - process it [21:37:10]req_shift_opened [21:37:10]FM_GetShiftState [21:37:10]SAM_PROTO_GetShiftState [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 13 01 00 [21:37:10]Write to MH i2c: E2 08 00 DD 58 80 13 01 00 00 00 00 00 B2 [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:11]Read from MH i2c: E2 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: E2 0E 00 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: E2 0E 00 DD 58 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E7 [21:37:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:37:11]wFMCommunicate OK [21:37:11]SAM_PROTO_GetShiftState done [21:37:11]FM_GetShiftState done [21:37:11]req_shift_opened done [21:37:11]requested_item shift.open_date is exist - process it [21:37:11]req_shift_open_date [21:37:11]req_shift_open_date done [21:37:11]produce_requested_data done [21:37:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112360,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:37:11]process_action_free close_receipt [21:37:11]json_value_free [21:37:11]json_value_free done [21:37:11]process_json_proto returns [21:37:11]Send response to host [21:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112360,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:37:11]free response buf [21:37:11]execute_script done [21:37:11]execute_script returns [21:37:11]free content buf [21:37:11]Sock 9.Close socket [21:37:11]Sock 9.Thread stoped [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:47]accept exits with 7 [21:50:47]New connection [21:50:47]New thread 3066813796 created [21:50:47]Thread 3066957156 joined [21:50:47]Waiting for new connection... [21:50:47] Sock 7.Parse request [21:50:47]Sock 7.Check first char [21:50:47]Sock 7.First char is OK [21:50:47]request: POST /json_proto HTTP/1.0 [21:50:47]Method: POST [21:50:47]URL: /json_proto [21:50:47]Method is POST - this is cgi request [21:50:47]url: /json_proto [21:50:47]query_string will be loaded in cgi processing [21:50:47]execute_cgi json_proto POST (null) [21:50:47]execute_cgi path=json_proto method=POST [21:50:47]POST find Content-Length [21:50:47]Host: 172.17.59.68:8080 [21:50:47]Content-Length: 677 [21:50:47]Content-Type: application/json [21:50:47] [21:50:47]POST finish read [21:50:47]Found Content-Length = 677 [21:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321039", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:50:47]execute_script... [21:50: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)321039", "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.40, "quantity" : 3.020, "sum" : 200.53, "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:50:47]POST & json_proto [21:50:47]process_json_proto [21:50:47]json parsed OK: [21:50:47]protocol is kg_v1.0 [21:50:47]action value=close_receipt [21:50:47]process_action close_receipt [21:50:47]cmd_close_receipt [21:50:47]MH_GetDate [21:50:47]Write to MH i2c: F0 00 00 DE 58 25 [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: F0 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: F0 09 00 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: F0 09 00 DE 58 00 5B 47 77 66 BC EC 60 65 1A [21:50:47]GetLastDocTimeStamp 1719092262 [21:50:47]current date 1719093083 [21:50:47]FM_GetShiftState [21:50:47]SAM_PROTO_GetShiftState [21:50:47]wFMCommunicate request_size=4 [21:50:47]MH_SAM_APDU [21:50:47]CAPDU: 80 13 01 00 [21:50:47]Write to MH i2c: E2 08 00 DF 58 80 13 01 00 00 00 00 00 B4 [21:50:47]Write i2c OK [21:50:47]MH_I2C_Read... [21:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:47]Read from MH i2c: E2 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: E2 0E 00 [21:50:47]MH_I2C_Read... [21:50:47]Read from MH i2c: E2 0E 00 DF 58 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E9 [21:50:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:50:47]wFMCommunicate OK [21:50:47]SAM_PROTO_GetShiftState done [21:50:47]FM_GetShiftState done [21:50:47]opened in 1719020067 [21:50:47]opened+sec_in_day 1719106467 [21:50:47]quantity*price = 20052 [21:50:47]sum+1 = 20054 [21:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 227 22.06.2024 21:51 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112361 ФПД: 138702032867690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T215123&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112361&fm=138702032867690&tin=02508201610067®Number=0000000000092771&sum=20000 [21:50:48]StoreToDocumentArchive [21:50:48]shift 391 fd 112361 [21:50:48]save to /storage/0391/doc_00112361 [21:50:48]save last doc name /storage/0391/doc_00112361 to /storage/kkm_last_doc_name [21:50:48]save OK [21:50:48]Clear old archive folders... [21:50:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:48]tlvbuf is 01180030 [21:50:48]SAM_PROTO_ClearQueue [21:50:48]wFMCommunicate request_size=4 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 09 00 00 [21:50:48]Write to MH i2c: E2 08 00 EC 58 80 09 00 00 00 00 00 00 B6 [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 EC 58 00 90 00 B8 [21:50:48]RAPDU: 90 00 [21:50:48]wFMCommunicate OK [21:50:48]SAM_PROTO_ClearQueue done [21:50:48]KKMCreateOFDPacket [21:50:48]OFDProtocolAddRootSTLVToBuf [21:50:48]FM_MakeSignedData [21:50:48]FM_MakeSignedData [21:50:48]SAM_PROTO_SignData [21:50:48]wFMCommunicate request_size=4 [21:50:48]MH_SAM_APDU [21:50:48]CAPDU: 80 0D 01 02 [21:50:48]Write to MH i2c: E2 08 00 ED 58 80 0D 01 02 00 00 00 00 BE [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:48]Read from MH i2c: E2 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 [21:50:48]MH_I2C_Read... [21:50:48]Read from MH i2c: E2 03 00 ED 58 00 90 00 B9 [21:50:48]RAPDU: 90 00 [21:50:48]wFMCommunicate OK [21:50:48]wFMCommunicate request_size=255 [21:50:48]MH_SAM_APDU [21:50: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 5B 47 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B6 01 00 35 04 06 00 7E [21:50:48]Write to MH i2c: E2 02 01 EE 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 5B 47 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B6 01 00 35 04 06 00 7E 00 00 39 [21:50:48]Write i2c OK [21:50:48]MH_I2C_Read... [21:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:49]Read from MH i2c: E2 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 03 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 03 00 EE 58 00 90 00 BA [21:50:49]RAPDU: 90 00 [21:50:49]wFMCommunicate OK [21:50:49]wFMCommunicate request_size=10 [21:50:49]MH_SAM_APDU [21:50:49]CAPDU: 80 0D 02 02 05 26 15 66 11 6A [21:50:49]Write to MH i2c: E2 0D 00 EF 58 80 0D 02 02 05 00 26 15 66 11 6A 00 00 E7 [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:49]Read from MH i2c: E2 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 03 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 03 00 EF 58 00 90 00 BB [21:50:49]RAPDU: 90 00 [21:50:49]wFMCommunicate OK [21:50:49]wFMCommunicate request_size=4 [21:50:49]MH_SAM_APDU [21:50:49]CAPDU: 80 0D 03 02 [21:50:49]Write to MH i2c: E2 08 00 F0 58 80 0D 03 02 00 00 00 00 C3 [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:49]Read from MH i2c: E2 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 0B 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 0B 00 F0 58 00 5E E9 FB 4B 28 B2 55 71 90 00 F1 [21:50:49]RAPDU: 5E E9 FB 4B 28 B2 55 71 90 00 [21:50:49]wFMCommunicate OK [21:50:49]SAM_PROTO_SignData done [21:50:49]FM_MakeSignedData done [21:50:49]CreateOFDProtocolMessage [21:50:49]wFMCommunicate request_size=4 [21:50:49]MH_SAM_APDU [21:50:49]CAPDU: 80 11 00 00 [21:50:49]Write to MH i2c: E2 08 00 F1 58 80 11 00 00 00 00 00 00 C3 [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:49]Read from MH i2c: E2 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 17 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 17 00 F1 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [21:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:50:49]wFMCommunicate OK [21:50:49]CreateOFDProtocolMessage done [21:50:49]OFDSenderStorePacket 112361 [21:50:49]StoreOFDPacket docnum=112361 [21:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C 2C 07 01 AF 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 5B 47 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B6 01 00 35 04 06 00 7E 26 15 66 11 6A 5E E9 FB 4B 28 B2 55 71 [21:50:49]CheckFolder [21:50:49]dirname=/storage/ofd_packets [21:50:49]CheckFolder done [21:50:49]ProducePacketName [21:50:49]name=ofd_packets/00112361 [21:50:49]NVStorageSaveData ofd_packets/00112361 [21:50:49]File name is /storage/ofd_packets/00112361 [21:50:49]Write 301 bytes [21:50:49]NVStorageSaveData done [21:50:49]OFDSenderStorePacket done [21:50:49]KKMCreateOFDPacket done [21:50:49]NVStorageSaveData kkm_last_timestamp [21:50:49]File name is /storage/kkm_last_timestamp [21:50:49]Write 4 bytes [21:50:49]NVStorageSaveData done [21:50:49]ExternCall_PrintAddStr [21:50:49]wPrintStart [21:50:49]Write to MH i2c: 01 00 00 F2 58 4A [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 07 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 07 00 F2 58 00 00 00 00 00 FF 0F 5F [21:50:49]RasterBufferAndPrint [21:50:49]line Счет N : (1)321039 [21:50:49]line ИНН: 02508201610067 [21:50:49]line Контрольно-Кассовый Чек [21:50:49]line ПРОДАЖА [21:50:49]line ТРК (МРК, ГНК) : 11 [21:50:49]line Товар: 2710124130 [21:50:49]line Аи-92-К-5 [21:50:49]line 3.020 * 66.40 [21:50:49]line = 200.53 [21:50:49]line НДС 12% НСП 1% [21:50:49]line > о реализуемом товаре [21:50:49]line ОКРУГЛЕНИЕ: -0.53 [21:50:49]line ИТОГО: 200.00 [21:50:49]line Внесено: 200.00 [21:50:49]line СДАЧА: 0.00 [21:50:49]line НСП 1% : 1.77 [21:50:49]line НДС 12% : 21.29 [21:50:49]line Наличными: 200.00 [21:50:49]line Безнал.: 0.00 [21:50:49]line Место: АЗС № 65 "Партнер Нефть" [21:50:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:50:49]line СНО: Общий режим [21:50:49]line Чек 227 22.06.2024 21:51 [21:50:49]line Смена: 391 ФФД: 1.0 [21:50:49]line ЗНМ: 0300000198 [21:50:49]line РНМ: 0000000000092771 [21:50:49]line Версия ККМ: 001 [21:50:49]line ФМ: 0000000000875083 [21:50:49]line ФД: 112361 [21:50:49]line ФПД: 138702032867690 [21:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T215123&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112361&fm=138702032867690&tin=02508201610067®Number=0000000000092771&sum=20000 [21:50:49]OFD Sender: Processing packet 112361 [packets to send 38, broken 37] [21:50:49]ProducePacketName [21:50:49]name=ofd_packets/00112361 [21:50:49]OFD Sender: To server: pG, [21:50:49]CommunicateWithHost lk.salyk.kg:30040 [21:50:49]ConnectInit lk.salyk.kg [21:50:49]written 0, free lines is 4095 [21:50:49]Connected sock=10 [21:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C 2C 07 01 AF 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 5B 47 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B6 01 00 35 04 06 00 7E 26 15 66 11 6A 5E E9 FB 4B 28 B2 55 71 [21:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 36 13 47 00 02 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B6 01 00 F4 03 04 00 5B DE 76 66 B6 04 01 00 00 9E 70 36 95 AB A8 05 45 [21:50:49]CommunicateWithHost err = 0 [21:50:49]CheckOFDResponse [21:50:49]1017 (14) - 77093643461234 [21:50:49]1041 (16) - 0000000000875083 [21:50:49]1040 (4) - 112361 [21:50:49]1012 (4) - 22.06.2024 14:23 [21:50:49]1206 (1) - 0 [21:50:49]OFD Sender: Remove packet 112361 [21:50:49]ProducePacketName [21:50:49]name=ofd_packets/00112361 [21:50:49]NVStorageDeleteData [21:50:49]Write to MH i2c: 01 00 00 1D 59 76 [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 07 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: 01 07 00 1D 59 00 00 00 00 00 C8 0C 51 [21:50:49]RasterBufferAndPrint [21:50:49]line [21:50:49]line [21:50:49]line [21:50:49]line [21:50:49]line [21:50:49]written 0, free lines is 3278 [21:50:49]MH_Cut [21:50:49]Write to MH i2c: D1 01 00 24 59 01 4F [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: D1 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: D1 01 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: D1 01 00 24 59 00 4E [21:50:49]Write to MH i2c: 01 00 00 25 59 7E [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:50]OFD Sender: No OFD packet to send [21:50:50]*** Cut start [21:50:50]*** Partial cut [21:50:50]*** CUTSNS_PIN = 1 [21:50:50]*** CUTSNS_PIN = 0 [21:50:50]*** Brake cut motor [21:50:51]Read from MH i2c: 01 [21:50:51]MH_I2C_Read... [21:50:51]*** Stop cut motor [21:50:51]*** Cut end [21:50:51]Read from MH i2c: 01 07 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: 01 07 00 25 59 00 00 00 00 00 FF 0F 93 [21:50:51]process_action close_receipt done [21:50:51]requested_data is exist [21:50:51]produce_requested_data [21:50:51]requested_item fm.sn is exist - process it [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 11 00 00 [21:50:51]Write to MH i2c: E2 08 00 26 59 80 11 00 00 00 00 00 00 F9 [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 17 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 17 00 26 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [21:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:50:51]wFMCommunicate OK [21:50:51]requested_item fd.num is exist - process it [21:50:51]SAM_PROTO_GetFieldsCounters [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 13 00 00 [21:50:51]Write to MH i2c: E2 08 00 27 59 80 13 00 00 00 00 00 00 FC [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 62 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 62 00 27 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [21:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:51]wFMCommunicate OK [21:50:51]SAM_PROTO_GetFieldsCounters done [21:50:51]requested_item shift.num is exist - process it [21:50:51]requested_item shift.opened is exist - process it [21:50:51]req_shift_opened [21:50:51]FM_GetShiftState [21:50:51]SAM_PROTO_GetShiftState [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 13 01 00 [21:50:51]Write to MH i2c: E2 08 00 28 59 80 13 01 00 00 00 00 00 FE [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 0E 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 0E 00 28 59 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 33 [21:50:51]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:50:51]wFMCommunicate OK [21:50:51]SAM_PROTO_GetShiftState done [21:50:51]FM_GetShiftState done [21:50:51]req_shift_opened done [21:50:51]requested_item shift.open_date is exist - process it [21:50:51]req_shift_open_date [21:50:51]req_shift_open_date done [21:50:51]produce_requested_data done [21:50:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112361,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:50:51]process_action_free close_receipt [21:50:51]json_value_free [21:50:51]json_value_free done [21:50:51]process_json_proto returns [21:50:51]Send response to host [21:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112361,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:50:51]free response buf [21:50:51]execute_script done [21:50:51]execute_script returns [21:50:51]free content buf [21:50:51]Sock 7.Close socket [21:50:51]Sock 7.Thread stoped [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:06]accept exits with 9 [21:55:06]New connection [21:55:06]New thread 3066957156 created [21:55:06]Thread 3066813796 joined [21:55:06]Waiting for new connection... [21:55:06] Sock 9.Parse request [21:55:06]Sock 9.Check first char [21:55:06]Sock 9.First char is OK [21:55:06]request: POST /json_proto HTTP/1.0 [21:55:06]Method: POST [21:55:06]URL: /json_proto [21:55:06]Method is POST - this is cgi request [21:55:06]url: /json_proto [21:55:06]query_string will be loaded in cgi processing [21:55:06]execute_cgi json_proto POST (null) [21:55:06]execute_cgi path=json_proto method=POST [21:55:06]POST find Content-Length [21:55:06]Host: 172.17.59.68:8080 [21:55:06]Content-Length: 677 [21:55:06]Content-Type: application/json [21:55:06] [21:55:06]POST finish read [21:55:06]Found Content-Length = 677 [21:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321040", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:06]execute_script... [21: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)321040", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:06]POST & json_proto [21:55:06]process_json_proto [21:55:06]json parsed OK: [21:55:06]protocol is kg_v1.0 [21:55:06]action value=close_receipt [21:55:06]process_action close_receipt [21:55:06]cmd_close_receipt [21:55:06]MH_GetDate [21:55:06]Write to MH i2c: F0 00 00 29 59 71 [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: F0 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: F0 09 00 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: F0 09 00 29 59 00 5E 48 77 66 BC EC 60 65 6A [21:55:06]GetLastDocTimeStamp 1719093083 [21:55:06]current date 1719093342 [21:55:06]FM_GetShiftState [21:55:06]SAM_PROTO_GetShiftState [21:55:06]wFMCommunicate request_size=4 [21:55:06]MH_SAM_APDU [21:55:06]CAPDU: 80 13 01 00 [21:55:06]Write to MH i2c: E2 08 00 2A 59 80 13 01 00 00 00 00 00 00 [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 0E 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 0E 00 2A 59 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 35 [21:55:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [21:55:07]wFMCommunicate OK [21:55:07]SAM_PROTO_GetShiftState done [21:55:07]FM_GetShiftState done [21:55:07]opened in 1719020067 [21:55:07]opened+sec_in_day 1719106467 [21:55:07]quantity*price = 50065 [21:55:07]sum+1 = 50067 [21:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 228 22.06.2024 21:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112362 ФПД: 201473413462647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T215542&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112362&fm=201473413462647&tin=02508201610067®Number=0000000000092771&sum=50000 [21:55:08]StoreToDocumentArchive [21:55:08]shift 391 fd 112362 [21:55:08]save to /storage/0391/doc_00112362 [21:55:08]save last doc name /storage/0391/doc_00112362 to /storage/kkm_last_doc_name [21:55:08]save OK [21:55:08]Clear old archive folders... [21:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:08]tlvbuf is 01185A30 [21:55:08]SAM_PROTO_ClearQueue [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 09 00 00 [21:55:08]Write to MH i2c: E2 08 00 37 59 80 09 00 00 00 00 00 00 02 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 37 59 00 90 00 04 [21:55:08]RAPDU: 90 00 [21:55:08]wFMCommunicate OK [21:55:08]SAM_PROTO_ClearQueue done [21:55:08]KKMCreateOFDPacket [21:55:08]OFDProtocolAddRootSTLVToBuf [21:55:08]FM_MakeSignedData [21:55:08]FM_MakeSignedData [21:55:08]SAM_PROTO_SignData [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 0D 01 02 [21:55:08]Write to MH i2c: E2 08 00 38 59 80 0D 01 02 00 00 00 00 0A [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 38 59 00 90 00 05 [21:55:08]RAPDU: 90 00 [21:55:08]wFMCommunicate OK [21:55:08]wFMCommunicate request_size=255 [21:55:08]MH_SAM_APDU [21: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 5E 48 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B6 01 00 35 04 06 00 B7 [21:55:08]Write to MH i2c: E2 02 01 39 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 5E 48 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B6 01 00 35 04 06 00 B7 00 00 05 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 39 59 00 90 00 06 [21:55:08]RAPDU: 90 00 [21:55:08]wFMCommunicate OK [21:55:08]wFMCommunicate request_size=10 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 0D 02 02 05 3D 2F 3D BA 77 [21:55:08]Write to MH i2c: E2 0D 00 3A 59 80 0D 02 02 05 00 3D 2F 3D BA 77 00 00 F1 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 03 00 3A 59 00 90 00 07 [21:55:08]RAPDU: 90 00 [21:55:08]wFMCommunicate OK [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 0D 03 02 [21:55:08]Write to MH i2c: E2 08 00 3B 59 80 0D 03 02 00 00 00 00 0F [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 0B 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 0B 00 3B 59 00 5E BB D0 F6 9B A4 32 9E 90 00 FE [21:55:08]RAPDU: 5E BB D0 F6 9B A4 32 9E 90 00 [21:55:08]wFMCommunicate OK [21:55:08]SAM_PROTO_SignData done [21:55:08]FM_MakeSignedData done [21:55:08]CreateOFDProtocolMessage [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 11 00 00 [21:55:08]Write to MH i2c: E2 08 00 3C 59 80 11 00 00 00 00 00 00 0F [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 17 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 17 00 3C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [21:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:55:08]wFMCommunicate OK [21:55:08]CreateOFDProtocolMessage done [21:55:08]OFDSenderStorePacket 112362 [21:55:08]StoreOFDPacket docnum=112362 [21:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 10 07 01 ED AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 5E 48 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B6 01 00 35 04 06 00 B7 3D 2F 3D BA 77 5E BB D0 F6 9B A4 32 9E [21:55:08]CheckFolder [21:55:08]dirname=/storage/ofd_packets [21:55:08]CheckFolder done [21:55:08]ProducePacketName [21:55:08]name=ofd_packets/00112362 [21:55:08]NVStorageSaveData ofd_packets/00112362 [21:55:08]File name is /storage/ofd_packets/00112362 [21:55:08]Write 301 bytes [21:55:08]NVStorageSaveData done [21:55:08]OFDSenderStorePacket done [21:55:08]KKMCreateOFDPacket done [21:55:08]NVStorageSaveData kkm_last_timestamp [21:55:08]File name is /storage/kkm_last_timestamp [21:55:08]Write 4 bytes [21:55:08]NVStorageSaveData done [21:55:08]ExternCall_PrintAddStr [21:55:08]wPrintStart [21:55:08]Write to MH i2c: 01 00 00 3D 59 96 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 3D 59 00 00 00 00 00 FF 0F AB [21:55:08]RasterBufferAndPrint [21:55:08]line Счет N : (1)321040 [21:55:08]line ИНН: 02508201610067 [21:55:08]line Контрольно-Кассовый Чек [21:55:08]line ПРОДАЖА [21:55:08]line ТРК (МРК, ГНК) : 11 [21:55:08]line Товар: 2710124130 [21:55:08]line Аи-92-К-5 [21:55:08]line 7.540 * 66.40 [21:55:08]line = 500.66 [21:55:08]line НДС 12% НСП 1% [21:55:08]line > о реализуемом товаре [21:55:08]line ОКРУГЛЕНИЕ: -0.66 [21:55:08]line ИТОГО: 500.00 [21:55:08]line Внесено: 500.00 [21:55:08]line СДАЧА: 0.00 [21:55:08]line НСП 1% : 4.43 [21:55:08]line НДС 12% : 53.17 [21:55:08]line Наличными: 500.00 [21:55:08]line Безнал.: 0.00 [21:55:08]line Место: АЗС № 65 "Партнер Нефть" [21:55:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:55:08]line СНО: Общий режим [21:55:08]line Чек 228 22.06.2024 21:55 [21:55:08]line Смена: 391 ФФД: 1.0 [21:55:08]line ЗНМ: 0300000198 [21:55:08]line РНМ: 0000000000092771 [21:55:08]line Версия ККМ: 001 [21:55:08]line ФМ: 0000000000875083 [21:55:08]line ФД: 112362 [21:55:08]line ФПД: 201473413462647 [21:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T215542&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112362&fm=201473413462647&tin=02508201610067®Number=0000000000092771&sum=50000 [21:55:09]OFD Sender: Processing packet 112362 [packets to send 38, broken 37] [21:55:09]ProducePacketName [21:55:09]name=ofd_packets/00112362 [21:55:09]OFD Sender: To server: pG, [21:55:09]CommunicateWithHost lk.salyk.kg:30040 [21:55:09]ConnectInit lk.salyk.kg [21:55:09]written 0, free lines is 4095 [21:55:09]Connected sock=11 [21:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 10 07 01 ED AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 5E 48 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B6 01 00 35 04 06 00 B7 3D 2F 3D BA 77 5E BB D0 F6 9B A4 32 9E [21:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C1 42 47 00 EB F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B6 01 00 F4 03 04 00 5F DF 76 66 B6 04 01 00 00 05 5F 14 7B 85 24 C9 61 [21:55:09]CommunicateWithHost err = 0 [21:55:09]CheckOFDResponse [21:55:09]1017 (14) - 77093643461234 [21:55:09]1041 (16) - 0000000000875083 [21:55:09]1040 (4) - 112362 [21:55:09]1012 (4) - 22.06.2024 14:27 [21:55:09]1206 (1) - 0 [21:55:09]OFD Sender: Remove packet 112362 [21:55:09]ProducePacketName [21:55:09]name=ofd_packets/00112362 [21:55:09]NVStorageDeleteData [21:55:09]Write to MH i2c: 01 00 00 68 59 C1 [21:55:09]Write i2c OK [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: 01 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: 01 07 00 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: 01 07 00 68 59 00 00 00 00 00 C8 0C 9C [21:55:09]RasterBufferAndPrint [21:55:09]line [21:55:09]line [21:55:09]line [21:55:09]line [21:55:09]line [21:55:09]written 0, free lines is 3279 [21:55:09]MH_Cut [21:55:09]Write to MH i2c: D1 01 00 6F 59 01 9A [21:55:09]Write i2c OK [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: D1 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: D1 01 00 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: D1 01 00 6F 59 00 99 [21:55:09]Write to MH i2c: 01 00 00 70 59 C9 [21:55:09]Write i2c OK [21:55:09]MH_I2C_Read... [21:55:09]OFD Sender: No OFD packet to send [21:55:10]*** Cut start [21:55:10]*** Partial cut [21:55:10]*** CUTSNS_PIN = 1 [21:55:10]*** CUTSNS_PIN = 0 [21:55:10]*** Brake cut motor [21:55:10]Read from MH i2c: 01 [21:55:10]MH_I2C_Read... [21:55:10]*** Stop cut motor [21:55:10]*** Cut end [21:55:10]Read from MH i2c: 01 07 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: 01 07 00 70 59 00 00 00 00 00 FF 0F DE [21:55:10]process_action close_receipt done [21:55:10]requested_data is exist [21:55:10]produce_requested_data [21:55:10]requested_item fm.sn is exist - process it [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 11 00 00 [21:55:10]Write to MH i2c: E2 08 00 71 59 80 11 00 00 00 00 00 00 44 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 17 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 17 00 71 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 96 [21:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:55:10]wFMCommunicate OK [21:55:10]requested_item fd.num is exist - process it [21:55:10]SAM_PROTO_GetFieldsCounters [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 13 00 00 [21:55:10]Write to MH i2c: E2 08 00 72 59 80 13 00 00 00 00 00 00 47 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 62 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 62 00 72 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [21:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:11]wFMCommunicate OK [21:55:11]SAM_PROTO_GetFieldsCounters done [21:55:11]requested_item shift.num is exist - process it [21:55:11]requested_item shift.opened is exist - process it [21:55:11]req_shift_opened [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 73 59 80 13 01 00 00 00 00 00 49 [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 73 59 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7E [21:55:11]RAPDU: 09 00 01 23 2A 76 66 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]req_shift_opened done [21:55:11]requested_item shift.open_date is exist - process it [21:55:11]req_shift_open_date [21:55:11]req_shift_open_date done [21:55:11]produce_requested_data done [21:55:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112362,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [21:55:11]process_action_free close_receipt [21:55:11]json_value_free [21:55:11]json_value_free done [21:55:11]process_json_proto returns [21:55:11]Send response to host [21:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112362,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [21:55:11]free response buf [21:55:11]execute_script done [21:55:11]execute_script returns [21:55:11]free content buf [21:55:11]Sock 9.Close socket [21:55:11]Sock 9.Thread stoped [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21: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:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:03]accept exits with 7 [22:16:03]New connection [22:16:03]New thread 3066813796 created [22:16:03]Thread 3066957156 joined [22:16:03]Waiting for new connection... [22:16:03] Sock 7.Parse request [22:16:03]Sock 7.Check first char [22:16:03]Sock 7.First char is OK [22:16:03]request: POST /json_proto HTTP/1.0 [22:16:03]Method: POST [22:16:03]URL: /json_proto [22:16:03]Method is POST - this is cgi request [22:16:03]url: /json_proto [22:16:03]query_string will be loaded in cgi processing [22:16:03]execute_cgi json_proto POST (null) [22:16:03]execute_cgi path=json_proto method=POST [22:16:03]POST find Content-Length [22:16:03]Host: 172.17.59.68:8080 [22:16:03]Content-Length: 808 [22:16:03]Content-Type: application/json [22:16:03] [22:16:03]POST finish read [22:16:03]Found Content-Length = 808 [22:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321041", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:03]execute_script... [22:16: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)321041", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:03]POST & json_proto [22:16:03]process_json_proto [22:16:03]json parsed OK: [22:16:03]protocol is kg_v1.0 [22:16:03]action value=close_receipt [22:16:03]process_action close_receipt [22:16:03]cmd_close_receipt [22:16:03]MH_GetDate [22:16:03]Write to MH i2c: F0 00 00 74 59 BC [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: F0 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: F0 09 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: F0 09 00 74 59 00 48 4D 77 66 BC EC 60 65 A4 [22:16:03]GetLastDocTimeStamp 1719093342 [22:16:03]current date 1719094600 [22:16:03]FM_GetShiftState [22:16:03]SAM_PROTO_GetShiftState [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 13 01 00 [22:16:03]Write to MH i2c: E2 08 00 75 59 80 13 01 00 00 00 00 00 4B [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 0E 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 0E 00 75 59 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 80 [22:16:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:16:03]wFMCommunicate OK [22:16:03]SAM_PROTO_GetShiftState done [22:16:03]FM_GetShiftState done [22:16:03]opened in 1719020067 [22:16:03]opened+sec_in_day 1719106467 [22:16:03]quantity*price = 100064 [22:16:03]sum+1 = 100066 [22:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 229 22.06.2024 22:16 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112363 ФПД: 189318671317421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T221640&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112363&fm=189318671317421&tin=02508201610067®Number=0000000000092771&sum=100065 [22:16:04]StoreToDocumentArchive [22:16:04]shift 391 fd 112363 [22:16:04]save to /storage/0391/doc_00112363 [22:16:04]save last doc name /storage/0391/doc_00112363 to /storage/kkm_last_doc_name [22:16:04]save OK [22:16:04]Clear old archive folders... [22:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:04]tlvbuf is 0117FFA0 [22:16:04]SAM_PROTO_ClearQueue [22:16:04]wFMCommunicate request_size=4 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 09 00 00 [22:16:04]Write to MH i2c: E2 08 00 82 59 80 09 00 00 00 00 00 00 4D [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 82 59 00 90 00 4F [22:16:04]RAPDU: 90 00 [22:16:04]wFMCommunicate OK [22:16:04]SAM_PROTO_ClearQueue done [22:16:04]KKMCreateOFDPacket [22:16:04]OFDProtocolAddRootSTLVToBuf [22:16:04]FM_MakeSignedData [22:16:04]FM_MakeSignedData [22:16:04]SAM_PROTO_SignData [22:16:04]wFMCommunicate request_size=4 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 0D 01 02 [22:16:04]Write to MH i2c: E2 08 00 83 59 80 0D 01 02 00 00 00 00 55 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 03 00 83 59 00 90 00 50 [22:16:04]RAPDU: 90 00 [22:16:04]wFMCommunicate OK [22:16:04]wFMCommunicate request_size=255 [22:16:04]MH_SAM_APDU [22:16: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 48 4D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B6 01 00 35 04 06 00 AC [22:16:04]Write to MH i2c: E2 02 01 84 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 48 4D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B6 01 00 35 04 06 00 AC 00 00 08 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:05]Read from MH i2c: E2 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 03 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 03 00 84 59 00 90 00 51 [22:16:05]RAPDU: 90 00 [22:16:05]wFMCommunicate OK [22:16:05]wFMCommunicate request_size=10 [22:16:05]MH_SAM_APDU [22:16:05]CAPDU: 80 0D 02 02 05 2F 30 27 39 AD [22:16:05]Write to MH i2c: E2 0D 00 85 59 80 0D 02 02 05 00 2F 30 27 39 AD 00 00 CE [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:05]Read from MH i2c: E2 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 03 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 03 00 85 59 00 90 00 52 [22:16:05]RAPDU: 90 00 [22:16:05]wFMCommunicate OK [22:16:05]wFMCommunicate request_size=4 [22:16:05]MH_SAM_APDU [22:16:05]CAPDU: 80 0D 03 02 [22:16:05]Write to MH i2c: E2 08 00 86 59 80 0D 03 02 00 00 00 00 5A [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:05]Read from MH i2c: E2 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 0B 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 0B 00 86 59 00 5F D4 82 34 AD 96 56 59 90 00 36 [22:16:05]RAPDU: 5F D4 82 34 AD 96 56 59 90 00 [22:16:05]wFMCommunicate OK [22:16:05]SAM_PROTO_SignData done [22:16:05]FM_MakeSignedData done [22:16:05]CreateOFDProtocolMessage [22:16:05]wFMCommunicate request_size=4 [22:16:05]MH_SAM_APDU [22:16:05]CAPDU: 80 11 00 00 [22:16:05]Write to MH i2c: E2 08 00 87 59 80 11 00 00 00 00 00 00 5A [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:05]Read from MH i2c: E2 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 17 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 17 00 87 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [22:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:16:05]wFMCommunicate OK [22:16:05]CreateOFDProtocolMessage done [22:16:05]OFDSenderStorePacket 112363 [22:16:05]StoreOFDPacket docnum=112363 [22:16:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 AD 07 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 48 4D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B6 01 00 35 04 06 00 AC 2F 30 27 39 AD 5F D4 82 34 AD 96 56 59 [22:16:05]CheckFolder [22:16:05]dirname=/storage/ofd_packets [22:16:05]CheckFolder done [22:16:05]ProducePacketName [22:16:05]name=ofd_packets/00112363 [22:16:05]NVStorageSaveData ofd_packets/00112363 [22:16:05]File name is /storage/ofd_packets/00112363 [22:16:05]Write 301 bytes [22:16:05]NVStorageSaveData done [22:16:05]OFDSenderStorePacket done [22:16:05]KKMCreateOFDPacket done [22:16:05]NVStorageSaveData kkm_last_timestamp [22:16:05]File name is /storage/kkm_last_timestamp [22:16:05]Write 4 bytes [22:16:05]NVStorageSaveData done [22:16:05]ExternCall_PrintAddStr [22:16:05]wPrintStart [22:16:05]Write to MH i2c: 01 00 00 88 59 E1 [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: 01 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: 01 07 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: 01 07 00 88 59 00 00 00 00 00 FF 0F F6 [22:16:05]RasterBufferAndPrint [22:16:05]line Счет N : (1)321041 [22:16:05]line ИНН: 02508201610067 [22:16:05]line Контрольно-Кассовый Чек [22:16:05]line ПРОДАЖА [22:16:05]line ТРК (МРК, ГНК) : 11 [22:16:05]line Товар: 2710124130 [22:16:05]line Аи-92-К-5 [22:16:05]line 15.070 * 66.40 [22:16:05]line = 1000.65 [22:16:05]line НДС 12% НСП 1% [22:16:05]line > о реализуемом товаре [22:16:05]line ИТОГО: 1000.65 [22:16:05]line НСП 1% : 8.85 [22:16:05]line НДС 12% : 106.26 [22:16:05]line Наличными: 0.00 [22:16:05]line Безнал.: 1000.65 [22:16:05]line Место: АЗС № 65 "Партнер Нефть" [22:16:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:16:05]line СНО: Общий режим [22:16:05]line Чек 229 22.06.2024 22:16 [22:16:05]line Смена: 391 ФФД: 1.0 [22:16:05]line ЗНМ: 0300000198 [22:16:05]line РНМ: 0000000000092771 [22:16:05]line Версия ККМ: 001 [22:16:05]line Платежная система: О! деньги [22:16:05]line ФМ: 0000000000875083 [22:16:05]line ФД: 112363 [22:16:05]line ФПД: 189318671317421 [22:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T221640&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112363&fm=189318671317421&tin=02508201610067®Number=0000000000092771&sum=100065 [22:16:05]written 0, free lines is 4095 [22:16:05]OFD Sender: Processing packet 112363 [packets to send 38, broken 37] [22:16:05]ProducePacketName [22:16:05]name=ofd_packets/00112363 [22:16:05]OFD Sender: To server: pG, [22:16:05]CommunicateWithHost lk.salyk.kg:30040 [22:16:05]ConnectInit lk.salyk.kg [22:16:05]Connected sock=10 [22:16:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 AD 07 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 48 4D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B6 01 00 35 04 06 00 AC 2F 30 27 39 AD 5F D4 82 34 AD 96 56 59 [22:16:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E A8 47 00 99 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B6 01 00 F4 03 04 00 47 E4 76 66 B6 04 01 00 00 8A B4 46 AA 84 E2 38 D0 [22:16:05]CommunicateWithHost err = 0 [22:16:05]CheckOFDResponse [22:16:05]1017 (14) - 77093643461234 [22:16:05]1041 (16) - 0000000000875083 [22:16:05]1040 (4) - 112363 [22:16:05]1012 (4) - 22.06.2024 14:48 [22:16:05]1206 (1) - 0 [22:16:05]OFD Sender: Remove packet 112363 [22:16:05]ProducePacketName [22:16:05]name=ofd_packets/00112363 [22:16:05]NVStorageDeleteData [22:16:06]Write to MH i2c: 01 00 00 B2 59 0B [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 B2 59 00 00 00 00 00 E4 0C 02 [22:16:06]RasterBufferAndPrint [22:16:06]line [22:16:06]line [22:16:06]line [22:16:06]line [22:16:06]line [22:16:06]written 0, free lines is 3307 [22:16:06]MH_Cut [22:16:06]Write to MH i2c: D1 01 00 B9 59 01 E4 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: D1 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: D1 01 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: D1 01 00 B9 59 00 E3 [22:16:06]Write to MH i2c: 01 00 00 BA 59 13 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]OFD Sender: No OFD packet to send [22:16:06]*** Cut start [22:16:06]*** Partial cut [22:16:06]*** CUTSNS_PIN = 1 [22:16:06]*** CUTSNS_PIN = 0 [22:16:07]*** Brake cut motor [22:16:07]Read from MH i2c: 01 [22:16:07]MH_I2C_Read... [22:16:07]*** Stop cut motor [22:16:07]*** Cut end [22:16:07]Read from MH i2c: 01 07 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 07 00 BA 59 00 00 00 00 00 FF 0F 28 [22:16:07]process_action close_receipt done [22:16:07]requested_data is exist [22:16:07]produce_requested_data [22:16:07]requested_item fm.sn is exist - process it [22:16:07]wFMCommunicate request_size=4 [22:16:07]MH_SAM_APDU [22:16:07]CAPDU: 80 11 00 00 [22:16:07]Write to MH i2c: E2 08 00 BB 59 80 11 00 00 00 00 00 00 8E [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:07]Read from MH i2c: E2 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 17 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 17 00 BB 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [22:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:16:07]wFMCommunicate OK [22:16:07]requested_item fd.num is exist - process it [22:16:07]SAM_PROTO_GetFieldsCounters [22:16:07]wFMCommunicate request_size=4 [22:16:07]MH_SAM_APDU [22:16:07]CAPDU: 80 13 00 00 [22:16:07]Write to MH i2c: E2 08 00 BC 59 80 13 00 00 00 00 00 00 91 [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:07]Read from MH i2c: E2 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 62 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 62 00 BC 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [22:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:07]wFMCommunicate OK [22:16:07]SAM_PROTO_GetFieldsCounters done [22:16:07]requested_item shift.num is exist - process it [22:16:07]requested_item shift.opened is exist - process it [22:16:07]req_shift_opened [22:16:07]FM_GetShiftState [22:16:07]SAM_PROTO_GetShiftState [22:16:07]wFMCommunicate request_size=4 [22:16:07]MH_SAM_APDU [22:16:07]CAPDU: 80 13 01 00 [22:16:07]Write to MH i2c: E2 08 00 BD 59 80 13 01 00 00 00 00 00 93 [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:07]Read from MH i2c: E2 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 0E 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 0E 00 BD 59 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C8 [22:16:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:16:07]wFMCommunicate OK [22:16:07]SAM_PROTO_GetShiftState done [22:16:07]FM_GetShiftState done [22:16:07]req_shift_opened done [22:16:07]requested_item shift.open_date is exist - process it [22:16:07]req_shift_open_date [22:16:07]req_shift_open_date done [22:16:07]produce_requested_data done [22:16:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112363,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:16:07]process_action_free close_receipt [22:16:07]json_value_free [22:16:07]json_value_free done [22:16:07]process_json_proto returns [22:16:07]Send response to host [22:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112363,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:16:07]free response buf [22:16:07]execute_script done [22:16:07]execute_script returns [22:16:07]free content buf [22:16:07]Sock 7.Close socket [22:16:07]Sock 7.Thread stoped [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:28]accept exits with 9 [22:21:28]New connection [22:21:28]New thread 3066957156 created [22:21:28]Thread 3066813796 joined [22:21:28]Waiting for new connection... [22:21:28] Sock 9.Parse request [22:21:28]Sock 9.Check first char [22:21:28]Sock 9.First char is OK [22:21:28]request: POST /json_proto HTTP/1.0 [22:21:28]Method: POST [22:21:28]URL: /json_proto [22:21:28]Method is POST - this is cgi request [22:21:28]url: /json_proto [22:21:28]query_string will be loaded in cgi processing [22:21:28]execute_cgi json_proto POST (null) [22:21:28]execute_cgi path=json_proto method=POST [22:21:28]POST find Content-Length [22:21:28]Host: 172.17.59.68:8080 [22:21:28]Content-Length: 677 [22:21:28]Content-Type: application/json [22:21:28] [22:21:28]POST finish read [22:21:28]Found Content-Length = 677 [22:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321042", "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.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:28]execute_script... [22:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321042", "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.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:28]POST & json_proto [22:21:28]process_json_proto [22:21:28]json parsed OK: [22:21:28]protocol is kg_v1.0 [22:21:28]action value=close_receipt [22:21:28]process_action close_receipt [22:21:28]cmd_close_receipt [22:21:28]MH_GetDate [22:21:28]Write to MH i2c: F0 00 00 BE 59 06 [22:21:28]Write i2c OK [22:21:28]MH_I2C_Read... [22:21:28]Read from MH i2c: F0 [22:21:28]MH_I2C_Read... [22:21:28]Read from MH i2c: F0 09 00 [22:21:28]MH_I2C_Read... [22:21:28]Read from MH i2c: F0 09 00 BE 59 00 8D 4E 77 66 BC EC 60 65 34 [22:21:28]GetLastDocTimeStamp 1719094600 [22:21:28]current date 1719094925 [22:21:28]FM_GetShiftState [22:21:28]SAM_PROTO_GetShiftState [22:21:28]wFMCommunicate request_size=4 [22:21:28]MH_SAM_APDU [22:21:28]CAPDU: 80 13 01 00 [22:21:28]Write to MH i2c: E2 08 00 BF 59 80 13 01 00 00 00 00 00 95 [22:21:28]Write i2c OK [22:21:28]MH_I2C_Read... [22:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:28]Read from MH i2c: E2 [22:21:28]MH_I2C_Read... [22:21:28]Read from MH i2c: E2 0E 00 [22:21:28]MH_I2C_Read... [22:21:28]Read from MH i2c: E2 0E 00 BF 59 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 CA [22:21:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:21:28]wFMCommunicate OK [22:21:28]SAM_PROTO_GetShiftState done [22:21:28]FM_GetShiftState done [22:21:28]opened in 1719020067 [22:21:28]opened+sec_in_day 1719106467 [22:21:28]quantity*price = 25032 [22:21:28]sum+1 = 25034 [22:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 230 22.06.2024 22:22 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112364 ФПД: 143937803761717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112364&fm=143937803761717&tin=02508201610067®Number=0000000000092771&sum=25000 [22:21:29]StoreToDocumentArchive [22:21:29]shift 391 fd 112364 [22:21:29]save to /storage/0391/doc_00112364 [22:21:29]save last doc name /storage/0391/doc_00112364 to /storage/kkm_last_doc_name [22:21:29]save OK [22:21:29]Clear old archive folders... [22:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:29]tlvbuf is 011F1F00 [22:21:29]SAM_PROTO_ClearQueue [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 09 00 00 [22:21:29]Write to MH i2c: E2 08 00 CC 59 80 09 00 00 00 00 00 00 97 [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 CC 59 00 90 00 99 [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]SAM_PROTO_ClearQueue done [22:21:29]KKMCreateOFDPacket [22:21:29]OFDProtocolAddRootSTLVToBuf [22:21:29]FM_MakeSignedData [22:21:29]FM_MakeSignedData [22:21:29]SAM_PROTO_SignData [22:21:29]wFMCommunicate request_size=4 [22:21:29]MH_SAM_APDU [22:21:29]CAPDU: 80 0D 01 02 [22:21:29]Write to MH i2c: E2 08 00 CD 59 80 0D 01 02 00 00 00 00 9F [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:29]Read from MH i2c: E2 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 [22:21:29]MH_I2C_Read... [22:21:29]Read from MH i2c: E2 03 00 CD 59 00 90 00 9A [22:21:29]RAPDU: 90 00 [22:21:29]wFMCommunicate OK [22:21:29]wFMCommunicate request_size=255 [22:21:29]MH_SAM_APDU [22:21: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E6 00 00 00 F4 03 04 00 8D 4E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B6 01 00 35 04 06 00 82 [22:21:29]Write to MH i2c: E2 02 01 CE 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E6 00 00 00 F4 03 04 00 8D 4E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B6 01 00 35 04 06 00 82 00 00 4A [22:21:29]Write i2c OK [22:21:29]MH_I2C_Read... [22:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:30]Read from MH i2c: E2 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 03 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 03 00 CE 59 00 90 00 9B [22:21:30]RAPDU: 90 00 [22:21:30]wFMCommunicate OK [22:21:30]wFMCommunicate request_size=10 [22:21:30]MH_SAM_APDU [22:21:30]CAPDU: 80 0D 02 02 05 E9 21 A9 B8 35 [22:21:30]Write to MH i2c: E2 0D 00 CF 59 80 0D 02 02 05 00 E9 21 A9 B8 35 00 00 4C [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:30]Read from MH i2c: E2 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 03 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 03 00 CF 59 00 90 00 9C [22:21:30]RAPDU: 90 00 [22:21:30]wFMCommunicate OK [22:21:30]wFMCommunicate request_size=4 [22:21:30]MH_SAM_APDU [22:21:30]CAPDU: 80 0D 03 02 [22:21:30]Write to MH i2c: E2 08 00 D0 59 80 0D 03 02 00 00 00 00 A4 [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:30]Read from MH i2c: E2 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 0B 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 0B 00 D0 59 00 DA 9A 1D E5 23 DC 9F 6D 90 00 26 [22:21:30]RAPDU: DA 9A 1D E5 23 DC 9F 6D 90 00 [22:21:30]wFMCommunicate OK [22:21:30]SAM_PROTO_SignData done [22:21:30]FM_MakeSignedData done [22:21:30]CreateOFDProtocolMessage [22:21:30]wFMCommunicate request_size=4 [22:21:30]MH_SAM_APDU [22:21:30]CAPDU: 80 11 00 00 [22:21:30]Write to MH i2c: E2 08 00 D1 59 80 11 00 00 00 00 00 00 A4 [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:30]Read from MH i2c: E2 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 17 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: E2 17 00 D1 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [22:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:21:30]wFMCommunicate OK [22:21:30]CreateOFDProtocolMessage done [22:21:30]OFDSenderStorePacket 112364 [22:21:30]StoreOFDPacket docnum=112364 [22:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 01 07 01 FB 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E6 00 00 00 F4 03 04 00 8D 4E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B6 01 00 35 04 06 00 82 E9 21 A9 B8 35 DA 9A 1D E5 23 DC 9F 6D [22:21:30]CheckFolder [22:21:30]dirname=/storage/ofd_packets [22:21:30]CheckFolder done [22:21:30]ProducePacketName [22:21:30]name=ofd_packets/00112364 [22:21:30]NVStorageSaveData ofd_packets/00112364 [22:21:30]File name is /storage/ofd_packets/00112364 [22:21:30]Write 301 bytes [22:21:30]NVStorageSaveData done [22:21:30]OFDSenderStorePacket done [22:21:30]KKMCreateOFDPacket done [22:21:30]NVStorageSaveData kkm_last_timestamp [22:21:30]File name is /storage/kkm_last_timestamp [22:21:30]Write 4 bytes [22:21:30]NVStorageSaveData done [22:21:30]ExternCall_PrintAddStr [22:21:30]wPrintStart [22:21:30]Write to MH i2c: 01 00 00 D2 59 2B [22:21:30]Write i2c OK [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: 01 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: 01 07 00 [22:21:30]MH_I2C_Read... [22:21:30]Read from MH i2c: 01 07 00 D2 59 00 00 00 00 00 FF 0F 40 [22:21:30]RasterBufferAndPrint [22:21:30]line Счет N : (1)321042 [22:21:30]line ИНН: 02508201610067 [22:21:30]line Контрольно-Кассовый Чек [22:21:30]line ПРОДАЖА [22:21:30]line ТРК (МРК, ГНК) : 11 [22:21:30]line Товар: 2710124130 [22:21:30]line Аи-92-К-5 [22:21:30]line 3.770 * 66.40 [22:21:30]line = 250.33 [22:21:30]line НДС 12% НСП 1% [22:21:30]line > о реализуемом товаре [22:21:30]line ОКРУГЛЕНИЕ: -0.33 [22:21:30]line ИТОГО: 250.00 [22:21:30]line Внесено: 250.00 [22:21:30]line СДАЧА: 0.00 [22:21:30]line НСП 1% : 2.21 [22:21:30]line НДС 12% : 26.58 [22:21:30]line Наличными: 250.00 [22:21:30]line Безнал.: 0.00 [22:21:30]line Место: АЗС № 65 "Партнер Нефть" [22:21:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:21:30]line СНО: Общий режим [22:21:30]line Чек 230 22.06.2024 22:22 [22:21:30]line Смена: 391 ФФД: 1.0 [22:21:30]line ЗНМ: 0300000198 [22:21:30]line РНМ: 0000000000092771 [22:21:30]line Версия ККМ: 001 [22:21:30]line ФМ: 0000000000875083 [22:21:30]line ФД: 112364 [22:21:30]line ФПД: 143937803761717 [22:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222205&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112364&fm=143937803761717&tin=02508201610067®Number=0000000000092771&sum=25000 [22:21:30]OFD Sender: Processing packet 112364 [packets to send 38, broken 37] [22:21:30]ProducePacketName [22:21:30]name=ofd_packets/00112364 [22:21:30]OFD Sender: To server: pG, [22:21:30]CommunicateWithHost lk.salyk.kg:30040 [22:21:30]ConnectInit lk.salyk.kg [22:21:30]written 0, free lines is 4095 [22:21:30]Connected sock=10 [22:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 01 07 01 FB 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E6 00 00 00 F4 03 04 00 8D 4E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B6 01 00 35 04 06 00 82 E9 21 A9 B8 35 DA 9A 1D E5 23 DC 9F 6D [22:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E3 E2 47 00 ED 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B6 01 00 F4 03 04 00 8C E5 76 66 B6 04 01 00 00 D6 E6 3A 69 F6 1D A9 A6 [22:21:31]CommunicateWithHost err = 0 [22:21:31]CheckOFDResponse [22:21:31]1017 (14) - 77093643461234 [22:21:31]1041 (16) - 0000000000875083 [22:21:31]1040 (4) - 112364 [22:21:31]1012 (4) - 22.06.2024 14:54 [22:21:31]1206 (1) - 0 [22:21:31]OFD Sender: Remove packet 112364 [22:21:31]ProducePacketName [22:21:31]name=ofd_packets/00112364 [22:21:31]NVStorageDeleteData [22:21:31]Write to MH i2c: 01 00 00 FD 59 56 [22:21:31]Write i2c OK [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: 01 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: 01 07 00 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: 01 07 00 FD 59 00 00 00 00 00 D8 0C 41 [22:21:31]RasterBufferAndPrint [22:21:31]line [22:21:31]line [22:21:31]line [22:21:31]line [22:21:31]line [22:21:31]written 0, free lines is 3295 [22:21:31]MH_Cut [22:21:31]Write to MH i2c: D1 01 00 04 5A 01 30 [22:21:31]Write i2c OK [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: D1 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: D1 01 00 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: D1 01 00 04 5A 00 2F [22:21:31]Write to MH i2c: 01 00 00 05 5A 5F [22:21:31]Write i2c OK [22:21:31]MH_I2C_Read... [22:21:31]OFD Sender: No OFD packet to send [22:21:31]*** Cut start [22:21:31]*** Partial cut [22:21:31]*** CUTSNS_PIN = 1 [22:21:31]*** CUTSNS_PIN = 0 [22:21:32]*** Brake cut motor [22:21:32]Read from MH i2c: 01 [22:21:32]MH_I2C_Read... [22:21:32]*** Stop cut motor [22:21:32]*** Cut end [22:21:32]Read from MH i2c: 01 07 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: 01 07 00 05 5A 00 00 00 00 00 FF 0F 74 [22:21:32]process_action close_receipt done [22:21:32]requested_data is exist [22:21:32]produce_requested_data [22:21:32]requested_item fm.sn is exist - process it [22:21:32]wFMCommunicate request_size=4 [22:21:32]MH_SAM_APDU [22:21:32]CAPDU: 80 11 00 00 [22:21:32]Write to MH i2c: E2 08 00 06 5A 80 11 00 00 00 00 00 00 DA [22:21:32]Write i2c OK [22:21:32]MH_I2C_Read... [22:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:32]Read from MH i2c: E2 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 17 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 17 00 06 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [22:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:21:32]wFMCommunicate OK [22:21:32]requested_item fd.num is exist - process it [22:21:32]SAM_PROTO_GetFieldsCounters [22:21:32]wFMCommunicate request_size=4 [22:21:32]MH_SAM_APDU [22:21:32]CAPDU: 80 13 00 00 [22:21:32]Write to MH i2c: E2 08 00 07 5A 80 13 00 00 00 00 00 00 DD [22:21:32]Write i2c OK [22:21:32]MH_I2C_Read... [22:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:32]Read from MH i2c: E2 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 62 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 62 00 07 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:32]wFMCommunicate OK [22:21:32]SAM_PROTO_GetFieldsCounters done [22:21:32]requested_item shift.num is exist - process it [22:21:32]requested_item shift.opened is exist - process it [22:21:32]req_shift_opened [22:21:32]FM_GetShiftState [22:21:32]SAM_PROTO_GetShiftState [22:21:32]wFMCommunicate request_size=4 [22:21:32]MH_SAM_APDU [22:21:32]CAPDU: 80 13 01 00 [22:21:32]Write to MH i2c: E2 08 00 08 5A 80 13 01 00 00 00 00 00 DF [22:21:32]Write i2c OK [22:21:32]MH_I2C_Read... [22:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:32]Read from MH i2c: E2 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 0E 00 [22:21:32]MH_I2C_Read... [22:21:32]Read from MH i2c: E2 0E 00 08 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 14 [22:21:32]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:21:32]wFMCommunicate OK [22:21:32]SAM_PROTO_GetShiftState done [22:21:32]FM_GetShiftState done [22:21:32]req_shift_opened done [22:21:32]requested_item shift.open_date is exist - process it [22:21:32]req_shift_open_date [22:21:32]req_shift_open_date done [22:21:32]produce_requested_data done [22:21:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112364,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:21:32]process_action_free close_receipt [22:21:32]json_value_free [22:21:32]json_value_free done [22:21:32]process_json_proto returns [22:21:32]Send response to host [22:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112364,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:21:32]free response buf [22:21:32]execute_script done [22:21:32]execute_script returns [22:21:32]free content buf [22:21:32]Sock 9.Close socket [22:21:32]Sock 9.Thread stoped [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:10]accept exits with 7 [22:28:10]New connection [22:28:10]New thread 3066813796 created [22:28:10]Thread 3066957156 joined [22:28:10]Waiting for new connection... [22:28:10] Sock 7.Parse request [22:28:10]Sock 7.Check first char [22:28:10]Sock 7.First char is OK [22:28:10]request: POST /json_proto HTTP/1.0 [22:28:10]Method: POST [22:28:10]URL: /json_proto [22:28:10]Method is POST - this is cgi request [22:28:10]url: /json_proto [22:28:10]query_string will be loaded in cgi processing [22:28:10]execute_cgi json_proto POST (null) [22:28:10]execute_cgi path=json_proto method=POST [22:28:10]POST find Content-Length [22:28:10]Host: 172.17.59.68:8080 [22:28:10]Content-Length: 677 [22:28:10]Content-Type: application/json [22:28:10] [22:28:10]POST finish read [22:28:10]Found Content-Length = 677 [22:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321043", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [22:28:10]execute_script... [22:28: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)321043", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [22:28:10]POST & json_proto [22:28:10]process_json_proto [22:28:10]json parsed OK: [22:28:10]protocol is kg_v1.0 [22:28:10]action value=close_receipt [22:28:10]process_action close_receipt [22:28:10]cmd_close_receipt [22:28:10]MH_GetDate [22:28:10]Write to MH i2c: F0 00 00 09 5A 52 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: F0 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: F0 09 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: F0 09 00 09 5A 00 1F 50 77 66 BC EC 60 65 14 [22:28:10]GetLastDocTimeStamp 1719094925 [22:28:10]current date 1719095327 [22:28:10]FM_GetShiftState [22:28:10]SAM_PROTO_GetShiftState [22:28:10]wFMCommunicate request_size=4 [22:28:10]MH_SAM_APDU [22:28:10]CAPDU: 80 13 01 00 [22:28:10]Write to MH i2c: E2 08 00 0A 5A 80 13 01 00 00 00 00 00 E1 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:10]Read from MH i2c: E2 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: E2 0E 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: E2 0E 00 0A 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 16 [22:28:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:28:10]wFMCommunicate OK [22:28:10]SAM_PROTO_GetShiftState done [22:28:10]FM_GetShiftState done [22:28:10]opened in 1719020067 [22:28:10]opened+sec_in_day 1719106467 [22:28:10]quantity*price = 40039 [22:28:10]sum+1 = 40040 [22:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 231 22.06.2024 22:28 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112365 ФПД: 48461874655778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222847&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112365&fm=48461874655778&tin=02508201610067®Number=0000000000092771&sum=40000 [22:28:11]StoreToDocumentArchive [22:28:11]shift 391 fd 112365 [22:28:11]save to /storage/0391/doc_00112365 [22:28:11]save last doc name /storage/0391/doc_00112365 to /storage/kkm_last_doc_name [22:28:11]save OK [22:28:11]Clear old archive folders... [22:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:11]tlvbuf is 011F1850 [22:28:11]SAM_PROTO_ClearQueue [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 09 00 00 [22:28:11]Write to MH i2c: E2 08 00 17 5A 80 09 00 00 00 00 00 00 E3 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 17 5A 00 90 00 E5 [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]SAM_PROTO_ClearQueue done [22:28:11]KKMCreateOFDPacket [22:28:11]OFDProtocolAddRootSTLVToBuf [22:28:11]FM_MakeSignedData [22:28:11]FM_MakeSignedData [22:28:11]SAM_PROTO_SignData [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 01 02 [22:28:11]Write to MH i2c: E2 08 00 18 5A 80 0D 01 02 00 00 00 00 EB [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 18 5A 00 90 00 E6 [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]wFMCommunicate request_size=255 [22:28:11]MH_SAM_APDU [22:28: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 1F 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B6 01 00 35 04 06 00 2C [22:28:11]Write to MH i2c: E2 02 01 19 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 1F 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B6 01 00 35 04 06 00 2C 00 00 F8 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]OFD Sender: No OFD packet to send [22:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 19 5A 00 90 00 E7 [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]wFMCommunicate request_size=10 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 02 02 05 13 68 D2 F2 22 [22:28:11]Write to MH i2c: E2 0D 00 1A 5A 80 0D 02 02 05 00 13 68 D2 F2 22 00 00 59 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 03 00 1A 5A 00 90 00 E8 [22:28:11]RAPDU: 90 00 [22:28:11]wFMCommunicate OK [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 0D 03 02 [22:28:11]Write to MH i2c: E2 08 00 1B 5A 80 0D 03 02 00 00 00 00 F0 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:12]Read from MH i2c: E2 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0B 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0B 00 1B 5A 00 CC 5E 17 2D 9B 67 20 AE 90 00 2F [22:28:12]RAPDU: CC 5E 17 2D 9B 67 20 AE 90 00 [22:28:12]wFMCommunicate OK [22:28:12]SAM_PROTO_SignData done [22:28:12]FM_MakeSignedData done [22:28:12]CreateOFDProtocolMessage [22:28:12]wFMCommunicate request_size=4 [22:28:12]MH_SAM_APDU [22:28:12]CAPDU: 80 11 00 00 [22:28:12]Write to MH i2c: E2 08 00 1C 5A 80 11 00 00 00 00 00 00 F0 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:12]Read from MH i2c: E2 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 17 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 17 00 1C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [22:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:28:12]wFMCommunicate OK [22:28:12]CreateOFDProtocolMessage done [22:28:12]OFDSenderStorePacket 112365 [22:28:12]StoreOFDPacket docnum=112365 [22:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C 4D 07 01 D5 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 1F 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B6 01 00 35 04 06 00 2C 13 68 D2 F2 22 CC 5E 17 2D 9B 67 20 AE [22:28:12]CheckFolder [22:28:12]dirname=/storage/ofd_packets [22:28:12]CheckFolder done [22:28:12]ProducePacketName [22:28:12]name=ofd_packets/00112365 [22:28:12]NVStorageSaveData ofd_packets/00112365 [22:28:12]File name is /storage/ofd_packets/00112365 [22:28:12]Write 301 bytes [22:28:12]NVStorageSaveData done [22:28:12]OFDSenderStorePacket done [22:28:12]KKMCreateOFDPacket done [22:28:12]NVStorageSaveData kkm_last_timestamp [22:28:12]File name is /storage/kkm_last_timestamp [22:28:12]Write 4 bytes [22:28:12]NVStorageSaveData done [22:28:12]ExternCall_PrintAddStr [22:28:12]wPrintStart [22:28:12]Write to MH i2c: 01 00 00 1D 5A 77 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 07 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 07 00 1D 5A 00 00 00 00 00 FF 0F 8C [22:28:12]RasterBufferAndPrint [22:28:12]line Счет N : (1)321043 [22:28:12]line ИНН: 02508201610067 [22:28:12]line Контрольно-Кассовый Чек [22:28:12]line ПРОДАЖА [22:28:12]line ТРК (МРК, ГНК) : 11 [22:28:12]line Товар: 2710124130 [22:28:12]line Аи-92-К-5 [22:28:12]line 6.030 * 66.40 [22:28:12]line = 400.39 [22:28:12]line НДС 12% НСП 1% [22:28:12]line > о реализуемом товаре [22:28:12]line ОКРУГЛЕНИЕ: -0.39 [22:28:12]line ИТОГО: 400.00 [22:28:12]line Внесено: 400.00 [22:28:12]line СДАЧА: 0.00 [22:28:12]line НСП 1% : 3.54 [22:28:12]line НДС 12% : 42.52 [22:28:12]line Наличными: 400.00 [22:28:12]line Безнал.: 0.00 [22:28:12]line Место: АЗС № 65 "Партнер Нефть" [22:28:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:28:12]line СНО: Общий режим [22:28:12]line Чек 231 22.06.2024 22:28 [22:28:12]line Смена: 391 ФФД: 1.0 [22:28:12]line ЗНМ: 0300000198 [22:28:12]line РНМ: 0000000000092771 [22:28:12]line Версия ККМ: 001 [22:28:12]line ФМ: 0000000000875083 [22:28:12]line ФД: 112365 [22:28:12]line ФПД: 48461874655778 [22:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222847&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112365&fm=48461874655778&tin=02508201610067®Number=0000000000092771&sum=40000 [22:28:12]written 0, free lines is 4095 [22:28:12]OFD Sender: Processing packet 112365 [packets to send 38, broken 37] [22:28:12]ProducePacketName [22:28:12]name=ofd_packets/00112365 [22:28:12]OFD Sender: To server: pG, [22:28:12]CommunicateWithHost lk.salyk.kg:30040 [22:28:12]ConnectInit lk.salyk.kg [22:28:12]Connected sock=11 [22:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C 4D 07 01 D5 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 1F 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B6 01 00 35 04 06 00 2C 13 68 D2 F2 22 CC 5E 17 2D 9B 67 20 AE [22:28:12]Write to MH i2c: 01 00 00 48 5A A2 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 07 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: 01 07 00 48 5A 00 00 00 00 00 D4 0C 89 [22:28:12]RasterBufferAndPrint [22:28:12]line [22:28:12]line [22:28:12]line [22:28:12]line [22:28:12]line [22:28:12]written 0, free lines is 3292 [22:28:12]MH_Cut [22:28:12]Write to MH i2c: D1 01 00 4F 5A 01 7B [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: D1 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: D1 01 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: D1 01 00 4F 5A 00 7A [22:28:12]Write to MH i2c: 01 00 00 50 5A AA [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EF 9F 47 00 C8 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B6 01 00 F4 03 04 00 1E E7 76 66 B6 04 01 00 00 13 98 A6 E6 47 50 E8 BE [22:28:12]CommunicateWithHost err = 0 [22:28:12]CheckOFDResponse [22:28:12]1017 (14) - 77093643461234 [22:28:12]1041 (16) - 0000000000875083 [22:28:12]1040 (4) - 112365 [22:28:12]1012 (4) - 22.06.2024 15:00 [22:28:12]1206 (1) - 0 [22:28:12]OFD Sender: Remove packet 112365 [22:28:12]ProducePacketName [22:28:12]name=ofd_packets/00112365 [22:28:12]NVStorageDeleteData [22:28:13]OFD Sender: No OFD packet to send [22:28:13]*** Cut start [22:28:13]*** Partial cut [22:28:13]*** CUTSNS_PIN = 1 [22:28:13]*** CUTSNS_PIN = 0 [22:28:13]*** Brake cut motor [22:28:13]Read from MH i2c: 01 [22:28:13]MH_I2C_Read... [22:28:13]*** Stop cut motor [22:28:13]*** Cut end [22:28:13]Read from MH i2c: 01 07 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: 01 07 00 50 5A 00 00 00 00 00 FF 0F BF [22:28:13]process_action close_receipt done [22:28:13]requested_data is exist [22:28:13]produce_requested_data [22:28:13]requested_item fm.sn is exist - process it [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 11 00 00 [22:28:13]Write to MH i2c: E2 08 00 51 5A 80 11 00 00 00 00 00 00 25 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 17 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 17 00 51 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [22:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:28:13]wFMCommunicate OK [22:28:13]requested_item fd.num is exist - process it [22:28:13]SAM_PROTO_GetFieldsCounters [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 13 00 00 [22:28:13]Write to MH i2c: E2 08 00 52 5A 80 13 00 00 00 00 00 00 28 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 62 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 62 00 52 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [22:28:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:14]wFMCommunicate OK [22:28:14]SAM_PROTO_GetFieldsCounters done [22:28:14]requested_item shift.num is exist - process it [22:28:14]requested_item shift.opened is exist - process it [22:28:14]req_shift_opened [22:28:14]FM_GetShiftState [22:28:14]SAM_PROTO_GetShiftState [22:28:14]wFMCommunicate request_size=4 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 13 01 00 [22:28:14]Write to MH i2c: E2 08 00 53 5A 80 13 01 00 00 00 00 00 2A [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0E 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0E 00 53 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5F [22:28:14]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:28:14]wFMCommunicate OK [22:28:14]SAM_PROTO_GetShiftState done [22:28:14]FM_GetShiftState done [22:28:14]req_shift_opened done [22:28:14]requested_item shift.open_date is exist - process it [22:28:14]req_shift_open_date [22:28:14]req_shift_open_date done [22:28:14]produce_requested_data done [22:28:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112365,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:28:14]process_action_free close_receipt [22:28:14]json_value_free [22:28:14]json_value_free done [22:28:14]process_json_proto returns [22:28:14]Send response to host [22:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112365,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:28:14]free response buf [22:28:14]execute_script done [22:28:14]execute_script returns [22:28:14]free content buf [22:28:14]Sock 7.Close socket [22:28:14]Sock 7.Thread stoped [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:00]accept exits with 9 [22:29:00]New connection [22:29:00]New thread 3066957156 created [22:29:00]Thread 3066813796 joined [22:29:00]Waiting for new connection... [22:29:00] Sock 9.Parse request [22:29:00]Sock 9.Check first char [22:29:00]Sock 9.First char is OK [22:29:00]request: POST /json_proto HTTP/1.0 [22:29:00]Method: POST [22:29:00]URL: /json_proto [22:29:00]Method is POST - this is cgi request [22:29:00]url: /json_proto [22:29:00]query_string will be loaded in cgi processing [22:29:00]execute_cgi json_proto POST (null) [22:29:00]execute_cgi path=json_proto method=POST [22:29:00]POST find Content-Length [22:29:00]Host: 172.17.59.68:8080 [22:29:00]Content-Length: 682 [22:29:00]Content-Type: application/json [22:29:00] [22:29:00]POST finish read [22:29:00]Found Content-Length = 682 [22:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:00]execute_script... [22:29:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:00]POST & json_proto [22:29:00]process_json_proto [22:29:00]json parsed OK: [22:29:00]protocol is kg_v1.0 [22:29:00]action value=close_receipt [22:29:00]process_action close_receipt [22:29:00]cmd_close_receipt [22:29:00]MH_GetDate [22:29:00]Write to MH i2c: F0 00 00 54 5A 9D [22:29:00]Write i2c OK [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: F0 [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: F0 09 00 [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: F0 09 00 54 5A 00 51 50 77 66 BC EC 60 65 91 [22:29:00]GetLastDocTimeStamp 1719095327 [22:29:00]current date 1719095377 [22:29:00]FM_GetShiftState [22:29:00]SAM_PROTO_GetShiftState [22:29:00]wFMCommunicate request_size=4 [22:29:00]MH_SAM_APDU [22:29:00]CAPDU: 80 13 01 00 [22:29:00]Write to MH i2c: E2 08 00 55 5A 80 13 01 00 00 00 00 00 2C [22:29:00]Write i2c OK [22:29:00]MH_I2C_Read... [22:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:00]Read from MH i2c: E2 [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: E2 0E 00 [22:29:00]MH_I2C_Read... [22:29:00]Read from MH i2c: E2 0E 00 55 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 61 [22:29:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:29:00]wFMCommunicate OK [22:29:00]SAM_PROTO_GetShiftState done [22:29:00]FM_GetShiftState done [22:29:00]opened in 1719020067 [22:29:00]opened+sec_in_day 1719106467 [22:29:00]quantity*price = 100060 [22:29:00]sum+1 = 100062 [22:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 232 22.06.2024 22:29 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112366 ФПД: 98555047879373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112366&fm=98555047879373&tin=02508201610067®Number=0000000000092771&sum=100000 [22:29:01]StoreToDocumentArchive [22:29:01]shift 391 fd 112366 [22:29:01]save to /storage/0391/doc_00112366 [22:29:01]save last doc name /storage/0391/doc_00112366 to /storage/kkm_last_doc_name [22:29:01]save OK [22:29:01]Clear old archive folders... [22:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:01]tlvbuf is 0126FF50 [22:29:01]SAM_PROTO_ClearQueue [22:29:01]wFMCommunicate request_size=4 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 09 00 00 [22:29:01]Write to MH i2c: E2 08 00 62 5A 80 09 00 00 00 00 00 00 2E [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:01]Read from MH i2c: E2 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 62 5A 00 90 00 30 [22:29:01]RAPDU: 90 00 [22:29:01]wFMCommunicate OK [22:29:01]SAM_PROTO_ClearQueue done [22:29:01]KKMCreateOFDPacket [22:29:01]OFDProtocolAddRootSTLVToBuf [22:29:01]FM_MakeSignedData [22:29:01]FM_MakeSignedData [22:29:01]SAM_PROTO_SignData [22:29:01]wFMCommunicate request_size=4 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 0D 01 02 [22:29:01]Write to MH i2c: E2 08 00 63 5A 80 0D 01 02 00 00 00 00 36 [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:01]Read from MH i2c: E2 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 63 5A 00 90 00 31 [22:29:01]RAPDU: 90 00 [22:29:01]wFMCommunicate OK [22:29:01]wFMCommunicate request_size=255 [22:29:01]MH_SAM_APDU [22:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 51 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B6 01 00 35 04 06 00 59 [22:29:01]Write to MH i2c: E2 02 01 64 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 51 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B6 01 00 35 04 06 00 59 00 00 17 [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:01]Read from MH i2c: E2 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 64 5A 00 90 00 32 [22:29:01]RAPDU: 90 00 [22:29:01]wFMCommunicate OK [22:29:01]wFMCommunicate request_size=10 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 0D 02 02 05 A2 A2 9E A2 CD [22:29:01]Write to MH i2c: E2 0D 00 65 5A 80 0D 02 02 05 00 A2 A2 9E A2 CD 00 00 94 [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:01]Read from MH i2c: E2 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 03 00 65 5A 00 90 00 33 [22:29:01]RAPDU: 90 00 [22:29:01]wFMCommunicate OK [22:29:01]wFMCommunicate request_size=4 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 0D 03 02 [22:29:01]Write to MH i2c: E2 08 00 66 5A 80 0D 03 02 00 00 00 00 3B [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:01]Read from MH i2c: E2 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 0B 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 0B 00 66 5A 00 EF 3F B2 E3 FB 06 07 79 90 00 80 [22:29:01]RAPDU: EF 3F B2 E3 FB 06 07 79 90 00 [22:29:01]wFMCommunicate OK [22:29:01]SAM_PROTO_SignData done [22:29:01]FM_MakeSignedData done [22:29:01]CreateOFDProtocolMessage [22:29:01]wFMCommunicate request_size=4 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 11 00 00 [22:29:01]Write to MH i2c: E2 08 00 67 5A 80 11 00 00 00 00 00 00 3B [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 17 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 17 00 67 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [22:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:29:02]wFMCommunicate OK [22:29:02]CreateOFDProtocolMessage done [22:29:02]OFDSenderStorePacket 112366 [22:29:02]StoreOFDPacket docnum=112366 [22:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 3D 07 01 7C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 51 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B6 01 00 35 04 06 00 59 A2 A2 9E A2 CD EF 3F B2 E3 FB 06 07 79 [22:29:02]CheckFolder [22:29:02]dirname=/storage/ofd_packets [22:29:02]CheckFolder done [22:29:02]ProducePacketName [22:29:02]name=ofd_packets/00112366 [22:29:02]NVStorageSaveData ofd_packets/00112366 [22:29:02]File name is /storage/ofd_packets/00112366 [22:29:02]Write 301 bytes [22:29:02]NVStorageSaveData done [22:29:02]OFDSenderStorePacket done [22:29:02]KKMCreateOFDPacket done [22:29:02]NVStorageSaveData kkm_last_timestamp [22:29:02]File name is /storage/kkm_last_timestamp [22:29:02]Write 4 bytes [22:29:02]NVStorageSaveData done [22:29:02]ExternCall_PrintAddStr [22:29:02]wPrintStart [22:29:02]Write to MH i2c: 01 00 00 68 5A C2 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 07 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 07 00 68 5A 00 00 00 00 00 FF 0F D7 [22:29:02]RasterBufferAndPrint [22:29:02]line Счет N : (1)321044 [22:29:02]line ИНН: 02508201610067 [22:29:02]line Контрольно-Кассовый Чек [22:29:02]line ПРОДАЖА [22:29:02]line ТРК (МРК, ГНК) : 12 [22:29:02]line Товар: 2710124500 [22:29:02]line Аи-95-К-5 [22:29:02]line 13.540 * 73.90 [22:29:02]line = 1000.61 [22:29:02]line НДС 12% НСП 1% [22:29:02]line > о реализуемом товаре [22:29:02]line ОКРУГЛЕНИЕ: -0.61 [22:29:02]line ИТОГО: 1000.00 [22:29:02]line Внесено: 1000.00 [22:29:02]line СДАЧА: 0.00 [22:29:02]line НСП 1% : 8.85 [22:29:02]line НДС 12% : 106.26 [22:29:02]line Наличными: 1000.00 [22:29:02]line Безнал.: 0.00 [22:29:02]line Место: АЗС № 65 "Партнер Нефть" [22:29:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:29:02]line СНО: Общий режим [22:29:02]line Чек 232 22.06.2024 22:29 [22:29:02]line Смена: 391 ФФД: 1.0 [22:29:02]line ЗНМ: 0300000198 [22:29:02]line РНМ: 0000000000092771 [22:29:02]line Версия ККМ: 001 [22:29:02]line ФМ: 0000000000875083 [22:29:02]line ФД: 112366 [22:29:02]line ФПД: 98555047879373 [22:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112366&fm=98555047879373&tin=02508201610067®Number=0000000000092771&sum=100000 [22:29:02]OFD Sender: Processing packet 112366 [packets to send 38, broken 37] [22:29:02]ProducePacketName [22:29:02]name=ofd_packets/00112366 [22:29:02]OFD Sender: To server: pG, [22:29:02]CommunicateWithHost lk.salyk.kg:30040 [22:29:02]ConnectInit lk.salyk.kg [22:29:02]written 0, free lines is 4095 [22:29:02]Connected sock=10 [22:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 3D 07 01 7C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 51 50 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B6 01 00 35 04 06 00 59 A2 A2 9E A2 CD EF 3F B2 E3 FB 06 07 79 [22:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AE 11 47 00 46 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B6 01 00 F4 03 04 00 50 E7 76 66 B6 04 01 00 00 69 0A C9 93 43 39 59 9A [22:29:02]CommunicateWithHost err = 0 [22:29:02]CheckOFDResponse [22:29:02]1017 (14) - 77093643461234 [22:29:02]1041 (16) - 0000000000875083 [22:29:02]1040 (4) - 112366 [22:29:02]1012 (4) - 22.06.2024 15:01 [22:29:02]1206 (1) - 0 [22:29:02]OFD Sender: Remove packet 112366 [22:29:02]ProducePacketName [22:29:02]name=ofd_packets/00112366 [22:29:02]NVStorageDeleteData [22:29:02]Write to MH i2c: 01 00 00 93 5A ED [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 07 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 07 00 93 5A 00 00 00 00 00 D4 0C D4 [22:29:02]RasterBufferAndPrint [22:29:02]line [22:29:02]line [22:29:02]line [22:29:02]line [22:29:02]line [22:29:02]written 0, free lines is 3292 [22:29:02]MH_Cut [22:29:02]Write to MH i2c: D1 01 00 9A 5A 01 C6 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: D1 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: D1 01 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: D1 01 00 9A 5A 00 C5 [22:29:02]Write to MH i2c: 01 00 00 9B 5A F5 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:03]OFD Sender: No OFD packet to send [22:29:03]*** Cut start [22:29:03]*** Partial cut [22:29:03]*** CUTSNS_PIN = 1 [22:29:03]*** CUTSNS_PIN = 0 [22:29:03]*** Brake cut motor [22:29:04]Read from MH i2c: 01 [22:29:04]MH_I2C_Read... [22:29:04]*** Stop cut motor [22:29:04]*** Cut end [22:29:04]Read from MH i2c: 01 07 00 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: 01 07 00 9B 5A 00 00 00 00 00 FF 0F 0A [22:29:04]process_action close_receipt done [22:29:04]requested_data is exist [22:29:04]produce_requested_data [22:29:04]requested_item fm.sn is exist - process it [22:29:04]wFMCommunicate request_size=4 [22:29:04]MH_SAM_APDU [22:29:04]CAPDU: 80 11 00 00 [22:29:04]Write to MH i2c: E2 08 00 9C 5A 80 11 00 00 00 00 00 00 70 [22:29:04]Write i2c OK [22:29:04]MH_I2C_Read... [22:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:04]Read from MH i2c: E2 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: E2 17 00 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: E2 17 00 9C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [22:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:29:04]wFMCommunicate OK [22:29:04]requested_item fd.num is exist - process it [22:29:04]SAM_PROTO_GetFieldsCounters [22:29:04]wFMCommunicate request_size=4 [22:29:04]MH_SAM_APDU [22:29:04]CAPDU: 80 13 00 00 [22:29:04]Write to MH i2c: E2 08 00 9D 5A 80 13 00 00 00 00 00 00 73 [22:29:04]Write i2c OK [22:29:04]MH_I2C_Read... [22:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:04]Read from MH i2c: E2 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: E2 62 00 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: E2 62 00 9D 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [22:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:04]wFMCommunicate OK [22:29:04]SAM_PROTO_GetFieldsCounters done [22:29:04]requested_item shift.num is exist - process it [22:29:04]requested_item shift.opened is exist - process it [22:29:04]req_shift_opened [22:29:04]FM_GetShiftState [22:29:04]SAM_PROTO_GetShiftState [22:29:04]wFMCommunicate request_size=4 [22:29:04]MH_SAM_APDU [22:29:04]CAPDU: 80 13 01 00 [22:29:04]Write to MH i2c: E2 08 00 9E 5A 80 13 01 00 00 00 00 00 75 [22:29:04]Write i2c OK [22:29:04]MH_I2C_Read... [22:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:04]Read from MH i2c: E2 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: E2 0E 00 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: E2 0E 00 9E 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AA [22:29:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:29:04]wFMCommunicate OK [22:29:04]SAM_PROTO_GetShiftState done [22:29:04]FM_GetShiftState done [22:29:04]req_shift_opened done [22:29:04]requested_item shift.open_date is exist - process it [22:29:04]req_shift_open_date [22:29:04]req_shift_open_date done [22:29:04]produce_requested_data done [22:29:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112366,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:29:04]process_action_free close_receipt [22:29:04]json_value_free [22:29:04]json_value_free done [22:29:04]process_json_proto returns [22:29:04]Send response to host [22:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112366,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:29:04]free response buf [22:29:04]execute_script done [22:29:04]execute_script returns [22:29:04]free content buf [22:29:04]Sock 9.Close socket [22:29:04]Sock 9.Thread stoped [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:56]accept exits with 7 [22:34:56]New connection [22:34:56]New thread 3066813796 created [22:34:56]Thread 3066957156 joined [22:34:56]Waiting for new connection... [22:34:56] Sock 7.Parse request [22:34:56]Sock 7.Check first char [22:34:56]Sock 7.First char is OK [22:34:56]request: POST /json_proto HTTP/1.0 [22:34:56]Method: POST [22:34:56]URL: /json_proto [22:34:56]Method is POST - this is cgi request [22:34:56]url: /json_proto [22:34:56]query_string will be loaded in cgi processing [22:34:56]execute_cgi json_proto POST (null) [22:34:56]execute_cgi path=json_proto method=POST [22:34:56]POST find Content-Length [22:34:56]Host: 172.17.59.68:8080 [22:34:56]Content-Length: 677 [22:34:56]Content-Type: application/json [22:34:56] [22:34:56]POST finish read [22:34:56]Found Content-Length = 677 [22:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321045", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:56]execute_script... [22:34: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)321045", "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.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:56]POST & json_proto [22:34:56]process_json_proto [22:34:56]json parsed OK: [22:34:56]protocol is kg_v1.0 [22:34:56]action value=close_receipt [22:34:56]process_action close_receipt [22:34:56]cmd_close_receipt [22:34:56]MH_GetDate [22:34:56]Write to MH i2c: F0 00 00 9F 5A E8 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: F0 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: F0 09 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: F0 09 00 9F 5A 00 B5 51 77 66 BC EC 60 65 41 [22:34:56]GetLastDocTimeStamp 1719095377 [22:34:56]current date 1719095733 [22:34:56]FM_GetShiftState [22:34:56]SAM_PROTO_GetShiftState [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 13 01 00 [22:34:56]Write to MH i2c: E2 08 00 A0 5A 80 13 01 00 00 00 00 00 77 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 0E 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 0E 00 A0 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AC [22:34:56]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:34:56]wFMCommunicate OK [22:34:56]SAM_PROTO_GetShiftState done [22:34:56]FM_GetShiftState done [22:34:56]opened in 1719020067 [22:34:56]opened+sec_in_day 1719106467 [22:34:56]quantity*price = 20052 [22:34:56]sum+1 = 20054 [22:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 233 22.06.2024 22:35 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112367 ФПД: 38479586087393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T223533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112367&fm=38479586087393&tin=02508201610067®Number=0000000000092771&sum=20000 [22:34:57]StoreToDocumentArchive [22:34:57]shift 391 fd 112367 [22:34:57]save to /storage/0391/doc_00112367 [22:34:57]save last doc name /storage/0391/doc_00112367 to /storage/kkm_last_doc_name [22:34:57]save OK [22:34:57]Clear old archive folders... [22:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:57]tlvbuf is 01131B80 [22:34:57]SAM_PROTO_ClearQueue [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 09 00 00 [22:34:57]Write to MH i2c: E2 08 00 AD 5A 80 09 00 00 00 00 00 00 79 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 AD 5A 00 90 00 7B [22:34:57]RAPDU: 90 00 [22:34:57]wFMCommunicate OK [22:34:57]SAM_PROTO_ClearQueue done [22:34:57]KKMCreateOFDPacket [22:34:57]OFDProtocolAddRootSTLVToBuf [22:34:57]FM_MakeSignedData [22:34:57]FM_MakeSignedData [22:34:57]SAM_PROTO_SignData [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 0D 01 02 [22:34:57]Write to MH i2c: E2 08 00 AE 5A 80 0D 01 02 00 00 00 00 81 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 AE 5A 00 90 00 7C [22:34:57]RAPDU: 90 00 [22:34:57]wFMCommunicate OK [22:34:57]wFMCommunicate request_size=255 [22:34:57]MH_SAM_APDU [22:34: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B5 51 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B6 01 00 35 04 06 00 22 [22:34:57]Write to MH i2c: E2 02 01 AF 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B5 51 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B6 01 00 35 04 06 00 22 00 00 10 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 AF 5A 00 90 00 7D [22:34:57]RAPDU: 90 00 [22:34:57]wFMCommunicate OK [22:34:57]wFMCommunicate request_size=10 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 0D 02 02 05 FF 3A 0F 51 E1 [22:34:57]Write to MH i2c: E2 0D 00 B0 5A 80 0D 02 02 05 00 FF 3A 0F 51 E1 00 00 08 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 03 00 B0 5A 00 90 00 7E [22:34:57]RAPDU: 90 00 [22:34:57]wFMCommunicate OK [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 0D 03 02 [22:34:57]Write to MH i2c: E2 08 00 B1 5A 80 0D 03 02 00 00 00 00 86 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 0B 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 0B 00 B1 5A 00 FD 76 7F F5 BC 2A 01 9A 90 00 EF [22:34:57]RAPDU: FD 76 7F F5 BC 2A 01 9A 90 00 [22:34:57]wFMCommunicate OK [22:34:57]SAM_PROTO_SignData done [22:34:57]FM_MakeSignedData done [22:34:57]CreateOFDProtocolMessage [22:34:57]wFMCommunicate request_size=4 [22:34:57]MH_SAM_APDU [22:34:57]CAPDU: 80 11 00 00 [22:34:57]Write to MH i2c: E2 08 00 B2 5A 80 11 00 00 00 00 00 00 86 [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:57]Read from MH i2c: E2 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: E2 17 00 B2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [22:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:34:57]wFMCommunicate OK [22:34:57]CreateOFDProtocolMessage done [22:34:57]OFDSenderStorePacket 112367 [22:34:57]StoreOFDPacket docnum=112367 [22:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 9F 07 01 2D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B5 51 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B6 01 00 35 04 06 00 22 FF 3A 0F 51 E1 FD 76 7F F5 BC 2A 01 9A [22:34:57]CheckFolder [22:34:57]dirname=/storage/ofd_packets [22:34:57]CheckFolder done [22:34:57]ProducePacketName [22:34:57]name=ofd_packets/00112367 [22:34:57]NVStorageSaveData ofd_packets/00112367 [22:34:57]File name is /storage/ofd_packets/00112367 [22:34:57]Write 301 bytes [22:34:57]NVStorageSaveData done [22:34:57]OFDSenderStorePacket done [22:34:57]KKMCreateOFDPacket done [22:34:57]NVStorageSaveData kkm_last_timestamp [22:34:57]File name is /storage/kkm_last_timestamp [22:34:57]Write 4 bytes [22:34:57]NVStorageSaveData done [22:34:57]ExternCall_PrintAddStr [22:34:57]wPrintStart [22:34:57]Write to MH i2c: 01 00 00 B3 5A 0D [22:34:57]Write i2c OK [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: 01 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: 01 07 00 [22:34:57]MH_I2C_Read... [22:34:57]Read from MH i2c: 01 07 00 B3 5A 00 00 00 00 00 FF 0F 22 [22:34:57]RasterBufferAndPrint [22:34:57]line Счет N : (1)321045 [22:34:57]line ИНН: 02508201610067 [22:34:57]line Контрольно-Кассовый Чек [22:34:57]line ПРОДАЖА [22:34:57]line ТРК (МРК, ГНК) : 11 [22:34:57]line Товар: 2710124130 [22:34:57]line Аи-92-К-5 [22:34:57]line 3.020 * 66.40 [22:34:57]line = 200.53 [22:34:57]line НДС 12% НСП 1% [22:34:57]line > о реализуемом товаре [22:34:57]line ОКРУГЛЕНИЕ: -0.53 [22:34:57]line ИТОГО: 200.00 [22:34:57]line Внесено: 200.00 [22:34:57]line СДАЧА: 0.00 [22:34:57]line НСП 1% : 1.77 [22:34:57]line НДС 12% : 21.29 [22:34:57]line Наличными: 200.00 [22:34:57]line Безнал.: 0.00 [22:34:57]line Место: АЗС № 65 "Партнер Нефть" [22:34:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:34:57]line СНО: Общий режим [22:34:57]line Чек 233 22.06.2024 22:35 [22:34:57]line Смена: 391 ФФД: 1.0 [22:34:57]line ЗНМ: 0300000198 [22:34:57]line РНМ: 0000000000092771 [22:34:57]line Версия ККМ: 001 [22:34:57]line ФМ: 0000000000875083 [22:34:57]line ФД: 112367 [22:34:57]line ФПД: 38479586087393 [22:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T223533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112367&fm=38479586087393&tin=02508201610067®Number=0000000000092771&sum=20000 [22:34:58]OFD Sender: Processing packet 112367 [packets to send 38, broken 37] [22:34:58]ProducePacketName [22:34:58]name=ofd_packets/00112367 [22:34:58]OFD Sender: To server: pG, [22:34:58]CommunicateWithHost lk.salyk.kg:30040 [22:34:58]ConnectInit lk.salyk.kg [22:34:58]written 0, free lines is 4095 [22:34:58]Connected sock=10 [22:34:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 9F 07 01 2D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B5 51 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B6 01 00 35 04 06 00 22 FF 3A 0F 51 E1 FD 76 7F F5 BC 2A 01 9A [22:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F9 6E 47 00 DB 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B6 01 00 F4 03 04 00 B4 E8 76 66 B6 04 01 00 00 17 05 BD 66 78 76 26 ED [22:34:58]CommunicateWithHost err = 0 [22:34:58]CheckOFDResponse [22:34:58]1017 (14) - 77093643461234 [22:34:58]1041 (16) - 0000000000875083 [22:34:58]1040 (4) - 112367 [22:34:58]1012 (4) - 22.06.2024 15:07 [22:34:58]1206 (1) - 0 [22:34:58]OFD Sender: Remove packet 112367 [22:34:58]ProducePacketName [22:34:58]name=ofd_packets/00112367 [22:34:58]NVStorageDeleteData [22:34:58]Write to MH i2c: 01 00 00 DE 5A 38 [22:34:58]Write i2c OK [22:34:58]MH_I2C_Read... [22:34:58]Read from MH i2c: 01 [22:34:58]MH_I2C_Read... [22:34:58]Read from MH i2c: 01 07 00 [22:34:58]MH_I2C_Read... [22:34:58]Read from MH i2c: 01 07 00 DE 5A 00 00 00 00 00 D4 0C 1F [22:34:58]RasterBufferAndPrint [22:34:58]line [22:34:58]line [22:34:58]line [22:34:58]line [22:34:58]line [22:34:58]written 0, free lines is 3292 [22:34:58]MH_Cut [22:34:58]Write to MH i2c: D1 01 00 E5 5A 01 11 [22:34:58]Write i2c OK [22:34:58]MH_I2C_Read... [22:34:58]Read from MH i2c: D1 [22:34:58]MH_I2C_Read... [22:34:58]Read from MH i2c: D1 01 00 [22:34:58]MH_I2C_Read... [22:34:58]Read from MH i2c: D1 01 00 E5 5A 00 10 [22:34:58]Write to MH i2c: 01 00 00 E6 5A 40 [22:34:58]Write i2c OK [22:34:58]MH_I2C_Read... [22:34:59]OFD Sender: No OFD packet to send [22:34:59]*** Cut start [22:34:59]*** Partial cut [22:34:59]*** CUTSNS_PIN = 1 [22:34:59]*** CUTSNS_PIN = 0 [22:34:59]*** Brake cut motor [22:35:00]Read from MH i2c: 01 [22:35:00]MH_I2C_Read... [22:35:00]*** Stop cut motor [22:35:00]*** Cut end [22:35:00]Read from MH i2c: 01 07 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 07 00 E6 5A 00 00 00 00 00 FF 0F 55 [22:35:00]process_action close_receipt done [22:35:00]requested_data is exist [22:35:00]produce_requested_data [22:35:00]requested_item fm.sn is exist - process it [22:35:00]wFMCommunicate request_size=4 [22:35:00]MH_SAM_APDU [22:35:00]CAPDU: 80 11 00 00 [22:35:00]Write to MH i2c: E2 08 00 E7 5A 80 11 00 00 00 00 00 00 BB [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:00]Read from MH i2c: E2 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 17 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 17 00 E7 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [22:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:35:00]wFMCommunicate OK [22:35:00]requested_item fd.num is exist - process it [22:35:00]SAM_PROTO_GetFieldsCounters [22:35:00]wFMCommunicate request_size=4 [22:35:00]MH_SAM_APDU [22:35:00]CAPDU: 80 13 00 00 [22:35:00]Write to MH i2c: E2 08 00 E8 5A 80 13 00 00 00 00 00 00 BE [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:00]Read from MH i2c: E2 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 62 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 62 00 E8 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [22:35:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:00]wFMCommunicate OK [22:35:00]SAM_PROTO_GetFieldsCounters done [22:35:00]requested_item shift.num is exist - process it [22:35:00]requested_item shift.opened is exist - process it [22:35:00]req_shift_opened [22:35:00]FM_GetShiftState [22:35:00]SAM_PROTO_GetShiftState [22:35:00]wFMCommunicate request_size=4 [22:35:00]MH_SAM_APDU [22:35:00]CAPDU: 80 13 01 00 [22:35:00]Write to MH i2c: E2 08 00 E9 5A 80 13 01 00 00 00 00 00 C0 [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:00]Read from MH i2c: E2 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 0E 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 0E 00 E9 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F5 [22:35:00]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:35:00]wFMCommunicate OK [22:35:00]SAM_PROTO_GetShiftState done [22:35:00]FM_GetShiftState done [22:35:00]req_shift_opened done [22:35:00]requested_item shift.open_date is exist - process it [22:35:00]req_shift_open_date [22:35:00]req_shift_open_date done [22:35:00]produce_requested_data done [22:35:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112367,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:35:00]process_action_free close_receipt [22:35:00]json_value_free [22:35:00]json_value_free done [22:35:00]process_json_proto returns [22:35:00]Send response to host [22:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112367,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:35:00]free response buf [22:35:00]execute_script done [22:35:00]execute_script returns [22:35:00]free content buf [22:35:00]Sock 7.Close socket [22:35:00]Sock 7.Thread stoped [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:13]accept exits with 9 [22:37:13]New connection [22:37:13]New thread 3066957156 created [22:37:13]Thread 3066813796 joined [22:37:13]Waiting for new connection... [22:37:13] Sock 9.Parse request [22:37:13]Sock 9.Check first char [22:37:13]Sock 9.First char is OK [22:37:13]request: POST /json_proto HTTP/1.0 [22:37:13]Method: POST [22:37:13]URL: /json_proto [22:37:13]Method is POST - this is cgi request [22:37:13]url: /json_proto [22:37:13]query_string will be loaded in cgi processing [22:37:13]execute_cgi json_proto POST (null) [22:37:13]execute_cgi path=json_proto method=POST [22:37:13]POST find Content-Length [22:37:13]Host: 172.17.59.68:8080 [22:37:13]Content-Length: 677 [22:37:13]Content-Type: application/json [22:37:13] [22:37:13]POST finish read [22:37:13]Found Content-Length = 677 [22:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321046", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:37:13]execute_script... [22:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321046", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:37:13]POST & json_proto [22:37:13]process_json_proto [22:37:13]json parsed OK: [22:37:13]protocol is kg_v1.0 [22:37:13]action value=close_receipt [22:37:13]process_action close_receipt [22:37:13]cmd_close_receipt [22:37:13]MH_GetDate [22:37:13]Write to MH i2c: F0 00 00 EA 5A 33 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: F0 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: F0 09 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: F0 09 00 EA 5A 00 3E 52 77 66 BC EC 60 65 16 [22:37:13]GetLastDocTimeStamp 1719095733 [22:37:13]current date 1719095870 [22:37:13]FM_GetShiftState [22:37:13]SAM_PROTO_GetShiftState [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 01 00 [22:37:13]Write to MH i2c: E2 08 00 EB 5A 80 13 01 00 00 00 00 00 C2 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 0E 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 0E 00 EB 5A 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F7 [22:37:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:37:13]wFMCommunicate OK [22:37:13]SAM_PROTO_GetShiftState done [22:37:13]FM_GetShiftState done [22:37:13]opened in 1719020067 [22:37:13]opened+sec_in_day 1719106467 [22:37:13]quantity*price = 30012 [22:37:13]sum+1 = 30014 [22:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 234 22.06.2024 22:37 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112368 ФПД: 214347259062611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T223750&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112368&fm=214347259062611&tin=02508201610067®Number=0000000000092771&sum=30000 [22:37:14]StoreToDocumentArchive [22:37:14]shift 391 fd 112368 [22:37:14]save to /storage/0391/doc_00112368 [22:37:14]save last doc name /storage/0391/doc_00112368 to /storage/kkm_last_doc_name [22:37:14]save OK [22:37:14]Clear old archive folders... [22:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:14]tlvbuf is 013020D0 [22:37:14]SAM_PROTO_ClearQueue [22:37:14]wFMCommunicate request_size=4 [22:37:14]MH_SAM_APDU [22:37:14]CAPDU: 80 09 00 00 [22:37:14]Write to MH i2c: E2 08 00 F8 5A 80 09 00 00 00 00 00 00 C4 [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 F8 5A 00 90 00 C6 [22:37:14]RAPDU: 90 00 [22:37:14]wFMCommunicate OK [22:37:14]SAM_PROTO_ClearQueue done [22:37:14]KKMCreateOFDPacket [22:37:14]OFDProtocolAddRootSTLVToBuf [22:37:14]FM_MakeSignedData [22:37:14]FM_MakeSignedData [22:37:14]SAM_PROTO_SignData [22:37:14]wFMCommunicate request_size=4 [22:37:14]MH_SAM_APDU [22:37:14]CAPDU: 80 0D 01 02 [22:37:14]Write to MH i2c: E2 08 00 F9 5A 80 0D 01 02 00 00 00 00 CC [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 F9 5A 00 90 00 C7 [22:37:14]RAPDU: 90 00 [22:37:14]wFMCommunicate OK [22:37:14]wFMCommunicate request_size=255 [22:37:14]MH_SAM_APDU [22:37: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3E 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B6 01 00 35 04 06 00 C2 [22:37:14]Write to MH i2c: E2 02 01 FA 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3E 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B6 01 00 35 04 06 00 C2 00 00 66 [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 FA 5A 00 90 00 C8 [22:37:14]RAPDU: 90 00 [22:37:14]wFMCommunicate OK [22:37:14]wFMCommunicate request_size=10 [22:37:14]MH_SAM_APDU [22:37:14]CAPDU: 80 0D 02 02 05 F2 9C 3C 29 53 [22:37:14]Write to MH i2c: E2 0D 00 FB 5A 80 0D 02 02 05 00 F2 9C 3C 29 53 00 00 1F [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 03 00 FB 5A 00 90 00 C9 [22:37:14]RAPDU: 90 00 [22:37:14]wFMCommunicate OK [22:37:14]wFMCommunicate request_size=4 [22:37:14]MH_SAM_APDU [22:37:14]CAPDU: 80 0D 03 02 [22:37:14]Write to MH i2c: E2 08 00 FC 5A 80 0D 03 02 00 00 00 00 D1 [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 0B 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 0B 00 FC 5A 00 A3 D2 69 CF C2 98 BB E3 90 00 77 [22:37:14]RAPDU: A3 D2 69 CF C2 98 BB E3 90 00 [22:37:14]wFMCommunicate OK [22:37:14]SAM_PROTO_SignData done [22:37:14]FM_MakeSignedData done [22:37:14]CreateOFDProtocolMessage [22:37:14]wFMCommunicate request_size=4 [22:37:14]MH_SAM_APDU [22:37:14]CAPDU: 80 11 00 00 [22:37:14]Write to MH i2c: E2 08 00 FD 5A 80 11 00 00 00 00 00 00 D1 [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:14]Read from MH i2c: E2 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 17 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: E2 17 00 FD 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [22:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:37:14]wFMCommunicate OK [22:37:14]CreateOFDProtocolMessage done [22:37:14]OFDSenderStorePacket 112368 [22:37:14]StoreOFDPacket docnum=112368 [22:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 7B 07 01 F7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3E 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B6 01 00 35 04 06 00 C2 F2 9C 3C 29 53 A3 D2 69 CF C2 98 BB E3 [22:37:14]CheckFolder [22:37:14]dirname=/storage/ofd_packets [22:37:14]CheckFolder done [22:37:14]ProducePacketName [22:37:14]name=ofd_packets/00112368 [22:37:14]NVStorageSaveData ofd_packets/00112368 [22:37:14]File name is /storage/ofd_packets/00112368 [22:37:14]Write 301 bytes [22:37:14]NVStorageSaveData done [22:37:14]OFDSenderStorePacket done [22:37:14]KKMCreateOFDPacket done [22:37:14]NVStorageSaveData kkm_last_timestamp [22:37:14]File name is /storage/kkm_last_timestamp [22:37:14]Write 4 bytes [22:37:14]NVStorageSaveData done [22:37:14]ExternCall_PrintAddStr [22:37:14]wPrintStart [22:37:14]Write to MH i2c: 01 00 00 FE 5A 58 [22:37:14]Write i2c OK [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: 01 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: 01 07 00 [22:37:14]MH_I2C_Read... [22:37:14]Read from MH i2c: 01 07 00 FE 5A 00 00 00 00 00 FF 0F 6D [22:37:14]RasterBufferAndPrint [22:37:14]line Счет N : (1)321046 [22:37:14]line ИНН: 02508201610067 [22:37:14]line Контрольно-Кассовый Чек [22:37:14]line ПРОДАЖА [22:37:14]line ТРК (МРК, ГНК) : 11 [22:37:14]line Товар: 2710124130 [22:37:14]line Аи-92-К-5 [22:37:14]line 4.520 * 66.40 [22:37:14]line = 300.13 [22:37:14]line НДС 12% НСП 1% [22:37:14]line > о реализуемом товаре [22:37:14]line ОКРУГЛЕНИЕ: -0.13 [22:37:14]line ИТОГО: 300.00 [22:37:14]line Внесено: 300.00 [22:37:14]line СДАЧА: 0.00 [22:37:14]line НСП 1% : 2.66 [22:37:14]line НДС 12% : 31.87 [22:37:14]line Наличными: 300.00 [22:37:14]line Безнал.: 0.00 [22:37:14]line Место: АЗС № 65 "Партнер Нефть" [22:37:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:37:14]line СНО: Общий режим [22:37:14]line Чек 234 22.06.2024 22:37 [22:37:14]line Смена: 391 ФФД: 1.0 [22:37:14]line ЗНМ: 0300000198 [22:37:14]line РНМ: 0000000000092771 [22:37:14]line Версия ККМ: 001 [22:37:14]line ФМ: 0000000000875083 [22:37:14]line ФД: 112368 [22:37:14]line ФПД: 214347259062611 [22:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T223750&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112368&fm=214347259062611&tin=02508201610067®Number=0000000000092771&sum=30000 [22:37:15]OFD Sender: Processing packet 112368 [packets to send 38, broken 37] [22:37:15]ProducePacketName [22:37:15]name=ofd_packets/00112368 [22:37:15]OFD Sender: To server: pG, [22:37:15]CommunicateWithHost lk.salyk.kg:30040 [22:37:15]ConnectInit lk.salyk.kg [22:37:15]written 0, free lines is 4095 [22:37:15]Connected sock=10 [22:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 7B 07 01 F7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3E 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B6 01 00 35 04 06 00 C2 F2 9C 3C 29 53 A3 D2 69 CF C2 98 BB E3 [22:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 A3 47 00 7B D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B6 01 00 F4 03 04 00 3D E9 76 66 B6 04 01 00 00 12 B2 79 71 DC 66 A6 7C [22:37:15]CommunicateWithHost err = 0 [22:37:15]CheckOFDResponse [22:37:15]1017 (14) - 77093643461234 [22:37:15]1041 (16) - 0000000000875083 [22:37:15]1040 (4) - 112368 [22:37:15]1012 (4) - 22.06.2024 15:09 [22:37:15]1206 (1) - 0 [22:37:15]OFD Sender: Remove packet 112368 [22:37:15]ProducePacketName [22:37:15]name=ofd_packets/00112368 [22:37:15]NVStorageDeleteData [22:37:15]Write to MH i2c: 01 00 00 29 5B 84 [22:37:15]Write i2c OK [22:37:15]MH_I2C_Read... [22:37:15]Read from MH i2c: 01 [22:37:15]MH_I2C_Read... [22:37:15]Read from MH i2c: 01 07 00 [22:37:15]MH_I2C_Read... [22:37:15]Read from MH i2c: 01 07 00 29 5B 00 00 00 00 00 CC 0C 63 [22:37:15]RasterBufferAndPrint [22:37:15]line [22:37:15]line [22:37:15]line [22:37:15]line [22:37:15]line [22:37:15]written 0, free lines is 3281 [22:37:15]MH_Cut [22:37:15]Write to MH i2c: D1 01 00 30 5B 01 5D [22:37:15]Write i2c OK [22:37:15]MH_I2C_Read... [22:37:15]Read from MH i2c: D1 [22:37:15]MH_I2C_Read... [22:37:15]Read from MH i2c: D1 01 00 [22:37:15]MH_I2C_Read... [22:37:15]Read from MH i2c: D1 01 00 30 5B 00 5C [22:37:15]Write to MH i2c: 01 00 00 31 5B 8C [22:37:15]Write i2c OK [22:37:15]MH_I2C_Read... [22:37:15]OFD Sender: No OFD packet to send [22:37:16]*** Cut start [22:37:16]*** Partial cut [22:37:16]*** CUTSNS_PIN = 1 [22:37:16]*** CUTSNS_PIN = 0 [22:37:16]*** Brake cut motor [22:37:16]Read from MH i2c: 01 [22:37:16]MH_I2C_Read... [22:37:16]*** Stop cut motor [22:37:16]*** Cut end [22:37:16]Read from MH i2c: 01 07 00 [22:37:16]MH_I2C_Read... [22:37:16]Read from MH i2c: 01 07 00 31 5B 00 00 00 00 00 FF 0F A1 [22:37:16]process_action close_receipt done [22:37:16]requested_data is exist [22:37:16]produce_requested_data [22:37:16]requested_item fm.sn is exist - process it [22:37:16]wFMCommunicate request_size=4 [22:37:16]MH_SAM_APDU [22:37:16]CAPDU: 80 11 00 00 [22:37:16]Write to MH i2c: E2 08 00 32 5B 80 11 00 00 00 00 00 00 07 [22:37:16]Write i2c OK [22:37:16]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 [22:37:17]MH_I2C_Read... [22:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:17]Read from MH i2c: E2 17 00 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 17 00 32 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [22:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:37:17]wFMCommunicate OK [22:37:17]requested_item fd.num is exist - process it [22:37:17]SAM_PROTO_GetFieldsCounters [22:37:17]wFMCommunicate request_size=4 [22:37:17]MH_SAM_APDU [22:37:17]CAPDU: 80 13 00 00 [22:37:17]Write to MH i2c: E2 08 00 33 5B 80 13 00 00 00 00 00 00 0A [22:37:17]Write i2c OK [22:37:17]MH_I2C_Read... [22:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:17]Read from MH i2c: E2 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 62 00 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 62 00 33 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [22:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:17]wFMCommunicate OK [22:37:17]SAM_PROTO_GetFieldsCounters done [22:37:17]requested_item shift.num is exist - process it [22:37:17]requested_item shift.opened is exist - process it [22:37:17]req_shift_opened [22:37:17]FM_GetShiftState [22:37:17]SAM_PROTO_GetShiftState [22:37:17]wFMCommunicate request_size=4 [22:37:17]MH_SAM_APDU [22:37:17]CAPDU: 80 13 01 00 [22:37:17]Write to MH i2c: E2 08 00 34 5B 80 13 01 00 00 00 00 00 0C [22:37:17]Write i2c OK [22:37:17]MH_I2C_Read... [22:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:17]Read from MH i2c: E2 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 0E 00 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 0E 00 34 5B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 41 [22:37:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:37:17]wFMCommunicate OK [22:37:17]SAM_PROTO_GetShiftState done [22:37:17]FM_GetShiftState done [22:37:17]req_shift_opened done [22:37:17]requested_item shift.open_date is exist - process it [22:37:17]req_shift_open_date [22:37:17]req_shift_open_date done [22:37:17]produce_requested_data done [22:37:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112368,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:37:17]process_action_free close_receipt [22:37:17]json_value_free [22:37:17]json_value_free done [22:37:17]process_json_proto returns [22:37:17]Send response to host [22:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112368,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:37:17]free response buf [22:37:17]execute_script done [22:37:17]execute_script returns [22:37:17]free content buf [22:37:17]Sock 9.Close socket [22:37:17]Sock 9.Thread stoped [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:23]accept exits with 7 [22:38:23]New connection [22:38:23]New thread 3066813796 created [22:38:23]Thread 3066957156 joined [22:38:23]Waiting for new connection... [22:38:23] Sock 7.Parse request [22:38:23]Sock 7.Check first char [22:38:23]Sock 7.First char is OK [22:38:23]request: POST /json_proto HTTP/1.0 [22:38:23]Method: POST [22:38:23]URL: /json_proto [22:38:23]Method is POST - this is cgi request [22:38:23]url: /json_proto [22:38:23]query_string will be loaded in cgi processing [22:38:23]execute_cgi json_proto POST (null) [22:38:23]execute_cgi path=json_proto method=POST [22:38:23]POST find Content-Length [22:38:23]Host: 172.17.59.68:8080 [22:38:23]Content-Length: 677 [22:38:23]Content-Type: application/json [22:38:23] [22:38:23]POST finish read [22:38:23]Found Content-Length = 677 [22:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321047", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [22:38:23]execute_script... [22: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)321047", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [22:38:23]POST & json_proto [22:38:23]process_json_proto [22:38:23]json parsed OK: [22:38:23]protocol is kg_v1.0 [22:38:23]action value=close_receipt [22:38:23]process_action close_receipt [22:38:23]cmd_close_receipt [22:38:23]MH_GetDate [22:38:23]Write to MH i2c: F0 00 00 35 5B 7F [22:38:23]Write i2c OK [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: F0 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: F0 09 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: F0 09 00 35 5B 00 84 52 77 66 BC EC 60 65 A8 [22:38:23]GetLastDocTimeStamp 1719095870 [22:38:23]current date 1719095940 [22:38:23]FM_GetShiftState [22:38:23]SAM_PROTO_GetShiftState [22:38:23]wFMCommunicate request_size=4 [22:38:23]MH_SAM_APDU [22:38:23]CAPDU: 80 13 01 00 [22:38:23]Write to MH i2c: E2 08 00 36 5B 80 13 01 00 00 00 00 00 0E [22:38:23]Write i2c OK [22:38:23]MH_I2C_Read... [22:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:23]Read from MH i2c: E2 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 0E 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 0E 00 36 5B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 43 [22:38:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:38:23]wFMCommunicate OK [22:38:23]SAM_PROTO_GetShiftState done [22:38:23]FM_GetShiftState done [22:38:23]opened in 1719020067 [22:38:23]opened+sec_in_day 1719106467 [22:38:23]quantity*price = 40039 [22:38:23]sum+1 = 40040 [22:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 235 22.06.2024 22:39 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112369 ФПД: 42656118880762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T223900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112369&fm=42656118880762&tin=02508201610067®Number=0000000000092771&sum=40000 [22:38:25]StoreToDocumentArchive [22:38:25]shift 391 fd 112369 [22:38:25]save to /storage/0391/doc_00112369 [22:38:25]save last doc name /storage/0391/doc_00112369 to /storage/kkm_last_doc_name [22:38:25]save OK [22:38:25]Clear old archive folders... [22:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:25]tlvbuf is 012019C0 [22:38:25]SAM_PROTO_ClearQueue [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 09 00 00 [22:38:25]Write to MH i2c: E2 08 00 43 5B 80 09 00 00 00 00 00 00 10 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 43 5B 00 90 00 12 [22:38:25]RAPDU: 90 00 [22:38:25]wFMCommunicate OK [22:38:25]SAM_PROTO_ClearQueue done [22:38:25]KKMCreateOFDPacket [22:38:25]OFDProtocolAddRootSTLVToBuf [22:38:25]FM_MakeSignedData [22:38:25]FM_MakeSignedData [22:38:25]SAM_PROTO_SignData [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 0D 01 02 [22:38:25]Write to MH i2c: E2 08 00 44 5B 80 0D 01 02 00 00 00 00 18 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 44 5B 00 90 00 13 [22:38:25]RAPDU: 90 00 [22:38:25]wFMCommunicate OK [22:38:25]wFMCommunicate request_size=255 [22:38:25]MH_SAM_APDU [22:38: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 00 00 00 F4 03 04 00 84 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B6 01 00 35 04 06 00 26 [22:38:25]Write to MH i2c: E2 02 01 45 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 00 00 00 F4 03 04 00 84 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B6 01 00 35 04 06 00 26 00 00 8E [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 45 5B 00 90 00 14 [22:38:25]RAPDU: 90 00 [22:38:25]wFMCommunicate OK [22:38:25]wFMCommunicate request_size=10 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 0D 02 02 05 CB A6 D0 39 FA [22:38:25]Write to MH i2c: E2 0D 00 46 5B 80 0D 02 02 05 00 CB A6 D0 39 FA 00 00 99 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 03 00 46 5B 00 90 00 15 [22:38:25]RAPDU: 90 00 [22:38:25]wFMCommunicate OK [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 0D 03 02 [22:38:25]Write to MH i2c: E2 08 00 47 5B 80 0D 03 02 00 00 00 00 1D [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 0B 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 0B 00 47 5B 00 71 9E 60 57 B1 72 7C 01 90 00 84 [22:38:25]RAPDU: 71 9E 60 57 B1 72 7C 01 90 00 [22:38:25]wFMCommunicate OK [22:38:25]SAM_PROTO_SignData done [22:38:25]FM_MakeSignedData done [22:38:25]CreateOFDProtocolMessage [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 11 00 00 [22:38:25]Write to MH i2c: E2 08 00 48 5B 80 11 00 00 00 00 00 00 1D [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 17 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 17 00 48 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [22:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:38:25]wFMCommunicate OK [22:38:25]CreateOFDProtocolMessage done [22:38:25]OFDSenderStorePacket 112369 [22:38:25]StoreOFDPacket docnum=112369 [22:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 B1 07 01 8E 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 00 00 00 F4 03 04 00 84 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B6 01 00 35 04 06 00 26 CB A6 D0 39 FA 71 9E 60 57 B1 72 7C 01 [22:38:25]CheckFolder [22:38:25]dirname=/storage/ofd_packets [22:38:25]CheckFolder done [22:38:25]ProducePacketName [22:38:25]name=ofd_packets/00112369 [22:38:25]NVStorageSaveData ofd_packets/00112369 [22:38:25]File name is /storage/ofd_packets/00112369 [22:38:25]Write 301 bytes [22:38:25]NVStorageSaveData done [22:38:25]OFDSenderStorePacket done [22:38:25]KKMCreateOFDPacket done [22:38:25]NVStorageSaveData kkm_last_timestamp [22:38:25]File name is /storage/kkm_last_timestamp [22:38:25]Write 4 bytes [22:38:25]NVStorageSaveData done [22:38:25]ExternCall_PrintAddStr [22:38:25]wPrintStart [22:38:25]Write to MH i2c: 01 00 00 49 5B A4 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 07 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 07 00 49 5B 00 00 00 00 00 FF 0F B9 [22:38:25]RasterBufferAndPrint [22:38:25]line Счет N : (1)321047 [22:38:25]line ИНН: 02508201610067 [22:38:25]line Контрольно-Кассовый Чек [22:38:25]line ПРОДАЖА [22:38:25]line ТРК (МРК, ГНК) : 11 [22:38:25]line Товар: 2710124130 [22:38:25]line Аи-92-К-5 [22:38:25]line 6.030 * 66.40 [22:38:25]line = 400.39 [22:38:25]line НДС 12% НСП 1% [22:38:25]line > о реализуемом товаре [22:38:25]line ОКРУГЛЕНИЕ: -0.39 [22:38:25]line ИТОГО: 400.00 [22:38:25]line Внесено: 400.00 [22:38:25]line СДАЧА: 0.00 [22:38:25]line НСП 1% : 3.54 [22:38:25]line НДС 12% : 42.52 [22:38:25]line Наличными: 400.00 [22:38:25]line Безнал.: 0.00 [22:38:25]line Место: АЗС № 65 "Партнер Нефть" [22:38:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:38:25]line СНО: Общий режим [22:38:25]line Чек 235 22.06.2024 22:39 [22:38:25]line Смена: 391 ФФД: 1.0 [22:38:25]line ЗНМ: 0300000198 [22:38:25]line РНМ: 0000000000092771 [22:38:25]line Версия ККМ: 001 [22:38:25]line ФМ: 0000000000875083 [22:38:25]line ФД: 112369 [22:38:25]line ФПД: 42656118880762 [22:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T223900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112369&fm=42656118880762&tin=02508201610067®Number=0000000000092771&sum=40000 [22:38:25]OFD Sender: Processing packet 112369 [packets to send 38, broken 37] [22:38:25]ProducePacketName [22:38:25]name=ofd_packets/00112369 [22:38:25]OFD Sender: To server: pG, [22:38:25]CommunicateWithHost lk.salyk.kg:30040 [22:38:25]ConnectInit lk.salyk.kg [22:38:25]written 0, free lines is 4095 [22:38:26]Connected sock=10 [22:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 B1 07 01 8E 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 00 00 00 F4 03 04 00 84 52 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B6 01 00 35 04 06 00 26 CB A6 D0 39 FA 71 9E 60 57 B1 72 7C 01 [22:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 70 6F 47 00 FF C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B6 01 00 F4 03 04 00 84 E9 76 66 B6 04 01 00 00 8F 1F 9F A5 31 6E EE 74 [22:38:26]CommunicateWithHost err = 0 [22:38:26]CheckOFDResponse [22:38:26]1017 (14) - 77093643461234 [22:38:26]1041 (16) - 0000000000875083 [22:38:26]1040 (4) - 112369 [22:38:26]1012 (4) - 22.06.2024 15:11 [22:38:26]1206 (1) - 0 [22:38:26]OFD Sender: Remove packet 112369 [22:38:26]ProducePacketName [22:38:26]name=ofd_packets/00112369 [22:38:26]NVStorageDeleteData [22:38:26]Write to MH i2c: 01 00 00 74 5B CF [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: 01 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: 01 07 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: 01 07 00 74 5B 00 00 00 00 00 CF 0C B1 [22:38:26]RasterBufferAndPrint [22:38:26]line [22:38:26]line [22:38:26]line [22:38:26]line [22:38:26]line [22:38:26]written 0, free lines is 3285 [22:38:26]MH_Cut [22:38:26]Write to MH i2c: D1 01 00 7B 5B 01 A8 [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: D1 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: D1 01 00 [22:38:26]MH_I2C_Read... [22:38:26]Read from MH i2c: D1 01 00 7B 5B 00 A7 [22:38:26]Write to MH i2c: 01 00 00 7C 5B D7 [22:38:26]Write i2c OK [22:38:26]MH_I2C_Read... [22:38:26]OFD Sender: No OFD packet to send [22:38:27]*** Cut start [22:38:27]*** Partial cut [22:38:27]*** CUTSNS_PIN = 1 [22:38:27]*** CUTSNS_PIN = 0 [22:38:27]*** Brake cut motor [22:38:27]Read from MH i2c: 01 [22:38:27]MH_I2C_Read... [22:38:27]*** Stop cut motor [22:38:27]*** Cut end [22:38:27]Read from MH i2c: 01 07 00 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: 01 07 00 7C 5B 00 00 00 00 00 FF 0F EC [22:38:27]process_action close_receipt done [22:38:27]requested_data is exist [22:38:27]produce_requested_data [22:38:27]requested_item fm.sn is exist - process it [22:38:27]wFMCommunicate request_size=4 [22:38:27]MH_SAM_APDU [22:38:27]CAPDU: 80 11 00 00 [22:38:27]Write to MH i2c: E2 08 00 7D 5B 80 11 00 00 00 00 00 00 52 [22:38:27]Write i2c OK [22:38:27]MH_I2C_Read... [22:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:27]Read from MH i2c: E2 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 17 00 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 17 00 7D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [22:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:38:27]wFMCommunicate OK [22:38:27]requested_item fd.num is exist - process it [22:38:27]SAM_PROTO_GetFieldsCounters [22:38:27]wFMCommunicate request_size=4 [22:38:27]MH_SAM_APDU [22:38:27]CAPDU: 80 13 00 00 [22:38:27]Write to MH i2c: E2 08 00 7E 5B 80 13 00 00 00 00 00 00 55 [22:38:27]Write i2c OK [22:38:27]MH_I2C_Read... [22:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:27]Read from MH i2c: E2 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 62 00 [22:38:27]MH_I2C_Read... [22:38:27]Read from MH i2c: E2 62 00 7E 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:27]wFMCommunicate OK [22:38:27]SAM_PROTO_GetFieldsCounters done [22:38:27]requested_item shift.num is exist - process it [22:38:27]requested_item shift.opened is exist - process it [22:38:27]req_shift_opened [22:38:27]FM_GetShiftState [22:38:27]SAM_PROTO_GetShiftState [22:38:27]wFMCommunicate request_size=4 [22:38:27]MH_SAM_APDU [22:38:27]CAPDU: 80 13 01 00 [22:38:27]Write to MH i2c: E2 08 00 7F 5B 80 13 01 00 00 00 00 00 57 [22:38:27]Write i2c OK [22:38:27]MH_I2C_Read... [22:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:28]Read from MH i2c: E2 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 0E 00 [22:38:28]MH_I2C_Read... [22:38:28]Read from MH i2c: E2 0E 00 7F 5B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8C [22:38:28]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:38:28]wFMCommunicate OK [22:38:28]SAM_PROTO_GetShiftState done [22:38:28]FM_GetShiftState done [22:38:28]req_shift_opened done [22:38:28]requested_item shift.open_date is exist - process it [22:38:28]req_shift_open_date [22:38:28]req_shift_open_date done [22:38:28]produce_requested_data done [22:38:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112369,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:38:28]process_action_free close_receipt [22:38:28]json_value_free [22:38:28]json_value_free done [22:38:28]process_json_proto returns [22:38:28]Send response to host [22:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112369,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:38:28]free response buf [22:38:28]execute_script done [22:38:28]execute_script returns [22:38:28]free content buf [22:38:28]Sock 7.Close socket [22:38:28]Sock 7.Thread stoped [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:04]accept exits with 9 [22:42:04]New connection [22:42:04]New thread 3066957156 created [22:42:04]Thread 3066813796 joined [22:42:04]Waiting for new connection... [22:42:04] Sock 9.Parse request [22:42:04]Sock 9.Check first char [22:42:04]Sock 9.First char is OK [22:42:04]request: POST /json_proto HTTP/1.0 [22:42:04]Method: POST [22:42:04]URL: /json_proto [22:42:04]Method is POST - this is cgi request [22:42:04]url: /json_proto [22:42:04]query_string will be loaded in cgi processing [22:42:04]execute_cgi json_proto POST (null) [22:42:04]execute_cgi path=json_proto method=POST [22:42:04]POST find Content-Length [22:42:04]Host: 172.17.59.68:8080 [22:42:04]Content-Length: 675 [22:42:04]Content-Type: application/json [22:42:04] [22:42:04]POST finish read [22:42:04]Found Content-Length = 675 [22:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:04]execute_script... [22:42: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)321048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:04]POST & json_proto [22:42:04]process_json_proto [22:42:04]json parsed OK: [22:42:04]protocol is kg_v1.0 [22:42:04]action value=close_receipt [22:42:04]process_action close_receipt [22:42:04]cmd_close_receipt [22:42:04]MH_GetDate [22:42:04]Write to MH i2c: F0 00 00 80 5B CA [22:42:04]Write i2c OK [22:42:04]MH_I2C_Read... [22:42:04]Read from MH i2c: F0 [22:42:04]MH_I2C_Read... [22:42:04]Read from MH i2c: F0 09 00 [22:42:04]MH_I2C_Read... [22:42:04]Read from MH i2c: F0 09 00 80 5B 00 61 53 77 66 BC EC 60 65 D1 [22:42:04]GetLastDocTimeStamp 1719095940 [22:42:04]current date 1719096161 [22:42:04]FM_GetShiftState [22:42:04]SAM_PROTO_GetShiftState [22:42:04]wFMCommunicate request_size=4 [22:42:04]MH_SAM_APDU [22:42:04]CAPDU: 80 13 01 00 [22:42:04]Write to MH i2c: E2 08 00 81 5B 80 13 01 00 00 00 00 00 59 [22:42:04]Write i2c OK [22:42:04]MH_I2C_Read... [22:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:04]Read from MH i2c: E2 [22:42:04]MH_I2C_Read... [22:42:04]Read from MH i2c: E2 0E 00 [22:42:04]MH_I2C_Read... [22:42:04]Read from MH i2c: E2 0E 00 81 5B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8E [22:42:04]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:42:04]wFMCommunicate OK [22:42:04]SAM_PROTO_GetShiftState done [22:42:04]FM_GetShiftState done [22:42:04]opened in 1719020067 [22:42:04]opened+sec_in_day 1719106467 [22:42:04]quantity*price = 73045 [22:42:04]sum+1 = 73047 [22:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 236 22.06.2024 22:42 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112370 ФПД: 185707208903059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224241&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112370&fm=185707208903059&tin=02508201610067®Number=0000000000092771&sum=73000 [22:42:05]StoreToDocumentArchive [22:42:05]shift 391 fd 112370 [22:42:05]save to /storage/0391/doc_00112370 [22:42:05]save last doc name /storage/0391/doc_00112370 to /storage/kkm_last_doc_name [22:42:05]save OK [22:42:05]Clear old archive folders... [22:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:42:05]tlvbuf is B6EDBF00 [22:42:05]SAM_PROTO_ClearQueue [22:42:05]wFMCommunicate request_size=4 [22:42:05]MH_SAM_APDU [22:42:05]CAPDU: 80 09 00 00 [22:42:05]Write to MH i2c: E2 08 00 8E 5B 80 09 00 00 00 00 00 00 5B [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:05]Read from MH i2c: E2 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 03 00 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 03 00 8E 5B 00 90 00 5D [22:42:05]RAPDU: 90 00 [22:42:05]wFMCommunicate OK [22:42:05]SAM_PROTO_ClearQueue done [22:42:05]KKMCreateOFDPacket [22:42:05]OFDProtocolAddRootSTLVToBuf [22:42:05]FM_MakeSignedData [22:42:05]FM_MakeSignedData [22:42:05]SAM_PROTO_SignData [22:42:05]wFMCommunicate request_size=4 [22:42:05]MH_SAM_APDU [22:42:05]CAPDU: 80 0D 01 02 [22:42:05]Write to MH i2c: E2 08 00 8F 5B 80 0D 01 02 00 00 00 00 63 [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:05]Read from MH i2c: E2 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 03 00 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 03 00 8F 5B 00 90 00 5E [22:42:05]RAPDU: 90 00 [22:42:05]wFMCommunicate OK [22:42:05]wFMCommunicate request_size=255 [22:42:05]MH_SAM_APDU [22:42:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 61 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B6 01 00 35 04 06 00 A8 E6 54 38 [22:42:05]Write to MH i2c: E2 02 01 90 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 61 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B6 01 00 35 04 06 00 A8 E6 54 38 00 00 5C [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 90 5B 00 90 00 5F [22:42:06]RAPDU: 90 00 [22:42:06]wFMCommunicate OK [22:42:06]wFMCommunicate request_size=7 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 0D 02 02 02 09 93 [22:42:06]Write to MH i2c: E2 0A 00 91 5B 80 0D 02 02 02 00 09 93 00 00 06 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 91 5B 00 90 00 60 [22:42:06]RAPDU: 90 00 [22:42:06]wFMCommunicate OK [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 0D 03 02 [22:42:06]Write to MH i2c: E2 08 00 92 5B 80 0D 03 02 00 00 00 00 68 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 0B 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 0B 00 92 5B 00 3F 65 94 FB 6B 17 1F 1B 90 00 58 [22:42:06]RAPDU: 3F 65 94 FB 6B 17 1F 1B 90 00 [22:42:06]wFMCommunicate OK [22:42:06]SAM_PROTO_SignData done [22:42:06]FM_MakeSignedData done [22:42:06]CreateOFDProtocolMessage [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 11 00 00 [22:42:06]Write to MH i2c: E2 08 00 93 5B 80 11 00 00 00 00 00 00 68 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 17 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 17 00 93 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [22:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:42:06]wFMCommunicate OK [22:42:06]CreateOFDProtocolMessage done [22:42:06]OFDSenderStorePacket 112370 [22:42:06]StoreOFDPacket docnum=112370 [22:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EC 0F 04 01 07 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 61 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B6 01 00 35 04 06 00 A8 E6 54 38 09 93 3F 65 94 FB 6B 17 1F 1B [22:42:06]CheckFolder [22:42:06]dirname=/storage/ofd_packets [22:42:06]CheckFolder done [22:42:06]ProducePacketName [22:42:06]name=ofd_packets/00112370 [22:42:06]NVStorageSaveData ofd_packets/00112370 [22:42:06]File name is /storage/ofd_packets/00112370 [22:42:06]Write 298 bytes [22:42:06]NVStorageSaveData done [22:42:06]OFDSenderStorePacket done [22:42:06]KKMCreateOFDPacket done [22:42:06]NVStorageSaveData kkm_last_timestamp [22:42:06]File name is /storage/kkm_last_timestamp [22:42:06]Write 4 bytes [22:42:06]NVStorageSaveData done [22:42:06]ExternCall_PrintAddStr [22:42:06]wPrintStart [22:42:06]Write to MH i2c: 01 00 00 94 5B EF [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: 01 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: 01 07 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: 01 07 00 94 5B 00 00 00 00 00 FF 0F 04 [22:42:06]RasterBufferAndPrint [22:42:06]line Счет N : (1)321048 [22:42:06]line ИНН: 02508201610067 [22:42:06]line Контрольно-Кассовый Чек [22:42:06]line ПРОДАЖА [22:42:06]line ТРК (МРК, ГНК) : 22 [22:42:06]line Товар: 2710194210 [22:42:06]line ДТ-К-5 [22:42:06]line 10.020 * 72.90 [22:42:06]line = 730.46 [22:42:06]line НДС 12% НСП 1% [22:42:06]line > о реализуемом товаре [22:42:06]line ОКРУГЛЕНИЕ: -0.46 [22:42:06]line ИТОГО: 730.00 [22:42:06]line Внесено: 730.00 [22:42:06]line СДАЧА: 0.00 [22:42:06]line НСП 1% : 6.46 [22:42:06]line НДС 12% : 77.57 [22:42:06]line Наличными: 730.00 [22:42:06]line Безнал.: 0.00 [22:42:06]line Место: АЗС № 65 "Партнер Нефть" [22:42:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:42:06]line СНО: Общий режим [22:42:06]line Чек 236 22.06.2024 22:42 [22:42:06]line Смена: 391 ФФД: 1.0 [22:42:06]line ЗНМ: 0300000198 [22:42:06]line РНМ: 0000000000092771 [22:42:06]line Версия ККМ: 001 [22:42:06]line ФМ: 0000000000875083 [22:42:06]line ФД: 112370 [22:42:06]line ФПД: 185707208903059 [22:42:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224241&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112370&fm=185707208903059&tin=02508201610067®Number=0000000000092771&sum=73000 [22:42:06]OFD Sender: Processing packet 112370 [packets to send 38, broken 37] [22:42:06]ProducePacketName [22:42:06]name=ofd_packets/00112370 [22:42:06]OFD Sender: To server: pG, [22:42:06]CommunicateWithHost lk.salyk.kg:30040 [22:42:06]ConnectInit lk.salyk.kg [22:42:06]written 0, free lines is 4095 [22:42:06]Connected sock=10 [22:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EC 0F 04 01 07 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 61 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B6 01 00 35 04 06 00 A8 E6 54 38 09 93 3F 65 94 FB 6B 17 1F 1B [22:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4B 4F 47 00 15 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B6 01 00 F4 03 04 00 60 EA 76 66 B6 04 01 00 00 B8 B3 58 2B D9 DB E1 B4 [22:42:06]CommunicateWithHost err = 0 [22:42:06]CheckOFDResponse [22:42:06]1017 (14) - 77093643461234 [22:42:06]1041 (16) - 0000000000875083 [22:42:06]1040 (4) - 112370 [22:42:06]1012 (4) - 22.06.2024 15:14 [22:42:06]1206 (1) - 0 [22:42:06]OFD Sender: Remove packet 112370 [22:42:06]ProducePacketName [22:42:06]name=ofd_packets/00112370 [22:42:06]NVStorageDeleteData [22:42:07]Write to MH i2c: 01 00 00 BF 5B 1A [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 BF 5B 00 00 00 00 00 C7 0C F4 [22:42:07]RasterBufferAndPrint [22:42:07]line [22:42:07]line [22:42:07]line [22:42:07]line [22:42:07]line [22:42:07]written 0, free lines is 3277 [22:42:07]MH_Cut [22:42:07]Write to MH i2c: D1 01 00 C6 5B 01 F3 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: D1 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: D1 01 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: D1 01 00 C6 5B 00 F2 [22:42:07]Write to MH i2c: 01 00 00 C7 5B 22 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]OFD Sender: No OFD packet to send [22:42:07]*** Cut start [22:42:07]*** Partial cut [22:42:07]*** CUTSNS_PIN = 1 [22:42:07]*** CUTSNS_PIN = 0 [22:42:08]*** Brake cut motor [22:42:08]Read from MH i2c: 01 [22:42:08]MH_I2C_Read... [22:42:08]*** Stop cut motor [22:42:08]*** Cut end [22:42:08]Read from MH i2c: 01 07 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 C7 5B 00 00 00 00 00 FF 0F 37 [22:42:08]process_action close_receipt done [22:42:08]requested_data is exist [22:42:08]produce_requested_data [22:42:08]requested_item fm.sn is exist - process it [22:42:08]wFMCommunicate request_size=4 [22:42:08]MH_SAM_APDU [22:42:08]CAPDU: 80 11 00 00 [22:42:08]Write to MH i2c: E2 08 00 C8 5B 80 11 00 00 00 00 00 00 9D [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:08]Read from MH i2c: E2 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 17 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 17 00 C8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [22:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:42:08]wFMCommunicate OK [22:42:08]requested_item fd.num is exist - process it [22:42:08]SAM_PROTO_GetFieldsCounters [22:42:08]wFMCommunicate request_size=4 [22:42:08]MH_SAM_APDU [22:42:08]CAPDU: 80 13 00 00 [22:42:08]Write to MH i2c: E2 08 00 C9 5B 80 13 00 00 00 00 00 00 A0 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:08]Read from MH i2c: E2 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 62 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 62 00 C9 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [22:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:08]wFMCommunicate OK [22:42:08]SAM_PROTO_GetFieldsCounters done [22:42:08]requested_item shift.num is exist - process it [22:42:08]requested_item shift.opened is exist - process it [22:42:08]req_shift_opened [22:42:08]FM_GetShiftState [22:42:08]SAM_PROTO_GetShiftState [22:42:08]wFMCommunicate request_size=4 [22:42:08]MH_SAM_APDU [22:42:08]CAPDU: 80 13 01 00 [22:42:08]Write to MH i2c: E2 08 00 CA 5B 80 13 01 00 00 00 00 00 A2 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:08]Read from MH i2c: E2 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 0E 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 0E 00 CA 5B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D7 [22:42:08]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:42:08]wFMCommunicate OK [22:42:08]SAM_PROTO_GetShiftState done [22:42:08]FM_GetShiftState done [22:42:08]req_shift_opened done [22:42:08]requested_item shift.open_date is exist - process it [22:42:08]req_shift_open_date [22:42:08]req_shift_open_date done [22:42:08]produce_requested_data done [22:42:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112370,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:42:08]process_action_free close_receipt [22:42:08]json_value_free [22:42:08]json_value_free done [22:42:08]process_json_proto returns [22:42:08]Send response to host [22:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112370,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:42:08]free response buf [22:42:08]execute_script done [22:42:08]execute_script returns [22:42:08]free content buf [22:42:08]Sock 9.Close socket [22:42:08]Sock 9.Thread stoped [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:02]accept exits with 7 [22:43:02]New connection [22:43:02]New thread 3066813796 created [22:43:02]Thread 3066957156 joined [22:43:02]Waiting for new connection... [22:43:02] Sock 7.Parse request [22:43:02]Sock 7.Check first char [22:43:02]Sock 7.First char is OK [22:43:02]request: POST /json_proto HTTP/1.0 [22:43:02]Method: POST [22:43:02]URL: /json_proto [22:43:02]Method is POST - this is cgi request [22:43:02]url: /json_proto [22:43:02]query_string will be loaded in cgi processing [22:43:02]execute_cgi json_proto POST (null) [22:43:02]execute_cgi path=json_proto method=POST [22:43:02]POST find Content-Length [22:43:02]Host: 172.17.59.68:8080 [22:43:02]Content-Length: 677 [22:43:02]Content-Type: application/json [22:43:02] [22:43:02]POST finish read [22:43:02]Found Content-Length = 677 [22:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321049", "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.40, "quantity" : 8.050, "sum" : 534.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 534.00, "total" : 534.00, "payments": [ { "type": 0, "sum" : 534.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:02]execute_script... [22:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321049", "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.40, "quantity" : 8.050, "sum" : 534.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 534.00, "total" : 534.00, "payments": [ { "type": 0, "sum" : 534.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:02]POST & json_proto [22:43:02]process_json_proto [22:43:02]json parsed OK: [22:43:02]protocol is kg_v1.0 [22:43:02]action value=close_receipt [22:43:02]process_action close_receipt [22:43:02]cmd_close_receipt [22:43:02]MH_GetDate [22:43:02]Write to MH i2c: F0 00 00 CB 5B 15 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: F0 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: F0 09 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: F0 09 00 CB 5B 00 9B 53 77 66 BC EC 60 65 56 [22:43:02]GetLastDocTimeStamp 1719096161 [22:43:02]current date 1719096219 [22:43:02]FM_GetShiftState [22:43:02]SAM_PROTO_GetShiftState [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 13 01 00 [22:43:02]Write to MH i2c: E2 08 00 CC 5B 80 13 01 00 00 00 00 00 A4 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:03]Read from MH i2c: E2 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 0E 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: E2 0E 00 CC 5B 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D9 [22:43:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:43:03]wFMCommunicate OK [22:43:03]SAM_PROTO_GetShiftState done [22:43:03]FM_GetShiftState done [22:43:03]opened in 1719020067 [22:43:03]opened+sec_in_day 1719106467 [22:43:03]quantity*price = 53452 [22:43:03]sum+1 = 53453 [22:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 534.00 Внесено: 534.00 СДАЧА: 0.00 НСП 1% : 4.73 НДС 12% : 56.76 Наличными: 534.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 237 22.06.2024 22:43 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112371 ФПД: 229652060088753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112371&fm=229652060088753&tin=02508201610067®Number=0000000000092771&sum=53400 [22:43:04]StoreToDocumentArchive [22:43:04]shift 391 fd 112371 [22:43:04]save to /storage/0391/doc_00112371 [22:43:04]save last doc name /storage/0391/doc_00112371 to /storage/kkm_last_doc_name [22:43:04]save OK [22:43:04]Clear old archive folders... [22:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:04]tlvbuf is 01185AF0 [22:43:04]SAM_PROTO_ClearQueue [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 09 00 00 [22:43:04]Write to MH i2c: E2 08 00 D9 5B 80 09 00 00 00 00 00 00 A6 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 D9 5B 00 90 00 A8 [22:43:04]RAPDU: 90 00 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_ClearQueue done [22:43:04]KKMCreateOFDPacket [22:43:04]OFDProtocolAddRootSTLVToBuf [22:43:04]FM_MakeSignedData [22:43:04]FM_MakeSignedData [22:43:04]SAM_PROTO_SignData [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 0D 01 02 [22:43:04]Write to MH i2c: E2 08 00 DA 5B 80 0D 01 02 00 00 00 00 AE [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 DA 5B 00 90 00 A9 [22:43:04]RAPDU: 90 00 [22:43:04]wFMCommunicate OK [22:43:04]wFMCommunicate request_size=255 [22:43:04]MH_SAM_APDU [22:43: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 72 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC D0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9C 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B6 01 00 35 04 06 00 D0 [22:43:04]Write to MH i2c: E2 02 01 DB 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC D0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9C 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B6 01 00 35 04 06 00 D0 00 00 95 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 DB 5B 00 90 00 AA [22:43:04]RAPDU: 90 00 [22:43:04]wFMCommunicate OK [22:43:04]wFMCommunicate request_size=10 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 0D 02 02 05 DE 09 76 A9 B1 [22:43:04]Write to MH i2c: E2 0D 00 DC 5B 80 0D 02 02 05 00 DE 09 76 A9 B1 00 00 72 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 03 00 DC 5B 00 90 00 AB [22:43:04]RAPDU: 90 00 [22:43:04]wFMCommunicate OK [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 0D 03 02 [22:43:04]Write to MH i2c: E2 08 00 DD 5B 80 0D 03 02 00 00 00 00 B3 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0B 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 0B 00 DD 5B 00 EC 77 E9 F9 42 88 0D AB 90 00 7B [22:43:04]RAPDU: EC 77 E9 F9 42 88 0D AB 90 00 [22:43:04]wFMCommunicate OK [22:43:04]SAM_PROTO_SignData done [22:43:04]FM_MakeSignedData done [22:43:04]CreateOFDProtocolMessage [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 11 00 00 [22:43:04]Write to MH i2c: E2 08 00 DE 5B 80 11 00 00 00 00 00 00 B3 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 DE 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [22:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:43:04]wFMCommunicate OK [22:43:04]CreateOFDProtocolMessage done [22:43:04]OFDSenderStorePacket 112371 [22:43:04]StoreOFDPacket docnum=112371 [22:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 61 07 01 A7 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 72 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC D0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9C 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B6 01 00 35 04 06 00 D0 DE 09 76 A9 B1 EC 77 E9 F9 42 88 0D AB [22:43:04]CheckFolder [22:43:04]dirname=/storage/ofd_packets [22:43:04]CheckFolder done [22:43:04]ProducePacketName [22:43:04]name=ofd_packets/00112371 [22:43:04]NVStorageSaveData ofd_packets/00112371 [22:43:04]File name is /storage/ofd_packets/00112371 [22:43:04]Write 301 bytes [22:43:04]NVStorageSaveData done [22:43:04]OFDSenderStorePacket done [22:43:04]KKMCreateOFDPacket done [22:43:04]NVStorageSaveData kkm_last_timestamp [22:43:04]File name is /storage/kkm_last_timestamp [22:43:04]Write 4 bytes [22:43:04]NVStorageSaveData done [22:43:04]ExternCall_PrintAddStr [22:43:04]wPrintStart [22:43:04]Write to MH i2c: 01 00 00 DF 5B 3A [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 DF 5B 00 00 00 00 00 FF 0F 4F [22:43:04]RasterBufferAndPrint [22:43:04]line Счет N : (1)321049 [22:43:04]line ИНН: 02508201610067 [22:43:04]line Контрольно-Кассовый Чек [22:43:04]line ПРОДАЖА [22:43:04]line ТРК (МРК, ГНК) : 11 [22:43:04]line Товар: 2710124130 [22:43:04]line Аи-92-К-5 [22:43:04]line 8.050 * 66.40 [22:43:04]line = 534.52 [22:43:04]line НДС 12% НСП 1% [22:43:04]line > о реализуемом товаре [22:43:04]line ОКРУГЛЕНИЕ: -0.52 [22:43:04]line ИТОГО: 534.00 [22:43:04]line Внесено: 534.00 [22:43:04]line СДАЧА: 0.00 [22:43:04]line НСП 1% : 4.73 [22:43:04]line НДС 12% : 56.76 [22:43:04]line Наличными: 534.00 [22:43:04]line Безнал.: 0.00 [22:43:04]line Место: АЗС № 65 "Партнер Нефть" [22:43:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:43:04]line СНО: Общий режим [22:43:04]line Чек 237 22.06.2024 22:43 [22:43:04]line Смена: 391 ФФД: 1.0 [22:43:04]line ЗНМ: 0300000198 [22:43:04]line РНМ: 0000000000092771 [22:43:04]line Версия ККМ: 001 [22:43:04]line ФМ: 0000000000875083 [22:43:04]line ФД: 112371 [22:43:04]line ФПД: 229652060088753 [22:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224340&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112371&fm=229652060088753&tin=02508201610067®Number=0000000000092771&sum=53400 [22:43:04]OFD Sender: Processing packet 112371 [packets to send 38, broken 37] [22:43:04]ProducePacketName [22:43:04]name=ofd_packets/00112371 [22:43:04]OFD Sender: To server: pG, [22:43:04]CommunicateWithHost lk.salyk.kg:30040 [22:43:04]ConnectInit lk.salyk.kg [22:43:04]written 0, free lines is 4095 [22:43:05]Connected sock=10 [22:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 61 07 01 A7 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 72 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC D0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 16 00 00 00 00 07 04 06 00 98 D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9C 53 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B6 01 00 35 04 06 00 D0 DE 09 76 A9 B1 EC 77 E9 F9 42 88 0D AB [22:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 41 47 00 60 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B6 01 00 F4 03 04 00 9B EA 76 66 B6 04 01 00 00 4B 24 F6 89 73 D5 24 80 [22:43:05]CommunicateWithHost err = 0 [22:43:05]CheckOFDResponse [22:43:05]1017 (14) - 77093643461234 [22:43:05]1041 (16) - 0000000000875083 [22:43:05]1040 (4) - 112371 [22:43:05]1012 (4) - 22.06.2024 15:15 [22:43:05]1206 (1) - 0 [22:43:05]OFD Sender: Remove packet 112371 [22:43:05]ProducePacketName [22:43:05]name=ofd_packets/00112371 [22:43:05]NVStorageDeleteData [22:43:05]Write to MH i2c: 01 00 00 0A 5C 66 [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: 01 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: 01 07 00 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: 01 07 00 0A 5C 00 00 00 00 00 E0 0C 59 [22:43:05]RasterBufferAndPrint [22:43:05]line [22:43:05]line [22:43:05]line [22:43:05]line [22:43:05]line [22:43:05]written 0, free lines is 3302 [22:43:05]MH_Cut [22:43:05]Write to MH i2c: D1 01 00 11 5C 01 3F [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: D1 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: D1 01 00 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: D1 01 00 11 5C 00 3E [22:43:05]Write to MH i2c: 01 00 00 12 5C 6E [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]OFD Sender: No OFD packet to send [22:43:06]*** Cut start [22:43:06]*** Partial cut [22:43:06]*** CUTSNS_PIN = 1 [22:43:06]*** CUTSNS_PIN = 0 [22:43:06]*** Brake cut motor [22:43:06]Read from MH i2c: 01 [22:43:06]MH_I2C_Read... [22:43:06]*** Stop cut motor [22:43:06]*** Cut end [22:43:06]Read from MH i2c: 01 07 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: 01 07 00 12 5C 00 00 00 00 00 FF 0F 83 [22:43:06]process_action close_receipt done [22:43:06]requested_data is exist [22:43:06]produce_requested_data [22:43:06]requested_item fm.sn is exist - process it [22:43:06]wFMCommunicate request_size=4 [22:43:06]MH_SAM_APDU [22:43:06]CAPDU: 80 11 00 00 [22:43:06]Write to MH i2c: E2 08 00 13 5C 80 11 00 00 00 00 00 00 E9 [22:43:06]Write i2c OK [22:43:06]MH_I2C_Read... [22:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:06]Read from MH i2c: E2 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 17 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 17 00 13 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [22:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:43:06]wFMCommunicate OK [22:43:06]requested_item fd.num is exist - process it [22:43:06]SAM_PROTO_GetFieldsCounters [22:43:06]wFMCommunicate request_size=4 [22:43:06]MH_SAM_APDU [22:43:06]CAPDU: 80 13 00 00 [22:43:06]Write to MH i2c: E2 08 00 14 5C 80 13 00 00 00 00 00 00 EC [22:43:06]Write i2c OK [22:43:06]MH_I2C_Read... [22:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:06]Read from MH i2c: E2 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 62 00 [22:43:06]MH_I2C_Read... [22:43:06]Read from MH i2c: E2 62 00 14 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [22:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:06]wFMCommunicate OK [22:43:06]SAM_PROTO_GetFieldsCounters done [22:43:06]requested_item shift.num is exist - process it [22:43:06]requested_item shift.opened is exist - process it [22:43:06]req_shift_opened [22:43:06]FM_GetShiftState [22:43:06]SAM_PROTO_GetShiftState [22:43:06]wFMCommunicate request_size=4 [22:43:06]MH_SAM_APDU [22:43:06]CAPDU: 80 13 01 00 [22:43:06]Write to MH i2c: E2 08 00 15 5C 80 13 01 00 00 00 00 00 EE [22:43:06]Write i2c OK [22:43:06]MH_I2C_Read... [22:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:07]Read from MH i2c: E2 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 0E 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 0E 00 15 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 23 [22:43:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:43:07]wFMCommunicate OK [22:43:07]SAM_PROTO_GetShiftState done [22:43:07]FM_GetShiftState done [22:43:07]req_shift_opened done [22:43:07]requested_item shift.open_date is exist - process it [22:43:07]req_shift_open_date [22:43:07]req_shift_open_date done [22:43:07]produce_requested_data done [22:43:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112371,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:43:07]process_action_free close_receipt [22:43:07]json_value_free [22:43:07]json_value_free done [22:43:07]process_json_proto returns [22:43:07]Send response to host [22:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112371,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:43:07]free response buf [22:43:07]execute_script done [22:43:07]execute_script returns [22:43:07]free content buf [22:43:07]Sock 7.Close socket [22:43:07]Sock 7.Thread stoped [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:11]accept exits with 9 [22:46:11]New connection [22:46:11]New thread 3066957156 created [22:46:11]Thread 3066813796 joined [22:46:11]Waiting for new connection... [22:46:11] Sock 9.Parse request [22:46:11]Sock 9.Check first char [22:46:11]Sock 9.First char is OK [22:46:11]request: POST /json_proto HTTP/1.0 [22:46:11]Method: POST [22:46:11]URL: /json_proto [22:46:11]Method is POST - this is cgi request [22:46:11]url: /json_proto [22:46:11]query_string will be loaded in cgi processing [22:46:11]execute_cgi json_proto POST (null) [22:46:11]execute_cgi path=json_proto method=POST [22:46:11]POST find Content-Length [22:46:11]Host: 172.17.59.68:8080 [22:46:11]Content-Length: 805 [22:46:11]Content-Type: application/json [22:46:11] [22:46:11]POST finish read [22:46:11]Found Content-Length = 805 [22:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321050", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:11]execute_script... [22:46: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)321050", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:11]POST & json_proto [22:46:11]process_json_proto [22:46:11]json parsed OK: [22:46:11]protocol is kg_v1.0 [22:46:11]action value=close_receipt [22:46:11]process_action close_receipt [22:46:11]cmd_close_receipt [22:46:11]MH_GetDate [22:46:11]Write to MH i2c: F0 00 00 16 5C 61 [22:46:11]Write i2c OK [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: F0 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: F0 09 00 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: F0 09 00 16 5C 00 58 54 77 66 BC EC 60 65 60 [22:46:11]GetLastDocTimeStamp 1719096220 [22:46:11]current date 1719096408 [22:46:11]FM_GetShiftState [22:46:11]SAM_PROTO_GetShiftState [22:46:11]wFMCommunicate request_size=4 [22:46:11]MH_SAM_APDU [22:46:11]CAPDU: 80 13 01 00 [22:46:11]Write to MH i2c: E2 08 00 17 5C 80 13 01 00 00 00 00 00 F0 [22:46:11]Write i2c OK [22:46:11]MH_I2C_Read... [22:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:11]Read from MH i2c: E2 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: E2 0E 00 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: E2 0E 00 17 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 25 [22:46:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:46:11]wFMCommunicate OK [22:46:11]SAM_PROTO_GetShiftState done [22:46:11]FM_GetShiftState done [22:46:11]opened in 1719020067 [22:46:11]opened+sec_in_day 1719106467 [22:46:11]quantity*price = 50065 [22:46:11]sum+1 = 50067 [22:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 238 22.06.2024 22:46 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112372 ФПД: 277615791079195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224648&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112372&fm=277615791079195&tin=02508201610067®Number=0000000000092771&sum=50066 [22:46:12]StoreToDocumentArchive [22:46:12]shift 391 fd 112372 [22:46:12]save to /storage/0391/doc_00112372 [22:46:12]save last doc name /storage/0391/doc_00112372 to /storage/kkm_last_doc_name [22:46:12]save OK [22:46:12]Clear old archive folders... [22:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:12]tlvbuf is B6F56770 [22:46:12]SAM_PROTO_ClearQueue [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 09 00 00 [22:46:12]Write to MH i2c: E2 08 00 24 5C 80 09 00 00 00 00 00 00 F2 [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 24 5C 00 90 00 F4 [22:46:12]RAPDU: 90 00 [22:46:12]wFMCommunicate OK [22:46:12]SAM_PROTO_ClearQueue done [22:46:12]KKMCreateOFDPacket [22:46:12]OFDProtocolAddRootSTLVToBuf [22:46:12]FM_MakeSignedData [22:46:12]FM_MakeSignedData [22:46:12]SAM_PROTO_SignData [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 0D 01 02 [22:46:12]Write to MH i2c: E2 08 00 25 5C 80 0D 01 02 00 00 00 00 FA [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 25 5C 00 90 00 F5 [22:46:12]RAPDU: 90 00 [22:46:12]wFMCommunicate OK [22:46:12]wFMCommunicate request_size=255 [22:46:12]MH_SAM_APDU [22:46: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 58 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B6 01 00 35 04 06 00 FC [22:46:12]Write to MH i2c: E2 02 01 26 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 58 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B6 01 00 35 04 06 00 FC 00 00 D8 [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 26 5C 00 90 00 F6 [22:46:12]RAPDU: 90 00 [22:46:12]wFMCommunicate OK [22:46:12]wFMCommunicate request_size=10 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 0D 02 02 05 7D 76 9C 7F 1B [22:46:12]Write to MH i2c: E2 0D 00 27 5C 80 0D 02 02 05 00 7D 76 9C 7F 1B 00 00 30 [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 03 00 27 5C 00 90 00 F7 [22:46:12]RAPDU: 90 00 [22:46:12]wFMCommunicate OK [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 0D 03 02 [22:46:12]Write to MH i2c: E2 08 00 28 5C 80 0D 03 02 00 00 00 00 FF [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 0B 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 0B 00 28 5C 00 1D 37 D3 52 7D 1A 56 84 90 00 EA [22:46:12]RAPDU: 1D 37 D3 52 7D 1A 56 84 90 00 [22:46:12]wFMCommunicate OK [22:46:12]SAM_PROTO_SignData done [22:46:12]FM_MakeSignedData done [22:46:12]CreateOFDProtocolMessage [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 11 00 00 [22:46:12]Write to MH i2c: E2 08 00 29 5C 80 11 00 00 00 00 00 00 FF [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 17 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 17 00 29 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [22:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:46:12]wFMCommunicate OK [22:46:12]CreateOFDProtocolMessage done [22:46:12]OFDSenderStorePacket 112372 [22:46:12]StoreOFDPacket docnum=112372 [22:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6F 62 07 01 EE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 58 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B6 01 00 35 04 06 00 FC 7D 76 9C 7F 1B 1D 37 D3 52 7D 1A 56 84 [22:46:12]CheckFolder [22:46:12]dirname=/storage/ofd_packets [22:46:12]CheckFolder done [22:46:12]ProducePacketName [22:46:12]name=ofd_packets/00112372 [22:46:12]NVStorageSaveData ofd_packets/00112372 [22:46:12]File name is /storage/ofd_packets/00112372 [22:46:12]Write 301 bytes [22:46:12]NVStorageSaveData done [22:46:12]OFDSenderStorePacket done [22:46:12]KKMCreateOFDPacket done [22:46:12]NVStorageSaveData kkm_last_timestamp [22:46:12]File name is /storage/kkm_last_timestamp [22:46:12]Write 4 bytes [22:46:12]NVStorageSaveData done [22:46:12]ExternCall_PrintAddStr [22:46:12]wPrintStart [22:46:12]Write to MH i2c: 01 00 00 2A 5C 86 [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: 01 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: 01 07 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: 01 07 00 2A 5C 00 00 00 00 00 FF 0F 9B [22:46:12]RasterBufferAndPrint [22:46:12]line Счет N : (1)321050 [22:46:12]line ИНН: 02508201610067 [22:46:12]line Контрольно-Кассовый Чек [22:46:12]line ПРОДАЖА [22:46:12]line ТРК (МРК, ГНК) : 11 [22:46:12]line Товар: 2710124130 [22:46:12]line Аи-92-К-5 [22:46:12]line 7.540 * 66.40 [22:46:12]line = 500.66 [22:46:12]line НДС 12% НСП 1% [22:46:12]line > о реализуемом товаре [22:46:12]line ИТОГО: 500.66 [22:46:12]line НСП 1% : 4.43 [22:46:12]line НДС 12% : 53.17 [22:46:12]line Наличными: 0.00 [22:46:12]line Безнал.: 500.66 [22:46:12]line Место: АЗС № 65 "Партнер Нефть" [22:46:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:46:12]line СНО: Общий режим [22:46:12]line Чек 238 22.06.2024 22:46 [22:46:12]line Смена: 391 ФФД: 1.0 [22:46:12]line ЗНМ: 0300000198 [22:46:12]line РНМ: 0000000000092771 [22:46:12]line Версия ККМ: 001 [22:46:12]line Платежная система: О! деньги [22:46:12]line ФМ: 0000000000875083 [22:46:12]line ФД: 112372 [22:46:12]line ФПД: 277615791079195 [22:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224648&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112372&fm=277615791079195&tin=02508201610067®Number=0000000000092771&sum=50066 [22:46:13]written 0, free lines is 4095 [22:46:13]OFD Sender: Processing packet 112372 [packets to send 38, broken 37] [22:46:13]ProducePacketName [22:46:13]name=ofd_packets/00112372 [22:46:13]OFD Sender: To server: pG, [22:46:13]CommunicateWithHost lk.salyk.kg:30040 [22:46:13]ConnectInit lk.salyk.kg [22:46:13]Connected sock=10 [22:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6F 62 07 01 EE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 58 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B6 01 00 35 04 06 00 FC 7D 76 9C 7F 1B 1D 37 D3 52 7D 1A 56 84 [22:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 1E 47 00 D3 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B6 01 00 F4 03 04 00 57 EB 76 66 B6 04 01 00 00 94 F5 A9 60 F8 A3 7E DF [22:46:13]CommunicateWithHost err = 0 [22:46:13]CheckOFDResponse [22:46:13]1017 (14) - 77093643461234 [22:46:13]1041 (16) - 0000000000875083 [22:46:13]1040 (4) - 112372 [22:46:13]1012 (4) - 22.06.2024 15:18 [22:46:13]1206 (1) - 0 [22:46:13]OFD Sender: Remove packet 112372 [22:46:13]ProducePacketName [22:46:13]name=ofd_packets/00112372 [22:46:13]NVStorageDeleteData [22:46:13]Write to MH i2c: 01 00 00 54 5C B0 [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: 01 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: 01 07 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: 01 07 00 54 5C 00 00 00 00 00 DC 0C 9F [22:46:13]RasterBufferAndPrint [22:46:13]line [22:46:13]line [22:46:13]line [22:46:13]line [22:46:13]line [22:46:13]written 0, free lines is 3298 [22:46:13]MH_Cut [22:46:13]Write to MH i2c: D1 01 00 5B 5C 01 89 [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: D1 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: D1 01 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: D1 01 00 5B 5C 00 88 [22:46:13]Write to MH i2c: 01 00 00 5C 5C B8 [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]OFD Sender: No OFD packet to send [22:46:14]*** Cut start [22:46:14]*** Partial cut [22:46:14]*** CUTSNS_PIN = 1 [22:46:14]*** CUTSNS_PIN = 0 [22:46:14]*** Brake cut motor [22:46:14]Read from MH i2c: 01 [22:46:14]MH_I2C_Read... [22:46:14]*** Stop cut motor [22:46:14]*** Cut end [22:46:14]Read from MH i2c: 01 07 00 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: 01 07 00 5C 5C 00 00 00 00 00 FF 0F CD [22:46:14]process_action close_receipt done [22:46:14]requested_data is exist [22:46:14]produce_requested_data [22:46:14]requested_item fm.sn is exist - process it [22:46:14]wFMCommunicate request_size=4 [22:46:14]MH_SAM_APDU [22:46:14]CAPDU: 80 11 00 00 [22:46:14]Write to MH i2c: E2 08 00 5D 5C 80 11 00 00 00 00 00 00 33 [22:46:14]Write i2c OK [22:46:14]MH_I2C_Read... [22:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:14]Read from MH i2c: E2 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: E2 17 00 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: E2 17 00 5D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [22:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:46:14]wFMCommunicate OK [22:46:14]requested_item fd.num is exist - process it [22:46:14]SAM_PROTO_GetFieldsCounters [22:46:14]wFMCommunicate request_size=4 [22:46:14]MH_SAM_APDU [22:46:14]CAPDU: 80 13 00 00 [22:46:14]Write to MH i2c: E2 08 00 5E 5C 80 13 00 00 00 00 00 00 36 [22:46:14]Write i2c OK [22:46:14]MH_I2C_Read... [22:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:15]Read from MH i2c: E2 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 62 00 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 62 00 5E 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [22:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:15]wFMCommunicate OK [22:46:15]SAM_PROTO_GetFieldsCounters done [22:46:15]requested_item shift.num is exist - process it [22:46:15]requested_item shift.opened is exist - process it [22:46:15]req_shift_opened [22:46:15]FM_GetShiftState [22:46:15]SAM_PROTO_GetShiftState [22:46:15]wFMCommunicate request_size=4 [22:46:15]MH_SAM_APDU [22:46:15]CAPDU: 80 13 01 00 [22:46:15]Write to MH i2c: E2 08 00 5F 5C 80 13 01 00 00 00 00 00 38 [22:46:15]Write i2c OK [22:46:15]MH_I2C_Read... [22:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:15]Read from MH i2c: E2 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 0E 00 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 0E 00 5F 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6D [22:46:15]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:46:15]wFMCommunicate OK [22:46:15]SAM_PROTO_GetShiftState done [22:46:15]FM_GetShiftState done [22:46:15]req_shift_opened done [22:46:15]requested_item shift.open_date is exist - process it [22:46:15]req_shift_open_date [22:46:15]req_shift_open_date done [22:46:15]produce_requested_data done [22:46:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112372,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:46:15]process_action_free close_receipt [22:46:15]json_value_free [22:46:15]json_value_free done [22:46:15]process_json_proto returns [22:46:15]Send response to host [22:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112372,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:46:15]free response buf [22:46:15]execute_script done [22:46:15]execute_script returns [22:46:15]free content buf [22:46:15]Sock 9.Close socket [22:46:15]Sock 9.Thread stoped [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [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:03]accept exits with 7 [22:48:03]New connection [22:48:03]New thread 3066813796 created [22:48:03]Thread 3066957156 joined [22:48:03]Waiting for new connection... [22:48:03] Sock 7.Parse request [22:48:03]Sock 7.Check first char [22:48:03]Sock 7.First char is OK [22:48:03]request: POST /json_proto HTTP/1.0 [22:48:03]Method: POST [22:48:03]URL: /json_proto [22:48:03]Method is POST - this is cgi request [22:48:03]url: /json_proto [22:48:03]query_string will be loaded in cgi processing [22:48:03]execute_cgi json_proto POST (null) [22:48:03]execute_cgi path=json_proto method=POST [22:48:03]POST find Content-Length [22:48:03]Host: 172.17.59.68:8080 [22:48:03]Content-Length: 677 [22:48:03]Content-Type: application/json [22:48:03] [22:48:03]POST finish read [22:48:03]Found Content-Length = 677 [22:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321051", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:03]execute_script... [22:48:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321051", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:03]POST & json_proto [22:48:03]process_json_proto [22:48:03]json parsed OK: [22:48:03]protocol is kg_v1.0 [22:48:03]action value=close_receipt [22:48:03]process_action close_receipt [22:48:03]cmd_close_receipt [22:48:03]MH_GetDate [22:48:03]Write to MH i2c: F0 00 00 60 5C AB [22:48:03]Write i2c OK [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: F0 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: F0 09 00 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: F0 09 00 60 5C 00 C8 54 77 66 BC EC 60 65 1A [22:48:03]GetLastDocTimeStamp 1719096408 [22:48:03]current date 1719096520 [22:48:03]FM_GetShiftState [22:48:03]SAM_PROTO_GetShiftState [22:48:03]wFMCommunicate request_size=4 [22:48:03]MH_SAM_APDU [22:48:03]CAPDU: 80 13 01 00 [22:48:03]Write to MH i2c: E2 08 00 61 5C 80 13 01 00 00 00 00 00 3A [22:48:03]Write i2c OK [22:48:03]MH_I2C_Read... [22:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:03]Read from MH i2c: E2 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: E2 0E 00 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: E2 0E 00 61 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6F [22:48:03]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:48:03]wFMCommunicate OK [22:48:03]SAM_PROTO_GetShiftState done [22:48:03]FM_GetShiftState done [22:48:03]opened in 1719020067 [22:48:03]opened+sec_in_day 1719106467 [22:48:03]quantity*price = 50065 [22:48:03]sum+1 = 50067 [22:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 239 22.06.2024 22:48 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112373 ФПД: 178692723365852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112373&fm=178692723365852&tin=02508201610067®Number=0000000000092771&sum=50000 [22:48:04]StoreToDocumentArchive [22:48:04]shift 391 fd 112373 [22:48:04]save to /storage/0391/doc_00112373 [22:48:04]save last doc name /storage/0391/doc_00112373 to /storage/kkm_last_doc_name [22:48:04]save OK [22:48:04]Clear old archive folders... [22:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:04]tlvbuf is 01201960 [22:48:04]SAM_PROTO_ClearQueue [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 09 00 00 [22:48:04]Write to MH i2c: E2 08 00 6E 5C 80 09 00 00 00 00 00 00 3C [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 6E 5C 00 90 00 3E [22:48:04]RAPDU: 90 00 [22:48:04]wFMCommunicate OK [22:48:04]SAM_PROTO_ClearQueue done [22:48:04]KKMCreateOFDPacket [22:48:04]OFDProtocolAddRootSTLVToBuf [22:48:04]FM_MakeSignedData [22:48:04]FM_MakeSignedData [22:48:04]SAM_PROTO_SignData [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 0D 01 02 [22:48:04]Write to MH i2c: E2 08 00 6F 5C 80 0D 01 02 00 00 00 00 44 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 6F 5C 00 90 00 3F [22:48:04]RAPDU: 90 00 [22:48:04]wFMCommunicate OK [22:48:04]wFMCommunicate request_size=255 [22:48:04]MH_SAM_APDU [22:48: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C8 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B6 01 00 35 04 06 00 A2 [22:48:04]Write to MH i2c: E2 02 01 70 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C8 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B6 01 00 35 04 06 00 A2 00 00 B6 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 70 5C 00 90 00 40 [22:48:04]RAPDU: 90 00 [22:48:04]wFMCommunicate OK [22:48:04]wFMCommunicate request_size=10 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 0D 02 02 05 85 24 4C D7 DC [22:48:04]Write to MH i2c: E2 0D 00 71 5C 80 0D 02 02 05 00 85 24 4C D7 DC 00 00 F9 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 71 5C 00 90 00 41 [22:48:04]RAPDU: 90 00 [22:48:04]wFMCommunicate OK [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 0D 03 02 [22:48:04]Write to MH i2c: E2 08 00 72 5C 80 0D 03 02 00 00 00 00 49 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 0B 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 0B 00 72 5C 00 D8 ED 4A 6F ED 8D F0 DA 90 00 0C [22:48:04]RAPDU: D8 ED 4A 6F ED 8D F0 DA 90 00 [22:48:04]wFMCommunicate OK [22:48:04]SAM_PROTO_SignData done [22:48:04]FM_MakeSignedData done [22:48:04]CreateOFDProtocolMessage [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 11 00 00 [22:48:04]Write to MH i2c: E2 08 00 73 5C 80 11 00 00 00 00 00 00 49 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 17 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 17 00 73 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [22:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:48:04]wFMCommunicate OK [22:48:04]CreateOFDProtocolMessage done [22:48:04]OFDSenderStorePacket 112373 [22:48:04]StoreOFDPacket docnum=112373 [22:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2D 4C 07 01 13 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C8 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B6 01 00 35 04 06 00 A2 85 24 4C D7 DC D8 ED 4A 6F ED 8D F0 DA [22:48:04]CheckFolder [22:48:04]dirname=/storage/ofd_packets [22:48:04]CheckFolder done [22:48:04]ProducePacketName [22:48:04]name=ofd_packets/00112373 [22:48:04]NVStorageSaveData ofd_packets/00112373 [22:48:04]File name is /storage/ofd_packets/00112373 [22:48:04]Write 301 bytes [22:48:04]NVStorageSaveData done [22:48:04]OFDSenderStorePacket done [22:48:04]KKMCreateOFDPacket done [22:48:04]NVStorageSaveData kkm_last_timestamp [22:48:04]File name is /storage/kkm_last_timestamp [22:48:04]Write 4 bytes [22:48:04]NVStorageSaveData done [22:48:04]ExternCall_PrintAddStr [22:48:04]wPrintStart [22:48:04]Write to MH i2c: 01 00 00 74 5C D0 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 07 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 07 00 74 5C 00 00 00 00 00 FF 0F E5 [22:48:04]RasterBufferAndPrint [22:48:04]line Счет N : (1)321051 [22:48:04]line ИНН: 02508201610067 [22:48:04]line Контрольно-Кассовый Чек [22:48:04]line ПРОДАЖА [22:48:04]line ТРК (МРК, ГНК) : 11 [22:48:04]line Товар: 2710124130 [22:48:04]line Аи-92-К-5 [22:48:04]line 7.540 * 66.40 [22:48:04]line = 500.66 [22:48:04]line НДС 12% НСП 1% [22:48:04]line > о реализуемом товаре [22:48:04]line ОКРУГЛЕНИЕ: -0.66 [22:48:04]line ИТОГО: 500.00 [22:48:04]line Внесено: 500.00 [22:48:04]line СДАЧА: 0.00 [22:48:04]line НСП 1% : 4.43 [22:48:04]line НДС 12% : 53.17 [22:48:04]line Наличными: 500.00 [22:48:04]line Безнал.: 0.00 [22:48:04]line Место: АЗС № 65 "Партнер Нефть" [22:48:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:48:04]line СНО: Общий режим [22:48:04]line Чек 239 22.06.2024 22:48 [22:48:04]line Смена: 391 ФФД: 1.0 [22:48:04]line ЗНМ: 0300000198 [22:48:04]line РНМ: 0000000000092771 [22:48:04]line Версия ККМ: 001 [22:48:04]line ФМ: 0000000000875083 [22:48:04]line ФД: 112373 [22:48:04]line ФПД: 178692723365852 [22:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112373&fm=178692723365852&tin=02508201610067®Number=0000000000092771&sum=50000 [22:48:05]OFD Sender: Processing packet 112373 [packets to send 38, broken 37] [22:48:05]ProducePacketName [22:48:05]name=ofd_packets/00112373 [22:48:05]OFD Sender: To server: pG, [22:48:05]CommunicateWithHost lk.salyk.kg:30040 [22:48:05]ConnectInit lk.salyk.kg [22:48:05]written 0, free lines is 4095 [22:48:05]Connected sock=10 [22:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2D 4C 07 01 13 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 C8 54 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B6 01 00 35 04 06 00 A2 85 24 4C D7 DC D8 ED 4A 6F ED 8D F0 DA [22:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 DE 47 00 34 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B6 01 00 F4 03 04 00 C7 EB 76 66 B6 04 01 00 00 59 49 5C D7 3D CC DA 37 [22:48:05]CommunicateWithHost err = 0 [22:48:05]CheckOFDResponse [22:48:05]1017 (14) - 77093643461234 [22:48:05]1041 (16) - 0000000000875083 [22:48:05]1040 (4) - 112373 [22:48:05]1012 (4) - 22.06.2024 15:20 [22:48:05]1206 (1) - 0 [22:48:05]OFD Sender: Remove packet 112373 [22:48:05]ProducePacketName [22:48:05]name=ofd_packets/00112373 [22:48:05]NVStorageDeleteData [22:48:05]Write to MH i2c: 01 00 00 9F 5C FB [22:48:05]Write i2c OK [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: 01 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: 01 07 00 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: 01 07 00 9F 5C 00 00 00 00 00 CF 0C DD [22:48:05]RasterBufferAndPrint [22:48:05]line [22:48:05]line [22:48:05]line [22:48:05]line [22:48:05]line [22:48:05]written 0, free lines is 3287 [22:48:05]MH_Cut [22:48:05]Write to MH i2c: D1 01 00 A6 5C 01 D4 [22:48:05]Write i2c OK [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: D1 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: D1 01 00 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: D1 01 00 A6 5C 00 D3 [22:48:05]Write to MH i2c: 01 00 00 A7 5C 03 [22:48:05]Write i2c OK [22:48:05]MH_I2C_Read... [22:48:05]OFD Sender: No OFD packet to send [22:48:06]*** Cut start [22:48:06]*** Partial cut [22:48:06]*** CUTSNS_PIN = 1 [22:48:06]*** CUTSNS_PIN = 0 [22:48:06]*** Brake cut motor [22:48:06]Read from MH i2c: 01 [22:48:06]MH_I2C_Read... [22:48:06]*** Stop cut motor [22:48:06]*** Cut end [22:48:06]Read from MH i2c: 01 07 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: 01 07 00 A7 5C 00 00 00 00 00 FF 0F 18 [22:48:06]process_action close_receipt done [22:48:06]requested_data is exist [22:48:06]produce_requested_data [22:48:06]requested_item fm.sn is exist - process it [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 11 00 00 [22:48:06]Write to MH i2c: E2 08 00 A8 5C 80 11 00 00 00 00 00 00 7E [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 17 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 17 00 A8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [22:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:48:06]wFMCommunicate OK [22:48:06]requested_item fd.num is exist - process it [22:48:06]SAM_PROTO_GetFieldsCounters [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 13 00 00 [22:48:06]Write to MH i2c: E2 08 00 A9 5C 80 13 00 00 00 00 00 00 81 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 62 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 62 00 A9 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [22:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:07]wFMCommunicate OK [22:48:07]SAM_PROTO_GetFieldsCounters done [22:48:07]requested_item shift.num is exist - process it [22:48:07]requested_item shift.opened is exist - process it [22:48:07]req_shift_opened [22:48:07]FM_GetShiftState [22:48:07]SAM_PROTO_GetShiftState [22:48:07]wFMCommunicate request_size=4 [22:48:07]MH_SAM_APDU [22:48:07]CAPDU: 80 13 01 00 [22:48:07]Write to MH i2c: E2 08 00 AA 5C 80 13 01 00 00 00 00 00 83 [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 0E 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 0E 00 AA 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B8 [22:48:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:48:07]wFMCommunicate OK [22:48:07]SAM_PROTO_GetShiftState done [22:48:07]FM_GetShiftState done [22:48:07]req_shift_opened done [22:48:07]requested_item shift.open_date is exist - process it [22:48:07]req_shift_open_date [22:48:07]req_shift_open_date done [22:48:07]produce_requested_data done [22:48:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112373,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:48:07]process_action_free close_receipt [22:48:07]json_value_free [22:48:07]json_value_free done [22:48:07]process_json_proto returns [22:48:07]Send response to host [22:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112373,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:48:07]free response buf [22:48:07]execute_script done [22:48:07]execute_script returns [22:48:07]free content buf [22:48:07]Sock 7.Close socket [22:48:07]Sock 7.Thread stoped [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:17]accept exits with 9 [22:50:17]New connection [22:50:17]New thread 3066957156 created [22:50:17]Thread 3066813796 joined [22:50:17]Waiting for new connection... [22:50:17] Sock 9.Parse request [22:50:17]Sock 9.Check first char [22:50:17]Sock 9.First char is OK [22:50:17]request: POST /json_proto HTTP/1.0 [22:50:17]Method: POST [22:50:17]URL: /json_proto [22:50:17]Method is POST - this is cgi request [22:50:17]url: /json_proto [22:50:17]query_string will be loaded in cgi processing [22:50:17]execute_cgi json_proto POST (null) [22:50:17]execute_cgi path=json_proto method=POST [22:50:17]POST find Content-Length [22:50:17]Host: 172.17.59.68:8080 [22:50:17]Content-Length: 678 [22:50:17]Content-Type: application/json [22:50:17] [22:50:17]POST finish read [22:50:17]Found Content-Length = 678 [22:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321052", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:17]execute_script... [22:50: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)321052", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:17]POST & json_proto [22:50:17]process_json_proto [22:50:17]json parsed OK: [22:50:17]protocol is kg_v1.0 [22:50:17]action value=close_receipt [22:50:17]process_action close_receipt [22:50:17]cmd_close_receipt [22:50:17]MH_GetDate [22:50:17]Write to MH i2c: F0 00 00 AB 5C F6 [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: F0 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: F0 09 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: F0 09 00 AB 5C 00 4E 55 77 66 BC EC 60 65 EC [22:50:17]GetLastDocTimeStamp 1719096520 [22:50:17]current date 1719096654 [22:50:17]FM_GetShiftState [22:50:17]SAM_PROTO_GetShiftState [22:50:17]wFMCommunicate request_size=4 [22:50:17]MH_SAM_APDU [22:50:17]CAPDU: 80 13 01 00 [22:50:17]Write to MH i2c: E2 08 00 AC 5C 80 13 01 00 00 00 00 00 85 [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:17]Read from MH i2c: E2 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 0E 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 0E 00 AC 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BA [22:50:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:50:17]wFMCommunicate OK [22:50:17]SAM_PROTO_GetShiftState done [22:50:17]FM_GetShiftState done [22:50:17]opened in 1719020067 [22:50:17]opened+sec_in_day 1719106467 [22:50:17]quantity*price = 70052 [22:50:17]sum+1 = 70053 [22:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 240 22.06.2024 22:50 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112374 ФПД: 194098305844767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112374&fm=194098305844767&tin=02508201610067®Number=0000000000092771&sum=70000 [22:50:18]StoreToDocumentArchive [22:50:18]shift 391 fd 112374 [22:50:18]save to /storage/0391/doc_00112374 [22:50:18]save last doc name /storage/0391/doc_00112374 to /storage/kkm_last_doc_name [22:50:18]save OK [22:50:18]Clear old archive folders... [22:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:18]tlvbuf is 012C2510 [22:50:18]SAM_PROTO_ClearQueue [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 09 00 00 [22:50:18]Write to MH i2c: E2 08 00 B9 5C 80 09 00 00 00 00 00 00 87 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 B9 5C 00 90 00 89 [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]SAM_PROTO_ClearQueue done [22:50:18]KKMCreateOFDPacket [22:50:18]OFDProtocolAddRootSTLVToBuf [22:50:18]FM_MakeSignedData [22:50:18]FM_MakeSignedData [22:50:18]SAM_PROTO_SignData [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 01 02 [22:50:18]Write to MH i2c: E2 08 00 BA 5C 80 0D 01 02 00 00 00 00 8F [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 BA 5C 00 90 00 8A [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]wFMCommunicate request_size=255 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 4E 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B6 01 00 35 04 06 00 B0 [22:50:18]Write to MH i2c: E2 02 01 BB 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 4E 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B6 01 00 35 04 06 00 B0 00 00 AA [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 BB 5C 00 90 00 8B [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]wFMCommunicate request_size=10 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 02 02 05 88 08 92 46 1F [22:50:18]Write to MH i2c: E2 0D 00 BC 5C 80 0D 02 02 05 00 88 08 92 46 1F 00 00 23 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 BC 5C 00 90 00 8C [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 03 02 [22:50:18]Write to MH i2c: E2 08 00 BD 5C 80 0D 03 02 00 00 00 00 94 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 0B 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 0B 00 BD 5C 00 9A 95 5B D8 08 FC CE 03 90 00 CC [22:50:19]RAPDU: 9A 95 5B D8 08 FC CE 03 90 00 [22:50:19]wFMCommunicate OK [22:50:19]SAM_PROTO_SignData done [22:50:19]FM_MakeSignedData done [22:50:19]CreateOFDProtocolMessage [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 11 00 00 [22:50:19]Write to MH i2c: E2 08 00 BE 5C 80 11 00 00 00 00 00 00 94 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 17 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 17 00 BE 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [22:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:50:19]wFMCommunicate OK [22:50:19]CreateOFDProtocolMessage done [22:50:19]OFDSenderStorePacket 112374 [22:50:19]StoreOFDPacket docnum=112374 [22:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B6 BD 07 01 D5 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 4E 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B6 01 00 35 04 06 00 B0 88 08 92 46 1F 9A 95 5B D8 08 FC CE 03 [22:50:19]CheckFolder [22:50:19]dirname=/storage/ofd_packets [22:50:19]CheckFolder done [22:50:19]ProducePacketName [22:50:19]name=ofd_packets/00112374 [22:50:19]NVStorageSaveData ofd_packets/00112374 [22:50:19]File name is /storage/ofd_packets/00112374 [22:50:19]Write 301 bytes [22:50:19]NVStorageSaveData done [22:50:19]OFDSenderStorePacket done [22:50:19]KKMCreateOFDPacket done [22:50:19]NVStorageSaveData kkm_last_timestamp [22:50:19]File name is /storage/kkm_last_timestamp [22:50:19]Write 4 bytes [22:50:19]NVStorageSaveData done [22:50:19]ExternCall_PrintAddStr [22:50:19]wPrintStart [22:50:19]Write to MH i2c: 01 00 00 BF 5C 1B [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 BF 5C 00 00 00 00 00 FF 0F 30 [22:50:19]RasterBufferAndPrint [22:50:19]line Счет N : (1)321052 [22:50:19]line ИНН: 02508201610067 [22:50:19]line Контрольно-Кассовый Чек [22:50:19]line ПРОДАЖА [22:50:19]line ТРК (МРК, ГНК) : 11 [22:50:19]line Товар: 2710124130 [22:50:19]line Аи-92-К-5 [22:50:19]line 10.550 * 66.40 [22:50:19]line = 700.52 [22:50:19]line НДС 12% НСП 1% [22:50:19]line > о реализуемом товаре [22:50:19]line ОКРУГЛЕНИЕ: -0.52 [22:50:19]line ИТОГО: 700.00 [22:50:19]line Внесено: 700.00 [22:50:19]line СДАЧА: 0.00 [22:50:19]line НСП 1% : 6.20 [22:50:19]line НДС 12% : 74.39 [22:50:19]line Наличными: 700.00 [22:50:19]line Безнал.: 0.00 [22:50:19]line Место: АЗС № 65 "Партнер Нефть" [22:50:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:50:19]line СНО: Общий режим [22:50:19]line Чек 240 22.06.2024 22:50 [22:50:19]line Смена: 391 ФФД: 1.0 [22:50:19]line ЗНМ: 0300000198 [22:50:19]line РНМ: 0000000000092771 [22:50:19]line Версия ККМ: 001 [22:50:19]line ФМ: 0000000000875083 [22:50:19]line ФД: 112374 [22:50:19]line ФПД: 194098305844767 [22:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112374&fm=194098305844767&tin=02508201610067®Number=0000000000092771&sum=70000 [22:50:19]OFD Sender: Processing packet 112374 [packets to send 38, broken 37] [22:50:19]ProducePacketName [22:50:19]name=ofd_packets/00112374 [22:50:19]OFD Sender: To server: pG, [22:50:19]CommunicateWithHost lk.salyk.kg:30040 [22:50:19]ConnectInit lk.salyk.kg [22:50:19]written 0, free lines is 4095 [22:50:19]Connected sock=7 [22:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B6 BD 07 01 D5 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 4E 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B6 01 00 35 04 06 00 B0 88 08 92 46 1F 9A 95 5B D8 08 FC CE 03 [22:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6C 7C 47 00 6A 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B6 01 00 F4 03 04 00 4D EC 76 66 B6 04 01 00 00 B4 14 83 70 E4 1E C8 47 [22:50:19]CommunicateWithHost err = 0 [22:50:19]CheckOFDResponse [22:50:19]1017 (14) - 77093643461234 [22:50:19]1041 (16) - 0000000000875083 [22:50:19]1040 (4) - 112374 [22:50:19]1012 (4) - 22.06.2024 15:22 [22:50:19]1206 (1) - 0 [22:50:19]OFD Sender: Remove packet 112374 [22:50:19]ProducePacketName [22:50:19]name=ofd_packets/00112374 [22:50:19]NVStorageDeleteData [22:50:19]Write to MH i2c: 01 00 00 EA 5C 46 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 EA 5C 00 00 00 00 00 D0 0C 29 [22:50:19]RasterBufferAndPrint [22:50:19]line [22:50:19]line [22:50:19]line [22:50:19]line [22:50:19]line [22:50:19]written 0, free lines is 3288 [22:50:19]MH_Cut [22:50:19]Write to MH i2c: D1 01 00 F1 5C 01 1F [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: D1 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: D1 01 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: D1 01 00 F1 5C 00 1E [22:50:19]Write to MH i2c: 01 00 00 F2 5C 4E [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:20]OFD Sender: No OFD packet to send [22:50:20]*** Cut start [22:50:20]*** Partial cut [22:50:20]*** CUTSNS_PIN = 1 [22:50:20]*** CUTSNS_PIN = 0 [22:50:20]*** Brake cut motor [22:50:21]Read from MH i2c: 01 [22:50:21]MH_I2C_Read... [22:50:21]*** Stop cut motor [22:50:21]*** Cut end [22:50:21]Read from MH i2c: 01 07 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: 01 07 00 F2 5C 00 00 00 00 00 FF 0F 63 [22:50:21]process_action close_receipt done [22:50:21]requested_data is exist [22:50:21]produce_requested_data [22:50:21]requested_item fm.sn is exist - process it [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 11 00 00 [22:50:21]Write to MH i2c: E2 08 00 F3 5C 80 11 00 00 00 00 00 00 C9 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 17 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 17 00 F3 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [22:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:50:21]wFMCommunicate OK [22:50:21]requested_item fd.num is exist - process it [22:50:21]SAM_PROTO_GetFieldsCounters [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 13 00 00 [22:50:21]Write to MH i2c: E2 08 00 F4 5C 80 13 00 00 00 00 00 00 CC [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 62 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 62 00 F4 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [22:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:21]wFMCommunicate OK [22:50:21]SAM_PROTO_GetFieldsCounters done [22:50:21]requested_item shift.num is exist - process it [22:50:21]requested_item shift.opened is exist - process it [22:50:21]req_shift_opened [22:50:21]FM_GetShiftState [22:50:21]SAM_PROTO_GetShiftState [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 13 01 00 [22:50:21]Write to MH i2c: E2 08 00 F5 5C 80 13 01 00 00 00 00 00 CE [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 0E 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 0E 00 F5 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 03 [22:50:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:50:21]wFMCommunicate OK [22:50:21]SAM_PROTO_GetShiftState done [22:50:21]FM_GetShiftState done [22:50:21]req_shift_opened done [22:50:21]requested_item shift.open_date is exist - process it [22:50:21]req_shift_open_date [22:50:21]req_shift_open_date done [22:50:21]produce_requested_data done [22:50:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112374,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:50:21]process_action_free close_receipt [22:50:21]json_value_free [22:50:21]json_value_free done [22:50:21]process_json_proto returns [22:50:21]Send response to host [22:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112374,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:50:21]free response buf [22:50:21]execute_script done [22:50:21]execute_script returns [22:50:21]free content buf [22:50:21]Sock 9.Close socket [22:50:21]Sock 9.Thread stoped [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:34]accept exits with 10 [22:51:34]New connection [22:51:34]New thread 3066813796 created [22:51:34]Thread 3066957156 joined [22:51:34]Waiting for new connection... [22:51:34] Sock 10.Parse request [22:51:34]Sock 10.Check first char [22:51:34]Sock 10.First char is OK [22:51:34]request: POST /json_proto HTTP/1.0 [22:51:34]Method: POST [22:51:34]URL: /json_proto [22:51:34]Method is POST - this is cgi request [22:51:34]url: /json_proto [22:51:34]query_string will be loaded in cgi processing [22:51:34]execute_cgi json_proto POST (null) [22:51:34]execute_cgi path=json_proto method=POST [22:51:34]POST find Content-Length [22:51:34]Host: 172.17.59.68:8080 [22:51:34]Content-Length: 677 [22:51:34]Content-Type: application/json [22:51:34] [22:51:34]POST finish read [22:51:34]Found Content-Length = 677 [22:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321053", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [22:51:34]execute_script... [22:51: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)321053", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [22:51:34]POST & json_proto [22:51:34]process_json_proto [22:51:34]json parsed OK: [22:51:34]protocol is kg_v1.0 [22:51:34]action value=close_receipt [22:51:34]process_action close_receipt [22:51:34]cmd_close_receipt [22:51:34]MH_GetDate [22:51:34]Write to MH i2c: F0 00 00 F6 5C 41 [22:51:34]Write i2c OK [22:51:34]MH_I2C_Read... [22:51:34]Read from MH i2c: F0 [22:51:34]MH_I2C_Read... [22:51:34]Read from MH i2c: F0 09 00 [22:51:34]MH_I2C_Read... [22:51:34]Read from MH i2c: F0 09 00 F6 5C 00 9B 55 77 66 BC EC 60 65 84 [22:51:34]GetLastDocTimeStamp 1719096654 [22:51:34]current date 1719096731 [22:51:34]FM_GetShiftState [22:51:34]SAM_PROTO_GetShiftState [22:51:34]wFMCommunicate request_size=4 [22:51:34]MH_SAM_APDU [22:51:34]CAPDU: 80 13 01 00 [22:51:34]Write to MH i2c: E2 08 00 F7 5C 80 13 01 00 00 00 00 00 D0 [22:51:34]Write i2c OK [22:51:34]MH_I2C_Read... [22:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:34]Read from MH i2c: E2 [22:51:34]MH_I2C_Read... [22:51:34]Read from MH i2c: E2 0E 00 [22:51:34]MH_I2C_Read... [22:51:34]Read from MH i2c: E2 0E 00 F7 5C 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 05 [22:51:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:51:34]wFMCommunicate OK [22:51:34]SAM_PROTO_GetShiftState done [22:51:34]FM_GetShiftState done [22:51:34]opened in 1719020067 [22:51:34]opened+sec_in_day 1719106467 [22:51:34]quantity*price = 40039 [22:51:34]sum+1 = 40040 [22:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 241 22.06.2024 22:52 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112375 ФПД: 219156084076449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225211&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112375&fm=219156084076449&tin=02508201610067®Number=0000000000092771&sum=40000 [22:51:35]StoreToDocumentArchive [22:51:35]shift 391 fd 112375 [22:51:35]save to /storage/0391/doc_00112375 [22:51:35]save last doc name /storage/0391/doc_00112375 to /storage/kkm_last_doc_name [22:51:35]save OK [22:51:35]Clear old archive folders... [22:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:51:35]tlvbuf is 01322CF0 [22:51:35]SAM_PROTO_ClearQueue [22:51:35]wFMCommunicate request_size=4 [22:51:35]MH_SAM_APDU [22:51:35]CAPDU: 80 09 00 00 [22:51:35]Write to MH i2c: E2 08 00 04 5D 80 09 00 00 00 00 00 00 D3 [22:51:35]Write i2c OK [22:51:35]MH_I2C_Read... [22:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:35]Read from MH i2c: E2 [22:51:35]MH_I2C_Read... [22:51:35]Read from MH i2c: E2 03 00 [22:51:35]MH_I2C_Read... [22:51:35]Read from MH i2c: E2 03 00 04 5D 00 90 00 D5 [22:51:35]RAPDU: 90 00 [22:51:35]wFMCommunicate OK [22:51:35]SAM_PROTO_ClearQueue done [22:51:35]KKMCreateOFDPacket [22:51:35]OFDProtocolAddRootSTLVToBuf [22:51:35]FM_MakeSignedData [22:51:35]FM_MakeSignedData [22:51:35]SAM_PROTO_SignData [22:51:35]wFMCommunicate request_size=4 [22:51:35]MH_SAM_APDU [22:51:35]CAPDU: 80 0D 01 02 [22:51:35]Write to MH i2c: E2 08 00 05 5D 80 0D 01 02 00 00 00 00 DB [22:51:35]Write i2c OK [22:51:35]MH_I2C_Read... [22:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:35]Read from MH i2c: E2 [22:51:35]MH_I2C_Read... [22:51:35]Read from MH i2c: E2 03 00 [22:51:35]MH_I2C_Read... [22:51:35]Read from MH i2c: E2 03 00 05 5D 00 90 00 D6 [22:51:35]RAPDU: 90 00 [22:51:35]wFMCommunicate OK [22:51:35]wFMCommunicate request_size=255 [22:51:35]MH_SAM_APDU [22:51:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 F1 00 00 00 F4 03 04 00 9B 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B6 01 00 35 04 06 00 C7 [22:51:35]Write to MH i2c: E2 02 01 06 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 F1 00 00 00 F4 03 04 00 9B 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B6 01 00 35 04 06 00 C7 00 00 18 [22:51:35]Write i2c OK [22:51:35]MH_I2C_Read... [22:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:36]Read from MH i2c: E2 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 03 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 03 00 06 5D 00 90 00 D7 [22:51:36]RAPDU: 90 00 [22:51:36]wFMCommunicate OK [22:51:36]wFMCommunicate request_size=10 [22:51:36]MH_SAM_APDU [22:51:36]CAPDU: 80 0D 02 02 05 52 40 8A AF A1 [22:51:36]Write to MH i2c: E2 0D 00 07 5D 80 0D 02 02 05 00 52 40 8A AF A1 00 00 54 [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:36]Read from MH i2c: E2 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 03 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 03 00 07 5D 00 90 00 D8 [22:51:36]RAPDU: 90 00 [22:51:36]wFMCommunicate OK [22:51:36]wFMCommunicate request_size=4 [22:51:36]MH_SAM_APDU [22:51:36]CAPDU: 80 0D 03 02 [22:51:36]Write to MH i2c: E2 08 00 08 5D 80 0D 03 02 00 00 00 00 E0 [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:36]Read from MH i2c: E2 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 0B 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 0B 00 08 5D 00 66 23 0D F1 BD 0B 44 6C 90 00 E0 [22:51:36]RAPDU: 66 23 0D F1 BD 0B 44 6C 90 00 [22:51:36]wFMCommunicate OK [22:51:36]SAM_PROTO_SignData done [22:51:36]FM_MakeSignedData done [22:51:36]CreateOFDProtocolMessage [22:51:36]wFMCommunicate request_size=4 [22:51:36]MH_SAM_APDU [22:51:36]CAPDU: 80 11 00 00 [22:51:36]Write to MH i2c: E2 08 00 09 5D 80 11 00 00 00 00 00 00 E0 [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:36]Read from MH i2c: E2 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 17 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: E2 17 00 09 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [22:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:51:36]wFMCommunicate OK [22:51:36]CreateOFDProtocolMessage done [22:51:36]OFDSenderStorePacket 112375 [22:51:36]StoreOFDPacket docnum=112375 [22:51:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 B2 07 01 8F 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 F1 00 00 00 F4 03 04 00 9B 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B6 01 00 35 04 06 00 C7 52 40 8A AF A1 66 23 0D F1 BD 0B 44 6C [22:51:36]CheckFolder [22:51:36]dirname=/storage/ofd_packets [22:51:36]CheckFolder done [22:51:36]ProducePacketName [22:51:36]name=ofd_packets/00112375 [22:51:36]NVStorageSaveData ofd_packets/00112375 [22:51:36]File name is /storage/ofd_packets/00112375 [22:51:36]Write 301 bytes [22:51:36]NVStorageSaveData done [22:51:36]OFDSenderStorePacket done [22:51:36]KKMCreateOFDPacket done [22:51:36]NVStorageSaveData kkm_last_timestamp [22:51:36]File name is /storage/kkm_last_timestamp [22:51:36]Write 4 bytes [22:51:36]NVStorageSaveData done [22:51:36]ExternCall_PrintAddStr [22:51:36]wPrintStart [22:51:36]Write to MH i2c: 01 00 00 0A 5D 67 [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: 01 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: 01 07 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: 01 07 00 0A 5D 00 00 00 00 00 FF 0F 7C [22:51:36]RasterBufferAndPrint [22:51:36]line Счет N : (1)321053 [22:51:36]line ИНН: 02508201610067 [22:51:36]line Контрольно-Кассовый Чек [22:51:36]line ПРОДАЖА [22:51:36]line ТРК (МРК, ГНК) : 11 [22:51:36]line Товар: 2710124130 [22:51:36]line Аи-92-К-5 [22:51:36]line 6.030 * 66.40 [22:51:36]line = 400.39 [22:51:36]line НДС 12% НСП 1% [22:51:36]line > о реализуемом товаре [22:51:36]line ОКРУГЛЕНИЕ: -0.39 [22:51:36]line ИТОГО: 400.00 [22:51:36]line Внесено: 400.00 [22:51:36]line СДАЧА: 0.00 [22:51:36]line НСП 1% : 3.54 [22:51:36]line НДС 12% : 42.52 [22:51:36]line Наличными: 400.00 [22:51:36]line Безнал.: 0.00 [22:51:36]line Место: АЗС № 65 "Партнер Нефть" [22:51:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:51:36]line СНО: Общий режим [22:51:36]line Чек 241 22.06.2024 22:52 [22:51:36]line Смена: 391 ФФД: 1.0 [22:51:36]line ЗНМ: 0300000198 [22:51:36]line РНМ: 0000000000092771 [22:51:36]line Версия ККМ: 001 [22:51:36]line ФМ: 0000000000875083 [22:51:36]line ФД: 112375 [22:51:36]line ФПД: 219156084076449 [22:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225211&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112375&fm=219156084076449&tin=02508201610067®Number=0000000000092771&sum=40000 [22:51:36]written 0, free lines is 4095 [22:51:36]OFD Sender: Processing packet 112375 [packets to send 38, broken 37] [22:51:36]ProducePacketName [22:51:36]name=ofd_packets/00112375 [22:51:36]OFD Sender: To server: pG, [22:51:36]CommunicateWithHost lk.salyk.kg:30040 [22:51:36]ConnectInit lk.salyk.kg [22:51:36]Connected sock=11 [22:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 B2 07 01 8F 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 F1 00 00 00 F4 03 04 00 9B 55 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B6 01 00 35 04 06 00 C7 52 40 8A AF A1 66 23 0D F1 BD 0B 44 6C [22:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 13 CF 47 00 8E 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B6 01 00 F4 03 04 00 9A EC 76 66 B6 04 01 00 00 FB 2E 96 5E 95 B3 36 1B [22:51:36]CommunicateWithHost err = 0 [22:51:36]CheckOFDResponse [22:51:36]1017 (14) - 77093643461234 [22:51:36]1041 (16) - 0000000000875083 [22:51:36]1040 (4) - 112375 [22:51:36]1012 (4) - 22.06.2024 15:24 [22:51:36]1206 (1) - 0 [22:51:36]OFD Sender: Remove packet 112375 [22:51:36]ProducePacketName [22:51:36]name=ofd_packets/00112375 [22:51:36]NVStorageDeleteData [22:51:36]Write to MH i2c: 01 00 00 35 5D 92 [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: 01 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: 01 07 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: 01 07 00 35 5D 00 00 00 00 00 DD 0C 82 [22:51:36]RasterBufferAndPrint [22:51:36]line [22:51:36]line [22:51:36]line [22:51:36]line [22:51:36]line [22:51:36]written 0, free lines is 3300 [22:51:36]MH_Cut [22:51:36]Write to MH i2c: D1 01 00 3C 5D 01 6B [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: D1 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: D1 01 00 [22:51:36]MH_I2C_Read... [22:51:36]Read from MH i2c: D1 01 00 3C 5D 00 6A [22:51:36]Write to MH i2c: 01 00 00 3D 5D 9A [22:51:36]Write i2c OK [22:51:36]MH_I2C_Read... [22:51:37]OFD Sender: No OFD packet to send [22:51:37]*** Cut start [22:51:37]*** Partial cut [22:51:37]*** CUTSNS_PIN = 1 [22:51:37]*** CUTSNS_PIN = 0 [22:51:37]*** Brake cut motor [22:51:38]Read from MH i2c: 01 [22:51:38]MH_I2C_Read... [22:51:38]*** Stop cut motor [22:51:38]*** Cut end [22:51:38]Read from MH i2c: 01 07 00 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: 01 07 00 3D 5D 00 00 00 00 00 FF 0F AF [22:51:38]process_action close_receipt done [22:51:38]requested_data is exist [22:51:38]produce_requested_data [22:51:38]requested_item fm.sn is exist - process it [22:51:38]wFMCommunicate request_size=4 [22:51:38]MH_SAM_APDU [22:51:38]CAPDU: 80 11 00 00 [22:51:38]Write to MH i2c: E2 08 00 3E 5D 80 11 00 00 00 00 00 00 15 [22:51:38]Write i2c OK [22:51:38]MH_I2C_Read... [22:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:38]Read from MH i2c: E2 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: E2 17 00 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: E2 17 00 3E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [22:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:51:38]wFMCommunicate OK [22:51:38]requested_item fd.num is exist - process it [22:51:38]SAM_PROTO_GetFieldsCounters [22:51:38]wFMCommunicate request_size=4 [22:51:38]MH_SAM_APDU [22:51:38]CAPDU: 80 13 00 00 [22:51:38]Write to MH i2c: E2 08 00 3F 5D 80 13 00 00 00 00 00 00 18 [22:51:38]Write i2c OK [22:51:38]MH_I2C_Read... [22:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:38]Read from MH i2c: E2 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: E2 62 00 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: E2 62 00 3F 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [22:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:38]wFMCommunicate OK [22:51:38]SAM_PROTO_GetFieldsCounters done [22:51:38]requested_item shift.num is exist - process it [22:51:38]requested_item shift.opened is exist - process it [22:51:38]req_shift_opened [22:51:38]FM_GetShiftState [22:51:38]SAM_PROTO_GetShiftState [22:51:38]wFMCommunicate request_size=4 [22:51:38]MH_SAM_APDU [22:51:38]CAPDU: 80 13 01 00 [22:51:38]Write to MH i2c: E2 08 00 40 5D 80 13 01 00 00 00 00 00 1A [22:51:38]Write i2c OK [22:51:38]MH_I2C_Read... [22:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:38]Read from MH i2c: E2 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: E2 0E 00 [22:51:38]MH_I2C_Read... [22:51:38]Read from MH i2c: E2 0E 00 40 5D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4F [22:51:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:51:38]wFMCommunicate OK [22:51:38]SAM_PROTO_GetShiftState done [22:51:38]FM_GetShiftState done [22:51:38]req_shift_opened done [22:51:38]requested_item shift.open_date is exist - process it [22:51:38]req_shift_open_date [22:51:38]req_shift_open_date done [22:51:38]produce_requested_data done [22:51:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112375,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:51:38]process_action_free close_receipt [22:51:38]json_value_free [22:51:38]json_value_free done [22:51:38]process_json_proto returns [22:51:38]Send response to host [22:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112375,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:51:38]free response buf [22:51:38]execute_script done [22:51:38]execute_script returns [22:51:38]free content buf [22:51:38]Sock 10.Close socket [22:51:38]Sock 10.Thread stoped [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:26]accept exits with 7 [22:54:26]New connection [22:54:26]New thread 3066957156 created [22:54:26]Thread 3066813796 joined [22:54:26]Waiting for new connection... [22:54:26] Sock 7.Parse request [22:54:26]Sock 7.Check first char [22:54:26]Sock 7.First char is OK [22:54:26]request: POST /json_proto HTTP/1.0 [22:54:26]Method: POST [22:54:26]URL: /json_proto [22:54:26]Method is POST - this is cgi request [22:54:26]url: /json_proto [22:54:26]query_string will be loaded in cgi processing [22:54:26]execute_cgi json_proto POST (null) [22:54:26]execute_cgi path=json_proto method=POST [22:54:26]POST find Content-Length [22:54:26]Host: 172.17.59.68:8080 [22:54:26]Content-Length: 682 [22:54:26]Content-Type: application/json [22:54:26] [22:54:26]POST finish read [22:54:26]Found Content-Length = 682 [22:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:26]execute_script... [22:54: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)321054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:26]POST & json_proto [22:54:26]process_json_proto [22:54:26]json parsed OK: [22:54:26]protocol is kg_v1.0 [22:54:26]action value=close_receipt [22:54:26]process_action close_receipt [22:54:26]cmd_close_receipt [22:54:26]MH_GetDate [22:54:26]Write to MH i2c: F0 00 00 41 5D 8D [22:54:26]Write i2c OK [22:54:26]MH_I2C_Read... [22:54:26]Read from MH i2c: F0 [22:54:26]MH_I2C_Read... [22:54:26]Read from MH i2c: F0 09 00 [22:54:26]MH_I2C_Read... [22:54:26]Read from MH i2c: F0 09 00 41 5D 00 47 56 77 66 BC EC 60 65 7D [22:54:26]GetLastDocTimeStamp 1719096731 [22:54:26]current date 1719096903 [22:54:26]FM_GetShiftState [22:54:26]SAM_PROTO_GetShiftState [22:54:26]wFMCommunicate request_size=4 [22:54:26]MH_SAM_APDU [22:54:26]CAPDU: 80 13 01 00 [22:54:26]Write to MH i2c: E2 08 00 42 5D 80 13 01 00 00 00 00 00 1C [22:54:26]Write i2c OK [22:54:26]MH_I2C_Read... [22:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:26]Read from MH i2c: E2 [22:54:26]MH_I2C_Read... [22:54:26]Read from MH i2c: E2 0E 00 [22:54:26]MH_I2C_Read... [22:54:26]Read from MH i2c: E2 0E 00 42 5D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 51 [22:54:26]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:54:26]wFMCommunicate OK [22:54:26]SAM_PROTO_GetShiftState done [22:54:26]FM_GetShiftState done [22:54:26]opened in 1719020067 [22:54:26]opened+sec_in_day 1719106467 [22:54:26]quantity*price = 100060 [22:54:26]sum+1 = 100062 [22:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 242 22.06.2024 22:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112376 ФПД: 82581869933234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225503&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112376&fm=82581869933234&tin=02508201610067®Number=0000000000092771&sum=100000 [22:54:27]StoreToDocumentArchive [22:54:27]shift 391 fd 112376 [22:54:27]save to /storage/0391/doc_00112376 [22:54:27]save last doc name /storage/0391/doc_00112376 to /storage/kkm_last_doc_name [22:54:27]save OK [22:54:27]Clear old archive folders... [22:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:27]tlvbuf is 01185AA0 [22:54:27]SAM_PROTO_ClearQueue [22:54:27]wFMCommunicate request_size=4 [22:54:27]MH_SAM_APDU [22:54:27]CAPDU: 80 09 00 00 [22:54:27]Write to MH i2c: E2 08 00 4F 5D 80 09 00 00 00 00 00 00 1E [22:54:27]Write i2c OK [22:54:27]MH_I2C_Read... [22:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:27]Read from MH i2c: E2 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: E2 03 00 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: E2 03 00 4F 5D 00 90 00 20 [22:54:27]RAPDU: 90 00 [22:54:27]wFMCommunicate OK [22:54:27]SAM_PROTO_ClearQueue done [22:54:27]KKMCreateOFDPacket [22:54:27]OFDProtocolAddRootSTLVToBuf [22:54:27]FM_MakeSignedData [22:54:27]FM_MakeSignedData [22:54:27]SAM_PROTO_SignData [22:54:27]wFMCommunicate request_size=4 [22:54:27]MH_SAM_APDU [22:54:27]CAPDU: 80 0D 01 02 [22:54:27]Write to MH i2c: E2 08 00 50 5D 80 0D 01 02 00 00 00 00 26 [22:54:27]Write i2c OK [22:54:27]MH_I2C_Read... [22:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:27]Read from MH i2c: E2 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: E2 03 00 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: E2 03 00 50 5D 00 90 00 21 [22:54:27]RAPDU: 90 00 [22:54:27]wFMCommunicate OK [22:54:27]wFMCommunicate request_size=255 [22:54:27]MH_SAM_APDU [22:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 47 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B6 01 00 35 04 06 00 4B [22:54:27]Write to MH i2c: E2 02 01 51 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 47 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B6 01 00 35 04 06 00 4B 00 00 09 [22:54:27]Write i2c OK [22:54:27]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 51 5D 00 90 00 22 [22:54:28]RAPDU: 90 00 [22:54:28]wFMCommunicate OK [22:54:28]wFMCommunicate request_size=10 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 0D 02 02 05 1B 97 05 B2 B2 [22:54:28]Write to MH i2c: E2 0D 00 52 5D 80 0D 02 02 05 00 1B 97 05 B2 B2 00 00 4E [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 52 5D 00 90 00 23 [22:54:28]RAPDU: 90 00 [22:54:28]wFMCommunicate OK [22:54:28]wFMCommunicate request_size=4 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 0D 03 02 [22:54:28]Write to MH i2c: E2 08 00 53 5D 80 0D 03 02 00 00 00 00 2B [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 0B 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 0B 00 53 5D 00 B0 96 0C 19 50 CA 74 BA 90 00 DF [22:54:28]RAPDU: B0 96 0C 19 50 CA 74 BA 90 00 [22:54:28]wFMCommunicate OK [22:54:28]SAM_PROTO_SignData done [22:54:28]FM_MakeSignedData done [22:54:28]CreateOFDProtocolMessage [22:54:28]wFMCommunicate request_size=4 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 11 00 00 [22:54:28]Write to MH i2c: E2 08 00 54 5D 80 11 00 00 00 00 00 00 2B [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 17 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 17 00 54 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [22:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:54:28]wFMCommunicate OK [22:54:28]CreateOFDProtocolMessage done [22:54:28]OFDSenderStorePacket 112376 [22:54:28]StoreOFDPacket docnum=112376 [22:54:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 46 C9 07 01 F2 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 47 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B6 01 00 35 04 06 00 4B 1B 97 05 B2 B2 B0 96 0C 19 50 CA 74 BA [22:54:28]CheckFolder [22:54:28]dirname=/storage/ofd_packets [22:54:28]CheckFolder done [22:54:28]ProducePacketName [22:54:28]name=ofd_packets/00112376 [22:54:28]NVStorageSaveData ofd_packets/00112376 [22:54:28]File name is /storage/ofd_packets/00112376 [22:54:28]Write 301 bytes [22:54:28]NVStorageSaveData done [22:54:28]OFDSenderStorePacket done [22:54:28]KKMCreateOFDPacket done [22:54:28]NVStorageSaveData kkm_last_timestamp [22:54:28]File name is /storage/kkm_last_timestamp [22:54:28]Write 4 bytes [22:54:28]NVStorageSaveData done [22:54:28]ExternCall_PrintAddStr [22:54:28]wPrintStart [22:54:28]Write to MH i2c: 01 00 00 55 5D B2 [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: 01 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: 01 07 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: 01 07 00 55 5D 00 00 00 00 00 FF 0F C7 [22:54:28]RasterBufferAndPrint [22:54:28]line Счет N : (1)321054 [22:54:28]line ИНН: 02508201610067 [22:54:28]line Контрольно-Кассовый Чек [22:54:28]line ПРОДАЖА [22:54:28]line ТРК (МРК, ГНК) : 12 [22:54:28]line Товар: 2710124500 [22:54:28]line Аи-95-К-5 [22:54:28]line 13.540 * 73.90 [22:54:28]line = 1000.61 [22:54:28]line НДС 12% НСП 1% [22:54:28]line > о реализуемом товаре [22:54:28]line ОКРУГЛЕНИЕ: -0.61 [22:54:28]line ИТОГО: 1000.00 [22:54:28]line Внесено: 1000.00 [22:54:28]line СДАЧА: 0.00 [22:54:28]line НСП 1% : 8.85 [22:54:28]line НДС 12% : 106.26 [22:54:28]line Наличными: 1000.00 [22:54:28]line Безнал.: 0.00 [22:54:28]line Место: АЗС № 65 "Партнер Нефть" [22:54:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:54:28]line СНО: Общий режим [22:54:28]line Чек 242 22.06.2024 22:55 [22:54:28]line Смена: 391 ФФД: 1.0 [22:54:28]line ЗНМ: 0300000198 [22:54:28]line РНМ: 0000000000092771 [22:54:28]line Версия ККМ: 001 [22:54:28]line ФМ: 0000000000875083 [22:54:28]line ФД: 112376 [22:54:28]line ФПД: 82581869933234 [22:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225503&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112376&fm=82581869933234&tin=02508201610067®Number=0000000000092771&sum=100000 [22:54:28]OFD Sender: Processing packet 112376 [packets to send 38, broken 37] [22:54:28]ProducePacketName [22:54:28]name=ofd_packets/00112376 [22:54:28]OFD Sender: To server: pG, [22:54:28]CommunicateWithHost lk.salyk.kg:30040 [22:54:28]ConnectInit lk.salyk.kg [22:54:28]written 0, free lines is 4095 [22:54:28]Connected sock=10 [22:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 46 C9 07 01 F2 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 47 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B6 01 00 35 04 06 00 4B 1B 97 05 B2 B2 B0 96 0C 19 50 CA 74 BA [22:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 61 47 00 48 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B6 01 00 F4 03 04 00 46 ED 76 66 B6 04 01 00 00 D0 79 33 5F AC 37 8D D0 [22:54:28]CommunicateWithHost err = 0 [22:54:28]CheckOFDResponse [22:54:28]1017 (14) - 77093643461234 [22:54:28]1041 (16) - 0000000000875083 [22:54:28]1040 (4) - 112376 [22:54:28]1012 (4) - 22.06.2024 15:27 [22:54:28]1206 (1) - 0 [22:54:28]OFD Sender: Remove packet 112376 [22:54:28]ProducePacketName [22:54:28]name=ofd_packets/00112376 [22:54:28]NVStorageDeleteData [22:54:29]Write to MH i2c: 01 00 00 80 5D DD [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 07 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 07 00 80 5D 00 00 00 00 00 E4 0C D4 [22:54:29]RasterBufferAndPrint [22:54:29]line [22:54:29]line [22:54:29]line [22:54:29]line [22:54:29]line [22:54:29]written 0, free lines is 3306 [22:54:29]MH_Cut [22:54:29]Write to MH i2c: D1 01 00 87 5D 01 B6 [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: D1 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: D1 01 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: D1 01 00 87 5D 00 B5 [22:54:29]Write to MH i2c: 01 00 00 88 5D E5 [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]OFD Sender: No OFD packet to send [22:54:29]*** Cut start [22:54:29]*** Partial cut [22:54:29]*** CUTSNS_PIN = 1 [22:54:29]*** CUTSNS_PIN = 0 [22:54:30]*** Brake cut motor [22:54:30]Read from MH i2c: 01 [22:54:30]MH_I2C_Read... [22:54:30]*** Stop cut motor [22:54:30]*** Cut end [22:54:30]Read from MH i2c: 01 07 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: 01 07 00 88 5D 00 00 00 00 00 FF 0F FA [22:54:30]process_action close_receipt done [22:54:30]requested_data is exist [22:54:30]produce_requested_data [22:54:30]requested_item fm.sn is exist - process it [22:54:30]wFMCommunicate request_size=4 [22:54:30]MH_SAM_APDU [22:54:30]CAPDU: 80 11 00 00 [22:54:30]Write to MH i2c: E2 08 00 89 5D 80 11 00 00 00 00 00 00 60 [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 17 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 17 00 89 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [22:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:54:30]wFMCommunicate OK [22:54:30]requested_item fd.num is exist - process it [22:54:30]SAM_PROTO_GetFieldsCounters [22:54:30]wFMCommunicate request_size=4 [22:54:30]MH_SAM_APDU [22:54:30]CAPDU: 80 13 00 00 [22:54:30]Write to MH i2c: E2 08 00 8A 5D 80 13 00 00 00 00 00 00 63 [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 62 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 62 00 8A 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [22:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:30]wFMCommunicate OK [22:54:30]SAM_PROTO_GetFieldsCounters done [22:54:30]requested_item shift.num is exist - process it [22:54:30]requested_item shift.opened is exist - process it [22:54:30]req_shift_opened [22:54:30]FM_GetShiftState [22:54:30]SAM_PROTO_GetShiftState [22:54:30]wFMCommunicate request_size=4 [22:54:30]MH_SAM_APDU [22:54:30]CAPDU: 80 13 01 00 [22:54:30]Write to MH i2c: E2 08 00 8B 5D 80 13 01 00 00 00 00 00 65 [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 0E 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 0E 00 8B 5D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9A [22:54:30]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:54:30]wFMCommunicate OK [22:54:30]SAM_PROTO_GetShiftState done [22:54:30]FM_GetShiftState done [22:54:30]req_shift_opened done [22:54:30]requested_item shift.open_date is exist - process it [22:54:30]req_shift_open_date [22:54:30]req_shift_open_date done [22:54:30]produce_requested_data done [22:54:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112376,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:54:30]process_action_free close_receipt [22:54:30]json_value_free [22:54:30]json_value_free done [22:54:30]process_json_proto returns [22:54:30]Send response to host [22:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112376,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:54:30]free response buf [22:54:30]execute_script done [22:54:30]execute_script returns [22:54:30]free content buf [22:54:30]Sock 7.Close socket [22:54:30]Sock 7.Thread stoped [22:54:34]OFD Sender: No OFD packet to send [22:54:39]accept exits with 9 [22:54:39]New connection [22:54:39]New thread 3066813796 created [22:54:39]Thread 3066957156 joined [22:54:39]Waiting for new connection... [22:54:39] Sock 9.Parse request [22:54:39]Sock 9.Check first char [22:54:39]Sock 9.First char is OK [22:54:39]request: POST /json_proto HTTP/1.0 [22:54:39]Method: POST [22:54:39]URL: /json_proto [22:54:39]Method is POST - this is cgi request [22:54:39]url: /json_proto [22:54:39]query_string will be loaded in cgi processing [22:54:39]execute_cgi json_proto POST (null) [22:54:39]execute_cgi path=json_proto method=POST [22:54:39]POST find Content-Length [22:54:39]Host: 172.17.59.68:8080 [22:54:39]Content-Length: 677 [22:54:39]Content-Type: application/json [22:54:39] [22:54:39]POST finish read [22:54:39]Found Content-Length = 677 [22:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321056", "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.40, "quantity" : 9.340, "sum" : 620.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:39]execute_script... [22:54: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)321056", "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.40, "quantity" : 9.340, "sum" : 620.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:39]POST & json_proto [22:54:39]process_json_proto [22:54:39]json parsed OK: [22:54:39]protocol is kg_v1.0 [22:54:39]action value=close_receipt [22:54:39]process_action close_receipt [22:54:39]cmd_close_receipt [22:54:39]MH_GetDate [22:54:39]Write to MH i2c: F0 00 00 8C 5D D8 [22:54:39]Write i2c OK [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: F0 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: F0 09 00 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: F0 09 00 8C 5D 00 54 56 77 66 BC EC 60 65 D5 [22:54:39]GetLastDocTimeStamp 1719096903 [22:54:39]current date 1719096916 [22:54:39]FM_GetShiftState [22:54:39]SAM_PROTO_GetShiftState [22:54:39]wFMCommunicate request_size=4 [22:54:39]MH_SAM_APDU [22:54:39]CAPDU: 80 13 01 00 [22:54:39]Write to MH i2c: E2 08 00 8D 5D 80 13 01 00 00 00 00 00 67 [22:54:39]Write i2c OK [22:54:39]MH_I2C_Read... [22:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:39]Read from MH i2c: E2 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: E2 0E 00 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: E2 0E 00 8D 5D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9C [22:54:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:54:39]wFMCommunicate OK [22:54:39]SAM_PROTO_GetShiftState done [22:54:39]FM_GetShiftState done [22:54:39]opened in 1719020067 [22:54:39]opened+sec_in_day 1719106467 [22:54:39]quantity*price = 62017 [22:54:39]sum+1 = 62019 [22:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 243 22.06.2024 22:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112377 ФПД: 250956439141743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225516&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112377&fm=250956439141743&tin=02508201610067®Number=0000000000092771&sum=62000 [22:54:40]StoreToDocumentArchive [22:54:40]shift 391 fd 112377 [22:54:40]save to /storage/0391/doc_00112377 [22:54:40]save last doc name /storage/0391/doc_00112377 to /storage/kkm_last_doc_name [22:54:40]save OK [22:54:40]Clear old archive folders... [22:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:40]tlvbuf is 0126FA40 [22:54:40]SAM_PROTO_ClearQueue [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 09 00 00 [22:54:40]Write to MH i2c: E2 08 00 9A 5D 80 09 00 00 00 00 00 00 69 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 9A 5D 00 90 00 6B [22:54:40]RAPDU: 90 00 [22:54:40]wFMCommunicate OK [22:54:40]SAM_PROTO_ClearQueue done [22:54:40]KKMCreateOFDPacket [22:54:40]OFDProtocolAddRootSTLVToBuf [22:54:40]FM_MakeSignedData [22:54:40]FM_MakeSignedData [22:54:40]SAM_PROTO_SignData [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 0D 01 02 [22:54:40]Write to MH i2c: E2 08 00 9B 5D 80 0D 01 02 00 00 00 00 71 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 9B 5D 00 90 00 6C [22:54:40]RAPDU: 90 00 [22:54:40]wFMCommunicate OK [22:54:40]wFMCommunicate request_size=255 [22:54:40]MH_SAM_APDU [22:54: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 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 54 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B6 01 00 35 04 06 00 E4 [22:54:40]Write to MH i2c: E2 02 01 9C 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 54 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B6 01 00 35 04 06 00 E4 00 00 2C [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 9C 5D 00 90 00 6D [22:54:40]RAPDU: 90 00 [22:54:40]wFMCommunicate OK [22:54:40]wFMCommunicate request_size=10 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 0D 02 02 05 3E 59 68 BD 6F [22:54:40]Write to MH i2c: E2 0D 00 9D 5D 80 0D 02 02 05 00 3E 59 68 BD 6F 00 00 A9 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 03 00 9D 5D 00 90 00 6E [22:54:40]RAPDU: 90 00 [22:54:40]wFMCommunicate OK [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 0D 03 02 [22:54:40]Write to MH i2c: E2 08 00 9E 5D 80 0D 03 02 00 00 00 00 76 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 0B 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 0B 00 9E 5D 00 81 5E 21 14 6A 63 9C 28 90 00 1C [22:54:40]RAPDU: 81 5E 21 14 6A 63 9C 28 90 00 [22:54:40]wFMCommunicate OK [22:54:40]SAM_PROTO_SignData done [22:54:40]FM_MakeSignedData done [22:54:40]CreateOFDProtocolMessage [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 11 00 00 [22:54:40]Write to MH i2c: E2 08 00 9F 5D 80 11 00 00 00 00 00 00 76 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 17 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 17 00 9F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [22:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:54:40]wFMCommunicate OK [22:54:40]CreateOFDProtocolMessage done [22:54:40]OFDSenderStorePacket 112377 [22:54:40]StoreOFDPacket docnum=112377 [22:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 40 07 01 64 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 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 54 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B6 01 00 35 04 06 00 E4 3E 59 68 BD 6F 81 5E 21 14 6A 63 9C 28 [22:54:40]CheckFolder [22:54:40]dirname=/storage/ofd_packets [22:54:40]CheckFolder done [22:54:40]ProducePacketName [22:54:40]name=ofd_packets/00112377 [22:54:40]NVStorageSaveData ofd_packets/00112377 [22:54:40]File name is /storage/ofd_packets/00112377 [22:54:40]Write 301 bytes [22:54:40]NVStorageSaveData done [22:54:40]OFDSenderStorePacket done [22:54:40]KKMCreateOFDPacket done [22:54:40]NVStorageSaveData kkm_last_timestamp [22:54:40]File name is /storage/kkm_last_timestamp [22:54:40]Write 4 bytes [22:54:40]NVStorageSaveData done [22:54:40]ExternCall_PrintAddStr [22:54:40]wPrintStart [22:54:40]Write to MH i2c: 01 00 00 A0 5D FD [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: 01 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: 01 07 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: 01 07 00 A0 5D 00 00 00 00 00 FF 0F 12 [22:54:40]RasterBufferAndPrint [22:54:40]line Счет N : (1)321056 [22:54:40]line ИНН: 02508201610067 [22:54:40]line Контрольно-Кассовый Чек [22:54:40]line ПРОДАЖА [22:54:40]line ТРК (МРК, ГНК) : 11 [22:54:40]line Товар: 2710124130 [22:54:40]line Аи-92-К-5 [22:54:40]line 9.340 * 66.40 [22:54:40]line = 620.18 [22:54:40]line НДС 12% НСП 1% [22:54:40]line > о реализуемом товаре [22:54:40]line ОКРУГЛЕНИЕ: -0.18 [22:54:40]line ИТОГО: 620.00 [22:54:40]line Внесено: 620.00 [22:54:40]line СДАЧА: 0.00 [22:54:40]line НСП 1% : 5.49 [22:54:40]line НДС 12% : 65.86 [22:54:40]line Наличными: 620.00 [22:54:40]line Безнал.: 0.00 [22:54:40]line Место: АЗС № 65 "Партнер Нефть" [22:54:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:54:40]line СНО: Общий режим [22:54:40]line Чек 243 22.06.2024 22:55 [22:54:40]line Смена: 391 ФФД: 1.0 [22:54:40]line ЗНМ: 0300000198 [22:54:40]line РНМ: 0000000000092771 [22:54:40]line Версия ККМ: 001 [22:54:40]line ФМ: 0000000000875083 [22:54:40]line ФД: 112377 [22:54:40]line ФПД: 250956439141743 [22:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225516&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112377&fm=250956439141743&tin=02508201610067®Number=0000000000092771&sum=62000 [22:54:40]written 0, free lines is 4095 [22:54:40]OFD Sender: Processing packet 112377 [packets to send 38, broken 37] [22:54:40]ProducePacketName [22:54:40]name=ofd_packets/00112377 [22:54:40]OFD Sender: To server: pG, [22:54:40]CommunicateWithHost lk.salyk.kg:30040 [22:54:40]ConnectInit lk.salyk.kg [22:54:40]Connected sock=10 [22:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 40 07 01 64 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 7C 24 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 54 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B6 01 00 35 04 06 00 E4 3E 59 68 BD 6F 81 5E 21 14 6A 63 9C 28 [22:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 39 15 47 00 BA 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B6 01 00 F4 03 04 00 53 ED 76 66 B6 04 01 00 00 C7 41 E1 6D A7 DC 20 B3 [22:54:41]CommunicateWithHost err = 0 [22:54:41]CheckOFDResponse [22:54:41]1017 (14) - 77093643461234 [22:54:41]1041 (16) - 0000000000875083 [22:54:41]1040 (4) - 112377 [22:54:41]1012 (4) - 22.06.2024 15:27 [22:54:41]1206 (1) - 0 [22:54:41]OFD Sender: Remove packet 112377 [22:54:41]ProducePacketName [22:54:41]name=ofd_packets/00112377 [22:54:41]NVStorageDeleteData [22:54:41]Write to MH i2c: 01 00 00 CB 5D 28 [22:54:41]Write i2c OK [22:54:41]MH_I2C_Read... [22:54:41]Read from MH i2c: 01 [22:54:41]MH_I2C_Read... [22:54:41]Read from MH i2c: 01 07 00 [22:54:41]MH_I2C_Read... [22:54:41]Read from MH i2c: 01 07 00 CB 5D 00 00 00 00 00 D4 0C 0F [22:54:41]RasterBufferAndPrint [22:54:41]line [22:54:41]line [22:54:41]line [22:54:41]line [22:54:41]line [22:54:41]written 0, free lines is 3292 [22:54:41]MH_Cut [22:54:41]Write to MH i2c: D1 01 00 D2 5D 01 01 [22:54:41]Write i2c OK [22:54:41]MH_I2C_Read... [22:54:41]Read from MH i2c: D1 [22:54:41]MH_I2C_Read... [22:54:41]Read from MH i2c: D1 01 00 [22:54:41]MH_I2C_Read... [22:54:41]Read from MH i2c: D1 01 00 D2 5D 00 00 [22:54:41]Write to MH i2c: 01 00 00 D3 5D 30 [22:54:41]Write i2c OK [22:54:41]MH_I2C_Read... [22:54:41]OFD Sender: No OFD packet to send [22:54:41]*** Cut start [22:54:41]*** Partial cut [22:54:41]*** CUTSNS_PIN = 1 [22:54:41]*** CUTSNS_PIN = 0 [22:54:42]*** Brake cut motor [22:54:42]Read from MH i2c: 01 [22:54:42]MH_I2C_Read... [22:54:42]*** Stop cut motor [22:54:42]*** Cut end [22:54:42]Read from MH i2c: 01 07 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: 01 07 00 D3 5D 00 00 00 00 00 FF 0F 45 [22:54:42]process_action close_receipt done [22:54:42]requested_data is exist [22:54:42]produce_requested_data [22:54:42]requested_item fm.sn is exist - process it [22:54:42]wFMCommunicate request_size=4 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 11 00 00 [22:54:42]Write to MH i2c: E2 08 00 D4 5D 80 11 00 00 00 00 00 00 AB [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 17 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 17 00 D4 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [22:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:54:42]wFMCommunicate OK [22:54:42]requested_item fd.num is exist - process it [22:54:42]SAM_PROTO_GetFieldsCounters [22:54:42]wFMCommunicate request_size=4 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 13 00 00 [22:54:42]Write to MH i2c: E2 08 00 D5 5D 80 13 00 00 00 00 00 00 AE [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 62 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 62 00 D5 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [22:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:42]wFMCommunicate OK [22:54:42]SAM_PROTO_GetFieldsCounters done [22:54:42]requested_item shift.num is exist - process it [22:54:42]requested_item shift.opened is exist - process it [22:54:42]req_shift_opened [22:54:42]FM_GetShiftState [22:54:42]SAM_PROTO_GetShiftState [22:54:42]wFMCommunicate request_size=4 [22:54:42]MH_SAM_APDU [22:54:42]CAPDU: 80 13 01 00 [22:54:42]Write to MH i2c: E2 08 00 D6 5D 80 13 01 00 00 00 00 00 B0 [22:54:42]Write i2c OK [22:54:42]MH_I2C_Read... [22:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:42]Read from MH i2c: E2 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 0E 00 [22:54:42]MH_I2C_Read... [22:54:42]Read from MH i2c: E2 0E 00 D6 5D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E5 [22:54:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:54:42]wFMCommunicate OK [22:54:42]SAM_PROTO_GetShiftState done [22:54:42]FM_GetShiftState done [22:54:42]req_shift_opened done [22:54:42]requested_item shift.open_date is exist - process it [22:54:42]req_shift_open_date [22:54:42]req_shift_open_date done [22:54:42]produce_requested_data done [22:54:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112377,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:54:42]process_action_free close_receipt [22:54:42]json_value_free [22:54:42]json_value_free done [22:54:42]process_json_proto returns [22:54:42]Send response to host [22:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112377,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:54:42]free response buf [22:54:42]execute_script done [22:54:42]execute_script returns [22:54:42]free content buf [22:54:42]Sock 9.Close socket [22:54:42]Sock 9.Thread stoped [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:07]accept exits with 7 [22:55:07]New connection [22:55:07]New thread 3066957156 created [22:55:07]Thread 3066813796 joined [22:55:07]Waiting for new connection... [22:55:07] Sock 7.Parse request [22:55:07]Sock 7.Check first char [22:55:07]Sock 7.First char is OK [22:55:07]request: POST /json_proto HTTP/1.0 [22:55:07]Method: POST [22:55:07]URL: /json_proto [22:55:07]Method is POST - this is cgi request [22:55:07]url: /json_proto [22:55:07]query_string will be loaded in cgi processing [22:55:07]execute_cgi json_proto POST (null) [22:55:07]execute_cgi path=json_proto method=POST [22:55:07]POST find Content-Length [22:55:07]Host: 172.17.59.68:8080 [22:55:07]Content-Length: 679 [22:55:07]Content-Type: application/json [22:55:07] [22:55:07]POST finish read [22:55:07]Found Content-Length = 679 [22:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:07]execute_script... [22:55: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)321055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:07]POST & json_proto [22:55:07]process_json_proto [22:55:07]json parsed OK: [22:55:07]protocol is kg_v1.0 [22:55:07]action value=close_receipt [22:55:07]process_action close_receipt [22:55:07]cmd_close_receipt [22:55:07]MH_GetDate [22:55:07]Write to MH i2c: F0 00 00 D7 5D 23 [22:55:07]Write i2c OK [22:55:07]MH_I2C_Read... [22:55:07]Read from MH i2c: F0 [22:55:07]MH_I2C_Read... [22:55:07]Read from MH i2c: F0 09 00 [22:55:07]MH_I2C_Read... [22:55:07]Read from MH i2c: F0 09 00 D7 5D 00 70 56 77 66 BC EC 60 65 3C [22:55:07]GetLastDocTimeStamp 1719096916 [22:55:07]current date 1719096944 [22:55:07]FM_GetShiftState [22:55:07]SAM_PROTO_GetShiftState [22:55:07]wFMCommunicate request_size=4 [22:55:07]MH_SAM_APDU [22:55:07]CAPDU: 80 13 01 00 [22:55:07]Write to MH i2c: E2 08 00 D8 5D 80 13 01 00 00 00 00 00 B2 [22:55:07]Write i2c OK [22:55:07]MH_I2C_Read... [22:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:07]Read from MH i2c: E2 [22:55:07]MH_I2C_Read... [22:55:07]Read from MH i2c: E2 0E 00 [22:55:07]MH_I2C_Read... [22:55:07]Read from MH i2c: E2 0E 00 D8 5D 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E7 [22:55:07]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:55:07]wFMCommunicate OK [22:55:07]SAM_PROTO_GetShiftState done [22:55:07]FM_GetShiftState done [22:55:07]opened in 1719020067 [22:55:07]opened+sec_in_day 1719106467 [22:55:07]quantity*price = 200037 [22:55:07]sum+1 = 200039 [22:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 244 22.06.2024 22:55 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112378 ФПД: 47569674951681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112378&fm=47569674951681&tin=02508201610067®Number=0000000000092771&sum=200000 [22:55:08]StoreToDocumentArchive [22:55:08]shift 391 fd 112378 [22:55:08]save to /storage/0391/doc_00112378 [22:55:08]save last doc name /storage/0391/doc_00112378 to /storage/kkm_last_doc_name [22:55:08]save OK [22:55:08]Clear old archive folders... [22:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:55:08]tlvbuf is 01201720 [22:55:08]SAM_PROTO_ClearQueue [22:55:08]wFMCommunicate request_size=4 [22:55:08]MH_SAM_APDU [22:55:08]CAPDU: 80 09 00 00 [22:55:08]Write to MH i2c: E2 08 00 E5 5D 80 09 00 00 00 00 00 00 B4 [22:55:08]Write i2c OK [22:55:08]MH_I2C_Read... [22:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:08]Read from MH i2c: E2 [22:55:08]MH_I2C_Read... [22:55:08]Read from MH i2c: E2 03 00 [22:55:08]MH_I2C_Read... [22:55:08]Read from MH i2c: E2 03 00 E5 5D 00 90 00 B6 [22:55:08]RAPDU: 90 00 [22:55:08]wFMCommunicate OK [22:55:08]SAM_PROTO_ClearQueue done [22:55:08]KKMCreateOFDPacket [22:55:08]OFDProtocolAddRootSTLVToBuf [22:55:08]FM_MakeSignedData [22:55:08]FM_MakeSignedData [22:55:08]SAM_PROTO_SignData [22:55:08]wFMCommunicate request_size=4 [22:55:08]MH_SAM_APDU [22:55:08]CAPDU: 80 0D 01 02 [22:55:08]Write to MH i2c: E2 08 00 E6 5D 80 0D 01 02 00 00 00 00 BC [22:55:08]Write i2c OK [22:55:08]MH_I2C_Read... [22:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:08]Read from MH i2c: E2 [22:55:08]MH_I2C_Read... [22:55:08]Read from MH i2c: E2 03 00 [22:55:08]MH_I2C_Read... [22:55:08]Read from MH i2c: E2 03 00 E6 5D 00 90 00 B7 [22:55:08]RAPDU: 90 00 [22:55:08]wFMCommunicate OK [22:55:08]wFMCommunicate request_size=255 [22:55:08]MH_SAM_APDU [22:55:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 70 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B6 01 00 35 04 06 00 2B 43 AD 93 [22:55:08]Write to MH i2c: E2 02 01 E7 5D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 70 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B6 01 00 35 04 06 00 2B 43 AD 93 00 00 1B [22:55:08]Write i2c OK [22:55:08]MH_I2C_Read... [22:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:09]Read from MH i2c: E2 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 03 00 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 03 00 E7 5D 00 90 00 B8 [22:55:09]RAPDU: 90 00 [22:55:09]wFMCommunicate OK [22:55:09]wFMCommunicate request_size=7 [22:55:09]MH_SAM_APDU [22:55:09]CAPDU: 80 0D 02 02 02 DC 01 [22:55:09]Write to MH i2c: E2 0A 00 E8 5D 80 0D 02 02 02 00 DC 01 00 00 A0 [22:55:09]Write i2c OK [22:55:09]MH_I2C_Read... [22:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:09]Read from MH i2c: E2 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 03 00 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 03 00 E8 5D 00 90 00 B9 [22:55:09]RAPDU: 90 00 [22:55:09]wFMCommunicate OK [22:55:09]wFMCommunicate request_size=4 [22:55:09]MH_SAM_APDU [22:55:09]CAPDU: 80 0D 03 02 [22:55:09]Write to MH i2c: E2 08 00 E9 5D 80 0D 03 02 00 00 00 00 C1 [22:55:09]Write i2c OK [22:55:09]MH_I2C_Read... [22:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:09]Read from MH i2c: E2 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 0B 00 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 0B 00 E9 5D 00 69 38 BF 53 C3 FE D0 6B 90 00 71 [22:55:09]RAPDU: 69 38 BF 53 C3 FE D0 6B 90 00 [22:55:09]wFMCommunicate OK [22:55:09]SAM_PROTO_SignData done [22:55:09]FM_MakeSignedData done [22:55:09]CreateOFDProtocolMessage [22:55:09]wFMCommunicate request_size=4 [22:55:09]MH_SAM_APDU [22:55:09]CAPDU: 80 11 00 00 [22:55:09]Write to MH i2c: E2 08 00 EA 5D 80 11 00 00 00 00 00 00 C1 [22:55:09]Write i2c OK [22:55:09]MH_I2C_Read... [22:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:09]Read from MH i2c: E2 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 17 00 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: E2 17 00 EA 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [22:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:55:09]wFMCommunicate OK [22:55:09]CreateOFDProtocolMessage done [22:55:09]OFDSenderStorePacket 112378 [22:55:09]StoreOFDPacket docnum=112378 [22:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 52 A0 04 01 05 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 70 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B6 01 00 35 04 06 00 2B 43 AD 93 DC 01 69 38 BF 53 C3 FE D0 6B [22:55:09]CheckFolder [22:55:09]dirname=/storage/ofd_packets [22:55:09]CheckFolder done [22:55:09]ProducePacketName [22:55:09]name=ofd_packets/00112378 [22:55:09]NVStorageSaveData ofd_packets/00112378 [22:55:09]File name is /storage/ofd_packets/00112378 [22:55:09]Write 298 bytes [22:55:09]NVStorageSaveData done [22:55:09]OFDSenderStorePacket done [22:55:09]KKMCreateOFDPacket done [22:55:09]NVStorageSaveData kkm_last_timestamp [22:55:09]File name is /storage/kkm_last_timestamp [22:55:09]Write 4 bytes [22:55:09]NVStorageSaveData done [22:55:09]ExternCall_PrintAddStr [22:55:09]wPrintStart [22:55:09]Write to MH i2c: 01 00 00 EB 5D 48 [22:55:09]Write i2c OK [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: 01 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: 01 07 00 [22:55:09]MH_I2C_Read... [22:55:09]Read from MH i2c: 01 07 00 EB 5D 00 00 00 00 00 FF 0F 5D [22:55:09]RasterBufferAndPrint [22:55:09]line Счет N : (1)321055 [22:55:09]line ИНН: 02508201610067 [22:55:09]line Контрольно-Кассовый Чек [22:55:09]line ПРОДАЖА [22:55:09]line ТРК (МРК, ГНК) : 22 [22:55:09]line Товар: 2710194210 [22:55:09]line ДТ-К-5 [22:55:09]line 27.440 * 72.90 [22:55:09]line = 2000.38 [22:55:09]line НДС 12% НСП 1% [22:55:09]line > о реализуемом товаре [22:55:09]line ОКРУГЛЕНИЕ: -0.38 [22:55:09]line ИТОГО: 2000.00 [22:55:09]line Внесено: 2000.00 [22:55:09]line СДАЧА: 0.00 [22:55:09]line НСП 1% : 17.70 [22:55:09]line НДС 12% : 212.43 [22:55:09]line Наличными: 2000.00 [22:55:09]line Безнал.: 0.00 [22:55:09]line Место: АЗС № 65 "Партнер Нефть" [22:55:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:55:09]line СНО: Общий режим [22:55:09]line Чек 244 22.06.2024 22:55 [22:55:09]line Смена: 391 ФФД: 1.0 [22:55:09]line ЗНМ: 0300000198 [22:55:09]line РНМ: 0000000000092771 [22:55:09]line Версия ККМ: 001 [22:55:09]line ФМ: 0000000000875083 [22:55:09]line ФД: 112378 [22:55:09]line ФПД: 47569674951681 [22:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112378&fm=47569674951681&tin=02508201610067®Number=0000000000092771&sum=200000 [22:55:09]OFD Sender: Processing packet 112378 [packets to send 38, broken 37] [22:55:09]ProducePacketName [22:55:09]name=ofd_packets/00112378 [22:55:09]OFD Sender: To server: pG, [22:55:09]CommunicateWithHost lk.salyk.kg:30040 [22:55:09]ConnectInit lk.salyk.kg [22:55:09]written 0, free lines is 4095 [22:55:09]Connected sock=10 [22:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 52 A0 04 01 05 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 70 56 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B6 01 00 35 04 06 00 2B 43 AD 93 DC 01 69 38 BF 53 C3 FE D0 6B [22:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 42 70 47 00 AD FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B6 01 00 F4 03 04 00 6F ED 76 66 B6 04 01 00 00 7B 91 FA 12 6D 45 62 B7 [22:55:09]CommunicateWithHost err = 0 [22:55:09]CheckOFDResponse [22:55:09]1017 (14) - 77093643461234 [22:55:09]1041 (16) - 0000000000875083 [22:55:09]1040 (4) - 112378 [22:55:09]1012 (4) - 22.06.2024 15:27 [22:55:09]1206 (1) - 0 [22:55:09]OFD Sender: Remove packet 112378 [22:55:09]ProducePacketName [22:55:09]name=ofd_packets/00112378 [22:55:09]NVStorageDeleteData [22:55:10]Write to MH i2c: 01 00 00 16 5E 74 [22:55:10]Write i2c OK [22:55:10]MH_I2C_Read... [22:55:10]Read from MH i2c: 01 [22:55:10]MH_I2C_Read... [22:55:10]Read from MH i2c: 01 07 00 [22:55:10]MH_I2C_Read... [22:55:10]Read from MH i2c: 01 07 00 16 5E 00 00 00 00 00 D3 0C 5A [22:55:10]RasterBufferAndPrint [22:55:10]line [22:55:10]line [22:55:10]line [22:55:10]line [22:55:10]line [22:55:10]written 0, free lines is 3290 [22:55:10]MH_Cut [22:55:10]Write to MH i2c: D1 01 00 1D 5E 01 4D [22:55:10]Write i2c OK [22:55:10]MH_I2C_Read... [22:55:10]Read from MH i2c: D1 [22:55:10]MH_I2C_Read... [22:55:10]Read from MH i2c: D1 01 00 [22:55:10]MH_I2C_Read... [22:55:10]Read from MH i2c: D1 01 00 1D 5E 00 4C [22:55:10]Write to MH i2c: 01 00 00 1E 5E 7C [22:55:10]Write i2c OK [22:55:10]MH_I2C_Read... [22:55:10]OFD Sender: No OFD packet to send [22:55:10]*** Cut start [22:55:10]*** Partial cut [22:55:10]*** CUTSNS_PIN = 1 [22:55:10]*** CUTSNS_PIN = 0 [22:55:11]*** Brake cut motor [22:55:11]Read from MH i2c: 01 [22:55:11]MH_I2C_Read... [22:55:11]*** Stop cut motor [22:55:11]*** Cut end [22:55:11]Read from MH i2c: 01 07 00 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: 01 07 00 1E 5E 00 00 00 00 00 FF 0F 91 [22:55:11]process_action close_receipt done [22:55:11]requested_data is exist [22:55:11]produce_requested_data [22:55:11]requested_item fm.sn is exist - process it [22:55:11]wFMCommunicate request_size=4 [22:55:11]MH_SAM_APDU [22:55:11]CAPDU: 80 11 00 00 [22:55:11]Write to MH i2c: E2 08 00 1F 5E 80 11 00 00 00 00 00 00 F7 [22:55:11]Write i2c OK [22:55:11]MH_I2C_Read... [22:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:11]Read from MH i2c: E2 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: E2 17 00 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: E2 17 00 1F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [22:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:55:11]wFMCommunicate OK [22:55:11]requested_item fd.num is exist - process it [22:55:11]SAM_PROTO_GetFieldsCounters [22:55:11]wFMCommunicate request_size=4 [22:55:11]MH_SAM_APDU [22:55:11]CAPDU: 80 13 00 00 [22:55:11]Write to MH i2c: E2 08 00 20 5E 80 13 00 00 00 00 00 00 FA [22:55:11]Write i2c OK [22:55:11]MH_I2C_Read... [22:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:11]Read from MH i2c: E2 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: E2 62 00 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: E2 62 00 20 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [22:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:11]wFMCommunicate OK [22:55:11]SAM_PROTO_GetFieldsCounters done [22:55:11]requested_item shift.num is exist - process it [22:55:11]requested_item shift.opened is exist - process it [22:55:11]req_shift_opened [22:55:11]FM_GetShiftState [22:55:11]SAM_PROTO_GetShiftState [22:55:11]wFMCommunicate request_size=4 [22:55:11]MH_SAM_APDU [22:55:11]CAPDU: 80 13 01 00 [22:55:11]Write to MH i2c: E2 08 00 21 5E 80 13 01 00 00 00 00 00 FC [22:55:11]Write i2c OK [22:55:11]MH_I2C_Read... [22:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:11]Read from MH i2c: E2 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: E2 0E 00 [22:55:11]MH_I2C_Read... [22:55:11]Read from MH i2c: E2 0E 00 21 5E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 31 [22:55:11]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:55:11]wFMCommunicate OK [22:55:11]SAM_PROTO_GetShiftState done [22:55:11]FM_GetShiftState done [22:55:11]req_shift_opened done [22:55:11]requested_item shift.open_date is exist - process it [22:55:11]req_shift_open_date [22:55:11]req_shift_open_date done [22:55:11]produce_requested_data done [22:55:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112378,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:55:11]process_action_free close_receipt [22:55:11]json_value_free [22:55:11]json_value_free done [22:55:11]process_json_proto returns [22:55:11]Send response to host [22:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112378,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:55:11]free response buf [22:55:11]execute_script done [22:55:11]execute_script returns [22:55:11]free content buf [22:55:11]Sock 7.Close socket [22:55:11]Sock 7.Thread stoped [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:28]accept exits with 9 [22:59:28]New connection [22:59:28]New thread 3066813796 created [22:59:28]Thread 3066957156 joined [22:59:28]Waiting for new connection... [22:59:28] Sock 9.Parse request [22:59:28]Sock 9.Check first char [22:59:28]Sock 9.First char is OK [22:59:28]request: POST /json_proto HTTP/1.0 [22:59:28]Method: POST [22:59:28]URL: /json_proto [22:59:28]Method is POST - this is cgi request [22:59:28]url: /json_proto [22:59:28]query_string will be loaded in cgi processing [22:59:28]execute_cgi json_proto POST (null) [22:59:28]execute_cgi path=json_proto method=POST [22:59:28]POST find Content-Length [22:59:28]Host: 172.17.59.68:8080 [22:59:28]Content-Length: 682 [22:59:28]Content-Type: application/json [22:59:28] [22:59:28]POST finish read [22:59:28]Found Content-Length = 682 [22:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321057", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:28]execute_script... [22:59: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)321057", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:28]POST & json_proto [22:59:28]process_json_proto [22:59:28]json parsed OK: [22:59:28]protocol is kg_v1.0 [22:59:28]action value=close_receipt [22:59:28]process_action close_receipt [22:59:28]cmd_close_receipt [22:59:28]MH_GetDate [22:59:28]Write to MH i2c: F0 00 00 22 5E 6F [22:59:28]Write i2c OK [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: F0 [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: F0 09 00 [22:59:28]MH_I2C_Read... [22:59:28]Read from MH i2c: F0 09 00 22 5E 00 76 57 77 66 BC EC 60 65 8F [22:59:28]GetLastDocTimeStamp 1719096944 [22:59:28]current date 1719097206 [22:59:28]FM_GetShiftState [22:59:28]SAM_PROTO_GetShiftState [22:59:28]wFMCommunicate request_size=4 [22:59:28]MH_SAM_APDU [22:59:28]CAPDU: 80 13 01 00 [22:59:28]Write to MH i2c: E2 08 00 23 5E 80 13 01 00 00 00 00 00 FE [22:59:28]Write i2c OK [22:59:28]MH_I2C_Read... [22:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:29]Read from MH i2c: E2 [22:59:29]MH_I2C_Read... [22:59:29]Read from MH i2c: E2 0E 00 [22:59:29]MH_I2C_Read... [22:59:29]Read from MH i2c: E2 0E 00 23 5E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 33 [22:59:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:59:29]wFMCommunicate OK [22:59:29]SAM_PROTO_GetShiftState done [22:59:29]FM_GetShiftState done [22:59:29]opened in 1719020067 [22:59:29]opened+sec_in_day 1719106467 [22:59:29]quantity*price = 100064 [22:59:29]sum+1 = 100066 [22:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 245 22.06.2024 23:00 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112379 ФПД: 44328820896887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T230006&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112379&fm=44328820896887&tin=02508201610067®Number=0000000000092771&sum=100000 [22:59:30]StoreToDocumentArchive [22:59:30]shift 391 fd 112379 [22:59:30]save to /storage/0391/doc_00112379 [22:59:30]save last doc name /storage/0391/doc_00112379 to /storage/kkm_last_doc_name [22:59:30]save OK [22:59:30]Clear old archive folders... [22:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:30]tlvbuf is 01302720 [22:59:30]SAM_PROTO_ClearQueue [22:59:30]wFMCommunicate request_size=4 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 09 00 00 [22:59:30]Write to MH i2c: E2 08 00 30 5E 80 09 00 00 00 00 00 00 00 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 30 5E 00 90 00 02 [22:59:30]RAPDU: 90 00 [22:59:30]wFMCommunicate OK [22:59:30]SAM_PROTO_ClearQueue done [22:59:30]KKMCreateOFDPacket [22:59:30]OFDProtocolAddRootSTLVToBuf [22:59:30]FM_MakeSignedData [22:59:30]FM_MakeSignedData [22:59:30]SAM_PROTO_SignData [22:59:30]wFMCommunicate request_size=4 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 0D 01 02 [22:59:30]Write to MH i2c: E2 08 00 31 5E 80 0D 01 02 00 00 00 00 08 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 31 5E 00 90 00 03 [22:59:30]RAPDU: 90 00 [22:59:30]wFMCommunicate OK [22:59:30]wFMCommunicate request_size=255 [22:59:30]MH_SAM_APDU [22:59: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 76 57 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B6 01 00 35 04 06 00 28 [22:59:30]Write to MH i2c: E2 02 01 32 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 76 57 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B6 01 00 35 04 06 00 28 00 00 0D [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 32 5E 00 90 00 04 [22:59:30]RAPDU: 90 00 [22:59:30]wFMCommunicate OK [22:59:30]wFMCommunicate request_size=10 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 0D 02 02 05 51 1B 9F 74 77 [22:59:30]Write to MH i2c: E2 0D 00 33 5E 80 0D 02 02 05 00 51 1B 9F 74 77 00 00 0B [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 03 00 33 5E 00 90 00 05 [22:59:30]RAPDU: 90 00 [22:59:30]wFMCommunicate OK [22:59:30]wFMCommunicate request_size=4 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 0D 03 02 [22:59:30]Write to MH i2c: E2 08 00 34 5E 80 0D 03 02 00 00 00 00 0D [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 0B 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 0B 00 34 5E 00 75 A1 F2 DC 62 C2 59 2C 90 00 9B [22:59:30]RAPDU: 75 A1 F2 DC 62 C2 59 2C 90 00 [22:59:30]wFMCommunicate OK [22:59:30]SAM_PROTO_SignData done [22:59:30]FM_MakeSignedData done [22:59:30]CreateOFDProtocolMessage [22:59:30]wFMCommunicate request_size=4 [22:59:30]MH_SAM_APDU [22:59:30]CAPDU: 80 11 00 00 [22:59:30]Write to MH i2c: E2 08 00 35 5E 80 11 00 00 00 00 00 00 0D [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]OFD Sender: No OFD packet to send [22:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:30]Read from MH i2c: E2 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 17 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: E2 17 00 35 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [22:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:59:30]wFMCommunicate OK [22:59:30]CreateOFDProtocolMessage done [22:59:30]OFDSenderStorePacket 112379 [22:59:30]StoreOFDPacket docnum=112379 [22:59:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 32 07 01 AE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 76 57 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B6 01 00 35 04 06 00 28 51 1B 9F 74 77 75 A1 F2 DC 62 C2 59 2C [22:59:30]CheckFolder [22:59:30]dirname=/storage/ofd_packets [22:59:30]CheckFolder done [22:59:30]ProducePacketName [22:59:30]name=ofd_packets/00112379 [22:59:30]NVStorageSaveData ofd_packets/00112379 [22:59:30]File name is /storage/ofd_packets/00112379 [22:59:30]Write 301 bytes [22:59:30]NVStorageSaveData done [22:59:30]OFDSenderStorePacket done [22:59:30]KKMCreateOFDPacket done [22:59:30]NVStorageSaveData kkm_last_timestamp [22:59:30]File name is /storage/kkm_last_timestamp [22:59:30]Write 4 bytes [22:59:30]NVStorageSaveData done [22:59:30]ExternCall_PrintAddStr [22:59:30]wPrintStart [22:59:30]Write to MH i2c: 01 00 00 36 5E 94 [22:59:30]Write i2c OK [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 07 00 [22:59:30]MH_I2C_Read... [22:59:30]Read from MH i2c: 01 07 00 36 5E 00 00 00 00 00 FF 0F A9 [22:59:30]RasterBufferAndPrint [22:59:30]line Счет N : (1)321057 [22:59:30]line ИНН: 02508201610067 [22:59:30]line Контрольно-Кассовый Чек [22:59:30]line ПРОДАЖА [22:59:30]line ТРК (МРК, ГНК) : 11 [22:59:30]line Товар: 2710124130 [22:59:30]line Аи-92-К-5 [22:59:30]line 15.070 * 66.40 [22:59:30]line = 1000.65 [22:59:30]line НДС 12% НСП 1% [22:59:30]line > о реализуемом товаре [22:59:30]line ОКРУГЛЕНИЕ: -0.65 [22:59:30]line ИТОГО: 1000.00 [22:59:30]line Внесено: 1000.00 [22:59:30]line СДАЧА: 0.00 [22:59:30]line НСП 1% : 8.85 [22:59:30]line НДС 12% : 106.26 [22:59:30]line Наличными: 1000.00 [22:59:30]line Безнал.: 0.00 [22:59:30]line Место: АЗС № 65 "Партнер Нефть" [22:59:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:59:30]line СНО: Общий режим [22:59:30]line Чек 245 22.06.2024 23:00 [22:59:30]line Смена: 391 ФФД: 1.0 [22:59:30]line ЗНМ: 0300000198 [22:59:30]line РНМ: 0000000000092771 [22:59:30]line Версия ККМ: 001 [22:59:30]line ФМ: 0000000000875083 [22:59:30]line ФД: 112379 [22:59:30]line ФПД: 44328820896887 [22:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T230006&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112379&fm=44328820896887&tin=02508201610067®Number=0000000000092771&sum=100000 [22:59:31]OFD Sender: Processing packet 112379 [packets to send 38, broken 37] [22:59:31]ProducePacketName [22:59:31]name=ofd_packets/00112379 [22:59:31]OFD Sender: To server: pG, [22:59:31]CommunicateWithHost lk.salyk.kg:30040 [22:59:31]ConnectInit lk.salyk.kg [22:59:31]written 0, free lines is 4095 [22:59:31]Connected sock=10 [22:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 32 07 01 AE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 76 57 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B6 01 00 35 04 06 00 28 51 1B 9F 74 77 75 A1 F2 DC 62 C2 59 2C [22:59:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E 3D 47 00 9F A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B6 01 00 F4 03 04 00 75 EE 76 66 B6 04 01 00 00 5A 2F A6 A8 A4 A4 86 E8 [22:59:31]CommunicateWithHost err = 0 [22:59:31]CheckOFDResponse [22:59:31]1017 (14) - 77093643461234 [22:59:31]1041 (16) - 0000000000875083 [22:59:31]1040 (4) - 112379 [22:59:31]1012 (4) - 22.06.2024 15:32 [22:59:31]1206 (1) - 0 [22:59:31]OFD Sender: Remove packet 112379 [22:59:31]ProducePacketName [22:59:31]name=ofd_packets/00112379 [22:59:31]NVStorageDeleteData [22:59:31]Write to MH i2c: 01 00 00 61 5E BF [22:59:31]Write i2c OK [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: 01 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: 01 07 00 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: 01 07 00 61 5E 00 00 00 00 00 D4 0C A6 [22:59:31]RasterBufferAndPrint [22:59:31]line [22:59:31]line [22:59:31]line [22:59:31]line [22:59:31]line [22:59:31]written 0, free lines is 3290 [22:59:31]MH_Cut [22:59:31]Write to MH i2c: D1 01 00 68 5E 01 98 [22:59:31]Write i2c OK [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: D1 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: D1 01 00 [22:59:31]MH_I2C_Read... [22:59:31]Read from MH i2c: D1 01 00 68 5E 00 97 [22:59:31]Write to MH i2c: 01 00 00 69 5E C7 [22:59:31]Write i2c OK [22:59:31]MH_I2C_Read... [22:59:31]OFD Sender: No OFD packet to send [22:59:32]*** Cut start [22:59:32]*** Partial cut [22:59:32]*** CUTSNS_PIN = 1 [22:59:32]*** CUTSNS_PIN = 0 [22:59:32]*** Brake cut motor [22:59:32]Read from MH i2c: 01 [22:59:32]MH_I2C_Read... [22:59:32]*** Stop cut motor [22:59:32]*** Cut end [22:59:32]Read from MH i2c: 01 07 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: 01 07 00 69 5E 00 00 00 00 00 FF 0F DC [22:59:32]process_action close_receipt done [22:59:32]requested_data is exist [22:59:32]produce_requested_data [22:59:32]requested_item fm.sn is exist - process it [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 11 00 00 [22:59:32]Write to MH i2c: E2 08 00 6A 5E 80 11 00 00 00 00 00 00 42 [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 17 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 17 00 6A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 94 [22:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:59:32]wFMCommunicate OK [22:59:32]requested_item fd.num is exist - process it [22:59:32]SAM_PROTO_GetFieldsCounters [22:59:32]wFMCommunicate request_size=4 [22:59:32]MH_SAM_APDU [22:59:32]CAPDU: 80 13 00 00 [22:59:32]Write to MH i2c: E2 08 00 6B 5E 80 13 00 00 00 00 00 00 45 [22:59:32]Write i2c OK [22:59:32]MH_I2C_Read... [22:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:32]Read from MH i2c: E2 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 62 00 [22:59:32]MH_I2C_Read... [22:59:32]Read from MH i2c: E2 62 00 6B 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [22:59:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:33]wFMCommunicate OK [22:59:33]SAM_PROTO_GetFieldsCounters done [22:59:33]requested_item shift.num is exist - process it [22:59:33]requested_item shift.opened is exist - process it [22:59:33]req_shift_opened [22:59:33]FM_GetShiftState [22:59:33]SAM_PROTO_GetShiftState [22:59:33]wFMCommunicate request_size=4 [22:59:33]MH_SAM_APDU [22:59:33]CAPDU: 80 13 01 00 [22:59:33]Write to MH i2c: E2 08 00 6C 5E 80 13 01 00 00 00 00 00 47 [22:59:33]Write i2c OK [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 [22:59:33]MH_I2C_Read... [22:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:33]Read from MH i2c: E2 0E 00 [22:59:33]MH_I2C_Read... [22:59:33]Read from MH i2c: E2 0E 00 6C 5E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7C [22:59:33]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [22:59:33]wFMCommunicate OK [22:59:33]SAM_PROTO_GetShiftState done [22:59:33]FM_GetShiftState done [22:59:33]req_shift_opened done [22:59:33]requested_item shift.open_date is exist - process it [22:59:33]req_shift_open_date [22:59:33]req_shift_open_date done [22:59:33]produce_requested_data done [22:59:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112379,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [22:59:33]process_action_free close_receipt [22:59:33]json_value_free [22:59:33]json_value_free done [22:59:33]process_json_proto returns [22:59:33]Send response to host [22:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112379,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [22:59:33]free response buf [22:59:33]execute_script done [22:59:33]execute_script returns [22:59:33]free content buf [22:59:33]Sock 9.Close socket [22:59:33]Sock 9.Thread stoped [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:45]accept exits with 7 [23:04:45]New connection [23:04:45]New thread 3066957156 created [23:04:45]Thread 3066813796 joined [23:04:45]Waiting for new connection... [23:04:45] Sock 7.Parse request [23:04:45]Sock 7.Check first char [23:04:45]Sock 7.First char is OK [23:04:45]request: POST /json_proto HTTP/1.0 [23:04:45]Method: POST [23:04:45]URL: /json_proto [23:04:45]Method is POST - this is cgi request [23:04:45]url: /json_proto [23:04:45]query_string will be loaded in cgi processing [23:04:45]execute_cgi json_proto POST (null) [23:04:45]execute_cgi path=json_proto method=POST [23:04:45]POST find Content-Length [23:04:45]Host: 172.17.59.68:8080 [23:04:45]Content-Length: 677 [23:04:45]Content-Type: application/json [23:04:45] [23:04:45]POST finish read [23:04:45]Found Content-Length = 677 [23:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321058", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]execute_script... [23:04: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)321058", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]POST & json_proto [23:04:45]process_json_proto [23:04:45]json parsed OK: [23:04:45]protocol is kg_v1.0 [23:04:45]action value=close_receipt [23:04:45]process_action close_receipt [23:04:45]cmd_close_receipt [23:04:45]MH_GetDate [23:04:45]Write to MH i2c: F0 00 00 6D 5E BA [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 6D 5E 00 B3 58 77 66 BC EC 60 65 18 [23:04:45]GetLastDocTimeStamp 1719097206 [23:04:45]current date 1719097523 [23:04:45]FM_GetShiftState [23:04:45]SAM_PROTO_GetShiftState [23:04:45]wFMCommunicate request_size=4 [23:04:45]MH_SAM_APDU [23:04:45]CAPDU: 80 13 01 00 [23:04:45]Write to MH i2c: E2 08 00 6E 5E 80 13 01 00 00 00 00 00 49 [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:45]Read from MH i2c: E2 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 6E 5E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7E [23:04:45]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:04:45]wFMCommunicate OK [23:04:45]SAM_PROTO_GetShiftState done [23:04:45]FM_GetShiftState done [23:04:45]opened in 1719020067 [23:04:45]opened+sec_in_day 1719106467 [23:04:45]quantity*price = 50065 [23:04:45]sum+1 = 50067 [23:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 246 22.06.2024 23:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112380 ФПД: 147195480141106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T230523&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112380&fm=147195480141106&tin=02508201610067®Number=0000000000092771&sum=50000 [23:04:46]StoreToDocumentArchive [23:04:46]shift 391 fd 112380 [23:04:46]save to /storage/0391/doc_00112380 [23:04:46]save last doc name /storage/0391/doc_00112380 to /storage/kkm_last_doc_name [23:04:46]save OK [23:04:46]Clear old archive folders... [23:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:46]tlvbuf is 0126F860 [23:04:46]SAM_PROTO_ClearQueue [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 09 00 00 [23:04:46]Write to MH i2c: E2 08 00 7B 5E 80 09 00 00 00 00 00 00 4B [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 7B 5E 00 90 00 4D [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]SAM_PROTO_ClearQueue done [23:04:47]KKMCreateOFDPacket [23:04:47]OFDProtocolAddRootSTLVToBuf [23:04:47]FM_MakeSignedData [23:04:47]FM_MakeSignedData [23:04:47]SAM_PROTO_SignData [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 01 02 [23:04:47]Write to MH i2c: E2 08 00 7C 5E 80 0D 01 02 00 00 00 00 53 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 7C 5E 00 90 00 4E [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=255 [23:04:47]MH_SAM_APDU [23:04: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B3 58 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B6 01 00 35 04 06 00 85 [23:04:47]Write to MH i2c: E2 02 01 7D 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B3 58 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B6 01 00 35 04 06 00 85 00 00 A5 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]OFD Sender: No OFD packet to send [23:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 7D 5E 00 90 00 4F [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=10 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 02 02 05 DF 9E 4E 6D 32 [23:04:47]Write to MH i2c: E2 0D 00 7E 5E 80 0D 02 02 05 00 DF 9E 4E 6D 32 00 00 CA [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 7E 5E 00 90 00 50 [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 03 02 [23:04:47]Write to MH i2c: E2 08 00 7F 5E 80 0D 03 02 00 00 00 00 58 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0B 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0B 00 7F 5E 00 2E 56 0A F7 5F 4D DB 86 90 00 EB [23:04:47]RAPDU: 2E 56 0A F7 5F 4D DB 86 90 00 [23:04:47]wFMCommunicate OK [23:04:47]SAM_PROTO_SignData done [23:04:47]FM_MakeSignedData done [23:04:47]CreateOFDProtocolMessage [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 11 00 00 [23:04:47]Write to MH i2c: E2 08 00 80 5E 80 11 00 00 00 00 00 00 58 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 80 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [23:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:04:47]wFMCommunicate OK [23:04:47]CreateOFDProtocolMessage done [23:04:47]OFDSenderStorePacket 112380 [23:04:47]StoreOFDPacket docnum=112380 [23:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 67 07 01 33 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B3 58 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B6 01 00 35 04 06 00 85 DF 9E 4E 6D 32 2E 56 0A F7 5F 4D DB 86 [23:04:47]CheckFolder [23:04:47]dirname=/storage/ofd_packets [23:04:47]CheckFolder done [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00112380 [23:04:47]NVStorageSaveData ofd_packets/00112380 [23:04:47]File name is /storage/ofd_packets/00112380 [23:04:47]Write 301 bytes [23:04:47]NVStorageSaveData done [23:04:47]OFDSenderStorePacket done [23:04:47]KKMCreateOFDPacket done [23:04:47]NVStorageSaveData kkm_last_timestamp [23:04:47]File name is /storage/kkm_last_timestamp [23:04:47]Write 4 bytes [23:04:47]NVStorageSaveData done [23:04:47]ExternCall_PrintAddStr [23:04:47]wPrintStart [23:04:47]Write to MH i2c: 01 00 00 81 5E DF [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 81 5E 00 00 00 00 00 FF 0F F4 [23:04:47]RasterBufferAndPrint [23:04:47]line Счет N : (1)321058 [23:04:47]line ИНН: 02508201610067 [23:04:47]line Контрольно-Кассовый Чек [23:04:47]line ПРОДАЖА [23:04:47]line ТРК (МРК, ГНК) : 11 [23:04:47]line Товар: 2710124130 [23:04:47]line Аи-92-К-5 [23:04:47]line 7.540 * 66.40 [23:04:47]line = 500.66 [23:04:47]line НДС 12% НСП 1% [23:04:47]line > о реализуемом товаре [23:04:47]line ОКРУГЛЕНИЕ: -0.66 [23:04:47]line ИТОГО: 500.00 [23:04:47]line Внесено: 500.00 [23:04:47]line СДАЧА: 0.00 [23:04:47]line НСП 1% : 4.43 [23:04:47]line НДС 12% : 53.17 [23:04:47]line Наличными: 500.00 [23:04:47]line Безнал.: 0.00 [23:04:47]line Место: АЗС № 65 "Партнер Нефть" [23:04:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:04:47]line СНО: Общий режим [23:04:47]line Чек 246 22.06.2024 23:05 [23:04:47]line Смена: 391 ФФД: 1.0 [23:04:47]line ЗНМ: 0300000198 [23:04:47]line РНМ: 0000000000092771 [23:04:47]line Версия ККМ: 001 [23:04:47]line ФМ: 0000000000875083 [23:04:47]line ФД: 112380 [23:04:47]line ФПД: 147195480141106 [23:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T230523&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112380&fm=147195480141106&tin=02508201610067®Number=0000000000092771&sum=50000 [23:04:47]OFD Sender: Processing packet 112380 [packets to send 38, broken 37] [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00112380 [23:04:47]OFD Sender: To server: pG, [23:04:47]CommunicateWithHost lk.salyk.kg:30040 [23:04:47]ConnectInit lk.salyk.kg [23:04:47]written 0, free lines is 4095 [23:04:47]Connected sock=10 [23:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 67 07 01 33 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B3 58 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B6 01 00 35 04 06 00 85 DF 9E 4E 6D 32 2E 56 0A F7 5F 4D DB 86 [23:04:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C5 E0 47 00 CE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B6 01 00 F4 03 04 00 B2 EF 76 66 B6 04 01 00 00 6B EA A1 07 86 9D 0B 0B [23:04:48]CommunicateWithHost err = 0 [23:04:48]CheckOFDResponse [23:04:48]1017 (14) - 77093643461234 [23:04:48]1041 (16) - 0000000000875083 [23:04:48]1040 (4) - 112380 [23:04:48]1012 (4) - 22.06.2024 15:37 [23:04:48]1206 (1) - 0 [23:04:48]OFD Sender: Remove packet 112380 [23:04:48]ProducePacketName [23:04:48]name=ofd_packets/00112380 [23:04:48]NVStorageDeleteData [23:04:48]Write to MH i2c: 01 00 00 AC 5E 0A [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 07 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 07 00 AC 5E 00 00 00 00 00 CD 0C EA [23:04:48]RasterBufferAndPrint [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]written 0, free lines is 3283 [23:04:48]MH_Cut [23:04:48]Write to MH i2c: D1 01 00 B3 5E 01 E3 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 01 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 01 00 B3 5E 00 E2 [23:04:48]Write to MH i2c: 01 00 00 B4 5E 12 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]OFD Sender: No OFD packet to send [23:04:49]*** Cut start [23:04:49]*** Partial cut [23:04:49]*** CUTSNS_PIN = 1 [23:04:49]*** CUTSNS_PIN = 0 [23:04:49]*** Brake cut motor [23:04:49]Read from MH i2c: 01 [23:04:49]MH_I2C_Read... [23:04:49]*** Stop cut motor [23:04:49]*** Cut end [23:04:49]Read from MH i2c: 01 07 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: 01 07 00 B4 5E 00 00 00 00 00 FF 0F 27 [23:04:49]process_action close_receipt done [23:04:49]requested_data is exist [23:04:49]produce_requested_data [23:04:49]requested_item fm.sn is exist - process it [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 11 00 00 [23:04:49]Write to MH i2c: E2 08 00 B5 5E 80 11 00 00 00 00 00 00 8D [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 B5 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DF [23:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:04:49]wFMCommunicate OK [23:04:49]requested_item fd.num is exist - process it [23:04:49]SAM_PROTO_GetFieldsCounters [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 00 00 [23:04:49]Write to MH i2c: E2 08 00 B6 5E 80 13 00 00 00 00 00 00 90 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 B6 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [23:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetFieldsCounters done [23:04:49]requested_item shift.num is exist - process it [23:04:49]requested_item shift.opened is exist - process it [23:04:49]req_shift_opened [23:04:49]FM_GetShiftState [23:04:49]SAM_PROTO_GetShiftState [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 01 00 [23:04:49]Write to MH i2c: E2 08 00 B7 5E 80 13 01 00 00 00 00 00 92 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 B7 5E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C7 [23:04:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetShiftState done [23:04:49]FM_GetShiftState done [23:04:49]req_shift_opened done [23:04:49]requested_item shift.open_date is exist - process it [23:04:49]req_shift_open_date [23:04:49]req_shift_open_date done [23:04:49]produce_requested_data done [23:04:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112380,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:04:49]process_action_free close_receipt [23:04:49]json_value_free [23:04:49]json_value_free done [23:04:49]process_json_proto returns [23:04:49]Send response to host [23:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112380,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:04:49]free response buf [23:04:49]execute_script done [23:04:49]execute_script returns [23:04:49]free content buf [23:04:49]Sock 7.Close socket [23:04:49]Sock 7.Thread stoped [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:39]accept exits with 9 [23:08:39]New connection [23:08:39]New thread 3066813796 created [23:08:39]Thread 3066957156 joined [23:08:39]Waiting for new connection... [23:08:39] Sock 9.Parse request [23:08:39]Sock 9.Check first char [23:08:39]Sock 9.First char is OK [23:08:39]request: POST /json_proto HTTP/1.0 [23:08:39]Method: POST [23:08:39]URL: /json_proto [23:08:39]Method is POST - this is cgi request [23:08:39]url: /json_proto [23:08:39]query_string will be loaded in cgi processing [23:08:39]execute_cgi json_proto POST (null) [23:08:39]execute_cgi path=json_proto method=POST [23:08:39]POST find Content-Length [23:08:39]Host: 172.17.59.68:8080 [23:08:39]Content-Length: 677 [23:08:39]Content-Type: application/json [23:08:39] [23:08:39]POST finish read [23:08:39]Found Content-Length = 677 [23:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321060", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:39]execute_script... [23:08:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321060", "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.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:39]POST & json_proto [23:08:39]process_json_proto [23:08:39]json parsed OK: [23:08:39]protocol is kg_v1.0 [23:08:39]action value=close_receipt [23:08:39]process_action close_receipt [23:08:39]cmd_close_receipt [23:08:39]MH_GetDate [23:08:39]Write to MH i2c: F0 00 00 B8 5E 05 [23:08:39]Write i2c OK [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: F0 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: F0 09 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: F0 09 00 B8 5E 00 9D 59 77 66 BC EC 60 65 4E [23:08:39]GetLastDocTimeStamp 1719097523 [23:08:39]current date 1719097757 [23:08:39]FM_GetShiftState [23:08:39]SAM_PROTO_GetShiftState [23:08:39]wFMCommunicate request_size=4 [23:08:39]MH_SAM_APDU [23:08:39]CAPDU: 80 13 01 00 [23:08:39]Write to MH i2c: E2 08 00 B9 5E 80 13 01 00 00 00 00 00 94 [23:08:39]Write i2c OK [23:08:39]MH_I2C_Read... [23:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:39]Read from MH i2c: E2 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 0E 00 [23:08:39]MH_I2C_Read... [23:08:39]Read from MH i2c: E2 0E 00 B9 5E 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C9 [23:08:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:08:39]wFMCommunicate OK [23:08:39]SAM_PROTO_GetShiftState done [23:08:39]FM_GetShiftState done [23:08:39]opened in 1719020067 [23:08:39]opened+sec_in_day 1719106467 [23:08:39]quantity*price = 60025 [23:08:39]sum+1 = 60027 [23:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 247 22.06.2024 23:09 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112381 ФПД: 136694554222022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T230917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112381&fm=136694554222022&tin=02508201610067®Number=0000000000092771&sum=60000 [23:08:40]StoreToDocumentArchive [23:08:40]shift 391 fd 112381 [23:08:40]save to /storage/0391/doc_00112381 [23:08:40]save last doc name /storage/0391/doc_00112381 to /storage/kkm_last_doc_name [23:08:40]save OK [23:08:40]Clear old archive folders... [23:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:40]tlvbuf is 0123B810 [23:08:40]SAM_PROTO_ClearQueue [23:08:40]wFMCommunicate request_size=4 [23:08:40]MH_SAM_APDU [23:08:40]CAPDU: 80 09 00 00 [23:08:40]Write to MH i2c: E2 08 00 C6 5E 80 09 00 00 00 00 00 00 96 [23:08:40]Write i2c OK [23:08:40]MH_I2C_Read... [23:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:40]Read from MH i2c: E2 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: E2 03 00 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: E2 03 00 C6 5E 00 90 00 98 [23:08:40]RAPDU: 90 00 [23:08:40]wFMCommunicate OK [23:08:40]SAM_PROTO_ClearQueue done [23:08:40]KKMCreateOFDPacket [23:08:40]OFDProtocolAddRootSTLVToBuf [23:08:40]FM_MakeSignedData [23:08:40]FM_MakeSignedData [23:08:40]SAM_PROTO_SignData [23:08:40]wFMCommunicate request_size=4 [23:08:40]MH_SAM_APDU [23:08:40]CAPDU: 80 0D 01 02 [23:08:40]Write to MH i2c: E2 08 00 C7 5E 80 0D 01 02 00 00 00 00 9E [23:08:40]Write i2c OK [23:08:40]MH_I2C_Read... [23:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:40]Read from MH i2c: E2 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: E2 03 00 [23:08:40]MH_I2C_Read... [23:08:40]Read from MH i2c: E2 03 00 C7 5E 00 90 00 99 [23:08:40]RAPDU: 90 00 [23:08:40]wFMCommunicate OK [23:08:40]wFMCommunicate request_size=255 [23:08:40]MH_SAM_APDU [23:08:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 9D 59 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B6 01 00 35 04 06 00 7C [23:08:40]Write to MH i2c: E2 02 01 C8 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 9D 59 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B6 01 00 35 04 06 00 7C 00 00 B1 [23:08:40]Write i2c OK [23:08:40]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 03 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 03 00 C8 5E 00 90 00 9A [23:08:41]RAPDU: 90 00 [23:08:41]wFMCommunicate OK [23:08:41]wFMCommunicate request_size=10 [23:08:41]MH_SAM_APDU [23:08:41]CAPDU: 80 0D 02 02 05 52 AE 58 DD C6 [23:08:41]Write to MH i2c: E2 0D 00 C9 5E 80 0D 02 02 05 00 52 AE 58 DD C6 00 00 A6 [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 03 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 03 00 C9 5E 00 90 00 9B [23:08:41]RAPDU: 90 00 [23:08:41]wFMCommunicate OK [23:08:41]wFMCommunicate request_size=4 [23:08:41]MH_SAM_APDU [23:08:41]CAPDU: 80 0D 03 02 [23:08:41]Write to MH i2c: E2 08 00 CA 5E 80 0D 03 02 00 00 00 00 A3 [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 0B 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 0B 00 CA 5E 00 C0 4C 38 4D 1E 5E 81 E4 90 00 16 [23:08:41]RAPDU: C0 4C 38 4D 1E 5E 81 E4 90 00 [23:08:41]wFMCommunicate OK [23:08:41]SAM_PROTO_SignData done [23:08:41]FM_MakeSignedData done [23:08:41]CreateOFDProtocolMessage [23:08:41]wFMCommunicate request_size=4 [23:08:41]MH_SAM_APDU [23:08:41]CAPDU: 80 11 00 00 [23:08:41]Write to MH i2c: E2 08 00 CB 5E 80 11 00 00 00 00 00 00 A3 [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:41]Read from MH i2c: E2 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 17 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: E2 17 00 CB 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [23:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:41]wFMCommunicate OK [23:08:41]CreateOFDProtocolMessage done [23:08:41]OFDSenderStorePacket 112381 [23:08:41]StoreOFDPacket docnum=112381 [23:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB 63 07 01 6A C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 9D 59 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B6 01 00 35 04 06 00 7C 52 AE 58 DD C6 C0 4C 38 4D 1E 5E 81 E4 [23:08:41]CheckFolder [23:08:41]dirname=/storage/ofd_packets [23:08:41]CheckFolder done [23:08:41]ProducePacketName [23:08:41]name=ofd_packets/00112381 [23:08:41]NVStorageSaveData ofd_packets/00112381 [23:08:41]File name is /storage/ofd_packets/00112381 [23:08:41]Write 301 bytes [23:08:41]NVStorageSaveData done [23:08:41]OFDSenderStorePacket done [23:08:41]KKMCreateOFDPacket done [23:08:41]NVStorageSaveData kkm_last_timestamp [23:08:41]File name is /storage/kkm_last_timestamp [23:08:41]Write 4 bytes [23:08:41]NVStorageSaveData done [23:08:41]ExternCall_PrintAddStr [23:08:41]wPrintStart [23:08:41]Write to MH i2c: 01 00 00 CC 5E 2A [23:08:41]Write i2c OK [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: 01 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: 01 07 00 [23:08:41]MH_I2C_Read... [23:08:41]Read from MH i2c: 01 07 00 CC 5E 00 00 00 00 00 FF 0F 3F [23:08:41]RasterBufferAndPrint [23:08:41]line Счет N : (1)321060 [23:08:41]line ИНН: 02508201610067 [23:08:41]line Контрольно-Кассовый Чек [23:08:41]line ПРОДАЖА [23:08:41]line ТРК (МРК, ГНК) : 11 [23:08:41]line Товар: 2710124130 [23:08:41]line Аи-92-К-5 [23:08:41]line 9.040 * 66.40 [23:08:41]line = 600.26 [23:08:41]line НДС 12% НСП 1% [23:08:41]line > о реализуемом товаре [23:08:41]line ОКРУГЛЕНИЕ: -0.26 [23:08:41]line ИТОГО: 600.00 [23:08:41]line Внесено: 600.00 [23:08:41]line СДАЧА: 0.00 [23:08:41]line НСП 1% : 5.31 [23:08:41]line НДС 12% : 63.74 [23:08:41]line Наличными: 600.00 [23:08:41]line Безнал.: 0.00 [23:08:41]line Место: АЗС № 65 "Партнер Нефть" [23:08:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:08:41]line СНО: Общий режим [23:08:41]line Чек 247 22.06.2024 23:09 [23:08:41]line Смена: 391 ФФД: 1.0 [23:08:41]line ЗНМ: 0300000198 [23:08:41]line РНМ: 0000000000092771 [23:08:41]line Версия ККМ: 001 [23:08:41]line ФМ: 0000000000875083 [23:08:41]line ФД: 112381 [23:08:41]line ФПД: 136694554222022 [23:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T230917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112381&fm=136694554222022&tin=02508201610067®Number=0000000000092771&sum=60000 [23:08:41]OFD Sender: Processing packet 112381 [packets to send 38, broken 37] [23:08:41]ProducePacketName [23:08:41]name=ofd_packets/00112381 [23:08:41]OFD Sender: To server: pG, [23:08:41]CommunicateWithHost lk.salyk.kg:30040 [23:08:41]ConnectInit lk.salyk.kg [23:08:41]written 0, free lines is 4095 [23:08:41]Connected sock=10 [23:08:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB 63 07 01 6A C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 9D 59 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B6 01 00 35 04 06 00 7C 52 AE 58 DD C6 C0 4C 38 4D 1E 5E 81 E4 [23:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9B 84 47 00 89 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B6 01 00 F4 03 04 00 9B F0 76 66 B6 04 01 00 00 5D 94 46 D7 9D 49 67 71 [23:08:41]CommunicateWithHost err = 0 [23:08:41]CheckOFDResponse [23:08:41]1017 (14) - 77093643461234 [23:08:41]1041 (16) - 0000000000875083 [23:08:41]1040 (4) - 112381 [23:08:41]1012 (4) - 22.06.2024 15:41 [23:08:41]1206 (1) - 0 [23:08:41]OFD Sender: Remove packet 112381 [23:08:41]ProducePacketName [23:08:41]name=ofd_packets/00112381 [23:08:41]NVStorageDeleteData [23:08:42]Write to MH i2c: 01 00 00 F7 5E 55 [23:08:42]Write i2c OK [23:08:42]MH_I2C_Read... [23:08:42]Read from MH i2c: 01 [23:08:42]MH_I2C_Read... [23:08:42]Read from MH i2c: 01 07 00 [23:08:42]MH_I2C_Read... [23:08:42]Read from MH i2c: 01 07 00 F7 5E 00 00 00 00 00 D7 0C 3F [23:08:42]RasterBufferAndPrint [23:08:42]line [23:08:42]line [23:08:42]line [23:08:42]line [23:08:42]line [23:08:42]written 0, free lines is 3290 [23:08:42]MH_Cut [23:08:42]Write to MH i2c: D1 01 00 FE 5E 01 2E [23:08:42]Write i2c OK [23:08:42]MH_I2C_Read... [23:08:42]Read from MH i2c: D1 [23:08:42]MH_I2C_Read... [23:08:42]Read from MH i2c: D1 01 00 [23:08:42]MH_I2C_Read... [23:08:42]Read from MH i2c: D1 01 00 FE 5E 00 2D [23:08:42]Write to MH i2c: 01 00 00 FF 5E 5D [23:08:42]Write i2c OK [23:08:42]MH_I2C_Read... [23:08:42]OFD Sender: No OFD packet to send [23:08:42]*** Cut start [23:08:42]*** Partial cut [23:08:42]*** CUTSNS_PIN = 1 [23:08:42]*** CUTSNS_PIN = 0 [23:08:43]*** Brake cut motor [23:08:43]Read from MH i2c: 01 [23:08:43]MH_I2C_Read... [23:08:43]*** Stop cut motor [23:08:43]*** Cut end [23:08:43]Read from MH i2c: 01 07 00 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: 01 07 00 FF 5E 00 00 00 00 00 FF 0F 72 [23:08:43]process_action close_receipt done [23:08:43]requested_data is exist [23:08:43]produce_requested_data [23:08:43]requested_item fm.sn is exist - process it [23:08:43]wFMCommunicate request_size=4 [23:08:43]MH_SAM_APDU [23:08:43]CAPDU: 80 11 00 00 [23:08:43]Write to MH i2c: E2 08 00 00 5F 80 11 00 00 00 00 00 00 D9 [23:08:43]Write i2c OK [23:08:43]MH_I2C_Read... [23:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:43]Read from MH i2c: E2 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 17 00 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 17 00 00 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2B [23:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:43]wFMCommunicate OK [23:08:43]requested_item fd.num is exist - process it [23:08:43]SAM_PROTO_GetFieldsCounters [23:08:43]wFMCommunicate request_size=4 [23:08:43]MH_SAM_APDU [23:08:43]CAPDU: 80 13 00 00 [23:08:43]Write to MH i2c: E2 08 00 01 5F 80 13 00 00 00 00 00 00 DC [23:08:43]Write i2c OK [23:08:43]MH_I2C_Read... [23:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:43]Read from MH i2c: E2 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 62 00 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 62 00 01 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [23:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:43]wFMCommunicate OK [23:08:43]SAM_PROTO_GetFieldsCounters done [23:08:43]requested_item shift.num is exist - process it [23:08:43]requested_item shift.opened is exist - process it [23:08:43]req_shift_opened [23:08:43]FM_GetShiftState [23:08:43]SAM_PROTO_GetShiftState [23:08:43]wFMCommunicate request_size=4 [23:08:43]MH_SAM_APDU [23:08:43]CAPDU: 80 13 01 00 [23:08:43]Write to MH i2c: E2 08 00 02 5F 80 13 01 00 00 00 00 00 DE [23:08:43]Write i2c OK [23:08:43]MH_I2C_Read... [23:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:43]Read from MH i2c: E2 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 0E 00 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 0E 00 02 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 13 [23:08:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:08:43]wFMCommunicate OK [23:08:43]SAM_PROTO_GetShiftState done [23:08:43]FM_GetShiftState done [23:08:43]req_shift_opened done [23:08:43]requested_item shift.open_date is exist - process it [23:08:43]req_shift_open_date [23:08:43]req_shift_open_date done [23:08:43]produce_requested_data done [23:08:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112381,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:08:43]process_action_free close_receipt [23:08:43]json_value_free [23:08:43]json_value_free done [23:08:43]process_json_proto returns [23:08:43]Send response to host [23:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112381,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:08:43]free response buf [23:08:43]execute_script done [23:08:43]execute_script returns [23:08:43]free content buf [23:08:43]Sock 9.Close socket [23:08:43]Sock 9.Thread stoped [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:50]accept exits with 7 [23:11:50]New connection [23:11:50]New thread 3066957156 created [23:11:50]Thread 3066813796 joined [23:11:50]Waiting for new connection... [23:11:50] Sock 7.Parse request [23:11:50]Sock 7.Check first char [23:11:50]Sock 7.First char is OK [23:11:50]request: POST /json_proto HTTP/1.0 [23:11:50]Method: POST [23:11:50]URL: /json_proto [23:11:50]Method is POST - this is cgi request [23:11:50]url: /json_proto [23:11:50]query_string will be loaded in cgi processing [23:11:50]execute_cgi json_proto POST (null) [23:11:50]execute_cgi path=json_proto method=POST [23:11:50]POST find Content-Length [23:11:50]Host: 172.17.59.68:8080 [23:11:50]Content-Length: 679 [23:11:50]Content-Type: application/json [23:11:50] [23:11:50]POST finish read [23:11:50]Found Content-Length = 679 [23:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "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" ] } } [23:11:50]execute_script... [23: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)321059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "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" ] } } [23:11:50]POST & json_proto [23:11:50]process_json_proto [23:11:50]json parsed OK: [23:11:50]protocol is kg_v1.0 [23:11:50]action value=close_receipt [23:11:50]process_action close_receipt [23:11:50]cmd_close_receipt [23:11:50]MH_GetDate [23:11:50]Write to MH i2c: F0 00 00 03 5F 51 [23:11:50]Write i2c OK [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: F0 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: F0 09 00 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: F0 09 00 03 5F 00 5C 5A 77 66 BC EC 60 65 5A [23:11:50]GetLastDocTimeStamp 1719097757 [23:11:50]current date 1719097948 [23:11:50]FM_GetShiftState [23:11:50]SAM_PROTO_GetShiftState [23:11:50]wFMCommunicate request_size=4 [23:11:50]MH_SAM_APDU [23:11:50]CAPDU: 80 13 01 00 [23:11:50]Write to MH i2c: E2 08 00 04 5F 80 13 01 00 00 00 00 00 E0 [23:11:50]Write i2c OK [23:11:50]MH_I2C_Read... [23:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:50]Read from MH i2c: E2 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: E2 0E 00 [23:11:50]MH_I2C_Read... [23:11:50]Read from MH i2c: E2 0E 00 04 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 15 [23:11:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:11:50]wFMCommunicate OK [23:11:50]SAM_PROTO_GetShiftState done [23:11:50]FM_GetShiftState done [23:11:50]opened in 1719020067 [23:11:50]opened+sec_in_day 1719106467 [23:11:50]quantity*price = 400002 [23:11:50]sum+1 = 400003 [23:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 248 22.06.2024 23:12 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112382 ФПД: 110576928586309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T231228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112382&fm=110576928586309&tin=02508201610067®Number=0000000000092771&sum=400000 [23:11:51]StoreToDocumentArchive [23:11:51]shift 391 fd 112382 [23:11:51]save to /storage/0391/doc_00112382 [23:11:51]save last doc name /storage/0391/doc_00112382 to /storage/kkm_last_doc_name [23:11:51]save OK [23:11:51]Clear old archive folders... [23:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:11:51]tlvbuf is 01348AA0 [23:11:51]SAM_PROTO_ClearQueue [23:11:51]wFMCommunicate request_size=4 [23:11:51]MH_SAM_APDU [23:11:51]CAPDU: 80 09 00 00 [23:11:51]Write to MH i2c: E2 08 00 11 5F 80 09 00 00 00 00 00 00 E2 [23:11:51]Write i2c OK [23:11:51]MH_I2C_Read... [23:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:52]Read from MH i2c: E2 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 11 5F 00 90 00 E4 [23:11:52]RAPDU: 90 00 [23:11:52]wFMCommunicate OK [23:11:52]SAM_PROTO_ClearQueue done [23:11:52]KKMCreateOFDPacket [23:11:52]OFDProtocolAddRootSTLVToBuf [23:11:52]FM_MakeSignedData [23:11:52]FM_MakeSignedData [23:11:52]SAM_PROTO_SignData [23:11:52]wFMCommunicate request_size=4 [23:11:52]MH_SAM_APDU [23:11:52]CAPDU: 80 0D 01 02 [23:11:52]Write to MH i2c: E2 08 00 12 5F 80 0D 01 02 00 00 00 00 EA [23:11:52]Write i2c OK [23:11:52]MH_I2C_Read... [23:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:52]Read from MH i2c: E2 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 12 5F 00 90 00 E5 [23:11:52]RAPDU: 90 00 [23:11:52]wFMCommunicate OK [23:11:52]wFMCommunicate request_size=255 [23:11:52]MH_SAM_APDU [23:11:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 F8 00 00 00 F4 03 04 00 5C 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B6 01 00 35 04 06 00 64 91 B2 8C [23:11:52]Write to MH i2c: E2 02 01 13 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 F8 00 00 00 F4 03 04 00 5C 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B6 01 00 35 04 06 00 64 91 B2 8C 00 00 5A [23:11:52]Write i2c OK [23:11:52]MH_I2C_Read... [23:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:52]Read from MH i2c: E2 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 13 5F 00 90 00 E6 [23:11:52]RAPDU: 90 00 [23:11:52]wFMCommunicate OK [23:11:52]wFMCommunicate request_size=7 [23:11:52]MH_SAM_APDU [23:11:52]CAPDU: 80 0D 02 02 02 7A 45 [23:11:52]Write to MH i2c: E2 0A 00 14 5F 80 0D 02 02 02 00 7A 45 00 00 B0 [23:11:52]Write i2c OK [23:11:52]MH_I2C_Read... [23:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:52]Read from MH i2c: E2 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 03 00 14 5F 00 90 00 E7 [23:11:52]RAPDU: 90 00 [23:11:52]wFMCommunicate OK [23:11:52]wFMCommunicate request_size=4 [23:11:52]MH_SAM_APDU [23:11:52]CAPDU: 80 0D 03 02 [23:11:52]Write to MH i2c: E2 08 00 15 5F 80 0D 03 02 00 00 00 00 EF [23:11:52]Write i2c OK [23:11:52]MH_I2C_Read... [23:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:52]Read from MH i2c: E2 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 0B 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 0B 00 15 5F 00 8A 47 E6 D2 50 16 45 7D 90 00 A1 [23:11:52]RAPDU: 8A 47 E6 D2 50 16 45 7D 90 00 [23:11:52]wFMCommunicate OK [23:11:52]SAM_PROTO_SignData done [23:11:52]FM_MakeSignedData done [23:11:52]CreateOFDProtocolMessage [23:11:52]wFMCommunicate request_size=4 [23:11:52]MH_SAM_APDU [23:11:52]CAPDU: 80 11 00 00 [23:11:52]Write to MH i2c: E2 08 00 16 5F 80 11 00 00 00 00 00 00 EF [23:11:52]Write i2c OK [23:11:52]MH_I2C_Read... [23:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:52]Read from MH i2c: E2 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 17 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: E2 17 00 16 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [23:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:11:52]wFMCommunicate OK [23:11:52]CreateOFDProtocolMessage done [23:11:52]OFDSenderStorePacket 112382 [23:11:52]StoreOFDPacket docnum=112382 [23:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6D 74 04 01 7E 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 F8 00 00 00 F4 03 04 00 5C 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B6 01 00 35 04 06 00 64 91 B2 8C 7A 45 8A 47 E6 D2 50 16 45 7D [23:11:52]CheckFolder [23:11:52]dirname=/storage/ofd_packets [23:11:52]CheckFolder done [23:11:52]ProducePacketName [23:11:52]name=ofd_packets/00112382 [23:11:52]NVStorageSaveData ofd_packets/00112382 [23:11:52]File name is /storage/ofd_packets/00112382 [23:11:52]Write 298 bytes [23:11:52]NVStorageSaveData done [23:11:52]OFDSenderStorePacket done [23:11:52]KKMCreateOFDPacket done [23:11:52]NVStorageSaveData kkm_last_timestamp [23:11:52]File name is /storage/kkm_last_timestamp [23:11:52]Write 4 bytes [23:11:52]NVStorageSaveData done [23:11:52]ExternCall_PrintAddStr [23:11:52]wPrintStart [23:11:52]Write to MH i2c: 01 00 00 17 5F 76 [23:11:52]Write i2c OK [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: 01 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: 01 07 00 [23:11:52]MH_I2C_Read... [23:11:52]Read from MH i2c: 01 07 00 17 5F 00 00 00 00 00 FF 0F 8B [23:11:52]RasterBufferAndPrint [23:11:52]line Счет N : (1)321059 [23:11:52]line ИНН: 02508201610067 [23:11:52]line Контрольно-Кассовый Чек [23:11:52]line ПРОДАЖА [23:11:52]line ТРК (МРК, ГНК) : 22 [23:11:52]line Товар: 2710194210 [23:11:52]line ДТ-К-5 [23:11:52]line 54.870 * 72.90 [23:11:52]line = 4000.02 [23:11:52]line НДС 12% НСП 1% [23:11:52]line > о реализуемом товаре [23:11:52]line ОКРУГЛЕНИЕ: -0.02 [23:11:52]line ИТОГО: 4000.00 [23:11:52]line Внесено: 4000.00 [23:11:52]line СДАЧА: 0.00 [23:11:52]line НСП 1% : 35.40 [23:11:52]line НДС 12% : 424.78 [23:11:52]line Наличными: 4000.00 [23:11:52]line Безнал.: 0.00 [23:11:52]line Место: АЗС № 65 "Партнер Нефть" [23:11:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:11:52]line СНО: Общий режим [23:11:52]line Чек 248 22.06.2024 23:12 [23:11:52]line Смена: 391 ФФД: 1.0 [23:11:52]line ЗНМ: 0300000198 [23:11:52]line РНМ: 0000000000092771 [23:11:52]line Версия ККМ: 001 [23:11:52]line ФМ: 0000000000875083 [23:11:52]line ФД: 112382 [23:11:52]line ФПД: 110576928586309 [23:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T231228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112382&fm=110576928586309&tin=02508201610067®Number=0000000000092771&sum=400000 [23:11:52]OFD Sender: Processing packet 112382 [packets to send 38, broken 37] [23:11:52]ProducePacketName [23:11:52]name=ofd_packets/00112382 [23:11:52]OFD Sender: To server: pG, [23:11:52]CommunicateWithHost lk.salyk.kg:30040 [23:11:52]ConnectInit lk.salyk.kg [23:11:52]written 0, free lines is 4095 [23:11:52]Connected sock=10 [23: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 35 30 38 33 0C 01 00 00 6D 74 04 01 7E 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 F8 00 00 00 F4 03 04 00 5C 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B6 01 00 35 04 06 00 64 91 B2 8C 7A 45 8A 47 E6 D2 50 16 45 7D [23:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 94 DE 47 00 D8 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B6 01 00 F4 03 04 00 5B F1 76 66 B6 04 01 00 00 5B 9A D0 7B B8 71 95 35 [23:11:53]CommunicateWithHost err = 0 [23:11:53]CheckOFDResponse [23:11:53]1017 (14) - 77093643461234 [23:11:53]1041 (16) - 0000000000875083 [23:11:53]1040 (4) - 112382 [23:11:53]1012 (4) - 22.06.2024 15:44 [23:11:53]1206 (1) - 0 [23:11:53]OFD Sender: Remove packet 112382 [23:11:53]ProducePacketName [23:11:53]name=ofd_packets/00112382 [23:11:53]NVStorageDeleteData [23:11:53]Write to MH i2c: 01 00 00 42 5F A1 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: 01 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: 01 07 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: 01 07 00 42 5F 00 00 00 00 00 DD 0C 91 [23:11:53]RasterBufferAndPrint [23:11:53]line [23:11:53]line [23:11:53]line [23:11:53]line [23:11:53]line [23:11:53]written 0, free lines is 3302 [23:11:53]MH_Cut [23:11:53]Write to MH i2c: D1 01 00 49 5F 01 7A [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: D1 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: D1 01 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: D1 01 00 49 5F 00 79 [23:11:53]Write to MH i2c: 01 00 00 4A 5F A9 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]OFD Sender: No OFD packet to send [23:11:54]*** Cut start [23:11:54]*** Partial cut [23:11:54]*** CUTSNS_PIN = 1 [23:11:54]*** CUTSNS_PIN = 0 [23:11:54]*** Brake cut motor [23:11:54]Read from MH i2c: 01 [23:11:54]MH_I2C_Read... [23:11:54]*** Stop cut motor [23:11:54]*** Cut end [23:11:54]Read from MH i2c: 01 07 00 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: 01 07 00 4A 5F 00 00 00 00 00 FF 0F BE [23:11:54]process_action close_receipt done [23:11:54]requested_data is exist [23:11:54]produce_requested_data [23:11:54]requested_item fm.sn is exist - process it [23:11:54]wFMCommunicate request_size=4 [23:11:54]MH_SAM_APDU [23:11:54]CAPDU: 80 11 00 00 [23:11:54]Write to MH i2c: E2 08 00 4B 5F 80 11 00 00 00 00 00 00 24 [23:11:54]Write i2c OK [23:11:54]MH_I2C_Read... [23:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:54]Read from MH i2c: E2 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: E2 17 00 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: E2 17 00 4B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 76 [23:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:11:54]wFMCommunicate OK [23:11:54]requested_item fd.num is exist - process it [23:11:54]SAM_PROTO_GetFieldsCounters [23:11:54]wFMCommunicate request_size=4 [23:11:54]MH_SAM_APDU [23:11:54]CAPDU: 80 13 00 00 [23:11:54]Write to MH i2c: E2 08 00 4C 5F 80 13 00 00 00 00 00 00 27 [23:11:54]Write i2c OK [23:11:54]MH_I2C_Read... [23:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:54]Read from MH i2c: E2 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: E2 62 00 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: E2 62 00 4C 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [23:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:54]wFMCommunicate OK [23:11:54]SAM_PROTO_GetFieldsCounters done [23:11:54]requested_item shift.num is exist - process it [23:11:54]requested_item shift.opened is exist - process it [23:11:54]req_shift_opened [23:11:54]FM_GetShiftState [23:11:54]SAM_PROTO_GetShiftState [23:11:54]wFMCommunicate request_size=4 [23:11:54]MH_SAM_APDU [23:11:54]CAPDU: 80 13 01 00 [23:11:54]Write to MH i2c: E2 08 00 4D 5F 80 13 01 00 00 00 00 00 29 [23:11:54]Write i2c OK [23:11:54]MH_I2C_Read... [23:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:54]Read from MH i2c: E2 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: E2 0E 00 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: E2 0E 00 4D 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5E [23:11:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:11:54]wFMCommunicate OK [23:11:54]SAM_PROTO_GetShiftState done [23:11:54]FM_GetShiftState done [23:11:54]req_shift_opened done [23:11:54]requested_item shift.open_date is exist - process it [23:11:54]req_shift_open_date [23:11:54]req_shift_open_date done [23:11:54]produce_requested_data done [23:11:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112382,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:11:54]process_action_free close_receipt [23:11:54]json_value_free [23:11:54]json_value_free done [23:11:54]process_json_proto returns [23:11:54]Send response to host [23:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112382,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:11:54]free response buf [23:11:54]execute_script done [23:11:54]execute_script returns [23:11:54]free content buf [23:11:54]Sock 7.Close socket [23:11:54]Sock 7.Thread stoped [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:54]accept exits with 9 [23:12:54]New connection [23:12:54]New thread 3066813796 created [23:12:54]Thread 3066957156 joined [23:12:54]Waiting for new connection... [23:12:54] Sock 9.Parse request [23:12:54]Sock 9.Check first char [23:12:54]Sock 9.First char is OK [23:12:54]request: POST /json_proto HTTP/1.0 [23:12:54]Method: POST [23:12:54]URL: /json_proto [23:12:54]Method is POST - this is cgi request [23:12:54]url: /json_proto [23:12:54]query_string will be loaded in cgi processing [23:12:54]execute_cgi json_proto POST (null) [23:12:54]execute_cgi path=json_proto method=POST [23:12:54]POST find Content-Length [23:12:54]Host: 172.17.59.68:8080 [23:12:54]Content-Length: 674 [23:12:54]Content-Type: application/json [23:12:54] [23:12:54]POST finish read [23:12:54]Found Content-Length = 674 [23:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:54]execute_script... [23:12:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:54]POST & json_proto [23:12:54]process_json_proto [23:12:54]json parsed OK: [23:12:54]protocol is kg_v1.0 [23:12:54]action value=close_receipt [23:12:54]process_action close_receipt [23:12:54]cmd_close_receipt [23:12:54]MH_GetDate [23:12:54]Write to MH i2c: F0 00 00 4E 5F 9C [23:12:54]Write i2c OK [23:12:54]MH_I2C_Read... [23:12:54]Read from MH i2c: F0 [23:12:54]MH_I2C_Read... [23:12:54]Read from MH i2c: F0 09 00 [23:12:54]MH_I2C_Read... [23:12:54]Read from MH i2c: F0 09 00 4E 5F 00 9B 5A 77 66 BC EC 60 65 E4 [23:12:54]GetLastDocTimeStamp 1719097948 [23:12:54]current date 1719098011 [23:12:54]FM_GetShiftState [23:12:54]SAM_PROTO_GetShiftState [23:12:54]wFMCommunicate request_size=4 [23:12:54]MH_SAM_APDU [23:12:54]CAPDU: 80 13 01 00 [23:12:54]Write to MH i2c: E2 08 00 4F 5F 80 13 01 00 00 00 00 00 2B [23:12:54]Write i2c OK [23:12:54]MH_I2C_Read... [23:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:54]Read from MH i2c: E2 [23:12:54]MH_I2C_Read... [23:12:54]Read from MH i2c: E2 0E 00 [23:12:54]MH_I2C_Read... [23:12:54]Read from MH i2c: E2 0E 00 4F 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 60 [23:12:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:12:54]wFMCommunicate OK [23:12:54]SAM_PROTO_GetShiftState done [23:12:54]FM_GetShiftState done [23:12:54]opened in 1719020067 [23:12:54]opened+sec_in_day 1719106467 [23:12:54]quantity*price = 50009 [23:12:54]sum+1 = 50010 [23:12:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 249 22.06.2024 23:13 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112383 ФПД: 32678764585259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T231331&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112383&fm=32678764585259&tin=02508201610067®Number=0000000000092771&sum=50000 [23:12:55]StoreToDocumentArchive [23:12:55]shift 391 fd 112383 [23:12:55]save to /storage/0391/doc_00112383 [23:12:55]save last doc name /storage/0391/doc_00112383 to /storage/kkm_last_doc_name [23:12:55]save OK [23:12:55]Clear old archive folders... [23:12:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:12:55]tlvbuf is B6EDBDF0 [23:12:55]SAM_PROTO_ClearQueue [23:12:55]wFMCommunicate request_size=4 [23:12:55]MH_SAM_APDU [23:12:55]CAPDU: 80 09 00 00 [23:12:55]Write to MH i2c: E2 08 00 5C 5F 80 09 00 00 00 00 00 00 2D [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:55]Read from MH i2c: E2 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 5C 5F 00 90 00 2F [23:12:55]RAPDU: 90 00 [23:12:55]wFMCommunicate OK [23:12:55]SAM_PROTO_ClearQueue done [23:12:55]KKMCreateOFDPacket [23:12:55]OFDProtocolAddRootSTLVToBuf [23:12:55]FM_MakeSignedData [23:12:55]FM_MakeSignedData [23:12:55]SAM_PROTO_SignData [23:12:55]wFMCommunicate request_size=4 [23:12:55]MH_SAM_APDU [23:12:55]CAPDU: 80 0D 01 02 [23:12:55]Write to MH i2c: E2 08 00 5D 5F 80 0D 01 02 00 00 00 00 35 [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:55]Read from MH i2c: E2 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 5D 5F 00 90 00 30 [23:12:55]RAPDU: 90 00 [23:12:55]wFMCommunicate OK [23:12:55]wFMCommunicate request_size=255 [23:12:55]MH_SAM_APDU [23:12:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 9B 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B6 01 00 35 04 06 00 1D B8 9E 27 [23:12:55]Write to MH i2c: E2 02 01 5E 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 9B 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B6 01 00 35 04 06 00 1D B8 9E 27 00 00 82 [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:55]Read from MH i2c: E2 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 5E 5F 00 90 00 31 [23:12:55]RAPDU: 90 00 [23:12:55]wFMCommunicate OK [23:12:55]wFMCommunicate request_size=7 [23:12:55]MH_SAM_APDU [23:12:55]CAPDU: 80 0D 02 02 02 A1 2B [23:12:55]Write to MH i2c: E2 0A 00 5F 5F 80 0D 02 02 02 00 A1 2B 00 00 08 [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:55]Read from MH i2c: E2 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 03 00 5F 5F 00 90 00 32 [23:12:55]RAPDU: 90 00 [23:12:55]wFMCommunicate OK [23:12:55]wFMCommunicate request_size=4 [23:12:55]MH_SAM_APDU [23:12:55]CAPDU: 80 0D 03 02 [23:12:55]Write to MH i2c: E2 08 00 60 5F 80 0D 03 02 00 00 00 00 3A [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:55]Read from MH i2c: E2 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 0B 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 0B 00 60 5F 00 25 DA 8A 6C F5 C8 47 46 90 00 7A [23:12:55]RAPDU: 25 DA 8A 6C F5 C8 47 46 90 00 [23:12:55]wFMCommunicate OK [23:12:55]SAM_PROTO_SignData done [23:12:55]FM_MakeSignedData done [23:12:55]CreateOFDProtocolMessage [23:12:55]wFMCommunicate request_size=4 [23:12:55]MH_SAM_APDU [23:12:55]CAPDU: 80 11 00 00 [23:12:55]Write to MH i2c: E2 08 00 61 5F 80 11 00 00 00 00 00 00 3A [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:55]Read from MH i2c: E2 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 17 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: E2 17 00 61 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [23:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:12:55]wFMCommunicate OK [23:12:55]CreateOFDProtocolMessage done [23:12:55]OFDSenderStorePacket 112383 [23:12:55]StoreOFDPacket docnum=112383 [23:12:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B1 E3 04 01 AC 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 9B 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B6 01 00 35 04 06 00 1D B8 9E 27 A1 2B 25 DA 8A 6C F5 C8 47 46 [23:12:55]CheckFolder [23:12:55]dirname=/storage/ofd_packets [23:12:55]CheckFolder done [23:12:55]ProducePacketName [23:12:55]name=ofd_packets/00112383 [23:12:55]NVStorageSaveData ofd_packets/00112383 [23:12:55]File name is /storage/ofd_packets/00112383 [23:12:55]Write 298 bytes [23:12:55]NVStorageSaveData done [23:12:55]OFDSenderStorePacket done [23:12:55]KKMCreateOFDPacket done [23:12:55]NVStorageSaveData kkm_last_timestamp [23:12:55]File name is /storage/kkm_last_timestamp [23:12:55]Write 4 bytes [23:12:55]NVStorageSaveData done [23:12:55]ExternCall_PrintAddStr [23:12:55]wPrintStart [23:12:55]Write to MH i2c: 01 00 00 62 5F C1 [23:12:55]Write i2c OK [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: 01 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: 01 07 00 [23:12:55]MH_I2C_Read... [23:12:55]Read from MH i2c: 01 07 00 62 5F 00 00 00 00 00 FF 0F D6 [23:12:55]RasterBufferAndPrint [23:12:55]line Счет N : (1)321061 [23:12:55]line ИНН: 02508201610067 [23:12:55]line Контрольно-Кассовый Чек [23:12:55]line ПРОДАЖА [23:12:55]line ТРК (МРК, ГНК) : 22 [23:12:55]line Товар: 2710194210 [23:12:55]line ДТ-К-5 [23:12:55]line 6.860 * 72.90 [23:12:55]line = 500.09 [23:12:55]line НДС 12% НСП 1% [23:12:55]line > о реализуемом товаре [23:12:55]line ОКРУГЛЕНИЕ: -0.09 [23:12:55]line ИТОГО: 500.00 [23:12:55]line Внесено: 500.00 [23:12:55]line СДАЧА: 0.00 [23:12:55]line НСП 1% : 4.43 [23:12:55]line НДС 12% : 53.11 [23:12:55]line Наличными: 500.00 [23:12:55]line Безнал.: 0.00 [23:12:55]line Место: АЗС № 65 "Партнер Нефть" [23:12:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:12:55]line СНО: Общий режим [23:12:55]line Чек 249 22.06.2024 23:13 [23:12:55]line Смена: 391 ФФД: 1.0 [23:12:55]line ЗНМ: 0300000198 [23:12:55]line РНМ: 0000000000092771 [23:12:55]line Версия ККМ: 001 [23:12:55]line ФМ: 0000000000875083 [23:12:55]line ФД: 112383 [23:12:56]line ФПД: 32678764585259 [23:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T231331&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112383&fm=32678764585259&tin=02508201610067®Number=0000000000092771&sum=50000 [23:12:56]OFD Sender: Processing packet 112383 [packets to send 38, broken 37] [23:12:56]ProducePacketName [23:12:56]name=ofd_packets/00112383 [23:12:56]OFD Sender: To server: pG, [23:12:56]CommunicateWithHost lk.salyk.kg:30040 [23:12:56]ConnectInit lk.salyk.kg [23:12:56]written 0, free lines is 4095 [23:12:56]Connected sock=10 [23:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B1 E3 04 01 AC 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 9B 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B6 01 00 35 04 06 00 1D B8 9E 27 A1 2B 25 DA 8A 6C F5 C8 47 46 [23:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 02 87 47 00 BB 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B6 01 00 F4 03 04 00 9A F1 76 66 B6 04 01 00 00 1E D3 B9 53 E4 24 A7 64 [23:12:56]CommunicateWithHost err = 0 [23:12:56]CheckOFDResponse [23:12:56]1017 (14) - 77093643461234 [23:12:56]1041 (16) - 0000000000875083 [23:12:56]1040 (4) - 112383 [23:12:56]1012 (4) - 22.06.2024 15:45 [23:12:56]1206 (1) - 0 [23:12:56]OFD Sender: Remove packet 112383 [23:12:56]ProducePacketName [23:12:56]name=ofd_packets/00112383 [23:12:56]NVStorageDeleteData [23:12:56]Write to MH i2c: 01 00 00 8D 5F EC [23:12:56]Write i2c OK [23:12:56]MH_I2C_Read... [23:12:56]Read from MH i2c: 01 [23:12:56]MH_I2C_Read... [23:12:56]Read from MH i2c: 01 07 00 [23:12:56]MH_I2C_Read... [23:12:56]Read from MH i2c: 01 07 00 8D 5F 00 00 00 00 00 CD 0C CC [23:12:56]RasterBufferAndPrint [23:12:56]line [23:12:56]line [23:12:56]line [23:12:56]line [23:12:56]line [23:12:56]written 0, free lines is 3285 [23:12:56]MH_Cut [23:12:56]Write to MH i2c: D1 01 00 94 5F 01 C5 [23:12:56]Write i2c OK [23:12:56]MH_I2C_Read... [23:12:56]Read from MH i2c: D1 [23:12:56]MH_I2C_Read... [23:12:56]Read from MH i2c: D1 01 00 [23:12:56]MH_I2C_Read... [23:12:56]Read from MH i2c: D1 01 00 94 5F 00 C4 [23:12:56]Write to MH i2c: 01 00 00 95 5F F4 [23:12:56]Write i2c OK [23:12:56]MH_I2C_Read... [23:12:56]OFD Sender: No OFD packet to send [23:12:57]*** Cut start [23:12:57]*** Partial cut [23:12:57]*** CUTSNS_PIN = 1 [23:12:57]*** CUTSNS_PIN = 0 [23:12:57]*** Brake cut motor [23:12:57]Read from MH i2c: 01 [23:12:57]MH_I2C_Read... [23:12:57]*** Stop cut motor [23:12:57]*** Cut end [23:12:57]Read from MH i2c: 01 07 00 [23:12:57]MH_I2C_Read... [23:12:57]Read from MH i2c: 01 07 00 95 5F 00 00 00 00 00 FF 0F 09 [23:12:57]process_action close_receipt done [23:12:57]requested_data is exist [23:12:57]produce_requested_data [23:12:57]requested_item fm.sn is exist - process it [23:12:57]wFMCommunicate request_size=4 [23:12:57]MH_SAM_APDU [23:12:57]CAPDU: 80 11 00 00 [23:12:57]Write to MH i2c: E2 08 00 96 5F 80 11 00 00 00 00 00 00 6F [23:12:57]Write i2c OK [23:12:57]MH_I2C_Read... [23:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:57]Read from MH i2c: E2 [23:12:57]MH_I2C_Read... [23:12:57]Read from MH i2c: E2 17 00 [23:12:57]MH_I2C_Read... [23:12:57]Read from MH i2c: E2 17 00 96 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [23:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:12:57]wFMCommunicate OK [23:12:57]requested_item fd.num is exist - process it [23:12:57]SAM_PROTO_GetFieldsCounters [23:12:57]wFMCommunicate request_size=4 [23:12:57]MH_SAM_APDU [23:12:57]CAPDU: 80 13 00 00 [23:12:57]Write to MH i2c: E2 08 00 97 5F 80 13 00 00 00 00 00 00 72 [23:12:57]Write i2c OK [23:12:57]MH_I2C_Read... [23:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:58]Read from MH i2c: E2 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: E2 62 00 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: E2 62 00 97 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [23:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B6 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:58]wFMCommunicate OK [23:12:58]SAM_PROTO_GetFieldsCounters done [23:12:58]requested_item shift.num is exist - process it [23:12:58]requested_item shift.opened is exist - process it [23:12:58]req_shift_opened [23:12:58]FM_GetShiftState [23:12:58]SAM_PROTO_GetShiftState [23:12:58]wFMCommunicate request_size=4 [23:12:58]MH_SAM_APDU [23:12:58]CAPDU: 80 13 01 00 [23:12:58]Write to MH i2c: E2 08 00 98 5F 80 13 01 00 00 00 00 00 74 [23:12:58]Write i2c OK [23:12:58]MH_I2C_Read... [23:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:58]Read from MH i2c: E2 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: E2 0E 00 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: E2 0E 00 98 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 A9 [23:12:58]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:12:58]wFMCommunicate OK [23:12:58]SAM_PROTO_GetShiftState done [23:12:58]FM_GetShiftState done [23:12:58]req_shift_opened done [23:12:58]requested_item shift.open_date is exist - process it [23:12:58]req_shift_open_date [23:12:58]req_shift_open_date done [23:12:58]produce_requested_data done [23:12:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112383,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:12:58]process_action_free close_receipt [23:12:58]json_value_free [23:12:58]json_value_free done [23:12:58]process_json_proto returns [23:12:58]Send response to host [23:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112383,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:12:58]free response buf [23:12:58]execute_script done [23:12:58]execute_script returns [23:12:58]free content buf [23:12:58]Sock 9.Close socket [23:12:58]Sock 9.Thread stoped [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:13:58]accept exits with 7 [23:13:58]New connection [23:13:58]New thread 3066957156 created [23:13:58]Thread 3066813796 joined [23:13:58]Waiting for new connection... [23:13:58] Sock 7.Parse request [23:13:58]Sock 7.Check first char [23:13:58]Sock 7.First char is OK [23:13:58]request: POST /json_proto HTTP/1.0 [23:13:58]Method: POST [23:13:58]URL: /json_proto [23:13:58]Method is POST - this is cgi request [23:13:58]url: /json_proto [23:13:58]query_string will be loaded in cgi processing [23:13:58]execute_cgi json_proto POST (null) [23:13:58]execute_cgi path=json_proto method=POST [23:13:58]POST find Content-Length [23:13:58]Host: 172.17.59.68:8080 [23:13:58]Content-Length: 679 [23:13:58]Content-Type: application/json [23:13:58] [23:13:58]POST finish read [23:13:58]Found Content-Length = 679 [23:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:58]execute_script... [23:13: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)321063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:58]POST & json_proto [23:13:58]process_json_proto [23:13:58]json parsed OK: [23:13:58]protocol is kg_v1.0 [23:13:58]action value=close_receipt [23:13:58]process_action close_receipt [23:13:58]cmd_close_receipt [23:13:58]MH_GetDate [23:13:58]Write to MH i2c: F0 00 00 99 5F E7 [23:13:58]Write i2c OK [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: F0 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: F0 09 00 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: F0 09 00 99 5F 00 DC 5A 77 66 BC EC 60 65 70 [23:13:58]GetLastDocTimeStamp 1719098011 [23:13:58]current date 1719098076 [23:13:58]FM_GetShiftState [23:13:58]SAM_PROTO_GetShiftState [23:13:58]wFMCommunicate request_size=4 [23:13:58]MH_SAM_APDU [23:13:58]CAPDU: 80 13 01 00 [23:13:58]Write to MH i2c: E2 08 00 9A 5F 80 13 01 00 00 00 00 00 76 [23:13:58]Write i2c OK [23:13:58]MH_I2C_Read... [23:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:58]Read from MH i2c: E2 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: E2 0E 00 [23:13:58]MH_I2C_Read... [23:13:58]Read from MH i2c: E2 0E 00 9A 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 AB [23:13:58]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:13:58]wFMCommunicate OK [23:13:58]SAM_PROTO_GetShiftState done [23:13:58]FM_GetShiftState done [23:13:58]opened in 1719020067 [23:13:58]opened+sec_in_day 1719106467 [23:13:58]quantity*price = 100018 [23:13:58]sum+1 = 100020 [23:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 250 22.06.2024 23:14 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112384 ФПД: 196650834671412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T231436&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112384&fm=196650834671412&tin=02508201610067®Number=0000000000092771&sum=100000 [23:14:00]StoreToDocumentArchive [23:14:00]shift 391 fd 112384 [23:14:00]save to /storage/0391/doc_00112384 [23:14:00]save last doc name /storage/0391/doc_00112384 to /storage/kkm_last_doc_name [23:14:00]save OK [23:14:00]Clear old archive folders... [23:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:14:00]tlvbuf is 012E2CA0 [23:14:00]SAM_PROTO_ClearQueue [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 09 00 00 [23:14:00]Write to MH i2c: E2 08 00 A7 5F 80 09 00 00 00 00 00 00 78 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 A7 5F 00 90 00 7A [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]SAM_PROTO_ClearQueue done [23:14:00]KKMCreateOFDPacket [23:14:00]OFDProtocolAddRootSTLVToBuf [23:14:00]FM_MakeSignedData [23:14:00]FM_MakeSignedData [23:14:00]SAM_PROTO_SignData [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 01 02 [23:14:00]Write to MH i2c: E2 08 00 A8 5F 80 0D 01 02 00 00 00 00 80 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 A8 5F 00 90 00 7B [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]wFMCommunicate request_size=255 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 DC 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B7 01 00 35 04 06 00 B2 DA 57 25 [23:14:00]Write to MH i2c: E2 02 01 A9 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 DC 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B7 01 00 35 04 06 00 B2 DA 57 25 00 00 3B [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 A9 5F 00 90 00 7C [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]wFMCommunicate request_size=7 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 02 02 02 37 34 [23:14:00]Write to MH i2c: E2 0A 00 AA 5F 80 0D 02 02 02 00 37 34 00 00 F2 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 03 00 AA 5F 00 90 00 7D [23:14:00]RAPDU: 90 00 [23:14:00]wFMCommunicate OK [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 0D 03 02 [23:14:00]Write to MH i2c: E2 08 00 AB 5F 80 0D 03 02 00 00 00 00 85 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 0B 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 0B 00 AB 5F 00 25 F9 41 98 1E 83 52 51 90 00 C1 [23:14:00]RAPDU: 25 F9 41 98 1E 83 52 51 90 00 [23:14:00]wFMCommunicate OK [23:14:00]SAM_PROTO_SignData done [23:14:00]FM_MakeSignedData done [23:14:00]CreateOFDProtocolMessage [23:14:00]wFMCommunicate request_size=4 [23:14:00]MH_SAM_APDU [23:14:00]CAPDU: 80 11 00 00 [23:14:00]Write to MH i2c: E2 08 00 AC 5F 80 11 00 00 00 00 00 00 85 [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:00]Read from MH i2c: E2 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 17 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: E2 17 00 AC 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [23:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:14:00]wFMCommunicate OK [23:14:00]CreateOFDProtocolMessage done [23:14:00]OFDSenderStorePacket 112384 [23:14:00]StoreOFDPacket docnum=112384 [23:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 83 B7 04 01 FB 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 DC 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B7 01 00 35 04 06 00 B2 DA 57 25 37 34 25 F9 41 98 1E 83 52 51 [23:14:00]CheckFolder [23:14:00]dirname=/storage/ofd_packets [23:14:00]CheckFolder done [23:14:00]ProducePacketName [23:14:00]name=ofd_packets/00112384 [23:14:00]NVStorageSaveData ofd_packets/00112384 [23:14:00]File name is /storage/ofd_packets/00112384 [23:14:00]Write 298 bytes [23:14:00]NVStorageSaveData done [23:14:00]OFDSenderStorePacket done [23:14:00]KKMCreateOFDPacket done [23:14:00]NVStorageSaveData kkm_last_timestamp [23:14:00]File name is /storage/kkm_last_timestamp [23:14:00]Write 4 bytes [23:14:00]NVStorageSaveData done [23:14:00]ExternCall_PrintAddStr [23:14:00]wPrintStart [23:14:00]Write to MH i2c: 01 00 00 AD 5F 0C [23:14:00]Write i2c OK [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 07 00 [23:14:00]MH_I2C_Read... [23:14:00]Read from MH i2c: 01 07 00 AD 5F 00 00 00 00 00 FF 0F 21 [23:14:00]RasterBufferAndPrint [23:14:00]line Счет N : (1)321063 [23:14:00]line ИНН: 02508201610067 [23:14:00]line Контрольно-Кассовый Чек [23:14:00]line ПРОДАЖА [23:14:00]line ТРК (МРК, ГНК) : 22 [23:14:00]line Товар: 2710194210 [23:14:00]line ДТ-К-5 [23:14:00]line 13.720 * 72.90 [23:14:00]line = 1000.19 [23:14:00]line НДС 12% НСП 1% [23:14:00]line > о реализуемом товаре [23:14:00]line ОКРУГЛЕНИЕ: -0.19 [23:14:00]line ИТОГО: 1000.00 [23:14:00]line Внесено: 1000.00 [23:14:00]line СДАЧА: 0.00 [23:14:00]line НСП 1% : 8.85 [23:14:00]line НДС 12% : 106.21 [23:14:00]line Наличными: 1000.00 [23:14:00]line Безнал.: 0.00 [23:14:00]line Место: АЗС № 65 "Партнер Нефть" [23:14:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:14:00]line СНО: Общий режим [23:14:00]line Чек 250 22.06.2024 23:14 [23:14:00]line Смена: 391 ФФД: 1.0 [23:14:00]line ЗНМ: 0300000198 [23:14:00]line РНМ: 0000000000092771 [23:14:00]line Версия ККМ: 001 [23:14:00]line ФМ: 0000000000875083 [23:14:00]line ФД: 112384 [23:14:00]line ФПД: 196650834671412 [23:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T231436&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112384&fm=196650834671412&tin=02508201610067®Number=0000000000092771&sum=100000 [23:14:00]OFD Sender: Processing packet 112384 [packets to send 38, broken 37] [23:14:00]ProducePacketName [23:14:00]name=ofd_packets/00112384 [23:14:00]OFD Sender: To server: pG, [23:14:00]CommunicateWithHost lk.salyk.kg:30040 [23:14:00]ConnectInit lk.salyk.kg [23:14:00]written 0, free lines is 4095 [23:14:00]Connected sock=10 [23:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 83 B7 04 01 FB 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 DC 5A 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B7 01 00 35 04 06 00 B2 DA 57 25 37 34 25 F9 41 98 1E 83 52 51 [23:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 49 47 00 90 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B7 01 00 F4 03 04 00 DB F1 76 66 B6 04 01 00 00 9F 91 62 1B 39 24 A8 A0 [23:14:01]CommunicateWithHost err = 0 [23:14:01]CheckOFDResponse [23:14:01]1017 (14) - 77093643461234 [23:14:01]1041 (16) - 0000000000875083 [23:14:01]1040 (4) - 112384 [23:14:01]1012 (4) - 22.06.2024 15:46 [23:14:01]1206 (1) - 0 [23:14:01]OFD Sender: Remove packet 112384 [23:14:01]ProducePacketName [23:14:01]name=ofd_packets/00112384 [23:14:01]NVStorageDeleteData [23:14:01]Write to MH i2c: 01 00 00 D8 5F 37 [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: 01 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: 01 07 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: 01 07 00 D8 5F 00 00 00 00 00 DD 0C 27 [23:14:01]RasterBufferAndPrint [23:14:01]line [23:14:01]line [23:14:01]line [23:14:01]line [23:14:01]line [23:14:01]written 0, free lines is 3302 [23:14:01]MH_Cut [23:14:01]Write to MH i2c: D1 01 00 DF 5F 01 10 [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: D1 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: D1 01 00 [23:14:01]MH_I2C_Read... [23:14:01]Read from MH i2c: D1 01 00 DF 5F 00 0F [23:14:01]Write to MH i2c: 01 00 00 E0 5F 3F [23:14:01]Write i2c OK [23:14:01]MH_I2C_Read... [23:14:01]OFD Sender: No OFD packet to send [23:14:02]*** Cut start [23:14:02]*** Partial cut [23:14:02]*** CUTSNS_PIN = 1 [23:14:02]*** CUTSNS_PIN = 0 [23:14:02]*** Brake cut motor [23:14:02]Read from MH i2c: 01 [23:14:02]MH_I2C_Read... [23:14:02]*** Stop cut motor [23:14:02]*** Cut end [23:14:02]Read from MH i2c: 01 07 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: 01 07 00 E0 5F 00 00 00 00 00 FF 0F 54 [23:14:02]process_action close_receipt done [23:14:02]requested_data is exist [23:14:02]produce_requested_data [23:14:02]requested_item fm.sn is exist - process it [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 11 00 00 [23:14:02]Write to MH i2c: E2 08 00 E1 5F 80 11 00 00 00 00 00 00 BA [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 17 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 17 00 E1 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [23:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:14:02]wFMCommunicate OK [23:14:02]requested_item fd.num is exist - process it [23:14:02]SAM_PROTO_GetFieldsCounters [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 13 00 00 [23:14:02]Write to MH i2c: E2 08 00 E2 5F 80 13 00 00 00 00 00 00 BD [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 62 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 62 00 E2 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [23:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:02]wFMCommunicate OK [23:14:02]SAM_PROTO_GetFieldsCounters done [23:14:02]requested_item shift.num is exist - process it [23:14:02]requested_item shift.opened is exist - process it [23:14:02]req_shift_opened [23:14:02]FM_GetShiftState [23:14:02]SAM_PROTO_GetShiftState [23:14:02]wFMCommunicate request_size=4 [23:14:02]MH_SAM_APDU [23:14:02]CAPDU: 80 13 01 00 [23:14:02]Write to MH i2c: E2 08 00 E3 5F 80 13 01 00 00 00 00 00 BF [23:14:02]Write i2c OK [23:14:02]MH_I2C_Read... [23:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:02]Read from MH i2c: E2 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 0E 00 [23:14:02]MH_I2C_Read... [23:14:02]Read from MH i2c: E2 0E 00 E3 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F4 [23:14:02]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:14:02]wFMCommunicate OK [23:14:02]SAM_PROTO_GetShiftState done [23:14:02]FM_GetShiftState done [23:14:02]req_shift_opened done [23:14:02]requested_item shift.open_date is exist - process it [23:14:02]req_shift_open_date [23:14:02]req_shift_open_date done [23:14:02]produce_requested_data done [23:14:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112384,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:14:02]process_action_free close_receipt [23:14:02]json_value_free [23:14:02]json_value_free done [23:14:02]process_json_proto returns [23:14:02]Send response to host [23:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112384,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:14:02]free response buf [23:14:02]execute_script done [23:14:02]execute_script returns [23:14:02]free content buf [23:14:02]Sock 7.Close socket [23:14:02]Sock 7.Thread stoped [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:42]accept exits with 9 [23:24:42]New connection [23:24:42]New thread 3066813796 created [23:24:42]Thread 3066957156 joined [23:24:42]Waiting for new connection... [23:24:42] Sock 9.Parse request [23:24:42]Sock 9.Check first char [23:24:42]Sock 9.First char is OK [23:24:42]request: POST /json_proto HTTP/1.0 [23:24:42]Method: POST [23:24:42]URL: /json_proto [23:24:42]Method is POST - this is cgi request [23:24:42]url: /json_proto [23:24:42]query_string will be loaded in cgi processing [23:24:42]execute_cgi json_proto POST (null) [23:24:42]execute_cgi path=json_proto method=POST [23:24:42]POST find Content-Length [23:24:42]Host: 172.17.59.68:8080 [23:24:42]Content-Length: 682 [23:24:42]Content-Type: application/json [23:24:42] [23:24:42]POST finish read [23:24:42]Found Content-Length = 682 [23:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321064", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [23:24:42]execute_script... [23:24: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)321064", "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.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [23:24:42]POST & json_proto [23:24:42]process_json_proto [23:24:42]json parsed OK: [23:24:42]protocol is kg_v1.0 [23:24:42]action value=close_receipt [23:24:42]process_action close_receipt [23:24:42]cmd_close_receipt [23:24:42]MH_GetDate [23:24:42]Write to MH i2c: F0 00 00 E4 5F 32 [23:24:42]Write i2c OK [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: F0 [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: F0 09 00 [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: F0 09 00 E4 5F 00 60 5D 77 66 BC EC 60 65 42 [23:24:42]GetLastDocTimeStamp 1719098076 [23:24:42]current date 1719098720 [23:24:42]FM_GetShiftState [23:24:42]SAM_PROTO_GetShiftState [23:24:42]wFMCommunicate request_size=4 [23:24:42]MH_SAM_APDU [23:24:42]CAPDU: 80 13 01 00 [23:24:42]Write to MH i2c: E2 08 00 E5 5F 80 13 01 00 00 00 00 00 C1 [23:24:42]Write i2c OK [23:24:42]MH_I2C_Read... [23:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:42]Read from MH i2c: E2 [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: E2 0E 00 [23:24:42]MH_I2C_Read... [23:24:42]Read from MH i2c: E2 0E 00 E5 5F 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 F6 [23:24:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:24:42]wFMCommunicate OK [23:24:42]SAM_PROTO_GetShiftState done [23:24:42]FM_GetShiftState done [23:24:42]opened in 1719020067 [23:24:42]opened+sec_in_day 1719106467 [23:24:42]quantity*price = 200063 [23:24:42]sum+1 = 200064 [23:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 251 22.06.2024 23:25 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112385 ФПД: 195247780243987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T232520&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112385&fm=195247780243987&tin=02508201610067®Number=0000000000092771&sum=200000 [23:24:43]StoreToDocumentArchive [23:24:43]shift 391 fd 112385 [23:24:43]save to /storage/0391/doc_00112385 [23:24:43]save last doc name /storage/0391/doc_00112385 to /storage/kkm_last_doc_name [23:24:43]save OK [23:24:43]Clear old archive folders... [23:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:43]tlvbuf is 01322CD0 [23:24:43]SAM_PROTO_ClearQueue [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 09 00 00 [23:24:43]Write to MH i2c: E2 08 00 F2 5F 80 09 00 00 00 00 00 00 C3 [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 F2 5F 00 90 00 C5 [23:24:43]RAPDU: 90 00 [23:24:43]wFMCommunicate OK [23:24:43]SAM_PROTO_ClearQueue done [23:24:43]KKMCreateOFDPacket [23:24:43]OFDProtocolAddRootSTLVToBuf [23:24:43]FM_MakeSignedData [23:24:43]FM_MakeSignedData [23:24:43]SAM_PROTO_SignData [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 0D 01 02 [23:24:43]Write to MH i2c: E2 08 00 F3 5F 80 0D 01 02 00 00 00 00 CB [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 03 00 F3 5F 00 90 00 C6 [23:24:43]RAPDU: 90 00 [23:24:43]wFMCommunicate OK [23:24:43]wFMCommunicate request_size=255 [23:24:43]MH_SAM_APDU [23:24: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FB 00 00 00 F4 03 04 00 60 5D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B7 01 00 35 04 06 00 B1 [23:24:43]Write to MH i2c: E2 02 01 F4 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FB 00 00 00 F4 03 04 00 60 5D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B7 01 00 35 04 06 00 B1 00 00 FB [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:44]Read from MH i2c: E2 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 03 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 03 00 F4 5F 00 90 00 C7 [23:24:44]RAPDU: 90 00 [23:24:44]wFMCommunicate OK [23:24:44]wFMCommunicate request_size=10 [23:24:44]MH_SAM_APDU [23:24:44]CAPDU: 80 0D 02 02 05 93 AA 95 AA 13 [23:24:44]Write to MH i2c: E2 0D 00 F5 5F 80 0D 02 02 05 00 93 AA 95 AA 13 00 00 67 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:44]Read from MH i2c: E2 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 03 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 03 00 F5 5F 00 90 00 C8 [23:24:44]RAPDU: 90 00 [23:24:44]wFMCommunicate OK [23:24:44]wFMCommunicate request_size=4 [23:24:44]MH_SAM_APDU [23:24:44]CAPDU: 80 0D 03 02 [23:24:44]Write to MH i2c: E2 08 00 F6 5F 80 0D 03 02 00 00 00 00 D0 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:44]Read from MH i2c: E2 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 0B 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 0B 00 F6 5F 00 E7 C8 E4 E8 F7 2E 3D 1F 90 00 CD [23:24:44]RAPDU: E7 C8 E4 E8 F7 2E 3D 1F 90 00 [23:24:44]wFMCommunicate OK [23:24:44]SAM_PROTO_SignData done [23:24:44]FM_MakeSignedData done [23:24:44]CreateOFDProtocolMessage [23:24:44]wFMCommunicate request_size=4 [23:24:44]MH_SAM_APDU [23:24:44]CAPDU: 80 11 00 00 [23:24:44]Write to MH i2c: E2 08 00 F7 5F 80 11 00 00 00 00 00 00 D0 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:44]Read from MH i2c: E2 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 17 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: E2 17 00 F7 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [23:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:24:44]wFMCommunicate OK [23:24:44]CreateOFDProtocolMessage done [23:24:44]OFDSenderStorePacket 112385 [23:24:44]StoreOFDPacket docnum=112385 [23:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 34 7D 07 01 2E 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FB 00 00 00 F4 03 04 00 60 5D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B7 01 00 35 04 06 00 B1 93 AA 95 AA 13 E7 C8 E4 E8 F7 2E 3D 1F [23:24:44]CheckFolder [23:24:44]dirname=/storage/ofd_packets [23:24:44]CheckFolder done [23:24:44]ProducePacketName [23:24:44]name=ofd_packets/00112385 [23:24:44]NVStorageSaveData ofd_packets/00112385 [23:24:44]File name is /storage/ofd_packets/00112385 [23:24:44]Write 301 bytes [23:24:44]NVStorageSaveData done [23:24:44]OFDSenderStorePacket done [23:24:44]KKMCreateOFDPacket done [23:24:44]NVStorageSaveData kkm_last_timestamp [23:24:44]File name is /storage/kkm_last_timestamp [23:24:44]Write 4 bytes [23:24:44]NVStorageSaveData done [23:24:44]ExternCall_PrintAddStr [23:24:44]wPrintStart [23:24:44]Write to MH i2c: 01 00 00 F8 5F 57 [23:24:44]Write i2c OK [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: 01 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: 01 07 00 [23:24:44]MH_I2C_Read... [23:24:44]Read from MH i2c: 01 07 00 F8 5F 00 00 00 00 00 FF 0F 6C [23:24:44]RasterBufferAndPrint [23:24:44]line Счет N : (1)321064 [23:24:44]line ИНН: 02508201610067 [23:24:44]line Контрольно-Кассовый Чек [23:24:44]line ПРОДАЖА [23:24:44]line ТРК (МРК, ГНК) : 11 [23:24:44]line Товар: 2710124130 [23:24:44]line Аи-92-К-5 [23:24:44]line 30.130 * 66.40 [23:24:44]line = 2000.63 [23:24:44]line НДС 12% НСП 1% [23:24:44]line > о реализуемом товаре [23:24:44]line ОКРУГЛЕНИЕ: -0.63 [23:24:44]line ИТОГО: 2000.00 [23:24:44]line Внесено: 2000.00 [23:24:44]line СДАЧА: 0.00 [23:24:44]line НСП 1% : 17.70 [23:24:44]line НДС 12% : 212.46 [23:24:44]line Наличными: 2000.00 [23:24:44]line Безнал.: 0.00 [23:24:44]line Место: АЗС № 65 "Партнер Нефть" [23:24:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:24:44]line СНО: Общий режим [23:24:44]line Чек 251 22.06.2024 23:25 [23:24:44]line Смена: 391 ФФД: 1.0 [23:24:44]line ЗНМ: 0300000198 [23:24:44]line РНМ: 0000000000092771 [23:24:44]line Версия ККМ: 001 [23:24:44]line ФМ: 0000000000875083 [23:24:44]line ФД: 112385 [23:24:44]line ФПД: 195247780243987 [23:24:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T232520&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112385&fm=195247780243987&tin=02508201610067®Number=0000000000092771&sum=200000 [23:24:44]OFD Sender: Processing packet 112385 [packets to send 38, broken 37] [23:24:44]ProducePacketName [23:24:44]name=ofd_packets/00112385 [23:24:44]OFD Sender: To server: pG, [23:24:44]CommunicateWithHost lk.salyk.kg:30040 [23:24:44]ConnectInit lk.salyk.kg [23:24:44]written 0, free lines is 4095 [23:24:44]Connected sock=10 [23:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 34 7D 07 01 2E 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 FB 00 00 00 F4 03 04 00 60 5D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B7 01 00 35 04 06 00 B1 93 AA 95 AA 13 E7 C8 E4 E8 F7 2E 3D 1F [23:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 3D 47 00 09 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B7 01 00 F4 03 04 00 5F F4 76 66 B6 04 01 00 00 5D A4 28 9D 3A 41 83 77 [23:24:44]CommunicateWithHost err = 0 [23:24:44]CheckOFDResponse [23:24:44]1017 (14) - 77093643461234 [23:24:44]1041 (16) - 0000000000875083 [23:24:44]1040 (4) - 112385 [23:24:44]1012 (4) - 22.06.2024 15:57 [23:24:44]1206 (1) - 0 [23:24:45]OFD Sender: Remove packet 112385 [23:24:45]ProducePacketName [23:24:45]name=ofd_packets/00112385 [23:24:45]NVStorageDeleteData [23:24:45]Write to MH i2c: 01 00 00 23 60 83 [23:24:45]Write i2c OK [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: 01 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: 01 07 00 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: 01 07 00 23 60 00 00 00 00 00 D4 0C 6A [23:24:45]RasterBufferAndPrint [23:24:45]line [23:24:45]line [23:24:45]line [23:24:45]line [23:24:45]line [23:24:45]written 0, free lines is 3288 [23:24:45]MH_Cut [23:24:45]Write to MH i2c: D1 01 00 2A 60 01 5C [23:24:45]Write i2c OK [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: D1 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: D1 01 00 [23:24:45]MH_I2C_Read... [23:24:45]Read from MH i2c: D1 01 00 2A 60 00 5B [23:24:45]Write to MH i2c: 01 00 00 2B 60 8B [23:24:45]Write i2c OK [23:24:45]MH_I2C_Read... [23:24:45]OFD Sender: No OFD packet to send [23:24:45]*** Cut start [23:24:45]*** Partial cut [23:24:45]*** CUTSNS_PIN = 1 [23:24:45]*** CUTSNS_PIN = 0 [23:24:46]*** Brake cut motor [23:24:46]Read from MH i2c: 01 [23:24:46]MH_I2C_Read... [23:24:46]*** Stop cut motor [23:24:46]*** Cut end [23:24:46]Read from MH i2c: 01 07 00 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: 01 07 00 2B 60 00 00 00 00 00 FF 0F A0 [23:24:46]process_action close_receipt done [23:24:46]requested_data is exist [23:24:46]produce_requested_data [23:24:46]requested_item fm.sn is exist - process it [23:24:46]wFMCommunicate request_size=4 [23:24:46]MH_SAM_APDU [23:24:46]CAPDU: 80 11 00 00 [23:24:46]Write to MH i2c: E2 08 00 2C 60 80 11 00 00 00 00 00 00 06 [23:24:46]Write i2c OK [23:24:46]MH_I2C_Read... [23:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:46]Read from MH i2c: E2 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: E2 17 00 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: E2 17 00 2C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [23:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:24:46]wFMCommunicate OK [23:24:46]requested_item fd.num is exist - process it [23:24:46]SAM_PROTO_GetFieldsCounters [23:24:46]wFMCommunicate request_size=4 [23:24:46]MH_SAM_APDU [23:24:46]CAPDU: 80 13 00 00 [23:24:46]Write to MH i2c: E2 08 00 2D 60 80 13 00 00 00 00 00 00 09 [23:24:46]Write i2c OK [23:24:46]MH_I2C_Read... [23:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:46]Read from MH i2c: E2 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: E2 62 00 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: E2 62 00 2D 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:46]wFMCommunicate OK [23:24:46]SAM_PROTO_GetFieldsCounters done [23:24:46]requested_item shift.num is exist - process it [23:24:46]requested_item shift.opened is exist - process it [23:24:46]req_shift_opened [23:24:46]FM_GetShiftState [23:24:46]SAM_PROTO_GetShiftState [23:24:46]wFMCommunicate request_size=4 [23:24:46]MH_SAM_APDU [23:24:46]CAPDU: 80 13 01 00 [23:24:46]Write to MH i2c: E2 08 00 2E 60 80 13 01 00 00 00 00 00 0B [23:24:46]Write i2c OK [23:24:46]MH_I2C_Read... [23:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:46]Read from MH i2c: E2 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: E2 0E 00 [23:24:46]MH_I2C_Read... [23:24:46]Read from MH i2c: E2 0E 00 2E 60 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 40 [23:24:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:24:46]wFMCommunicate OK [23:24:46]SAM_PROTO_GetShiftState done [23:24:46]FM_GetShiftState done [23:24:46]req_shift_opened done [23:24:46]requested_item shift.open_date is exist - process it [23:24:46]req_shift_open_date [23:24:46]req_shift_open_date done [23:24:46]produce_requested_data done [23:24:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112385,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:24:46]process_action_free close_receipt [23:24:46]json_value_free [23:24:46]json_value_free done [23:24:46]process_json_proto returns [23:24:46]Send response to host [23:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112385,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:24:46]free response buf [23:24:46]execute_script done [23:24:46]execute_script returns [23:24:46]free content buf [23:24:46]Sock 9.Close socket [23:24:46]Sock 9.Thread stoped [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]accept exits with 7 [23:29:45]New connection [23:29:45]New thread 3066957156 created [23:29:45]Thread 3066813796 joined [23:29:45]Waiting for new connection... [23:29:45] Sock 7.Parse request [23:29:45]Sock 7.Check first char [23:29:45]Sock 7.First char is OK [23:29:45]request: POST /json_proto HTTP/1.0 [23:29:45]Method: POST [23:29:45]URL: /json_proto [23:29:45]Method is POST - this is cgi request [23:29:45]url: /json_proto [23:29:45]query_string will be loaded in cgi processing [23:29:45]execute_cgi json_proto POST (null) [23:29:45]execute_cgi path=json_proto method=POST [23:29:45]POST find Content-Length [23:29:45]Host: 172.17.59.68:8080 [23:29:45]Content-Length: 677 [23:29:45]Content-Type: application/json [23:29:45] [23:29:45]POST finish read [23:29:45]Found Content-Length = 677 [23:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321065", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:29:45]execute_script... [23:29: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)321065", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:29:45]POST & json_proto [23:29:45]process_json_proto [23:29:45]json parsed OK: [23:29:45]protocol is kg_v1.0 [23:29:45]action value=close_receipt [23:29:45]process_action close_receipt [23:29:45]cmd_close_receipt [23:29:45]MH_GetDate [23:29:45]Write to MH i2c: F0 00 00 2F 60 7E [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: F0 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: F0 09 00 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: F0 09 00 2F 60 00 8F 5E 77 66 BC EC 60 65 BE [23:29:45]GetLastDocTimeStamp 1719098720 [23:29:45]current date 1719099023 [23:29:45]FM_GetShiftState [23:29:45]SAM_PROTO_GetShiftState [23:29:45]wFMCommunicate request_size=4 [23:29:45]MH_SAM_APDU [23:29:45]CAPDU: 80 13 01 00 [23:29:45]Write to MH i2c: E2 08 00 30 60 80 13 01 00 00 00 00 00 0D [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:45]Read from MH i2c: E2 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: E2 0E 00 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: E2 0E 00 30 60 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 42 [23:29:45]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:29:45]wFMCommunicate OK [23:29:45]SAM_PROTO_GetShiftState done [23:29:45]FM_GetShiftState done [23:29:45]opened in 1719020067 [23:29:45]opened+sec_in_day 1719106467 [23:29:45]quantity*price = 30012 [23:29:45]sum+1 = 30014 [23:29:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 252 22.06.2024 23:30 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112386 ФПД: 103462785694979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T233023&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112386&fm=103462785694979&tin=02508201610067®Number=0000000000092771&sum=30000 [23:29:46]StoreToDocumentArchive [23:29:46]shift 391 fd 112386 [23:29:46]save to /storage/0391/doc_00112386 [23:29:46]save last doc name /storage/0391/doc_00112386 to /storage/kkm_last_doc_name [23:29:46]save OK [23:29:46]Clear old archive folders... [23:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:46]tlvbuf is B6DA94B0 [23:29:46]SAM_PROTO_ClearQueue [23:29:46]wFMCommunicate request_size=4 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 09 00 00 [23:29:46]Write to MH i2c: E2 08 00 3D 60 80 09 00 00 00 00 00 00 0F [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 3D 60 00 90 00 11 [23:29:46]RAPDU: 90 00 [23:29:46]wFMCommunicate OK [23:29:46]SAM_PROTO_ClearQueue done [23:29:46]KKMCreateOFDPacket [23:29:46]OFDProtocolAddRootSTLVToBuf [23:29:46]FM_MakeSignedData [23:29:46]FM_MakeSignedData [23:29:46]SAM_PROTO_SignData [23:29:46]wFMCommunicate request_size=4 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 0D 01 02 [23:29:46]Write to MH i2c: E2 08 00 3E 60 80 0D 01 02 00 00 00 00 17 [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 3E 60 00 90 00 12 [23:29:46]RAPDU: 90 00 [23:29:46]wFMCommunicate OK [23:29:46]wFMCommunicate request_size=255 [23:29:46]MH_SAM_APDU [23:29: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 8F 5E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B7 01 00 35 04 06 00 5E [23:29:46]Write to MH i2c: E2 02 01 3F 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 8F 5E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B7 01 00 35 04 06 00 5E 00 00 CF [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 3F 60 00 90 00 13 [23:29:46]RAPDU: 90 00 [23:29:46]wFMCommunicate OK [23:29:46]wFMCommunicate request_size=10 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 0D 02 02 05 19 4E 96 BD 03 [23:29:46]Write to MH i2c: E2 0D 00 40 60 80 0D 02 02 05 00 19 4E 96 BD 03 00 00 E1 [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 03 00 40 60 00 90 00 14 [23:29:46]RAPDU: 90 00 [23:29:46]wFMCommunicate OK [23:29:46]wFMCommunicate request_size=4 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 0D 03 02 [23:29:46]Write to MH i2c: E2 08 00 41 60 80 0D 03 02 00 00 00 00 1C [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 0B 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 0B 00 41 60 00 59 A1 18 A9 B9 95 14 EE 90 00 28 [23:29:46]RAPDU: 59 A1 18 A9 B9 95 14 EE 90 00 [23:29:46]wFMCommunicate OK [23:29:46]SAM_PROTO_SignData done [23:29:46]FM_MakeSignedData done [23:29:46]CreateOFDProtocolMessage [23:29:46]wFMCommunicate request_size=4 [23:29:46]MH_SAM_APDU [23:29:46]CAPDU: 80 11 00 00 [23:29:46]Write to MH i2c: E2 08 00 42 60 80 11 00 00 00 00 00 00 1C [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:46]Read from MH i2c: E2 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 17 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: E2 17 00 42 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [23:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:29:46]wFMCommunicate OK [23:29:46]CreateOFDProtocolMessage done [23:29:46]OFDSenderStorePacket 112386 [23:29:46]StoreOFDPacket docnum=112386 [23:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A6 BA 07 01 DC EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 8F 5E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B7 01 00 35 04 06 00 5E 19 4E 96 BD 03 59 A1 18 A9 B9 95 14 EE [23:29:46]CheckFolder [23:29:46]dirname=/storage/ofd_packets [23:29:46]CheckFolder done [23:29:46]ProducePacketName [23:29:46]name=ofd_packets/00112386 [23:29:46]NVStorageSaveData ofd_packets/00112386 [23:29:46]File name is /storage/ofd_packets/00112386 [23:29:46]Write 301 bytes [23:29:46]NVStorageSaveData done [23:29:46]OFDSenderStorePacket done [23:29:46]KKMCreateOFDPacket done [23:29:46]NVStorageSaveData kkm_last_timestamp [23:29:46]File name is /storage/kkm_last_timestamp [23:29:46]Write 4 bytes [23:29:46]NVStorageSaveData done [23:29:46]ExternCall_PrintAddStr [23:29:46]wPrintStart [23:29:46]Write to MH i2c: 01 00 00 43 60 A3 [23:29:46]Write i2c OK [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: 01 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: 01 07 00 [23:29:46]MH_I2C_Read... [23:29:46]Read from MH i2c: 01 07 00 43 60 00 00 00 00 00 FF 0F B8 [23:29:46]RasterBufferAndPrint [23:29:46]line Счет N : (1)321065 [23:29:46]line ИНН: 02508201610067 [23:29:46]line Контрольно-Кассовый Чек [23:29:46]line ПРОДАЖА [23:29:46]line ТРК (МРК, ГНК) : 11 [23:29:46]line Товар: 2710124130 [23:29:46]line Аи-92-К-5 [23:29:46]line 4.520 * 66.40 [23:29:46]line = 300.13 [23:29:46]line НДС 12% НСП 1% [23:29:46]line > о реализуемом товаре [23:29:46]line ОКРУГЛЕНИЕ: -0.13 [23:29:46]line ИТОГО: 300.00 [23:29:46]line Внесено: 300.00 [23:29:46]line СДАЧА: 0.00 [23:29:46]line НСП 1% : 2.66 [23:29:46]line НДС 12% : 31.87 [23:29:46]line Наличными: 300.00 [23:29:46]line Безнал.: 0.00 [23:29:46]line Место: АЗС № 65 "Партнер Нефть" [23:29:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:29:46]line СНО: Общий режим [23:29:46]line Чек 252 22.06.2024 23:30 [23:29:46]line Смена: 391 ФФД: 1.0 [23:29:46]line ЗНМ: 0300000198 [23:29:46]line РНМ: 0000000000092771 [23:29:46]line Версия ККМ: 001 [23:29:46]line ФМ: 0000000000875083 [23:29:46]line ФД: 112386 [23:29:46]line ФПД: 103462785694979 [23:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T233023&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112386&fm=103462785694979&tin=02508201610067®Number=0000000000092771&sum=30000 [23:29:47]OFD Sender: Processing packet 112386 [packets to send 38, broken 37] [23:29:47]ProducePacketName [23:29:47]name=ofd_packets/00112386 [23:29:47]OFD Sender: To server: pG, [23:29:47]CommunicateWithHost lk.salyk.kg:30040 [23:29:47]ConnectInit lk.salyk.kg [23:29:47]written 0, free lines is 4095 [23:29:47]Connected sock=10 [23:29:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A6 BA 07 01 DC EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 8F 5E 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B7 01 00 35 04 06 00 5E 19 4E 96 BD 03 59 A1 18 A9 B9 95 14 EE [23:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4A 6A 47 00 64 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B7 01 00 F4 03 04 00 8D F5 76 66 B6 04 01 00 00 6C 5C 72 F2 BF 9E C0 A8 [23:29:47]CommunicateWithHost err = 0 [23:29:47]CheckOFDResponse [23:29:47]1017 (14) - 77093643461234 [23:29:47]1041 (16) - 0000000000875083 [23:29:47]1040 (4) - 112386 [23:29:47]1012 (4) - 22.06.2024 16:02 [23:29:47]1206 (1) - 0 [23:29:47]OFD Sender: Remove packet 112386 [23:29:47]ProducePacketName [23:29:47]name=ofd_packets/00112386 [23:29:47]NVStorageDeleteData [23:29:47]Write to MH i2c: 01 00 00 6E 60 CE [23:29:47]Write i2c OK [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: 01 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: 01 07 00 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: 01 07 00 6E 60 00 00 00 00 00 CE 0C AF [23:29:47]RasterBufferAndPrint [23:29:47]line [23:29:47]line [23:29:47]line [23:29:47]line [23:29:47]line [23:29:47]written 0, free lines is 3286 [23:29:47]MH_Cut [23:29:47]Write to MH i2c: D1 01 00 75 60 01 A7 [23:29:47]Write i2c OK [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: D1 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: D1 01 00 [23:29:47]MH_I2C_Read... [23:29:47]Read from MH i2c: D1 01 00 75 60 00 A6 [23:29:47]Write to MH i2c: 01 00 00 76 60 D6 [23:29:47]Write i2c OK [23:29:47]MH_I2C_Read... [23:29:47]OFD Sender: No OFD packet to send [23:29:48]*** Cut start [23:29:48]*** Partial cut [23:29:48]*** CUTSNS_PIN = 1 [23:29:48]*** CUTSNS_PIN = 0 [23:29:48]*** Brake cut motor [23:29:48]Read from MH i2c: 01 [23:29:48]MH_I2C_Read... [23:29:48]*** Stop cut motor [23:29:48]*** Cut end [23:29:48]Read from MH i2c: 01 07 00 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: 01 07 00 76 60 00 00 00 00 00 FF 0F EB [23:29:48]process_action close_receipt done [23:29:48]requested_data is exist [23:29:48]produce_requested_data [23:29:48]requested_item fm.sn is exist - process it [23:29:48]wFMCommunicate request_size=4 [23:29:48]MH_SAM_APDU [23:29:48]CAPDU: 80 11 00 00 [23:29:48]Write to MH i2c: E2 08 00 77 60 80 11 00 00 00 00 00 00 51 [23:29:48]Write i2c OK [23:29:48]MH_I2C_Read... [23:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:48]Read from MH i2c: E2 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 17 00 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 17 00 77 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [23:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:29:48]wFMCommunicate OK [23:29:48]requested_item fd.num is exist - process it [23:29:48]SAM_PROTO_GetFieldsCounters [23:29:48]wFMCommunicate request_size=4 [23:29:48]MH_SAM_APDU [23:29:48]CAPDU: 80 13 00 00 [23:29:48]Write to MH i2c: E2 08 00 78 60 80 13 00 00 00 00 00 00 54 [23:29:48]Write i2c OK [23:29:48]MH_I2C_Read... [23:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:49]Read from MH i2c: E2 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: E2 62 00 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: E2 62 00 78 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [23:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:49]wFMCommunicate OK [23:29:49]SAM_PROTO_GetFieldsCounters done [23:29:49]requested_item shift.num is exist - process it [23:29:49]requested_item shift.opened is exist - process it [23:29:49]req_shift_opened [23:29:49]FM_GetShiftState [23:29:49]SAM_PROTO_GetShiftState [23:29:49]wFMCommunicate request_size=4 [23:29:49]MH_SAM_APDU [23:29:49]CAPDU: 80 13 01 00 [23:29:49]Write to MH i2c: E2 08 00 79 60 80 13 01 00 00 00 00 00 56 [23:29:49]Write i2c OK [23:29:49]MH_I2C_Read... [23:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:49]Read from MH i2c: E2 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: E2 0E 00 [23:29:49]MH_I2C_Read... [23:29:49]Read from MH i2c: E2 0E 00 79 60 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8B [23:29:49]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:29:49]wFMCommunicate OK [23:29:49]SAM_PROTO_GetShiftState done [23:29:49]FM_GetShiftState done [23:29:49]req_shift_opened done [23:29:49]requested_item shift.open_date is exist - process it [23:29:49]req_shift_open_date [23:29:49]req_shift_open_date done [23:29:49]produce_requested_data done [23:29:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112386,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:29:49]process_action_free close_receipt [23:29:49]json_value_free [23:29:49]json_value_free done [23:29:49]process_json_proto returns [23:29:49]Send response to host [23:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112386,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:29:49]free response buf [23:29:49]execute_script done [23:29:49]execute_script returns [23:29:49]free content buf [23:29:49]Sock 7.Close socket [23:29:49]Sock 7.Thread stoped [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32: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:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:50]accept exits with 9 [23:38:50]New connection [23:38:50]New thread 3066813796 created [23:38:50]Thread 3066957156 joined [23:38:50]Waiting for new connection... [23:38:50] Sock 9.Parse request [23:38:50]Sock 9.Check first char [23:38:50]Sock 9.First char is OK [23:38:50]request: POST /json_proto HTTP/1.0 [23:38:50]Method: POST [23:38:50]URL: /json_proto [23:38:50]Method is POST - this is cgi request [23:38:50]url: /json_proto [23:38:50]query_string will be loaded in cgi processing [23:38:50]execute_cgi json_proto POST (null) [23:38:50]execute_cgi path=json_proto method=POST [23:38:50]POST find Content-Length [23:38:50]Host: 172.17.59.68:8080 [23:38:50]Content-Length: 682 [23:38:50]Content-Type: application/json [23:38:50] [23:38:50]POST finish read [23:38:50]Found Content-Length = 682 [23:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321066", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:50]execute_script... [23:38: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)321066", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:50]POST & json_proto [23:38:50]process_json_proto [23:38:50]json parsed OK: [23:38:50]protocol is kg_v1.0 [23:38:50]action value=close_receipt [23:38:50]process_action close_receipt [23:38:50]cmd_close_receipt [23:38:50]MH_GetDate [23:38:50]Write to MH i2c: F0 00 00 7A 60 C9 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: F0 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: F0 09 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: F0 09 00 7A 60 00 B0 60 77 66 BC EC 60 65 2C [23:38:50]GetLastDocTimeStamp 1719099023 [23:38:50]current date 1719099568 [23:38:50]FM_GetShiftState [23:38:50]SAM_PROTO_GetShiftState [23:38:50]wFMCommunicate request_size=4 [23:38:50]MH_SAM_APDU [23:38:50]CAPDU: 80 13 01 00 [23:38:50]Write to MH i2c: E2 08 00 7B 60 80 13 01 00 00 00 00 00 58 [23:38:50]Write i2c OK [23:38:50]MH_I2C_Read... [23:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:50]Read from MH i2c: E2 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 0E 00 [23:38:50]MH_I2C_Read... [23:38:50]Read from MH i2c: E2 0E 00 7B 60 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8D [23:38:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:38:50]wFMCommunicate OK [23:38:50]SAM_PROTO_GetShiftState done [23:38:50]FM_GetShiftState done [23:38:50]opened in 1719020067 [23:38:50]opened+sec_in_day 1719106467 [23:38:50]quantity*price = 100064 [23:38:50]sum+1 = 100066 [23:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 253 22.06.2024 23:39 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112387 ФПД: 247292669031076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T233928&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112387&fm=247292669031076&tin=02508201610067®Number=0000000000092771&sum=100000 [23:38:51]StoreToDocumentArchive [23:38:51]shift 391 fd 112387 [23:38:51]save to /storage/0391/doc_00112387 [23:38:51]save last doc name /storage/0391/doc_00112387 to /storage/kkm_last_doc_name [23:38:51]save OK [23:38:51]Clear old archive folders... [23:38:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:51]tlvbuf is 0112E3F0 [23:38:51]SAM_PROTO_ClearQueue [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 09 00 00 [23:38:51]Write to MH i2c: E2 08 00 88 60 80 09 00 00 00 00 00 00 5A [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 88 60 00 90 00 5C [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]SAM_PROTO_ClearQueue done [23:38:51]KKMCreateOFDPacket [23:38:51]OFDProtocolAddRootSTLVToBuf [23:38:51]FM_MakeSignedData [23:38:51]FM_MakeSignedData [23:38:51]SAM_PROTO_SignData [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 01 02 [23:38:51]Write to MH i2c: E2 08 00 89 60 80 0D 01 02 00 00 00 00 62 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 89 60 00 90 00 5D [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]wFMCommunicate request_size=255 [23:38:51]MH_SAM_APDU [23:38: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B0 60 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B7 01 00 35 04 06 00 E0 [23:38:51]Write to MH i2c: E2 02 01 8A 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B0 60 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B7 01 00 35 04 06 00 E0 00 00 73 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 8A 60 00 90 00 5E [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]wFMCommunicate request_size=10 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 02 02 05 E9 4F B1 72 A4 [23:38:51]Write to MH i2c: E2 0D 00 8B 60 80 0D 02 02 05 00 E9 4F B1 72 A4 00 00 6E [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 03 00 8B 60 00 90 00 5F [23:38:51]RAPDU: 90 00 [23:38:51]wFMCommunicate OK [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 0D 03 02 [23:38:51]Write to MH i2c: E2 08 00 8C 60 80 0D 03 02 00 00 00 00 67 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:51]Read from MH i2c: E2 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 0B 00 [23:38:51]MH_I2C_Read... [23:38:51]Read from MH i2c: E2 0B 00 8C 60 00 78 04 E4 59 E4 69 3F A3 90 00 50 [23:38:51]RAPDU: 78 04 E4 59 E4 69 3F A3 90 00 [23:38:51]wFMCommunicate OK [23:38:51]SAM_PROTO_SignData done [23:38:51]FM_MakeSignedData done [23:38:51]CreateOFDProtocolMessage [23:38:51]wFMCommunicate request_size=4 [23:38:51]MH_SAM_APDU [23:38:51]CAPDU: 80 11 00 00 [23:38:51]Write to MH i2c: E2 08 00 8D 60 80 11 00 00 00 00 00 00 67 [23:38:51]Write i2c OK [23:38:51]MH_I2C_Read... [23:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:52]Read from MH i2c: E2 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 17 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: E2 17 00 8D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [23:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:38:52]wFMCommunicate OK [23:38:52]CreateOFDProtocolMessage done [23:38:52]OFDSenderStorePacket 112387 [23:38:52]StoreOFDPacket docnum=112387 [23:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D F0 07 01 51 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B0 60 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B7 01 00 35 04 06 00 E0 E9 4F B1 72 A4 78 04 E4 59 E4 69 3F A3 [23:38:52]CheckFolder [23:38:52]dirname=/storage/ofd_packets [23:38:52]CheckFolder done [23:38:52]ProducePacketName [23:38:52]name=ofd_packets/00112387 [23:38:52]NVStorageSaveData ofd_packets/00112387 [23:38:52]File name is /storage/ofd_packets/00112387 [23:38:52]Write 301 bytes [23:38:52]NVStorageSaveData done [23:38:52]OFDSenderStorePacket done [23:38:52]KKMCreateOFDPacket done [23:38:52]NVStorageSaveData kkm_last_timestamp [23:38:52]File name is /storage/kkm_last_timestamp [23:38:52]Write 4 bytes [23:38:52]NVStorageSaveData done [23:38:52]ExternCall_PrintAddStr [23:38:52]wPrintStart [23:38:52]Write to MH i2c: 01 00 00 8E 60 EE [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 07 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 07 00 8E 60 00 00 00 00 00 FF 0F 03 [23:38:52]RasterBufferAndPrint [23:38:52]line Счет N : (1)321066 [23:38:52]line ИНН: 02508201610067 [23:38:52]line Контрольно-Кассовый Чек [23:38:52]line ПРОДАЖА [23:38:52]line ТРК (МРК, ГНК) : 11 [23:38:52]line Товар: 2710124130 [23:38:52]line Аи-92-К-5 [23:38:52]line 15.070 * 66.40 [23:38:52]line = 1000.65 [23:38:52]line НДС 12% НСП 1% [23:38:52]line > о реализуемом товаре [23:38:52]line ОКРУГЛЕНИЕ: -0.65 [23:38:52]line ИТОГО: 1000.00 [23:38:52]line Внесено: 1000.00 [23:38:52]line СДАЧА: 0.00 [23:38:52]line НСП 1% : 8.85 [23:38:52]line НДС 12% : 106.26 [23:38:52]line Наличными: 1000.00 [23:38:52]line Безнал.: 0.00 [23:38:52]line Место: АЗС № 65 "Партнер Нефть" [23:38:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:38:52]line СНО: Общий режим [23:38:52]line Чек 253 22.06.2024 23:39 [23:38:52]line Смена: 391 ФФД: 1.0 [23:38:52]line ЗНМ: 0300000198 [23:38:52]line РНМ: 0000000000092771 [23:38:52]line Версия ККМ: 001 [23:38:52]line ФМ: 0000000000875083 [23:38:52]line ФД: 112387 [23:38:52]line ФПД: 247292669031076 [23:38:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T233928&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112387&fm=247292669031076&tin=02508201610067®Number=0000000000092771&sum=100000 [23:38:52]OFD Sender: Processing packet 112387 [packets to send 38, broken 37] [23:38:52]ProducePacketName [23:38:52]name=ofd_packets/00112387 [23:38:52]OFD Sender: To server: pG, [23:38:52]CommunicateWithHost lk.salyk.kg:30040 [23:38:52]ConnectInit lk.salyk.kg [23:38:52]written 0, free lines is 4095 [23:38:52]Connected sock=10 [23:38:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3D F0 07 01 51 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B0 60 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B7 01 00 35 04 06 00 E0 E9 4F B1 72 A4 78 04 E4 59 E4 69 3F A3 [23:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 D5 47 00 97 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 35 30 38 33 10 04 04 00 03 B7 01 00 F4 03 04 00 AE F7 76 66 B6 04 01 00 00 31 9C 64 EB EE 7D 18 1F [23:38:52]CommunicateWithHost err = 0 [23:38:52]CheckOFDResponse [23:38:52]1017 (14) - 77093643461234 [23:38:52]1041 (16) - 0000000000875083 [23:38:52]1040 (4) - 112387 [23:38:52]1012 (4) - 22.06.2024 16:11 [23:38:52]1206 (1) - 0 [23:38:52]OFD Sender: Remove packet 112387 [23:38:52]ProducePacketName [23:38:52]name=ofd_packets/00112387 [23:38:52]NVStorageDeleteData [23:38:52]Write to MH i2c: 01 00 00 B9 60 19 [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 07 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: 01 07 00 B9 60 00 00 00 00 00 D6 0C 02 [23:38:52]RasterBufferAndPrint [23:38:52]line [23:38:52]line [23:38:52]line [23:38:52]line [23:38:52]line [23:38:52]written 0, free lines is 3294 [23:38:52]MH_Cut [23:38:52]Write to MH i2c: D1 01 00 C0 60 01 F2 [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: D1 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: D1 01 00 [23:38:52]MH_I2C_Read... [23:38:52]Read from MH i2c: D1 01 00 C0 60 00 F1 [23:38:52]Write to MH i2c: 01 00 00 C1 60 21 [23:38:52]Write i2c OK [23:38:52]MH_I2C_Read... [23:38:53]OFD Sender: No OFD packet to send [23:38:53]*** Cut start [23:38:53]*** Partial cut [23:38:53]*** CUTSNS_PIN = 1 [23:38:53]*** CUTSNS_PIN = 0 [23:38:53]*** Brake cut motor [23:38:54]Read from MH i2c: 01 [23:38:54]MH_I2C_Read... [23:38:54]*** Stop cut motor [23:38:54]*** Cut end [23:38:54]Read from MH i2c: 01 07 00 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: 01 07 00 C1 60 00 00 00 00 00 FF 0F 36 [23:38:54]process_action close_receipt done [23:38:54]requested_data is exist [23:38:54]produce_requested_data [23:38:54]requested_item fm.sn is exist - process it [23:38:54]wFMCommunicate request_size=4 [23:38:54]MH_SAM_APDU [23:38:54]CAPDU: 80 11 00 00 [23:38:54]Write to MH i2c: E2 08 00 C2 60 80 11 00 00 00 00 00 00 9C [23:38:54]Write i2c OK [23:38:54]MH_I2C_Read... [23:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:54]Read from MH i2c: E2 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: E2 17 00 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: E2 17 00 C2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [23:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:38:54]wFMCommunicate OK [23:38:54]requested_item fd.num is exist - process it [23:38:54]SAM_PROTO_GetFieldsCounters [23:38:54]wFMCommunicate request_size=4 [23:38:54]MH_SAM_APDU [23:38:54]CAPDU: 80 13 00 00 [23:38:54]Write to MH i2c: E2 08 00 C3 60 80 13 00 00 00 00 00 00 9F [23:38:54]Write i2c OK [23:38:54]MH_I2C_Read... [23:38:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:54]Read from MH i2c: E2 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: E2 62 00 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: E2 62 00 C3 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [23:38:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:54]wFMCommunicate OK [23:38:54]SAM_PROTO_GetFieldsCounters done [23:38:54]requested_item shift.num is exist - process it [23:38:54]requested_item shift.opened is exist - process it [23:38:54]req_shift_opened [23:38:54]FM_GetShiftState [23:38:54]SAM_PROTO_GetShiftState [23:38:54]wFMCommunicate request_size=4 [23:38:54]MH_SAM_APDU [23:38:54]CAPDU: 80 13 01 00 [23:38:54]Write to MH i2c: E2 08 00 C4 60 80 13 01 00 00 00 00 00 A1 [23:38:54]Write i2c OK [23:38:54]MH_I2C_Read... [23:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:54]Read from MH i2c: E2 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: E2 0E 00 [23:38:54]MH_I2C_Read... [23:38:54]Read from MH i2c: E2 0E 00 C4 60 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D6 [23:38:54]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:38:54]wFMCommunicate OK [23:38:54]SAM_PROTO_GetShiftState done [23:38:54]FM_GetShiftState done [23:38:54]req_shift_opened done [23:38:54]requested_item shift.open_date is exist - process it [23:38:54]req_shift_open_date [23:38:54]req_shift_open_date done [23:38:54]produce_requested_data done [23:38:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112387,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:38:54]process_action_free close_receipt [23:38:54]json_value_free [23:38:54]json_value_free done [23:38:54]process_json_proto returns [23:38:54]Send response to host [23:38:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112387,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:38:54]free response buf [23:38:54]execute_script done [23:38:54]execute_script returns [23:38:54]free content buf [23:38:54]Sock 9.Close socket [23:38:54]Sock 9.Thread stoped [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:06]accept exits with 7 [23:41:06]New connection [23:41:06]New thread 3066957156 created [23:41:06]Thread 3066813796 joined [23:41:06]Waiting for new connection... [23:41:06] Sock 7.Parse request [23:41:06]Sock 7.Check first char [23:41:06]Sock 7.First char is OK [23:41:06]request: POST /json_proto HTTP/1.0 [23:41:06]Method: POST [23:41:06]URL: /json_proto [23:41:06]Method is POST - this is cgi request [23:41:06]url: /json_proto [23:41:06]query_string will be loaded in cgi processing [23:41:06]execute_cgi json_proto POST (null) [23:41:06]execute_cgi path=json_proto method=POST [23:41:06]POST find Content-Length [23:41:06]Host: 172.17.59.68:8080 [23:41:06]Content-Length: 682 [23:41:06]Content-Type: application/json [23:41:06] [23:41:06]POST finish read [23:41:06]Found Content-Length = 682 [23:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321067", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:06]execute_script... [23: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)321067", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:06]POST & json_proto [23:41:06]process_json_proto [23:41:06]json parsed OK: [23:41:06]protocol is kg_v1.0 [23:41:06]action value=close_receipt [23:41:06]process_action close_receipt [23:41:06]cmd_close_receipt [23:41:06]MH_GetDate [23:41:06]Write to MH i2c: F0 00 00 C5 60 14 [23:41:06]Write i2c OK [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: F0 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: F0 09 00 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: F0 09 00 C5 60 00 38 61 77 66 BC EC 60 65 00 [23:41:06]GetLastDocTimeStamp 1719099568 [23:41:06]current date 1719099704 [23:41:06]FM_GetShiftState [23:41:06]SAM_PROTO_GetShiftState [23:41:06]wFMCommunicate request_size=4 [23:41:06]MH_SAM_APDU [23:41:06]CAPDU: 80 13 01 00 [23:41:06]Write to MH i2c: E2 08 00 C6 60 80 13 01 00 00 00 00 00 A3 [23:41:06]Write i2c OK [23:41:06]MH_I2C_Read... [23:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:06]Read from MH i2c: E2 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 0E 00 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 0E 00 C6 60 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D8 [23:41:06]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:41:06]wFMCommunicate OK [23:41:06]SAM_PROTO_GetShiftState done [23:41:06]FM_GetShiftState done [23:41:06]opened in 1719020067 [23:41:06]opened+sec_in_day 1719106467 [23:41:06]quantity*price = 100064 [23:41:06]sum+1 = 100066 [23:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 254 22.06.2024 23:41 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112388 ФПД: 205174771354657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T234145&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112388&fm=205174771354657&tin=02508201610067®Number=0000000000092771&sum=100000 [23:41:07]StoreToDocumentArchive [23:41:07]shift 391 fd 112388 [23:41:07]save to /storage/0391/doc_00112388 [23:41:07]save last doc name /storage/0391/doc_00112388 to /storage/kkm_last_doc_name [23:41:07]save OK [23:41:07]Clear old archive folders... [23:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:07]tlvbuf is 012BAC00 [23:41:07]SAM_PROTO_ClearQueue [23:41:07]wFMCommunicate request_size=4 [23:41:07]MH_SAM_APDU [23:41:07]CAPDU: 80 09 00 00 [23:41:07]Write to MH i2c: E2 08 00 D3 60 80 09 00 00 00 00 00 00 A5 [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:07]Read from MH i2c: E2 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 03 00 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 03 00 D3 60 00 90 00 A7 [23:41:07]RAPDU: 90 00 [23:41:07]wFMCommunicate OK [23:41:07]SAM_PROTO_ClearQueue done [23:41:07]KKMCreateOFDPacket [23:41:07]OFDProtocolAddRootSTLVToBuf [23:41:07]FM_MakeSignedData [23:41:07]FM_MakeSignedData [23:41:07]SAM_PROTO_SignData [23:41:07]wFMCommunicate request_size=4 [23:41:07]MH_SAM_APDU [23:41:07]CAPDU: 80 0D 01 02 [23:41:07]Write to MH i2c: E2 08 00 D4 60 80 0D 01 02 00 00 00 00 AD [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:07]Read from MH i2c: E2 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 03 00 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 03 00 D4 60 00 90 00 A8 [23:41:07]RAPDU: 90 00 [23:41:07]wFMCommunicate OK [23:41:07]wFMCommunicate request_size=255 [23:41:07]MH_SAM_APDU [23: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 39 61 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B7 01 00 35 04 06 00 BA [23:41:07]Write to MH i2c: E2 02 01 D5 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 39 61 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B7 01 00 35 04 06 00 BA 00 00 24 [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 D5 60 00 90 00 A9 [23:41:08]RAPDU: 90 00 [23:41:08]wFMCommunicate OK [23:41:08]wFMCommunicate request_size=10 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 0D 02 02 05 9A F9 5D 0C 21 [23:41:08]Write to MH i2c: E2 0D 00 D6 60 80 0D 02 02 05 00 9A F9 5D 0C 21 00 00 D7 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 D6 60 00 90 00 AA [23:41:08]RAPDU: 90 00 [23:41:08]wFMCommunicate OK [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 0D 03 02 [23:41:08]Write to MH i2c: E2 08 00 D7 60 80 0D 03 02 00 00 00 00 B2 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 0B 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 0B 00 D7 60 00 F2 DB FD 18 4F A4 41 0F 90 00 D8 [23:41:08]RAPDU: F2 DB FD 18 4F A4 41 0F 90 00 [23:41:08]wFMCommunicate OK [23:41:08]SAM_PROTO_SignData done [23:41:08]FM_MakeSignedData done [23:41:08]CreateOFDProtocolMessage [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 11 00 00 [23:41:08]Write to MH i2c: E2 08 00 D8 60 80 11 00 00 00 00 00 00 B2 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 17 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 17 00 D8 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [23:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:41:08]wFMCommunicate OK [23:41:08]CreateOFDProtocolMessage done [23:41:08]OFDSenderStorePacket 112388 [23:41:08]StoreOFDPacket docnum=112388 [23:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 9C 07 01 BB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 39 61 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B7 01 00 35 04 06 00 BA 9A F9 5D 0C 21 F2 DB FD 18 4F A4 41 0F [23:41:08]CheckFolder [23:41:08]dirname=/storage/ofd_packets [23:41:08]CheckFolder done [23:41:08]ProducePacketName [23:41:08]name=ofd_packets/00112388 [23:41:08]NVStorageSaveData ofd_packets/00112388 [23:41:08]File name is /storage/ofd_packets/00112388 [23:41:08]Write 301 bytes [23:41:08]NVStorageSaveData done [23:41:08]OFDSenderStorePacket done [23:41:08]KKMCreateOFDPacket done [23:41:08]NVStorageSaveData kkm_last_timestamp [23:41:08]File name is /storage/kkm_last_timestamp [23:41:08]Write 4 bytes [23:41:08]NVStorageSaveData done [23:41:08]ExternCall_PrintAddStr [23:41:08]wPrintStart [23:41:08]Write to MH i2c: 01 00 00 D9 60 39 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: 01 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: 01 07 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: 01 07 00 D9 60 00 00 00 00 00 FF 0F 4E [23:41:08]RasterBufferAndPrint [23:41:08]line Счет N : (1)321067 [23:41:08]line ИНН: 02508201610067 [23:41:08]line Контрольно-Кассовый Чек [23:41:08]line ПРОДАЖА [23:41:08]line ТРК (МРК, ГНК) : 11 [23:41:08]line Товар: 2710124130 [23:41:08]line Аи-92-К-5 [23:41:08]line 15.070 * 66.40 [23:41:08]line = 1000.65 [23:41:08]line НДС 12% НСП 1% [23:41:08]line > о реализуемом товаре [23:41:08]line ОКРУГЛЕНИЕ: -0.65 [23:41:08]line ИТОГО: 1000.00 [23:41:08]line Внесено: 1000.00 [23:41:08]line СДАЧА: 0.00 [23:41:08]line НСП 1% : 8.85 [23:41:08]line НДС 12% : 106.26 [23:41:08]line Наличными: 1000.00 [23:41:08]line Безнал.: 0.00 [23:41:08]line Место: АЗС № 65 "Партнер Нефть" [23:41:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:41:08]line СНО: Общий режим [23:41:08]line Чек 254 22.06.2024 23:41 [23:41:08]line Смена: 391 ФФД: 1.0 [23:41:08]line ЗНМ: 0300000198 [23:41:08]line РНМ: 0000000000092771 [23:41:08]line Версия ККМ: 001 [23:41:08]line ФМ: 0000000000875083 [23:41:08]line ФД: 112388 [23:41:08]line ФПД: 205174771354657 [23:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T234145&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112388&fm=205174771354657&tin=02508201610067®Number=0000000000092771&sum=100000 [23:41:08]OFD Sender: Processing packet 112388 [packets to send 38, broken 37] [23:41:08]ProducePacketName [23:41:08]name=ofd_packets/00112388 [23:41:08]OFD Sender: To server: pG, [23:41:08]CommunicateWithHost lk.salyk.kg:30040 [23:41:08]ConnectInit lk.salyk.kg [23:41:08]written 0, free lines is 4095 [23:41:08]Connected sock=10 [23: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 35 30 38 33 0F 01 00 00 20 9C 07 01 BB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 39 61 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B7 01 00 35 04 06 00 BA 9A F9 5D 0C 21 F2 DB FD 18 4F A4 41 0F [23:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 54 C5 47 00 61 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B7 01 00 F4 03 04 00 37 F8 76 66 B6 04 01 00 00 50 D9 4D DA ED F1 64 02 [23:41:08]CommunicateWithHost err = 0 [23:41:08]CheckOFDResponse [23:41:08]1017 (14) - 77093643461234 [23:41:08]1041 (16) - 0000000000875083 [23:41:08]1040 (4) - 112388 [23:41:08]1012 (4) - 22.06.2024 16:13 [23:41:08]1206 (1) - 0 [23:41:08]OFD Sender: Remove packet 112388 [23:41:08]ProducePacketName [23:41:08]name=ofd_packets/00112388 [23:41:08]NVStorageDeleteData [23:41:09]Write to MH i2c: 01 00 00 04 61 65 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 07 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 07 00 04 61 00 00 00 00 00 D3 0C 4B [23:41:09]RasterBufferAndPrint [23:41:09]line [23:41:09]line [23:41:09]line [23:41:09]line [23:41:09]line [23:41:09]written 0, free lines is 3289 [23:41:09]MH_Cut [23:41:09]Write to MH i2c: D1 01 00 0B 61 01 3E [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: D1 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: D1 01 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: D1 01 00 0B 61 00 3D [23:41:09]Write to MH i2c: 01 00 00 0C 61 6D [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]OFD Sender: No OFD packet to send [23:41:09]*** Cut start [23:41:09]*** Partial cut [23:41:09]*** CUTSNS_PIN = 1 [23:41:09]*** CUTSNS_PIN = 0 [23:41:10]*** Brake cut motor [23:41:10]Read from MH i2c: 01 [23:41:10]MH_I2C_Read... [23:41:10]*** Stop cut motor [23:41:10]*** Cut end [23:41:10]Read from MH i2c: 01 07 00 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: 01 07 00 0C 61 00 00 00 00 00 FF 0F 82 [23:41:10]process_action close_receipt done [23:41:10]requested_data is exist [23:41:10]produce_requested_data [23:41:10]requested_item fm.sn is exist - process it [23:41:10]wFMCommunicate request_size=4 [23:41:10]MH_SAM_APDU [23:41:10]CAPDU: 80 11 00 00 [23:41:10]Write to MH i2c: E2 08 00 0D 61 80 11 00 00 00 00 00 00 E8 [23:41:10]Write i2c OK [23:41:10]MH_I2C_Read... [23:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:10]Read from MH i2c: E2 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 17 00 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 17 00 0D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [23:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:41:10]wFMCommunicate OK [23:41:10]requested_item fd.num is exist - process it [23:41:10]SAM_PROTO_GetFieldsCounters [23:41:10]wFMCommunicate request_size=4 [23:41:10]MH_SAM_APDU [23:41:10]CAPDU: 80 13 00 00 [23:41:10]Write to MH i2c: E2 08 00 0E 61 80 13 00 00 00 00 00 00 EB [23:41:10]Write i2c OK [23:41:10]MH_I2C_Read... [23:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:10]Read from MH i2c: E2 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 62 00 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 62 00 0E 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:10]wFMCommunicate OK [23:41:10]SAM_PROTO_GetFieldsCounters done [23:41:10]requested_item shift.num is exist - process it [23:41:10]requested_item shift.opened is exist - process it [23:41:10]req_shift_opened [23:41:10]FM_GetShiftState [23:41:10]SAM_PROTO_GetShiftState [23:41:10]wFMCommunicate request_size=4 [23:41:10]MH_SAM_APDU [23:41:10]CAPDU: 80 13 01 00 [23:41:10]Write to MH i2c: E2 08 00 0F 61 80 13 01 00 00 00 00 00 ED [23:41:10]Write i2c OK [23:41:10]MH_I2C_Read... [23:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:10]Read from MH i2c: E2 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 0E 00 [23:41:10]MH_I2C_Read... [23:41:10]Read from MH i2c: E2 0E 00 0F 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 22 [23:41:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:41:10]wFMCommunicate OK [23:41:10]SAM_PROTO_GetShiftState done [23:41:10]FM_GetShiftState done [23:41:10]req_shift_opened done [23:41:10]requested_item shift.open_date is exist - process it [23:41:10]req_shift_open_date [23:41:10]req_shift_open_date done [23:41:10]produce_requested_data done [23:41:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112388,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:41:10]process_action_free close_receipt [23:41:10]json_value_free [23:41:10]json_value_free done [23:41:10]process_json_proto returns [23:41:10]Send response to host [23:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112388,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:41:10]free response buf [23:41:10]execute_script done [23:41:10]execute_script returns [23:41:10]free content buf [23:41:10]Sock 7.Close socket [23:41:10]Sock 7.Thread stoped [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]accept exits with 9 [23:45:19]New connection [23:45:19]New thread 3066813796 created [23:45:19]Thread 3066957156 joined [23:45:19]Waiting for new connection... [23:45:19] Sock 9.Parse request [23:45:19]Sock 9.Check first char [23:45:19]Sock 9.First char is OK [23:45:19]request: POST /json_proto HTTP/1.0 [23:45:19]Method: POST [23:45:19]URL: /json_proto [23:45:19]Method is POST - this is cgi request [23:45:19]url: /json_proto [23:45:19]query_string will be loaded in cgi processing [23:45:19]execute_cgi json_proto POST (null) [23:45:19]execute_cgi path=json_proto method=POST [23:45:19]POST find Content-Length [23:45:19]Host: 172.17.59.68:8080 [23:45:19]Content-Length: 677 [23:45:19]Content-Type: application/json [23:45:19] [23:45:19]POST finish read [23:45:19]Found Content-Length = 677 [23:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321068", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:45:19]execute_script... [23:45: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)321068", "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.40, "quantity" : 4.520, "sum" : 300.13, "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:45:19]POST & json_proto [23:45:19]process_json_proto [23:45:19]json parsed OK: [23:45:19]protocol is kg_v1.0 [23:45:19]action value=close_receipt [23:45:19]process_action close_receipt [23:45:19]cmd_close_receipt [23:45:19]MH_GetDate [23:45:19]Write to MH i2c: F0 00 00 10 61 60 [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: F0 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: F0 09 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: F0 09 00 10 61 00 35 62 77 66 BC EC 60 65 4A [23:45:19]GetLastDocTimeStamp 1719099705 [23:45:19]current date 1719099957 [23:45:19]FM_GetShiftState [23:45:19]SAM_PROTO_GetShiftState [23:45:19]wFMCommunicate request_size=4 [23:45:19]MH_SAM_APDU [23:45:19]CAPDU: 80 13 01 00 [23:45:19]Write to MH i2c: E2 08 00 11 61 80 13 01 00 00 00 00 00 EF [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:19]Read from MH i2c: E2 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 0E 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 0E 00 11 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 24 [23:45:19]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:45:19]wFMCommunicate OK [23:45:19]SAM_PROTO_GetShiftState done [23:45:19]FM_GetShiftState done [23:45:19]opened in 1719020067 [23:45:19]opened+sec_in_day 1719106467 [23:45:19]quantity*price = 30012 [23:45:19]sum+1 = 30014 [23:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 255 22.06.2024 23:45 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112389 ФПД: 242218560315564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T234557&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112389&fm=242218560315564&tin=02508201610067®Number=0000000000092771&sum=30000 [23:45:20]StoreToDocumentArchive [23:45:20]shift 391 fd 112389 [23:45:20]save to /storage/0391/doc_00112389 [23:45:20]save last doc name /storage/0391/doc_00112389 to /storage/kkm_last_doc_name [23:45:20]save OK [23:45:20]Clear old archive folders... [23:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:45:20]tlvbuf is 013339E0 [23:45:20]SAM_PROTO_ClearQueue [23:45:20]wFMCommunicate request_size=4 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 09 00 00 [23:45:20]Write to MH i2c: E2 08 00 1E 61 80 09 00 00 00 00 00 00 F1 [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:20]Read from MH i2c: E2 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 1E 61 00 90 00 F3 [23:45:20]RAPDU: 90 00 [23:45:20]wFMCommunicate OK [23:45:20]SAM_PROTO_ClearQueue done [23:45:20]KKMCreateOFDPacket [23:45:20]OFDProtocolAddRootSTLVToBuf [23:45:20]FM_MakeSignedData [23:45:20]FM_MakeSignedData [23:45:20]SAM_PROTO_SignData [23:45:20]wFMCommunicate request_size=4 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 0D 01 02 [23:45:20]Write to MH i2c: E2 08 00 1F 61 80 0D 01 02 00 00 00 00 F9 [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:20]Read from MH i2c: E2 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 1F 61 00 90 00 F4 [23:45:20]RAPDU: 90 00 [23:45:20]wFMCommunicate OK [23:45:20]wFMCommunicate request_size=255 [23:45:20]MH_SAM_APDU [23:45: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 62 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B7 01 00 35 04 06 00 DC [23:45:20]Write to MH i2c: E2 02 01 20 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 62 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B7 01 00 35 04 06 00 DC 00 00 DF [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:20]Read from MH i2c: E2 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 20 61 00 90 00 F5 [23:45:20]RAPDU: 90 00 [23:45:20]wFMCommunicate OK [23:45:20]wFMCommunicate request_size=10 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 0D 02 02 05 4B E7 3E E0 AC [23:45:20]Write to MH i2c: E2 0D 00 21 61 80 0D 02 02 05 00 4B E7 3E E0 AC 00 00 02 [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:20]Read from MH i2c: E2 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 21 61 00 90 00 F6 [23:45:20]RAPDU: 90 00 [23:45:20]wFMCommunicate OK [23:45:20]wFMCommunicate request_size=4 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 0D 03 02 [23:45:20]Write to MH i2c: E2 08 00 22 61 80 0D 03 02 00 00 00 00 FE [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 0B 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 0B 00 22 61 00 44 84 E1 51 E9 C8 F5 BE 90 00 5D [23:45:21]RAPDU: 44 84 E1 51 E9 C8 F5 BE 90 00 [23:45:21]wFMCommunicate OK [23:45:21]SAM_PROTO_SignData done [23:45:21]FM_MakeSignedData done [23:45:21]CreateOFDProtocolMessage [23:45:21]wFMCommunicate request_size=4 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 11 00 00 [23:45:21]Write to MH i2c: E2 08 00 23 61 80 11 00 00 00 00 00 00 FE [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 17 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 17 00 23 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [23:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:45:21]wFMCommunicate OK [23:45:21]CreateOFDProtocolMessage done [23:45:21]OFDSenderStorePacket 112389 [23:45:21]StoreOFDPacket docnum=112389 [23:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2C 7D 07 01 5B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 62 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B7 01 00 35 04 06 00 DC 4B E7 3E E0 AC 44 84 E1 51 E9 C8 F5 BE [23:45:21]CheckFolder [23:45:21]dirname=/storage/ofd_packets [23:45:21]CheckFolder done [23:45:21]ProducePacketName [23:45:21]name=ofd_packets/00112389 [23:45:21]NVStorageSaveData ofd_packets/00112389 [23:45:21]File name is /storage/ofd_packets/00112389 [23:45:21]Write 301 bytes [23:45:21]NVStorageSaveData done [23:45:21]OFDSenderStorePacket done [23:45:21]KKMCreateOFDPacket done [23:45:21]NVStorageSaveData kkm_last_timestamp [23:45:21]File name is /storage/kkm_last_timestamp [23:45:21]Write 4 bytes [23:45:21]NVStorageSaveData done [23:45:21]ExternCall_PrintAddStr [23:45:21]wPrintStart [23:45:21]Write to MH i2c: 01 00 00 24 61 85 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 24 61 00 00 00 00 00 FF 0F 9A [23:45:21]RasterBufferAndPrint [23:45:21]line Счет N : (1)321068 [23:45:21]line ИНН: 02508201610067 [23:45:21]line Контрольно-Кассовый Чек [23:45:21]line ПРОДАЖА [23:45:21]line ТРК (МРК, ГНК) : 11 [23:45:21]line Товар: 2710124130 [23:45:21]line Аи-92-К-5 [23:45:21]line 4.520 * 66.40 [23:45:21]line = 300.13 [23:45:21]line НДС 12% НСП 1% [23:45:21]line > о реализуемом товаре [23:45:21]line ОКРУГЛЕНИЕ: -0.13 [23:45:21]line ИТОГО: 300.00 [23:45:21]line Внесено: 300.00 [23:45:21]line СДАЧА: 0.00 [23:45:21]line НСП 1% : 2.66 [23:45:21]line НДС 12% : 31.87 [23:45:21]line Наличными: 300.00 [23:45:21]line Безнал.: 0.00 [23:45:21]line Место: АЗС № 65 "Партнер Нефть" [23:45:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:45:21]line СНО: Общий режим [23:45:21]line Чек 255 22.06.2024 23:45 [23:45:21]line Смена: 391 ФФД: 1.0 [23:45:21]line ЗНМ: 0300000198 [23:45:21]line РНМ: 0000000000092771 [23:45:21]line Версия ККМ: 001 [23:45:21]line ФМ: 0000000000875083 [23:45:21]line ФД: 112389 [23:45:21]line ФПД: 242218560315564 [23:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T234557&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112389&fm=242218560315564&tin=02508201610067®Number=0000000000092771&sum=30000 [23:45:21]OFD Sender: Processing packet 112389 [packets to send 38, broken 37] [23:45:21]ProducePacketName [23:45:21]name=ofd_packets/00112389 [23:45:21]OFD Sender: To server: pG, [23:45:21]CommunicateWithHost lk.salyk.kg:30040 [23:45:21]ConnectInit lk.salyk.kg [23:45:21]written 0, free lines is 4095 [23:45:21]Connected sock=10 [23:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2C 7D 07 01 5B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 62 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B7 01 00 35 04 06 00 DC 4B E7 3E E0 AC 44 84 E1 51 E9 C8 F5 BE [23:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 32 47 00 50 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B7 01 00 F4 03 04 00 33 F9 76 66 B6 04 01 00 00 BD 82 C0 8E 5C 3A 7A 06 [23:45:21]CommunicateWithHost err = 0 [23:45:21]CheckOFDResponse [23:45:21]1017 (14) - 77093643461234 [23:45:21]1041 (16) - 0000000000875083 [23:45:21]1040 (4) - 112389 [23:45:21]1012 (4) - 22.06.2024 16:17 [23:45:21]1206 (1) - 0 [23:45:21]OFD Sender: Remove packet 112389 [23:45:21]ProducePacketName [23:45:21]name=ofd_packets/00112389 [23:45:21]NVStorageDeleteData [23:45:21]Write to MH i2c: 01 00 00 4F 61 B0 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 4F 61 00 00 00 00 00 CD 0C 90 [23:45:21]RasterBufferAndPrint [23:45:21]line [23:45:21]line [23:45:21]line [23:45:21]line [23:45:21]line [23:45:21]written 0, free lines is 3281 [23:45:21]MH_Cut [23:45:21]Write to MH i2c: D1 01 00 56 61 01 89 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: D1 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: D1 01 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: D1 01 00 56 61 00 88 [23:45:21]Write to MH i2c: 01 00 00 57 61 B8 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:22]OFD Sender: No OFD packet to send [23:45:22]*** Cut start [23:45:22]*** Partial cut [23:45:22]*** CUTSNS_PIN = 1 [23:45:22]*** CUTSNS_PIN = 0 [23:45:22]*** Brake cut motor [23:45:23]Read from MH i2c: 01 [23:45:23]MH_I2C_Read... [23:45:23]*** Stop cut motor [23:45:23]*** Cut end [23:45:23]Read from MH i2c: 01 07 00 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: 01 07 00 57 61 00 00 00 00 00 FF 0F CD [23:45:23]process_action close_receipt done [23:45:23]requested_data is exist [23:45:23]produce_requested_data [23:45:23]requested_item fm.sn is exist - process it [23:45:23]wFMCommunicate request_size=4 [23:45:23]MH_SAM_APDU [23:45:23]CAPDU: 80 11 00 00 [23:45:23]Write to MH i2c: E2 08 00 58 61 80 11 00 00 00 00 00 00 33 [23:45:23]Write i2c OK [23:45:23]MH_I2C_Read... [23:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:23]Read from MH i2c: E2 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: E2 17 00 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: E2 17 00 58 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [23:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:45:23]wFMCommunicate OK [23:45:23]requested_item fd.num is exist - process it [23:45:23]SAM_PROTO_GetFieldsCounters [23:45:23]wFMCommunicate request_size=4 [23:45:23]MH_SAM_APDU [23:45:23]CAPDU: 80 13 00 00 [23:45:23]Write to MH i2c: E2 08 00 59 61 80 13 00 00 00 00 00 00 36 [23:45:23]Write i2c OK [23:45:23]MH_I2C_Read... [23:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:23]Read from MH i2c: E2 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: E2 62 00 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: E2 62 00 59 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [23:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:23]wFMCommunicate OK [23:45:23]SAM_PROTO_GetFieldsCounters done [23:45:23]requested_item shift.num is exist - process it [23:45:23]requested_item shift.opened is exist - process it [23:45:23]req_shift_opened [23:45:23]FM_GetShiftState [23:45:23]SAM_PROTO_GetShiftState [23:45:23]wFMCommunicate request_size=4 [23:45:23]MH_SAM_APDU [23:45:23]CAPDU: 80 13 01 00 [23:45:23]Write to MH i2c: E2 08 00 5A 61 80 13 01 00 00 00 00 00 38 [23:45:23]Write i2c OK [23:45:23]MH_I2C_Read... [23:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:23]Read from MH i2c: E2 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: E2 0E 00 [23:45:23]MH_I2C_Read... [23:45:23]Read from MH i2c: E2 0E 00 5A 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6D [23:45:23]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:45:23]wFMCommunicate OK [23:45:23]SAM_PROTO_GetShiftState done [23:45:23]FM_GetShiftState done [23:45:23]req_shift_opened done [23:45:23]requested_item shift.open_date is exist - process it [23:45:23]req_shift_open_date [23:45:23]req_shift_open_date done [23:45:23]produce_requested_data done [23:45:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112389,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:45:23]process_action_free close_receipt [23:45:23]json_value_free [23:45:23]json_value_free done [23:45:23]process_json_proto returns [23:45:23]Send response to host [23:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112389,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:45:23]free response buf [23:45:23]execute_script done [23:45:23]execute_script returns [23:45:23]free content buf [23:45:23]Sock 9.Close socket [23:45:23]Sock 9.Thread stoped [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:21]accept exits with 7 [23:56:21]New connection [23:56:21]New thread 3066957156 created [23:56:21]Thread 3066813796 joined [23:56:21]Waiting for new connection... [23:56:21] Sock 7.Parse request [23:56:21]Sock 7.Check first char [23:56:21]Sock 7.First char is OK [23:56:21]request: POST /json_proto HTTP/1.0 [23:56:21]Method: POST [23:56:21]URL: /json_proto [23:56:21]Method is POST - this is cgi request [23:56:21]url: /json_proto [23:56:21]query_string will be loaded in cgi processing [23:56:21]execute_cgi json_proto POST (null) [23:56:21]execute_cgi path=json_proto method=POST [23:56:21]POST find Content-Length [23:56:21]Host: 172.17.59.68:8080 [23:56:21]Content-Length: 677 [23:56:21]Content-Type: application/json [23:56:21] [23:56:21]POST finish read [23:56:21]Found Content-Length = 677 [23:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321069", "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.40, "quantity" : 3.020, "sum" : 200.53, "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" ] } } [23:56:21]execute_script... [23:56:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321069", "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.40, "quantity" : 3.020, "sum" : 200.53, "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" ] } } [23:56:21]POST & json_proto [23:56:21]process_json_proto [23:56:21]json parsed OK: [23:56:21]protocol is kg_v1.0 [23:56:21]action value=close_receipt [23:56:21]process_action close_receipt [23:56:21]cmd_close_receipt [23:56:21]MH_GetDate [23:56:21]Write to MH i2c: F0 00 00 5B 61 AB [23:56:21]Write i2c OK [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: F0 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: F0 09 00 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: F0 09 00 5B 61 00 CB 64 77 66 BC EC 60 65 2D [23:56:21]GetLastDocTimeStamp 1719099957 [23:56:21]current date 1719100619 [23:56:21]FM_GetShiftState [23:56:21]SAM_PROTO_GetShiftState [23:56:21]wFMCommunicate request_size=4 [23:56:21]MH_SAM_APDU [23:56:21]CAPDU: 80 13 01 00 [23:56:21]Write to MH i2c: E2 08 00 5C 61 80 13 01 00 00 00 00 00 3A [23:56:21]Write i2c OK [23:56:21]MH_I2C_Read... [23:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:21]Read from MH i2c: E2 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 0E 00 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 0E 00 5C 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6F [23:56:21]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:56:21]wFMCommunicate OK [23:56:21]SAM_PROTO_GetShiftState done [23:56:21]FM_GetShiftState done [23:56:21]opened in 1719020067 [23:56:21]opened+sec_in_day 1719106467 [23:56:21]quantity*price = 20052 [23:56:21]sum+1 = 20054 [23:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 256 22.06.2024 23:57 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112390 ФПД: 173425031149315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T235700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112390&fm=173425031149315&tin=02508201610067®Number=0000000000092771&sum=20000 [23:56:22]StoreToDocumentArchive [23:56:22]shift 391 fd 112390 [23:56:22]save to /storage/0391/doc_00112390 [23:56:22]save last doc name /storage/0391/doc_00112390 to /storage/kkm_last_doc_name [23:56:22]save OK [23:56:22]Clear old archive folders... [23:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:56:22]tlvbuf is 011F16D0 [23:56:22]SAM_PROTO_ClearQueue [23:56:22]wFMCommunicate request_size=4 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 09 00 00 [23:56:22]Write to MH i2c: E2 08 00 69 61 80 09 00 00 00 00 00 00 3C [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 69 61 00 90 00 3E [23:56:22]RAPDU: 90 00 [23:56:22]wFMCommunicate OK [23:56:22]SAM_PROTO_ClearQueue done [23:56:22]KKMCreateOFDPacket [23:56:22]OFDProtocolAddRootSTLVToBuf [23:56:22]FM_MakeSignedData [23:56:22]FM_MakeSignedData [23:56:22]SAM_PROTO_SignData [23:56:22]wFMCommunicate request_size=4 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 0D 01 02 [23:56:22]Write to MH i2c: E2 08 00 6A 61 80 0D 01 02 00 00 00 00 44 [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 6A 61 00 90 00 3F [23:56:22]RAPDU: 90 00 [23:56:22]wFMCommunicate OK [23:56:22]wFMCommunicate request_size=255 [23:56:22]MH_SAM_APDU [23:56: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CC 64 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B7 01 00 35 04 06 00 9D [23:56:22]Write to MH i2c: E2 02 01 6B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CC 64 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B7 01 00 35 04 06 00 9D 00 00 A8 [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 6B 61 00 90 00 40 [23:56:22]RAPDU: 90 00 [23:56:22]wFMCommunicate OK [23:56:22]wFMCommunicate request_size=10 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 0D 02 02 05 BA A9 60 77 03 [23:56:22]Write to MH i2c: E2 0D 00 6C 61 80 0D 02 02 05 00 BA A9 60 77 03 00 00 8E [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 03 00 6C 61 00 90 00 41 [23:56:22]RAPDU: 90 00 [23:56:22]wFMCommunicate OK [23:56:22]wFMCommunicate request_size=4 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 0D 03 02 [23:56:22]Write to MH i2c: E2 08 00 6D 61 80 0D 03 02 00 00 00 00 49 [23:56:22]OFD Sender: No OFD packet to send [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 0B 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 0B 00 6D 61 00 17 60 98 1F AF C9 AB 6F 90 00 0A [23:56:22]RAPDU: 17 60 98 1F AF C9 AB 6F 90 00 [23:56:22]wFMCommunicate OK [23:56:22]SAM_PROTO_SignData done [23:56:22]FM_MakeSignedData done [23:56:22]CreateOFDProtocolMessage [23:56:22]wFMCommunicate request_size=4 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 11 00 00 [23:56:22]Write to MH i2c: E2 08 00 6E 61 80 11 00 00 00 00 00 00 49 [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 17 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 17 00 6E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [23:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:56:22]wFMCommunicate OK [23:56:22]CreateOFDProtocolMessage done [23:56:22]OFDSenderStorePacket 112390 [23:56:22]StoreOFDPacket docnum=112390 [23:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 6A 07 01 A0 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CC 64 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B7 01 00 35 04 06 00 9D BA A9 60 77 03 17 60 98 1F AF C9 AB 6F [23:56:22]CheckFolder [23:56:22]dirname=/storage/ofd_packets [23:56:22]CheckFolder done [23:56:22]ProducePacketName [23:56:22]name=ofd_packets/00112390 [23:56:22]NVStorageSaveData ofd_packets/00112390 [23:56:22]File name is /storage/ofd_packets/00112390 [23:56:22]Write 301 bytes [23:56:22]NVStorageSaveData done [23:56:22]OFDSenderStorePacket done [23:56:22]KKMCreateOFDPacket done [23:56:22]NVStorageSaveData kkm_last_timestamp [23:56:22]File name is /storage/kkm_last_timestamp [23:56:22]Write 4 bytes [23:56:22]NVStorageSaveData done [23:56:22]ExternCall_PrintAddStr [23:56:22]wPrintStart [23:56:22]Write to MH i2c: 01 00 00 6F 61 D0 [23:56:22]OFD Sender: Processing packet 112390 [packets to send 38, broken 37] [23:56:22]ProducePacketName [23:56:22]name=ofd_packets/00112390 [23:56:22]OFD Sender: To server: pG, [23:56:22]CommunicateWithHost lk.salyk.kg:30040 [23:56:22]ConnectInit lk.salyk.kg [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: 01 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: 01 07 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: 01 07 00 6F 61 00 00 00 00 00 FF 0F E5 [23:56:22]RasterBufferAndPrint [23:56:22]line Счет N : (1)321069 [23:56:22]line ИНН: 02508201610067 [23:56:22]line Контрольно-Кассовый Чек [23:56:22]line ПРОДАЖА [23:56:22]line ТРК (МРК, ГНК) : 11 [23:56:22]line Товар: 2710124130 [23:56:22]line Аи-92-К-5 [23:56:22]line 3.020 * 66.40 [23:56:22]line = 200.53 [23:56:22]line НДС 12% НСП 1% [23:56:22]line > о реализуемом товаре [23:56:22]line ОКРУГЛЕНИЕ: -0.53 [23:56:22]line ИТОГО: 200.00 [23:56:22]line Внесено: 200.00 [23:56:22]line СДАЧА: 0.00 [23:56:22]line НСП 1% : 1.77 [23:56:22]line НДС 12% : 21.29 [23:56:22]line Наличными: 200.00 [23:56:22]line Безнал.: 0.00 [23:56:22]line Место: АЗС № 65 "Партнер Нефть" [23:56:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:56:22]line СНО: Общий режим [23:56:22]line Чек 256 22.06.2024 23:57 [23:56:22]line Смена: 391 ФФД: 1.0 [23:56:22]line ЗНМ: 0300000198 [23:56:22]line РНМ: 0000000000092771 [23:56:22]line Версия ККМ: 001 [23:56:22]line ФМ: 0000000000875083 [23:56:22]line ФД: 112390 [23:56:22]line ФПД: 173425031149315 [23:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T235700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112390&fm=173425031149315&tin=02508201610067®Number=0000000000092771&sum=20000 [23:56:23]Connected sock=10 [23:56:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 6A 07 01 A0 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CC 64 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B7 01 00 35 04 06 00 9D BA A9 60 77 03 17 60 98 1F AF C9 AB 6F [23:56:23]written 0, free lines is 4095 [23:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 8C 47 00 92 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B7 01 00 F4 03 04 00 C9 FB 76 66 B6 04 01 00 00 61 42 70 44 50 9D 2F 8B [23:56:23]CommunicateWithHost err = 0 [23:56:23]CheckOFDResponse [23:56:23]1017 (14) - 77093643461234 [23:56:23]1041 (16) - 0000000000875083 [23:56:23]1040 (4) - 112390 [23:56:23]1012 (4) - 22.06.2024 16:28 [23:56:23]1206 (1) - 0 [23:56:23]OFD Sender: Remove packet 112390 [23:56:23]ProducePacketName [23:56:23]name=ofd_packets/00112390 [23:56:23]NVStorageDeleteData [23:56:23]Write to MH i2c: 01 00 00 9A 61 FB [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 07 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 07 00 9A 61 00 00 00 00 00 C5 0C D3 [23:56:23]RasterBufferAndPrint [23:56:23]line [23:56:23]line [23:56:23]line [23:56:23]line [23:56:23]line [23:56:23]written 0, free lines is 3275 [23:56:23]MH_Cut [23:56:23]Write to MH i2c: D1 01 00 A1 61 01 D4 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: D1 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: D1 01 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: D1 01 00 A1 61 00 D3 [23:56:23]Write to MH i2c: 01 00 00 A2 61 03 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]OFD Sender: No OFD packet to send [23:56:24]*** Cut start [23:56:24]*** Partial cut [23:56:24]*** CUTSNS_PIN = 1 [23:56:24]*** CUTSNS_PIN = 0 [23:56:24]*** Brake cut motor [23:56:25]Read from MH i2c: 01 [23:56:25]MH_I2C_Read... [23:56:25]*** Stop cut motor [23:56:25]*** Cut end [23:56:25]Read from MH i2c: 01 07 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: 01 07 00 A2 61 00 00 00 00 00 FF 0F 18 [23:56:25]process_action close_receipt done [23:56:25]requested_data is exist [23:56:25]produce_requested_data [23:56:25]requested_item fm.sn is exist - process it [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 11 00 00 [23:56:25]Write to MH i2c: E2 08 00 A3 61 80 11 00 00 00 00 00 00 7E [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 A3 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [23:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:56:25]wFMCommunicate OK [23:56:25]requested_item fd.num is exist - process it [23:56:25]SAM_PROTO_GetFieldsCounters [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 00 00 [23:56:25]Write to MH i2c: E2 08 00 A4 61 80 13 00 00 00 00 00 00 81 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 A4 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [23:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:25]wFMCommunicate OK [23:56:25]SAM_PROTO_GetFieldsCounters done [23:56:25]requested_item shift.num is exist - process it [23:56:25]requested_item shift.opened is exist - process it [23:56:25]req_shift_opened [23:56:25]FM_GetShiftState [23:56:25]SAM_PROTO_GetShiftState [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 01 00 [23:56:25]Write to MH i2c: E2 08 00 A5 61 80 13 01 00 00 00 00 00 83 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 0E 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 0E 00 A5 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 B8 [23:56:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [23:56:25]wFMCommunicate OK [23:56:25]SAM_PROTO_GetShiftState done [23:56:25]FM_GetShiftState done [23:56:25]req_shift_opened done [23:56:25]requested_item shift.open_date is exist - process it [23:56:25]req_shift_open_date [23:56:25]req_shift_open_date done [23:56:25]produce_requested_data done [23:56:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112390,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [23:56:25]process_action_free close_receipt [23:56:25]json_value_free [23:56:25]json_value_free done [23:56:25]process_json_proto returns [23:56:25]Send response to host [23:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112390,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [23:56:25]free response buf [23:56:25]execute_script done [23:56:25]execute_script returns [23:56:25]free content buf [23:56:25]Sock 7.Close socket [23:56:25]Sock 7.Thread stoped [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:43]accept exits with 9 [00:09:43]New connection [00:09:43]New thread 3066813796 created [00:09:43]Thread 3066957156 joined [00:09:43]Waiting for new connection... [00:09:43] Sock 9.Parse request [00:09:43]Sock 9.Check first char [00:09:43]Sock 9.First char is OK [00:09:43]request: POST /json_proto HTTP/1.0 [00:09:43]Method: POST [00:09:43]URL: /json_proto [00:09:43]Method is POST - this is cgi request [00:09:43]url: /json_proto [00:09:43]query_string will be loaded in cgi processing [00:09:43]execute_cgi json_proto POST (null) [00:09:43]execute_cgi path=json_proto method=POST [00:09:43]POST find Content-Length [00:09:43]Host: 172.17.59.68:8080 [00:09:43]Content-Length: 682 [00:09:43]Content-Type: application/json [00:09:43] [00:09:43]POST finish read [00:09:43]Found Content-Length = 682 [00:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321070", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:43]execute_script... [00:09: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)321070", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:43]POST & json_proto [00:09:43]process_json_proto [00:09:43]json parsed OK: [00:09:43]protocol is kg_v1.0 [00:09:43]action value=close_receipt [00:09:43]process_action close_receipt [00:09:43]cmd_close_receipt [00:09:43]MH_GetDate [00:09:43]Write to MH i2c: F0 00 00 A6 61 F6 [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: F0 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: F0 09 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: F0 09 00 A6 61 00 EE 67 77 66 BC EC 60 65 9E [00:09:43]GetLastDocTimeStamp 1719100620 [00:09:43]current date 1719101422 [00:09:43]FM_GetShiftState [00:09:43]SAM_PROTO_GetShiftState [00:09:43]wFMCommunicate request_size=4 [00:09:43]MH_SAM_APDU [00:09:43]CAPDU: 80 13 01 00 [00:09:43]Write to MH i2c: E2 08 00 A7 61 80 13 01 00 00 00 00 00 85 [00:09:43]Write i2c OK [00:09:43]MH_I2C_Read... [00:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:43]Read from MH i2c: E2 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 0E 00 [00:09:43]MH_I2C_Read... [00:09:43]Read from MH i2c: E2 0E 00 A7 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 BA [00:09:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [00:09:43]wFMCommunicate OK [00:09:43]SAM_PROTO_GetShiftState done [00:09:43]FM_GetShiftState done [00:09:43]opened in 1719020067 [00:09:43]opened+sec_in_day 1719106467 [00:09:43]quantity*price = 100064 [00:09:43]sum+1 = 100066 [00:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 257 23.06.2024 00:10 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112391 ФПД: 199614740288983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T001022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112391&fm=199614740288983&tin=02508201610067®Number=0000000000092771&sum=100000 [00:09:44]StoreToDocumentArchive [00:09:44]shift 391 fd 112391 [00:09:44]save to /storage/0391/doc_00112391 [00:09:44]save last doc name /storage/0391/doc_00112391 to /storage/kkm_last_doc_name [00:09:44]save OK [00:09:44]Clear old archive folders... [00:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:44]tlvbuf is 0114BA90 [00:09:44]SAM_PROTO_ClearQueue [00:09:44]wFMCommunicate request_size=4 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 09 00 00 [00:09:44]Write to MH i2c: E2 08 00 B4 61 80 09 00 00 00 00 00 00 87 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 03 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 03 00 B4 61 00 90 00 89 [00:09:44]RAPDU: 90 00 [00:09:44]wFMCommunicate OK [00:09:44]SAM_PROTO_ClearQueue done [00:09:44]KKMCreateOFDPacket [00:09:44]OFDProtocolAddRootSTLVToBuf [00:09:44]FM_MakeSignedData [00:09:44]FM_MakeSignedData [00:09:44]SAM_PROTO_SignData [00:09:44]wFMCommunicate request_size=4 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 0D 01 02 [00:09:44]Write to MH i2c: E2 08 00 B5 61 80 0D 01 02 00 00 00 00 8F [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 03 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 03 00 B5 61 00 90 00 8A [00:09:44]RAPDU: 90 00 [00:09:44]wFMCommunicate OK [00:09:44]wFMCommunicate request_size=255 [00:09:44]MH_SAM_APDU [00:09: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 EE 67 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B7 01 00 35 04 06 00 B5 [00:09:44]Write to MH i2c: E2 02 01 B6 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 EE 67 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B7 01 00 35 04 06 00 B5 00 00 C3 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 B6 61 00 90 00 8B [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=10 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 02 02 05 8C 6D AF D5 D7 [00:09:45]Write to MH i2c: E2 0D 00 B7 61 80 0D 02 02 05 00 8C 6D AF D5 D7 00 00 F0 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 B7 61 00 90 00 8C [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 03 02 [00:09:45]Write to MH i2c: E2 08 00 B8 61 80 0D 03 02 00 00 00 00 94 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 B8 61 00 51 59 9A E4 B4 92 12 AF 90 00 C4 [00:09:45]RAPDU: 51 59 9A E4 B4 92 12 AF 90 00 [00:09:45]wFMCommunicate OK [00:09:45]SAM_PROTO_SignData done [00:09:45]FM_MakeSignedData done [00:09:45]CreateOFDProtocolMessage [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 11 00 00 [00:09:45]Write to MH i2c: E2 08 00 B9 61 80 11 00 00 00 00 00 00 94 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 17 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 17 00 B9 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [00:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:09:45]wFMCommunicate OK [00:09:45]CreateOFDProtocolMessage done [00:09:45]OFDSenderStorePacket 112391 [00:09:45]StoreOFDPacket docnum=112391 [00:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 85 07 01 C9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 EE 67 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B7 01 00 35 04 06 00 B5 8C 6D AF D5 D7 51 59 9A E4 B4 92 12 AF [00:09:45]CheckFolder [00:09:45]dirname=/storage/ofd_packets [00:09:45]CheckFolder done [00:09:45]ProducePacketName [00:09:45]name=ofd_packets/00112391 [00:09:45]NVStorageSaveData ofd_packets/00112391 [00:09:45]File name is /storage/ofd_packets/00112391 [00:09:45]Write 301 bytes [00:09:45]NVStorageSaveData done [00:09:45]OFDSenderStorePacket done [00:09:45]KKMCreateOFDPacket done [00:09:45]NVStorageSaveData kkm_last_timestamp [00:09:45]File name is /storage/kkm_last_timestamp [00:09:45]Write 4 bytes [00:09:45]NVStorageSaveData done [00:09:45]ExternCall_PrintAddStr [00:09:45]wPrintStart [00:09:45]Write to MH i2c: 01 00 00 BA 61 1B [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 07 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 07 00 BA 61 00 00 00 00 00 FF 0F 30 [00:09:45]RasterBufferAndPrint [00:09:45]line Счет N : (1)321070 [00:09:45]line ИНН: 02508201610067 [00:09:45]line Контрольно-Кассовый Чек [00:09:45]line ПРОДАЖА [00:09:45]line ТРК (МРК, ГНК) : 11 [00:09:45]line Товар: 2710124130 [00:09:45]line Аи-92-К-5 [00:09:45]line 15.070 * 66.40 [00:09:45]line = 1000.65 [00:09:45]line НДС 12% НСП 1% [00:09:45]line > о реализуемом товаре [00:09:45]line ОКРУГЛЕНИЕ: -0.65 [00:09:45]line ИТОГО: 1000.00 [00:09:45]line Внесено: 1000.00 [00:09:45]line СДАЧА: 0.00 [00:09:45]line НСП 1% : 8.85 [00:09:45]line НДС 12% : 106.26 [00:09:45]line Наличными: 1000.00 [00:09:45]line Безнал.: 0.00 [00:09:45]line Место: АЗС № 65 "Партнер Нефть" [00:09:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:09:45]line СНО: Общий режим [00:09:45]line Чек 257 23.06.2024 00:10 [00:09:45]line Смена: 391 ФФД: 1.0 [00:09:45]line ЗНМ: 0300000198 [00:09:45]line РНМ: 0000000000092771 [00:09:45]line Версия ККМ: 001 [00:09:45]line ФМ: 0000000000875083 [00:09:45]line ФД: 112391 [00:09:45]line ФПД: 199614740288983 [00:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T001022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112391&fm=199614740288983&tin=02508201610067®Number=0000000000092771&sum=100000 [00:09:45]OFD Sender: Processing packet 112391 [packets to send 38, broken 37] [00:09:45]ProducePacketName [00:09:45]name=ofd_packets/00112391 [00:09:45]OFD Sender: To server: pG, [00:09:45]CommunicateWithHost lk.salyk.kg:30040 [00:09:45]ConnectInit lk.salyk.kg [00:09:45]written 0, free lines is 4095 [00:09:45]Connected sock=10 [00:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 85 07 01 C9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 EE 67 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B7 01 00 35 04 06 00 B5 8C 6D AF D5 D7 51 59 9A E4 B4 92 12 AF [00:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8B 1F 47 00 9C A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B7 01 00 F4 03 04 00 EC FE 76 66 B6 04 01 00 00 CB 70 D6 03 47 0A 9B CF [00:09:45]CommunicateWithHost err = 0 [00:09:45]CheckOFDResponse [00:09:45]1017 (14) - 77093643461234 [00:09:45]1041 (16) - 0000000000875083 [00:09:45]1040 (4) - 112391 [00:09:45]1012 (4) - 22.06.2024 16:42 [00:09:45]1206 (1) - 0 [00:09:45]OFD Sender: Remove packet 112391 [00:09:45]ProducePacketName [00:09:45]name=ofd_packets/00112391 [00:09:45]NVStorageDeleteData [00:09:46]Write to MH i2c: 01 00 00 E5 61 46 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 E5 61 00 00 00 00 00 CE 0C 27 [00:09:46]RasterBufferAndPrint [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]written 0, free lines is 3286 [00:09:46]MH_Cut [00:09:46]Write to MH i2c: D1 01 00 EC 61 01 1F [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 01 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 01 00 EC 61 00 1E [00:09:46]Write to MH i2c: 01 00 00 ED 61 4E [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]OFD Sender: No OFD packet to send [00:09:46]*** Cut start [00:09:46]*** Partial cut [00:09:46]*** CUTSNS_PIN = 1 [00:09:46]*** CUTSNS_PIN = 0 [00:09:47]*** Brake cut motor [00:09:47]Read from MH i2c: 01 [00:09:47]MH_I2C_Read... [00:09:47]*** Stop cut motor [00:09:47]*** Cut end [00:09:47]Read from MH i2c: 01 07 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: 01 07 00 ED 61 00 00 00 00 00 FF 0F 63 [00:09:47]process_action close_receipt done [00:09:47]requested_data is exist [00:09:47]produce_requested_data [00:09:47]requested_item fm.sn is exist - process it [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 11 00 00 [00:09:47]Write to MH i2c: E2 08 00 EE 61 80 11 00 00 00 00 00 00 C9 [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 17 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 17 00 EE 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [00:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:09:47]wFMCommunicate OK [00:09:47]requested_item fd.num is exist - process it [00:09:47]SAM_PROTO_GetFieldsCounters [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 13 00 00 [00:09:47]Write to MH i2c: E2 08 00 EF 61 80 13 00 00 00 00 00 00 CC [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 62 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 62 00 EF 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [00:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:47]wFMCommunicate OK [00:09:47]SAM_PROTO_GetFieldsCounters done [00:09:47]requested_item shift.num is exist - process it [00:09:47]requested_item shift.opened is exist - process it [00:09:47]req_shift_opened [00:09:47]FM_GetShiftState [00:09:47]SAM_PROTO_GetShiftState [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 13 01 00 [00:09:47]Write to MH i2c: E2 08 00 F0 61 80 13 01 00 00 00 00 00 CE [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 0E 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 0E 00 F0 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 03 [00:09:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [00:09:47]wFMCommunicate OK [00:09:47]SAM_PROTO_GetShiftState done [00:09:47]FM_GetShiftState done [00:09:47]req_shift_opened done [00:09:47]requested_item shift.open_date is exist - process it [00:09:47]req_shift_open_date [00:09:47]req_shift_open_date done [00:09:47]produce_requested_data done [00:09:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112391,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [00:09:47]process_action_free close_receipt [00:09:47]json_value_free [00:09:47]json_value_free done [00:09:47]process_json_proto returns [00:09:47]Send response to host [00:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112391,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [00:09:47]free response buf [00:09:47]execute_script done [00:09:47]execute_script returns [00:09:47]free content buf [00:09:47]Sock 9.Close socket [00:09:47]Sock 9.Thread stoped [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:39]accept exits with 7 [00:33:39]New connection [00:33:39]New thread 3066957156 created [00:33:39]Thread 3066813796 joined [00:33:39]Waiting for new connection... [00:33:39] Sock 7.Parse request [00:33:39]Sock 7.Check first char [00:33:39]Sock 7.First char is OK [00:33:39]request: POST /json_proto HTTP/1.0 [00:33:39]Method: POST [00:33:39]URL: /json_proto [00:33:39]Method is POST - this is cgi request [00:33:39]url: /json_proto [00:33:39]query_string will be loaded in cgi processing [00:33:39]execute_cgi json_proto POST (null) [00:33:39]execute_cgi path=json_proto method=POST [00:33:39]POST find Content-Length [00:33:39]Host: 172.17.59.68:8080 [00:33:39]Content-Length: 808 [00:33:39]Content-Type: application/json [00:33:39] [00:33:39]POST finish read [00:33:39]Found Content-Length = 808 [00:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321071", "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.40, "quantity" : 37.640, "sum" : 2499.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2499.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:39]execute_script... [00:33: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)321071", "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.40, "quantity" : 37.640, "sum" : 2499.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2499.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:39]POST & json_proto [00:33:39]process_json_proto [00:33:39]json parsed OK: [00:33:39]protocol is kg_v1.0 [00:33:39]action value=close_receipt [00:33:39]process_action close_receipt [00:33:39]cmd_close_receipt [00:33:39]MH_GetDate [00:33:39]Write to MH i2c: F0 00 00 F1 61 41 [00:33:39]Write i2c OK [00:33:39]MH_I2C_Read... [00:33:39]Read from MH i2c: F0 [00:33:39]MH_I2C_Read... [00:33:39]Read from MH i2c: F0 09 00 [00:33:39]MH_I2C_Read... [00:33:39]Read from MH i2c: F0 09 00 F1 61 00 8A 6D 77 66 BC EC 60 65 8B [00:33:39]GetLastDocTimeStamp 1719101422 [00:33:39]current date 1719102858 [00:33:39]FM_GetShiftState [00:33:39]SAM_PROTO_GetShiftState [00:33:39]wFMCommunicate request_size=4 [00:33:39]MH_SAM_APDU [00:33:39]CAPDU: 80 13 01 00 [00:33:39]Write to MH i2c: E2 08 00 F2 61 80 13 01 00 00 00 00 00 D0 [00:33:39]Write i2c OK [00:33:39]MH_I2C_Read... [00:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:39]Read from MH i2c: E2 [00:33:39]MH_I2C_Read... [00:33:39]Read from MH i2c: E2 0E 00 [00:33:39]MH_I2C_Read... [00:33:39]Read from MH i2c: E2 0E 00 F2 61 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 05 [00:33:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [00:33:39]wFMCommunicate OK [00:33:39]SAM_PROTO_GetShiftState done [00:33:39]FM_GetShiftState done [00:33:39]opened in 1719020067 [00:33:39]opened+sec_in_day 1719106467 [00:33:39]quantity*price = 249929 [00:33:39]sum+1 = 249931 [00:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2499.30 НСП 1% : 22.12 НДС 12% : 265.41 Наличными: 0.00 Безнал.: 2499.30 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 258 23.06.2024 00:34 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112392 ФПД: 97886673985652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T003418&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112392&fm=97886673985652&tin=02508201610067®Number=0000000000092771&sum=249930 [00:33:40]StoreToDocumentArchive [00:33:40]shift 391 fd 112392 [00:33:40]save to /storage/0391/doc_00112392 [00:33:40]save last doc name /storage/0391/doc_00112392 to /storage/kkm_last_doc_name [00:33:40]save OK [00:33:40]Clear old archive folders... [00:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:33:40]tlvbuf is 013079C0 [00:33:40]SAM_PROTO_ClearQueue [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 09 00 00 [00:33:40]Write to MH i2c: E2 08 00 FF 61 80 09 00 00 00 00 00 00 D2 [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 FF 61 00 90 00 D4 [00:33:40]RAPDU: 90 00 [00:33:40]wFMCommunicate OK [00:33:40]SAM_PROTO_ClearQueue done [00:33:40]KKMCreateOFDPacket [00:33:40]OFDProtocolAddRootSTLVToBuf [00:33:40]FM_MakeSignedData [00:33:40]FM_MakeSignedData [00:33:40]SAM_PROTO_SignData [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 0D 01 02 [00:33:40]Write to MH i2c: E2 08 00 00 62 80 0D 01 02 00 00 00 00 DB [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 00 62 00 90 00 D6 [00:33:40]RAPDU: 90 00 [00:33:40]wFMCommunicate OK [00:33:40]wFMCommunicate request_size=255 [00:33:40]MH_SAM_APDU [00:33: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 08 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8A 6D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B7 01 00 35 04 06 00 59 [00:33:40]Write to MH i2c: E2 02 01 01 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8A 6D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B7 01 00 35 04 06 00 59 00 00 18 [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 01 62 00 90 00 D7 [00:33:40]RAPDU: 90 00 [00:33:40]wFMCommunicate OK [00:33:40]wFMCommunicate request_size=10 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 0D 02 02 05 07 04 6E 60 74 [00:33:40]Write to MH i2c: E2 0D 00 02 62 80 0D 02 02 05 00 07 04 6E 60 74 00 00 35 [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 03 00 02 62 00 90 00 D8 [00:33:40]RAPDU: 90 00 [00:33:40]wFMCommunicate OK [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 0D 03 02 [00:33:40]Write to MH i2c: E2 08 00 03 62 80 0D 03 02 00 00 00 00 E0 [00:33:40]Write i2c OK [00:33:40]MH_I2C_Read... [00:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:40]Read from MH i2c: E2 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 0B 00 [00:33:40]MH_I2C_Read... [00:33:40]Read from MH i2c: E2 0B 00 03 62 00 DE 93 79 4B 8C FF 91 C9 90 00 FB [00:33:40]RAPDU: DE 93 79 4B 8C FF 91 C9 90 00 [00:33:40]wFMCommunicate OK [00:33:40]SAM_PROTO_SignData done [00:33:40]FM_MakeSignedData done [00:33:40]CreateOFDProtocolMessage [00:33:40]wFMCommunicate request_size=4 [00:33:40]MH_SAM_APDU [00:33:40]CAPDU: 80 11 00 00 [00:33:40]Write to MH i2c: E2 08 00 04 62 80 11 00 00 00 00 00 00 E0 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:41]Read from MH i2c: E2 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 17 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: E2 17 00 04 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [00:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:33:41]wFMCommunicate OK [00:33:41]CreateOFDProtocolMessage done [00:33:41]OFDSenderStorePacket 112392 [00:33:41]StoreOFDPacket docnum=112392 [00:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 1C 07 01 3D 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 08 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8A 6D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B7 01 00 35 04 06 00 59 07 04 6E 60 74 DE 93 79 4B 8C FF 91 C9 [00:33:41]CheckFolder [00:33:41]dirname=/storage/ofd_packets [00:33:41]CheckFolder done [00:33:41]ProducePacketName [00:33:41]name=ofd_packets/00112392 [00:33:41]NVStorageSaveData ofd_packets/00112392 [00:33:41]File name is /storage/ofd_packets/00112392 [00:33:41]Write 301 bytes [00:33:41]NVStorageSaveData done [00:33:41]OFDSenderStorePacket done [00:33:41]KKMCreateOFDPacket done [00:33:41]NVStorageSaveData kkm_last_timestamp [00:33:41]File name is /storage/kkm_last_timestamp [00:33:41]Write 4 bytes [00:33:41]NVStorageSaveData done [00:33:41]ExternCall_PrintAddStr [00:33:41]wPrintStart [00:33:41]Write to MH i2c: 01 00 00 05 62 67 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: 01 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: 01 07 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: 01 07 00 05 62 00 00 00 00 00 FF 0F 7C [00:33:41]RasterBufferAndPrint [00:33:41]line Счет N : (1)321071 [00:33:41]line ИНН: 02508201610067 [00:33:41]line Контрольно-Кассовый Чек [00:33:41]line ПРОДАЖА [00:33:41]line ТРК (МРК, ГНК) : 11 [00:33:41]line Товар: 2710124130 [00:33:41]line Аи-92-К-5 [00:33:41]line 37.640 * 66.40 [00:33:41]line = 2499.30 [00:33:41]line НДС 12% НСП 1% [00:33:41]line > о реализуемом товаре [00:33:41]line ИТОГО: 2499.30 [00:33:41]line НСП 1% : 22.12 [00:33:41]line НДС 12% : 265.41 [00:33:41]line Наличными: 0.00 [00:33:41]line Безнал.: 2499.30 [00:33:41]line Место: АЗС № 65 "Партнер Нефть" [00:33:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:33:41]line СНО: Общий режим [00:33:41]line Чек 258 23.06.2024 00:34 [00:33:41]line Смена: 391 ФФД: 1.0 [00:33:41]line ЗНМ: 0300000198 [00:33:41]line РНМ: 0000000000092771 [00:33:41]line Версия ККМ: 001 [00:33:41]line Платежная система: О! деньги [00:33:41]line ФМ: 0000000000875083 [00:33:41]line ФД: 112392 [00:33:41]line ФПД: 97886673985652 [00:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T003418&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112392&fm=97886673985652&tin=02508201610067®Number=0000000000092771&sum=249930 [00:33:41]written 0, free lines is 4095 [00:33:41]OFD Sender: Processing packet 112392 [packets to send 38, broken 37] [00:33:41]ProducePacketName [00:33:41]name=ofd_packets/00112392 [00:33:41]OFD Sender: To server: pG, [00:33:41]CommunicateWithHost lk.salyk.kg:30040 [00:33:41]ConnectInit lk.salyk.kg [00:33:41]Connected sock=10 [00:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 1C 07 01 3D 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 08 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 8A 6D 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B7 01 00 35 04 06 00 59 07 04 6E 60 74 DE 93 79 4B 8C FF 91 C9 [00:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C A5 47 00 6D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B7 01 00 F4 03 04 00 87 04 77 66 B6 04 01 00 00 40 6F C2 C7 89 29 D0 ED [00:33:41]CommunicateWithHost err = 0 [00:33:41]CheckOFDResponse [00:33:41]1017 (14) - 77093643461234 [00:33:41]1041 (16) - 0000000000875083 [00:33:41]1040 (4) - 112392 [00:33:41]1012 (4) - 22.06.2024 17:06 [00:33:41]1206 (1) - 0 [00:33:41]OFD Sender: Remove packet 112392 [00:33:41]ProducePacketName [00:33:41]name=ofd_packets/00112392 [00:33:41]NVStorageDeleteData [00:33:41]Write to MH i2c: 01 00 00 2F 62 91 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: 01 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: 01 07 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: 01 07 00 2F 62 00 00 00 00 00 F2 0C 96 [00:33:41]RasterBufferAndPrint [00:33:41]line [00:33:41]line [00:33:41]line [00:33:41]line [00:33:41]line [00:33:41]written 0, free lines is 3320 [00:33:41]MH_Cut [00:33:41]Write to MH i2c: D1 01 00 36 62 01 6A [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: D1 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: D1 01 00 [00:33:41]MH_I2C_Read... [00:33:41]Read from MH i2c: D1 01 00 36 62 00 69 [00:33:41]Write to MH i2c: 01 00 00 37 62 99 [00:33:41]Write i2c OK [00:33:41]MH_I2C_Read... [00:33:42]OFD Sender: No OFD packet to send [00:33:42]*** Cut start [00:33:42]*** Partial cut [00:33:42]*** CUTSNS_PIN = 1 [00:33:42]*** CUTSNS_PIN = 0 [00:33:42]*** Brake cut motor [00:33:43]Read from MH i2c: 01 [00:33:43]MH_I2C_Read... [00:33:43]*** Stop cut motor [00:33:43]*** Cut end [00:33:43]Read from MH i2c: 01 07 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: 01 07 00 37 62 00 00 00 00 00 FF 0F AE [00:33:43]process_action close_receipt done [00:33:43]requested_data is exist [00:33:43]produce_requested_data [00:33:43]requested_item fm.sn is exist - process it [00:33:43]wFMCommunicate request_size=4 [00:33:43]MH_SAM_APDU [00:33:43]CAPDU: 80 11 00 00 [00:33:43]Write to MH i2c: E2 08 00 38 62 80 11 00 00 00 00 00 00 14 [00:33:43]Write i2c OK [00:33:43]MH_I2C_Read... [00:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:43]Read from MH i2c: E2 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 17 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 17 00 38 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [00:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:33:43]wFMCommunicate OK [00:33:43]requested_item fd.num is exist - process it [00:33:43]SAM_PROTO_GetFieldsCounters [00:33:43]wFMCommunicate request_size=4 [00:33:43]MH_SAM_APDU [00:33:43]CAPDU: 80 13 00 00 [00:33:43]Write to MH i2c: E2 08 00 39 62 80 13 00 00 00 00 00 00 17 [00:33:43]Write i2c OK [00:33:43]MH_I2C_Read... [00:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:43]Read from MH i2c: E2 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 62 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 62 00 39 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [00:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:43]wFMCommunicate OK [00:33:43]SAM_PROTO_GetFieldsCounters done [00:33:43]requested_item shift.num is exist - process it [00:33:43]requested_item shift.opened is exist - process it [00:33:43]req_shift_opened [00:33:43]FM_GetShiftState [00:33:43]SAM_PROTO_GetShiftState [00:33:43]wFMCommunicate request_size=4 [00:33:43]MH_SAM_APDU [00:33:43]CAPDU: 80 13 01 00 [00:33:43]Write to MH i2c: E2 08 00 3A 62 80 13 01 00 00 00 00 00 19 [00:33:43]Write i2c OK [00:33:43]MH_I2C_Read... [00:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:43]Read from MH i2c: E2 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 0E 00 [00:33:43]MH_I2C_Read... [00:33:43]Read from MH i2c: E2 0E 00 3A 62 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 4E [00:33:43]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [00:33:43]wFMCommunicate OK [00:33:43]SAM_PROTO_GetShiftState done [00:33:43]FM_GetShiftState done [00:33:43]req_shift_opened done [00:33:43]requested_item shift.open_date is exist - process it [00:33:43]req_shift_open_date [00:33:43]req_shift_open_date done [00:33:43]produce_requested_data done [00:33:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112392,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [00:33:43]process_action_free close_receipt [00:33:43]json_value_free [00:33:43]json_value_free done [00:33:43]process_json_proto returns [00:33:43]Send response to host [00:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112392,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [00:33:43]free response buf [00:33:43]execute_script done [00:33:43]execute_script returns [00:33:43]free content buf [00:33:43]Sock 7.Close socket [00:33:43]Sock 7.Thread stoped [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47: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:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]accept exits with 9 [01:03:38]New connection [01:03:38]New thread 3066813796 created [01:03:38]Thread 3066957156 joined [01:03:38]Waiting for new connection... [01:03:38] Sock 9.Parse request [01:03:38]Sock 9.Check first char [01:03:38]Sock 9.First char is OK [01:03:38]request: POST /json_proto HTTP/1.0 [01:03:38]Method: POST [01:03:38]URL: /json_proto [01:03:38]Method is POST - this is cgi request [01:03:38]url: /json_proto [01:03:38]query_string will be loaded in cgi processing [01:03:38]execute_cgi json_proto POST (null) [01:03:38]execute_cgi path=json_proto method=POST [01:03:38]POST find Content-Length [01:03:38]Host: 172.17.59.68:8080 [01:03:38]Content-Length: 677 [01:03:38]Content-Type: application/json [01:03:38] [01:03:38]POST finish read [01:03:38]Found Content-Length = 677 [01:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321072", "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.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:38]execute_script... [01:03: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)321072", "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.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:38]POST & json_proto [01:03:38]process_json_proto [01:03:38]json parsed OK: [01:03:38]protocol is kg_v1.0 [01:03:38]action value=close_receipt [01:03:38]process_action close_receipt [01:03:38]cmd_close_receipt [01:03:38]MH_GetDate [01:03:38]Write to MH i2c: F0 00 00 3B 62 8C [01:03:38]Write i2c OK [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: F0 [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: F0 09 00 [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: F0 09 00 3B 62 00 92 74 77 66 BC EC 60 65 E5 [01:03:38]GetLastDocTimeStamp 1719102858 [01:03:38]current date 1719104658 [01:03:38]FM_GetShiftState [01:03:38]SAM_PROTO_GetShiftState [01:03:38]wFMCommunicate request_size=4 [01:03:38]MH_SAM_APDU [01:03:38]CAPDU: 80 13 01 00 [01:03:38]Write to MH i2c: E2 08 00 3C 62 80 13 01 00 00 00 00 00 1B [01:03:38]Write i2c OK [01:03:38]MH_I2C_Read... [01:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:38]Read from MH i2c: E2 [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: E2 0E 00 [01:03:38]MH_I2C_Read... [01:03:38]Read from MH i2c: E2 0E 00 3C 62 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 50 [01:03:38]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:03:38]wFMCommunicate OK [01:03:38]SAM_PROTO_GetShiftState done [01:03:38]FM_GetShiftState done [01:03:38]opened in 1719020067 [01:03:38]opened+sec_in_day 1719106467 [01:03:38]quantity*price = 30012 [01:03:38]sum+1 = 30014 [01:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 259 23.06.2024 01:04 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112393 ФПД: 275347253427526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010418&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112393&fm=275347253427526&tin=02508201610067®Number=0000000000092771&sum=30000 [01:03:39]StoreToDocumentArchive [01:03:39]shift 391 fd 112393 [01:03:39]save to /storage/0391/doc_00112393 [01:03:39]save last doc name /storage/0391/doc_00112393 to /storage/kkm_last_doc_name [01:03:39]save OK [01:03:39]Clear old archive folders... [01:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:39]tlvbuf is B6F595B0 [01:03:39]SAM_PROTO_ClearQueue [01:03:39]wFMCommunicate request_size=4 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 09 00 00 [01:03:39]Write to MH i2c: E2 08 00 49 62 80 09 00 00 00 00 00 00 1D [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 49 62 00 90 00 1F [01:03:39]RAPDU: 90 00 [01:03:39]wFMCommunicate OK [01:03:39]SAM_PROTO_ClearQueue done [01:03:39]KKMCreateOFDPacket [01:03:39]OFDProtocolAddRootSTLVToBuf [01:03:39]FM_MakeSignedData [01:03:39]FM_MakeSignedData [01:03:39]SAM_PROTO_SignData [01:03:39]wFMCommunicate request_size=4 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 0D 01 02 [01:03:39]Write to MH i2c: E2 08 00 4A 62 80 0D 01 02 00 00 00 00 25 [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 4A 62 00 90 00 20 [01:03:39]RAPDU: 90 00 [01:03:39]wFMCommunicate OK [01:03:39]wFMCommunicate request_size=255 [01:03:39]MH_SAM_APDU [01:03: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 92 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B7 01 00 35 04 06 00 FA [01:03:39]Write to MH i2c: E2 02 01 4B 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 92 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B7 01 00 35 04 06 00 FA 00 00 A1 [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 4B 62 00 90 00 21 [01:03:39]RAPDU: 90 00 [01:03:39]wFMCommunicate OK [01:03:39]wFMCommunicate request_size=10 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 0D 02 02 05 6D 47 3A FD 46 [01:03:39]Write to MH i2c: E2 0D 00 4C 62 80 0D 02 02 05 00 6D 47 3A FD 46 00 00 63 [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:39]Read from MH i2c: E2 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 [01:03:39]MH_I2C_Read... [01:03:39]Read from MH i2c: E2 03 00 4C 62 00 90 00 22 [01:03:39]RAPDU: 90 00 [01:03:39]wFMCommunicate OK [01:03:39]wFMCommunicate request_size=4 [01:03:39]MH_SAM_APDU [01:03:39]CAPDU: 80 0D 03 02 [01:03:39]Write to MH i2c: E2 08 00 4D 62 80 0D 03 02 00 00 00 00 2A [01:03:39]Write i2c OK [01:03:39]MH_I2C_Read... [01:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:40]Read from MH i2c: E2 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: E2 0B 00 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: E2 0B 00 4D 62 00 C7 34 3F FF 32 F3 09 CC 90 00 5E [01:03:40]RAPDU: C7 34 3F FF 32 F3 09 CC 90 00 [01:03:40]wFMCommunicate OK [01:03:40]SAM_PROTO_SignData done [01:03:40]FM_MakeSignedData done [01:03:40]CreateOFDProtocolMessage [01:03:40]wFMCommunicate request_size=4 [01:03:40]MH_SAM_APDU [01:03:40]CAPDU: 80 11 00 00 [01:03:40]Write to MH i2c: E2 08 00 4E 62 80 11 00 00 00 00 00 00 2A [01:03:40]Write i2c OK [01:03:40]MH_I2C_Read... [01:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:40]Read from MH i2c: E2 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: E2 17 00 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: E2 17 00 4E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [01:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:03:40]wFMCommunicate OK [01:03:40]CreateOFDProtocolMessage done [01:03:40]OFDSenderStorePacket 112393 [01:03:40]StoreOFDPacket docnum=112393 [01:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 7E 07 01 5F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 92 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B7 01 00 35 04 06 00 FA 6D 47 3A FD 46 C7 34 3F FF 32 F3 09 CC [01:03:40]CheckFolder [01:03:40]dirname=/storage/ofd_packets [01:03:40]CheckFolder done [01:03:40]ProducePacketName [01:03:40]name=ofd_packets/00112393 [01:03:40]NVStorageSaveData ofd_packets/00112393 [01:03:40]File name is /storage/ofd_packets/00112393 [01:03:40]Write 301 bytes [01:03:40]NVStorageSaveData done [01:03:40]OFDSenderStorePacket done [01:03:40]KKMCreateOFDPacket done [01:03:40]NVStorageSaveData kkm_last_timestamp [01:03:40]File name is /storage/kkm_last_timestamp [01:03:40]Write 4 bytes [01:03:40]NVStorageSaveData done [01:03:40]ExternCall_PrintAddStr [01:03:40]wPrintStart [01:03:40]Write to MH i2c: 01 00 00 4F 62 B1 [01:03:40]Write i2c OK [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: 01 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: 01 07 00 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: 01 07 00 4F 62 00 00 00 00 00 FF 0F C6 [01:03:40]RasterBufferAndPrint [01:03:40]line Счет N : (1)321072 [01:03:40]line ИНН: 02508201610067 [01:03:40]line Контрольно-Кассовый Чек [01:03:40]line ПРОДАЖА [01:03:40]line ТРК (МРК, ГНК) : 11 [01:03:40]line Товар: 2710124130 [01:03:40]line Аи-92-К-5 [01:03:40]line 4.520 * 66.40 [01:03:40]line = 300.13 [01:03:40]line НДС 12% НСП 1% [01:03:40]line > о реализуемом товаре [01:03:40]line ОКРУГЛЕНИЕ: -0.13 [01:03:40]line ИТОГО: 300.00 [01:03:40]line Внесено: 300.00 [01:03:40]line СДАЧА: 0.00 [01:03:40]line НСП 1% : 2.66 [01:03:40]line НДС 12% : 31.87 [01:03:40]line Наличными: 300.00 [01:03:40]line Безнал.: 0.00 [01:03:40]line Место: АЗС № 65 "Партнер Нефть" [01:03:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:03:40]line СНО: Общий режим [01:03:40]line Чек 259 23.06.2024 01:04 [01:03:40]line Смена: 391 ФФД: 1.0 [01:03:40]line ЗНМ: 0300000198 [01:03:40]line РНМ: 0000000000092771 [01:03:40]line Версия ККМ: 001 [01:03:40]line ФМ: 0000000000875083 [01:03:40]line ФД: 112393 [01:03:40]line ФПД: 275347253427526 [01:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010418&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112393&fm=275347253427526&tin=02508201610067®Number=0000000000092771&sum=30000 [01:03:40]OFD Sender: Processing packet 112393 [packets to send 38, broken 37] [01:03:40]ProducePacketName [01:03:40]name=ofd_packets/00112393 [01:03:40]OFD Sender: To server: pG, [01:03:40]CommunicateWithHost lk.salyk.kg:30040 [01:03:40]ConnectInit lk.salyk.kg [01:03:40]written 0, free lines is 4095 [01:03:40]Connected sock=10 [01:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 7E 07 01 5F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 92 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B7 01 00 35 04 06 00 FA 6D 47 3A FD 46 C7 34 3F FF 32 F3 09 CC [01:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 17 47 00 7D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B7 01 00 F4 03 04 00 8E 0B 77 66 B6 04 01 00 00 F4 5C B3 C2 C4 FD 51 F3 [01:03:40]CommunicateWithHost err = 0 [01:03:40]CheckOFDResponse [01:03:40]1017 (14) - 77093643461234 [01:03:40]1041 (16) - 0000000000875083 [01:03:40]1040 (4) - 112393 [01:03:40]1012 (4) - 22.06.2024 17:36 [01:03:40]1206 (1) - 0 [01:03:40]OFD Sender: Remove packet 112393 [01:03:40]ProducePacketName [01:03:40]name=ofd_packets/00112393 [01:03:40]NVStorageDeleteData [01:03:40]Write to MH i2c: 01 00 00 7A 62 DC [01:03:40]Write i2c OK [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: 01 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: 01 07 00 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: 01 07 00 7A 62 00 00 00 00 00 D4 0C C3 [01:03:40]RasterBufferAndPrint [01:03:40]line [01:03:40]line [01:03:40]line [01:03:40]line [01:03:40]line [01:03:40]written 0, free lines is 3292 [01:03:40]MH_Cut [01:03:40]Write to MH i2c: D1 01 00 81 62 01 B5 [01:03:40]Write i2c OK [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: D1 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: D1 01 00 [01:03:40]MH_I2C_Read... [01:03:40]Read from MH i2c: D1 01 00 81 62 00 B4 [01:03:40]Write to MH i2c: 01 00 00 82 62 E4 [01:03:40]Write i2c OK [01:03:40]MH_I2C_Read... [01:03:41]OFD Sender: No OFD packet to send [01:03:41]*** Cut start [01:03:41]*** Partial cut [01:03:41]*** CUTSNS_PIN = 1 [01:03:41]*** CUTSNS_PIN = 0 [01:03:41]*** Brake cut motor [01:03:42]Read from MH i2c: 01 [01:03:42]MH_I2C_Read... [01:03:42]*** Stop cut motor [01:03:42]*** Cut end [01:03:42]Read from MH i2c: 01 07 00 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: 01 07 00 82 62 00 00 00 00 00 FF 0F F9 [01:03:42]process_action close_receipt done [01:03:42]requested_data is exist [01:03:42]produce_requested_data [01:03:42]requested_item fm.sn is exist - process it [01:03:42]wFMCommunicate request_size=4 [01:03:42]MH_SAM_APDU [01:03:42]CAPDU: 80 11 00 00 [01:03:42]Write to MH i2c: E2 08 00 83 62 80 11 00 00 00 00 00 00 5F [01:03:42]Write i2c OK [01:03:42]MH_I2C_Read... [01:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:42]Read from MH i2c: E2 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 17 00 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 17 00 83 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [01:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:03:42]wFMCommunicate OK [01:03:42]requested_item fd.num is exist - process it [01:03:42]SAM_PROTO_GetFieldsCounters [01:03:42]wFMCommunicate request_size=4 [01:03:42]MH_SAM_APDU [01:03:42]CAPDU: 80 13 00 00 [01:03:42]Write to MH i2c: E2 08 00 84 62 80 13 00 00 00 00 00 00 62 [01:03:42]Write i2c OK [01:03:42]MH_I2C_Read... [01:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:42]Read from MH i2c: E2 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 62 00 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 62 00 84 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [01:03:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:42]wFMCommunicate OK [01:03:42]SAM_PROTO_GetFieldsCounters done [01:03:42]requested_item shift.num is exist - process it [01:03:42]requested_item shift.opened is exist - process it [01:03:42]req_shift_opened [01:03:42]FM_GetShiftState [01:03:42]SAM_PROTO_GetShiftState [01:03:42]wFMCommunicate request_size=4 [01:03:42]MH_SAM_APDU [01:03:42]CAPDU: 80 13 01 00 [01:03:42]Write to MH i2c: E2 08 00 85 62 80 13 01 00 00 00 00 00 64 [01:03:42]Write i2c OK [01:03:42]MH_I2C_Read... [01:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:42]Read from MH i2c: E2 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 0E 00 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 0E 00 85 62 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 99 [01:03:42]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:03:42]wFMCommunicate OK [01:03:42]SAM_PROTO_GetShiftState done [01:03:42]FM_GetShiftState done [01:03:42]req_shift_opened done [01:03:42]requested_item shift.open_date is exist - process it [01:03:42]req_shift_open_date [01:03:42]req_shift_open_date done [01:03:42]produce_requested_data done [01:03:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112393,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:03:42]process_action_free close_receipt [01:03:42]json_value_free [01:03:42]json_value_free done [01:03:42]process_json_proto returns [01:03:42]Send response to host [01:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112393,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:03:42]free response buf [01:03:42]execute_script done [01:03:42]execute_script returns [01:03:42]free content buf [01:03:42]Sock 9.Close socket [01:03:42]Sock 9.Thread stoped [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:01]accept exits with 7 [01:05:01]New connection [01:05:01]New thread 3066957156 created [01:05:01]Thread 3066813796 joined [01:05:01]Waiting for new connection... [01:05:01] Sock 7.Parse request [01:05:01]Sock 7.Check first char [01:05:01]Sock 7.First char is OK [01:05:01]request: POST /json_proto HTTP/1.0 [01:05:01]Method: POST [01:05:01]URL: /json_proto [01:05:01]Method is POST - this is cgi request [01:05:01]url: /json_proto [01:05:01]query_string will be loaded in cgi processing [01:05:01]execute_cgi json_proto POST (null) [01:05:01]execute_cgi path=json_proto method=POST [01:05:01]POST find Content-Length [01:05:01]Host: 172.17.59.68:8080 [01:05:01]Content-Length: 677 [01:05:01]Content-Type: application/json [01:05:01] [01:05:01]POST finish read [01:05:01]Found Content-Length = 677 [01:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321073", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:05:01]execute_script... [01: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)321073", "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.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:05:01]POST & json_proto [01:05:01]process_json_proto [01:05:01]json parsed OK: [01:05:01]protocol is kg_v1.0 [01:05:01]action value=close_receipt [01:05:01]process_action close_receipt [01:05:01]cmd_close_receipt [01:05:01]MH_GetDate [01:05:01]Write to MH i2c: F0 00 00 86 62 D7 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: F0 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: F0 09 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: F0 09 00 86 62 00 E5 74 77 66 BC EC 60 65 83 [01:05:01]GetLastDocTimeStamp 1719104658 [01:05:01]current date 1719104741 [01:05:01]FM_GetShiftState [01:05:01]SAM_PROTO_GetShiftState [01:05:01]wFMCommunicate request_size=4 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 13 01 00 [01:05:01]Write to MH i2c: E2 08 00 87 62 80 13 01 00 00 00 00 00 66 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 0E 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 0E 00 87 62 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 9B [01:05:01]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:05:01]wFMCommunicate OK [01:05:01]SAM_PROTO_GetShiftState done [01:05:01]FM_GetShiftState done [01:05:01]opened in 1719020067 [01:05:01]opened+sec_in_day 1719106467 [01:05:01]quantity*price = 50065 [01:05:01]sum+1 = 50067 [01:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 260 23.06.2024 01:05 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112394 ФПД: 11397102483133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010541&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112394&fm=11397102483133&tin=02508201610067®Number=0000000000092771&sum=50000 [01:05:02]StoreToDocumentArchive [01:05:02]shift 391 fd 112394 [01:05:02]save to /storage/0391/doc_00112394 [01:05:02]save last doc name /storage/0391/doc_00112394 to /storage/kkm_last_doc_name [01:05:02]save OK [01:05:02]Clear old archive folders... [01:05:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:05:02]tlvbuf is 012BAB50 [01:05:02]SAM_PROTO_ClearQueue [01:05:02]wFMCommunicate request_size=4 [01:05:02]MH_SAM_APDU [01:05:02]CAPDU: 80 09 00 00 [01:05:02]Write to MH i2c: E2 08 00 94 62 80 09 00 00 00 00 00 00 68 [01:05:02]Write i2c OK [01:05:02]MH_I2C_Read... [01:05:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:02]Read from MH i2c: E2 [01:05:02]MH_I2C_Read... [01:05:02]Read from MH i2c: E2 03 00 [01:05:02]MH_I2C_Read... [01:05:02]Read from MH i2c: E2 03 00 94 62 00 90 00 6A [01:05:02]RAPDU: 90 00 [01:05:02]wFMCommunicate OK [01:05:02]SAM_PROTO_ClearQueue done [01:05:02]KKMCreateOFDPacket [01:05:02]OFDProtocolAddRootSTLVToBuf [01:05:02]FM_MakeSignedData [01:05:02]FM_MakeSignedData [01:05:02]SAM_PROTO_SignData [01:05:02]wFMCommunicate request_size=4 [01:05:02]MH_SAM_APDU [01:05:02]CAPDU: 80 0D 01 02 [01:05:02]Write to MH i2c: E2 08 00 95 62 80 0D 01 02 00 00 00 00 70 [01:05:02]Write i2c OK [01:05:02]MH_I2C_Read... [01:05:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:02]Read from MH i2c: E2 [01:05:02]MH_I2C_Read... [01:05:02]Read from MH i2c: E2 03 00 [01:05:02]MH_I2C_Read... [01:05:02]Read from MH i2c: E2 03 00 95 62 00 90 00 6B [01:05:02]RAPDU: 90 00 [01:05:02]wFMCommunicate OK [01:05:02]wFMCommunicate request_size=255 [01:05:02]MH_SAM_APDU [01: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B7 01 00 35 04 06 00 0A [01:05:02]Write to MH i2c: E2 02 01 96 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B7 01 00 35 04 06 00 0A 00 00 B3 [01:05:02]Write i2c OK [01:05:02]MH_I2C_Read... [01:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:03]Read from MH i2c: E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 03 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 03 00 96 62 00 90 00 6C [01:05:03]RAPDU: 90 00 [01:05:03]wFMCommunicate OK [01:05:03]wFMCommunicate request_size=10 [01:05:03]MH_SAM_APDU [01:05:03]CAPDU: 80 0D 02 02 05 5D 98 3E B6 BD [01:05:03]Write to MH i2c: E2 0D 00 97 62 80 0D 02 02 05 00 5D 98 3E B6 BD 00 00 23 [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:03]Read from MH i2c: E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 03 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 03 00 97 62 00 90 00 6D [01:05:03]RAPDU: 90 00 [01:05:03]wFMCommunicate OK [01:05:03]wFMCommunicate request_size=4 [01:05:03]MH_SAM_APDU [01:05:03]CAPDU: 80 0D 03 02 [01:05:03]Write to MH i2c: E2 08 00 98 62 80 0D 03 02 00 00 00 00 75 [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:03]Read from MH i2c: E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 0B 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 0B 00 98 62 00 AF A3 DD 71 EE B5 AB 7D 90 00 E1 [01:05:03]RAPDU: AF A3 DD 71 EE B5 AB 7D 90 00 [01:05:03]wFMCommunicate OK [01:05:03]SAM_PROTO_SignData done [01:05:03]FM_MakeSignedData done [01:05:03]CreateOFDProtocolMessage [01:05:03]wFMCommunicate request_size=4 [01:05:03]MH_SAM_APDU [01:05:03]CAPDU: 80 11 00 00 [01:05:03]Write to MH i2c: E2 08 00 99 62 80 11 00 00 00 00 00 00 75 [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:03]Read from MH i2c: E2 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 17 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: E2 17 00 99 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [01:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:05:03]wFMCommunicate OK [01:05:03]CreateOFDProtocolMessage done [01:05:03]OFDSenderStorePacket 112394 [01:05:03]StoreOFDPacket docnum=112394 [01:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 2C 07 01 22 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B7 01 00 35 04 06 00 0A 5D 98 3E B6 BD AF A3 DD 71 EE B5 AB 7D [01:05:03]CheckFolder [01:05:03]dirname=/storage/ofd_packets [01:05:03]CheckFolder done [01:05:03]ProducePacketName [01:05:03]name=ofd_packets/00112394 [01:05:03]NVStorageSaveData ofd_packets/00112394 [01:05:03]File name is /storage/ofd_packets/00112394 [01:05:03]Write 301 bytes [01:05:03]NVStorageSaveData done [01:05:03]OFDSenderStorePacket done [01:05:03]KKMCreateOFDPacket done [01:05:03]NVStorageSaveData kkm_last_timestamp [01:05:03]File name is /storage/kkm_last_timestamp [01:05:03]Write 4 bytes [01:05:03]NVStorageSaveData done [01:05:03]ExternCall_PrintAddStr [01:05:03]wPrintStart [01:05:03]Write to MH i2c: 01 00 00 9A 62 FC [01:05:03]Write i2c OK [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: 01 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: 01 07 00 [01:05:03]MH_I2C_Read... [01:05:03]Read from MH i2c: 01 07 00 9A 62 00 00 00 00 00 FF 0F 11 [01:05:03]RasterBufferAndPrint [01:05:03]line Счет N : (1)321073 [01:05:03]line ИНН: 02508201610067 [01:05:03]line Контрольно-Кассовый Чек [01:05:03]line ПРОДАЖА [01:05:03]line ТРК (МРК, ГНК) : 11 [01:05:03]line Товар: 2710124130 [01:05:03]line Аи-92-К-5 [01:05:03]line 7.540 * 66.40 [01:05:03]line = 500.66 [01:05:03]line НДС 12% НСП 1% [01:05:03]line > о реализуемом товаре [01:05:03]line ОКРУГЛЕНИЕ: -0.66 [01:05:03]line ИТОГО: 500.00 [01:05:03]line Внесено: 500.00 [01:05:03]line СДАЧА: 0.00 [01:05:03]line НСП 1% : 4.43 [01:05:03]line НДС 12% : 53.17 [01:05:03]line Наличными: 500.00 [01:05:03]line Безнал.: 0.00 [01:05:03]line Место: АЗС № 65 "Партнер Нефть" [01:05:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:05:03]line СНО: Общий режим [01:05:03]line Чек 260 23.06.2024 01:05 [01:05:03]line Смена: 391 ФФД: 1.0 [01:05:03]line ЗНМ: 0300000198 [01:05:03]line РНМ: 0000000000092771 [01:05:03]line Версия ККМ: 001 [01:05:03]line ФМ: 0000000000875083 [01:05:03]line ФД: 112394 [01:05:03]line ФПД: 11397102483133 [01:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010541&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112394&fm=11397102483133&tin=02508201610067®Number=0000000000092771&sum=50000 [01:05:03]OFD Sender: Processing packet 112394 [packets to send 38, broken 37] [01:05:03]ProducePacketName [01:05:03]name=ofd_packets/00112394 [01:05:03]OFD Sender: To server: pG, [01:05:03]CommunicateWithHost lk.salyk.kg:30040 [01:05:03]ConnectInit lk.salyk.kg [01:05:03]written 0, free lines is 4095 [01:05:03]Connected sock=9 [01: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 35 30 38 33 0F 01 00 00 82 2C 07 01 22 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 74 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B7 01 00 35 04 06 00 0A 5D 98 3E B6 BD AF A3 DD 71 EE B5 AB 7D [01:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A 44 47 00 2D 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B7 01 00 F4 03 04 00 E2 0B 77 66 B6 04 01 00 00 71 5E 53 92 EE F6 65 58 [01:05:03]CommunicateWithHost err = 0 [01:05:03]CheckOFDResponse [01:05:03]1017 (14) - 77093643461234 [01:05:03]1041 (16) - 0000000000875083 [01:05:03]1040 (4) - 112394 [01:05:03]1012 (4) - 22.06.2024 17:37 [01:05:03]1206 (1) - 0 [01:05:03]OFD Sender: Remove packet 112394 [01:05:03]ProducePacketName [01:05:03]name=ofd_packets/00112394 [01:05:03]NVStorageDeleteData [01:05:04]Write to MH i2c: 01 00 00 C5 62 27 [01:05:04]Write i2c OK [01:05:04]MH_I2C_Read... [01:05:04]Read from MH i2c: 01 [01:05:04]MH_I2C_Read... [01:05:04]Read from MH i2c: 01 07 00 [01:05:04]MH_I2C_Read... [01:05:04]Read from MH i2c: 01 07 00 C5 62 00 00 00 00 00 CB 0C 05 [01:05:04]RasterBufferAndPrint [01:05:04]line [01:05:04]line [01:05:04]line [01:05:04]line [01:05:04]line [01:05:04]written 0, free lines is 3282 [01:05:04]MH_Cut [01:05:04]Write to MH i2c: D1 01 00 CC 62 01 00 [01:05:04]Write i2c OK [01:05:04]MH_I2C_Read... [01:05:04]Read from MH i2c: D1 [01:05:04]MH_I2C_Read... [01:05:04]Read from MH i2c: D1 01 00 [01:05:04]MH_I2C_Read... [01:05:04]Read from MH i2c: D1 01 00 CC 62 00 FF [01:05:04]Write to MH i2c: 01 00 00 CD 62 2F [01:05:04]Write i2c OK [01:05:04]MH_I2C_Read... [01:05:04]OFD Sender: No OFD packet to send [01:05:04]*** Cut start [01:05:04]*** Partial cut [01:05:04]*** CUTSNS_PIN = 1 [01:05:04]*** CUTSNS_PIN = 0 [01:05:05]*** Brake cut motor [01:05:05]Read from MH i2c: 01 [01:05:05]MH_I2C_Read... [01:05:05]*** Stop cut motor [01:05:05]*** Cut end [01:05:05]Read from MH i2c: 01 07 00 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: 01 07 00 CD 62 00 00 00 00 00 FF 0F 44 [01:05:05]process_action close_receipt done [01:05:05]requested_data is exist [01:05:05]produce_requested_data [01:05:05]requested_item fm.sn is exist - process it [01:05:05]wFMCommunicate request_size=4 [01:05:05]MH_SAM_APDU [01:05:05]CAPDU: 80 11 00 00 [01:05:05]Write to MH i2c: E2 08 00 CE 62 80 11 00 00 00 00 00 00 AA [01:05:05]Write i2c OK [01:05:05]MH_I2C_Read... [01:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:05]Read from MH i2c: E2 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: E2 17 00 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: E2 17 00 CE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [01:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:05:05]wFMCommunicate OK [01:05:05]requested_item fd.num is exist - process it [01:05:05]SAM_PROTO_GetFieldsCounters [01:05:05]wFMCommunicate request_size=4 [01:05:05]MH_SAM_APDU [01:05:05]CAPDU: 80 13 00 00 [01:05:05]Write to MH i2c: E2 08 00 CF 62 80 13 00 00 00 00 00 00 AD [01:05:05]Write i2c OK [01:05:05]MH_I2C_Read... [01:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:05]Read from MH i2c: E2 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: E2 62 00 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: E2 62 00 CF 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [01:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:05:05]wFMCommunicate OK [01:05:05]SAM_PROTO_GetFieldsCounters done [01:05:05]requested_item shift.num is exist - process it [01:05:05]requested_item shift.opened is exist - process it [01:05:05]req_shift_opened [01:05:05]FM_GetShiftState [01:05:05]SAM_PROTO_GetShiftState [01:05:05]wFMCommunicate request_size=4 [01:05:05]MH_SAM_APDU [01:05:05]CAPDU: 80 13 01 00 [01:05:05]Write to MH i2c: E2 08 00 D0 62 80 13 01 00 00 00 00 00 AF [01:05:05]Write i2c OK [01:05:05]MH_I2C_Read... [01:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:05]Read from MH i2c: E2 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: E2 0E 00 [01:05:05]MH_I2C_Read... [01:05:05]Read from MH i2c: E2 0E 00 D0 62 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E4 [01:05:05]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:05:05]wFMCommunicate OK [01:05:05]SAM_PROTO_GetShiftState done [01:05:05]FM_GetShiftState done [01:05:05]req_shift_opened done [01:05:05]requested_item shift.open_date is exist - process it [01:05:05]req_shift_open_date [01:05:05]req_shift_open_date done [01:05:05]produce_requested_data done [01:05:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112394,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:05:05]process_action_free close_receipt [01:05:05]json_value_free [01:05:05]json_value_free done [01:05:05]process_json_proto returns [01:05:05]Send response to host [01:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112394,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:05:05]free response buf [01:05:05]execute_script done [01:05:05]execute_script returns [01:05:05]free content buf [01:05:05]Sock 7.Close socket [01:05:05]Sock 7.Thread stoped [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:20]accept exits with 10 [01:06:20]New connection [01:06:20]New thread 3066813796 created [01:06:20]Thread 3066957156 joined [01:06:20]Waiting for new connection... [01:06:20] Sock 10.Parse request [01:06:20]Sock 10.Check first char [01:06:20]Sock 10.First char is OK [01:06:20]request: POST /json_proto HTTP/1.0 [01:06:20]Method: POST [01:06:20]URL: /json_proto [01:06:20]Method is POST - this is cgi request [01:06:20]url: /json_proto [01:06:20]query_string will be loaded in cgi processing [01:06:20]execute_cgi json_proto POST (null) [01:06:20]execute_cgi path=json_proto method=POST [01:06:20]POST find Content-Length [01:06:20]Host: 172.17.59.68:8080 [01:06:20]Content-Length: 639 [01:06:20]Content-Type: application/json [01:06:20] [01:06:20]POST finish read [01:06:20]Found Content-Length = 639 [01:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321074", "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.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:20]execute_script... [01:06: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)321074", "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.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:06:20]POST & json_proto [01:06:20]process_json_proto [01:06:20]json parsed OK: [01:06:20]protocol is kg_v1.0 [01:06:20]action value=close_receipt [01:06:20]process_action close_receipt [01:06:20]cmd_close_receipt [01:06:20]MH_GetDate [01:06:20]Write to MH i2c: F0 00 00 D1 62 22 [01:06:20]Write i2c OK [01:06:20]MH_I2C_Read... [01:06:20]Read from MH i2c: F0 [01:06:20]MH_I2C_Read... [01:06:20]Read from MH i2c: F0 09 00 [01:06:20]MH_I2C_Read... [01:06:20]Read from MH i2c: F0 09 00 D1 62 00 35 75 77 66 BC EC 60 65 1F [01:06:20]GetLastDocTimeStamp 1719104741 [01:06:20]current date 1719104821 [01:06:20]FM_GetShiftState [01:06:20]SAM_PROTO_GetShiftState [01:06:20]wFMCommunicate request_size=4 [01:06:20]MH_SAM_APDU [01:06:20]CAPDU: 80 13 01 00 [01:06:20]Write to MH i2c: E2 08 00 D2 62 80 13 01 00 00 00 00 00 B1 [01:06:20]Write i2c OK [01:06:20]MH_I2C_Read... [01:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:20]Read from MH i2c: E2 [01:06:20]MH_I2C_Read... [01:06:20]Read from MH i2c: E2 0E 00 [01:06:20]MH_I2C_Read... [01:06:20]Read from MH i2c: E2 0E 00 D2 62 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 E6 [01:06:20]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:06:20]wFMCommunicate OK [01:06:20]SAM_PROTO_GetShiftState done [01:06:20]FM_GetShiftState done [01:06:20]opened in 1719020067 [01:06:20]opened+sec_in_day 1719106467 [01:06:20]quantity*price = 33200 [01:06:20]sum+1 = 33201 [01:06:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 261 23.06.2024 01:07 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112395 ФПД: 253383088602493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010701&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112395&fm=253383088602493&tin=02508201610067®Number=0000000000092771&sum=33200 [01:06:21]StoreToDocumentArchive [01:06:21]shift 391 fd 112395 [01:06:21]save to /storage/0391/doc_00112395 [01:06:21]save last doc name /storage/0391/doc_00112395 to /storage/kkm_last_doc_name [01:06:21]save OK [01:06:21]Clear old archive folders... [01:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:06:21]tlvbuf is B6F59280 [01:06:21]SAM_PROTO_ClearQueue [01:06:21]wFMCommunicate request_size=4 [01:06:21]MH_SAM_APDU [01:06:21]CAPDU: 80 09 00 00 [01:06:21]Write to MH i2c: E2 08 00 DF 62 80 09 00 00 00 00 00 00 B3 [01:06:21]Write i2c OK [01:06:21]MH_I2C_Read... [01:06:21]Read from MH i2c: E2 [01:06:21]MH_I2C_Read... [01:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:21]Read from MH i2c: E2 03 00 [01:06:21]MH_I2C_Read... [01:06:21]Read from MH i2c: E2 03 00 DF 62 00 90 00 B5 [01:06:21]RAPDU: 90 00 [01:06:21]wFMCommunicate OK [01:06:21]SAM_PROTO_ClearQueue done [01:06:21]KKMCreateOFDPacket [01:06:21]OFDProtocolAddRootSTLVToBuf [01:06:21]FM_MakeSignedData [01:06:21]FM_MakeSignedData [01:06:21]SAM_PROTO_SignData [01:06:21]wFMCommunicate request_size=4 [01:06:21]MH_SAM_APDU [01:06:21]CAPDU: 80 0D 01 02 [01:06:21]Write to MH i2c: E2 08 00 E0 62 80 0D 01 02 00 00 00 00 BB [01:06:21]Write i2c OK [01:06:21]MH_I2C_Read... [01:06:21]Read from MH i2c: E2 [01:06:21]MH_I2C_Read... [01:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:21]Read from MH i2c: E2 03 00 [01:06:21]MH_I2C_Read... [01:06:21]Read from MH i2c: E2 03 00 E0 62 00 90 00 B6 [01:06:21]RAPDU: 90 00 [01:06:21]wFMCommunicate OK [01:06:21]wFMCommunicate request_size=255 [01:06:21]MH_SAM_APDU [01:06: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 35 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B7 01 00 35 04 06 00 E6 [01:06:21]Write to MH i2c: E2 02 01 E1 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 35 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B7 01 00 35 04 06 00 E6 00 00 B4 [01:06:21]Write i2c OK [01:06:21]MH_I2C_Read... [01:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:22]Read from MH i2c: E2 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 03 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 03 00 E1 62 00 90 00 B7 [01:06:22]RAPDU: 90 00 [01:06:22]wFMCommunicate OK [01:06:22]wFMCommunicate request_size=10 [01:06:22]MH_SAM_APDU [01:06:22]CAPDU: 80 0D 02 02 05 73 58 FC FD 7D [01:06:22]Write to MH i2c: E2 0D 00 E2 62 80 0D 02 02 05 00 73 58 FC FD 7D 00 00 09 [01:06:22]Write i2c OK [01:06:22]MH_I2C_Read... [01:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:22]Read from MH i2c: E2 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 03 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 03 00 E2 62 00 90 00 B8 [01:06:22]RAPDU: 90 00 [01:06:22]wFMCommunicate OK [01:06:22]wFMCommunicate request_size=4 [01:06:22]MH_SAM_APDU [01:06:22]CAPDU: 80 0D 03 02 [01:06:22]Write to MH i2c: E2 08 00 E3 62 80 0D 03 02 00 00 00 00 C0 [01:06:22]Write i2c OK [01:06:22]MH_I2C_Read... [01:06:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:22]Read from MH i2c: E2 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 0B 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 0B 00 E3 62 00 A7 C7 BA AB AF C8 CA 44 90 00 19 [01:06:22]RAPDU: A7 C7 BA AB AF C8 CA 44 90 00 [01:06:22]wFMCommunicate OK [01:06:22]SAM_PROTO_SignData done [01:06:22]FM_MakeSignedData done [01:06:22]CreateOFDProtocolMessage [01:06:22]wFMCommunicate request_size=4 [01:06:22]MH_SAM_APDU [01:06:22]CAPDU: 80 11 00 00 [01:06:22]Write to MH i2c: E2 08 00 E4 62 80 11 00 00 00 00 00 00 C0 [01:06:22]Write i2c OK [01:06:22]MH_I2C_Read... [01:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:22]Read from MH i2c: E2 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 17 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: E2 17 00 E4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [01:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:06:22]wFMCommunicate OK [01:06:22]CreateOFDProtocolMessage done [01:06:22]OFDSenderStorePacket 112395 [01:06:22]StoreOFDPacket docnum=112395 [01:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 14 07 01 14 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 35 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B7 01 00 35 04 06 00 E6 73 58 FC FD 7D A7 C7 BA AB AF C8 CA 44 [01:06:22]CheckFolder [01:06:22]dirname=/storage/ofd_packets [01:06:22]CheckFolder done [01:06:22]ProducePacketName [01:06:22]name=ofd_packets/00112395 [01:06:22]NVStorageSaveData ofd_packets/00112395 [01:06:22]File name is /storage/ofd_packets/00112395 [01:06:22]Write 301 bytes [01:06:22]NVStorageSaveData done [01:06:22]OFDSenderStorePacket done [01:06:22]KKMCreateOFDPacket done [01:06:22]NVStorageSaveData kkm_last_timestamp [01:06:22]File name is /storage/kkm_last_timestamp [01:06:22]Write 4 bytes [01:06:22]NVStorageSaveData done [01:06:22]ExternCall_PrintAddStr [01:06:22]wPrintStart [01:06:22]Write to MH i2c: 01 00 00 E5 62 47 [01:06:22]Write i2c OK [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: 01 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: 01 07 00 [01:06:22]MH_I2C_Read... [01:06:22]Read from MH i2c: 01 07 00 E5 62 00 00 00 00 00 FF 0F 5C [01:06:22]RasterBufferAndPrint [01:06:22]line Счет N : (1)321074 [01:06:22]line ИНН: 02508201610067 [01:06:22]line Контрольно-Кассовый Чек [01:06:22]line ПРОДАЖА [01:06:22]line ТРК (МРК, ГНК) : 11 [01:06:22]line Товар: 2710124130 [01:06:22]line Аи-92-К-5 [01:06:22]line 5.000 * 66.40 [01:06:22]line = 332.00 [01:06:22]line НДС 12% НСП 1% [01:06:22]line > о реализуемом товаре [01:06:22]line ИТОГО: 332.00 [01:06:22]line НСП 1% : 2.94 [01:06:22]line НДС 12% : 35.26 [01:06:22]line Наличными: 332.00 [01:06:22]line Безнал.: 0.00 [01:06:22]line Место: АЗС № 65 "Партнер Нефть" [01:06:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:06:22]line СНО: Общий режим [01:06:22]line Чек 261 23.06.2024 01:07 [01:06:22]line Смена: 391 ФФД: 1.0 [01:06:22]line ЗНМ: 0300000198 [01:06:22]line РНМ: 0000000000092771 [01:06:22]line Версия ККМ: 001 [01:06:22]line ФМ: 0000000000875083 [01:06:22]line ФД: 112395 [01:06:22]line ФПД: 253383088602493 [01:06:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010701&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112395&fm=253383088602493&tin=02508201610067®Number=0000000000092771&sum=33200 [01:06:22]OFD Sender: Processing packet 112395 [packets to send 38, broken 37] [01:06:22]ProducePacketName [01:06:22]name=ofd_packets/00112395 [01:06:22]OFD Sender: To server: pG, [01:06:22]CommunicateWithHost lk.salyk.kg:30040 [01:06:22]ConnectInit lk.salyk.kg [01:06:22]written 0, free lines is 4095 [01:06:22]Connected sock=9 [01:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 14 07 01 14 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 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 35 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B7 01 00 35 04 06 00 E6 73 58 FC FD 7D A7 C7 BA AB AF C8 CA 44 [01:06:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DC A9 47 00 95 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B7 01 00 F4 03 04 00 31 0C 77 66 B6 04 01 00 00 A5 1C 94 32 7B 06 98 8A [01:06:23]CommunicateWithHost err = 0 [01:06:23]CheckOFDResponse [01:06:23]1017 (14) - 77093643461234 [01:06:23]1041 (16) - 0000000000875083 [01:06:23]1040 (4) - 112395 [01:06:23]1012 (4) - 22.06.2024 17:38 [01:06:23]1206 (1) - 0 [01:06:23]OFD Sender: Remove packet 112395 [01:06:23]ProducePacketName [01:06:23]name=ofd_packets/00112395 [01:06:23]NVStorageDeleteData [01:06:23]Write to MH i2c: 01 00 00 0D 63 70 [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: 01 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: 01 07 00 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: 01 07 00 0D 63 00 00 00 00 00 05 0D 89 [01:06:23]RasterBufferAndPrint [01:06:23]line [01:06:23]line [01:06:23]line [01:06:23]line [01:06:23]line [01:06:23]written 0, free lines is 3340 [01:06:23]MH_Cut [01:06:23]Write to MH i2c: D1 01 00 14 63 01 49 [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: D1 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: D1 01 00 [01:06:23]MH_I2C_Read... [01:06:23]Read from MH i2c: D1 01 00 14 63 00 48 [01:06:23]Write to MH i2c: 01 00 00 15 63 78 [01:06:23]Write i2c OK [01:06:23]MH_I2C_Read... [01:06:23]OFD Sender: No OFD packet to send [01:06:23]*** Cut start [01:06:23]*** Partial cut [01:06:23]*** CUTSNS_PIN = 1 [01:06:23]*** CUTSNS_PIN = 0 [01:06:24]*** Brake cut motor [01:06:24]Read from MH i2c: 01 [01:06:24]MH_I2C_Read... [01:06:24]*** Stop cut motor [01:06:24]*** Cut end [01:06:24]Read from MH i2c: 01 07 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: 01 07 00 15 63 00 00 00 00 00 FF 0F 8D [01:06:24]process_action close_receipt done [01:06:24]requested_data is exist [01:06:24]produce_requested_data [01:06:24]requested_item fm.sn is exist - process it [01:06:24]wFMCommunicate request_size=4 [01:06:24]MH_SAM_APDU [01:06:24]CAPDU: 80 11 00 00 [01:06:24]Write to MH i2c: E2 08 00 16 63 80 11 00 00 00 00 00 00 F3 [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 [01:06:24]MH_I2C_Read... [01:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:24]Read from MH i2c: E2 17 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 17 00 16 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [01:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:06:24]wFMCommunicate OK [01:06:24]requested_item fd.num is exist - process it [01:06:24]SAM_PROTO_GetFieldsCounters [01:06:24]wFMCommunicate request_size=4 [01:06:24]MH_SAM_APDU [01:06:24]CAPDU: 80 13 00 00 [01:06:24]Write to MH i2c: E2 08 00 17 63 80 13 00 00 00 00 00 00 F6 [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:24]Read from MH i2c: E2 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 62 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 62 00 17 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [01:06:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:24]wFMCommunicate OK [01:06:24]SAM_PROTO_GetFieldsCounters done [01:06:24]requested_item shift.num is exist - process it [01:06:24]requested_item shift.opened is exist - process it [01:06:24]req_shift_opened [01:06:24]FM_GetShiftState [01:06:24]SAM_PROTO_GetShiftState [01:06:24]wFMCommunicate request_size=4 [01:06:24]MH_SAM_APDU [01:06:24]CAPDU: 80 13 01 00 [01:06:24]Write to MH i2c: E2 08 00 18 63 80 13 01 00 00 00 00 00 F8 [01:06:24]Write i2c OK [01:06:24]MH_I2C_Read... [01:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:24]Read from MH i2c: E2 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 0E 00 [01:06:24]MH_I2C_Read... [01:06:24]Read from MH i2c: E2 0E 00 18 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2D [01:06:24]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:06:24]wFMCommunicate OK [01:06:24]SAM_PROTO_GetShiftState done [01:06:24]FM_GetShiftState done [01:06:24]req_shift_opened done [01:06:24]requested_item shift.open_date is exist - process it [01:06:24]req_shift_open_date [01:06:24]req_shift_open_date done [01:06:24]produce_requested_data done [01:06:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112395,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:06:24]process_action_free close_receipt [01:06:24]json_value_free [01:06:24]json_value_free done [01:06:24]process_json_proto returns [01:06:24]Send response to host [01:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112395,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:06:24]free response buf [01:06:24]execute_script done [01:06:24]execute_script returns [01:06:24]free content buf [01:06:24]Sock 10.Close socket [01:06:24]Sock 10.Thread stoped [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:31]accept exits with 7 [01:07:31]New connection [01:07:31]New thread 3066957156 created [01:07:31]Thread 3066813796 joined [01:07:31]Waiting for new connection... [01:07:31] Sock 7.Parse request [01:07:31]Sock 7.Check first char [01:07:31]Sock 7.First char is OK [01:07:31]request: POST /json_proto HTTP/1.0 [01:07:31]Method: POST [01:07:31]URL: /json_proto [01:07:31]Method is POST - this is cgi request [01:07:31]url: /json_proto [01:07:31]query_string will be loaded in cgi processing [01:07:31]execute_cgi json_proto POST (null) [01:07:31]execute_cgi path=json_proto method=POST [01:07:31]POST find Content-Length [01:07:31]Host: 172.17.59.68:8080 [01:07:31]Content-Length: 677 [01:07:31]Content-Type: application/json [01:07:31] [01:07:31]POST finish read [01:07:31]Found Content-Length = 677 [01:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321075", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [01:07:31]execute_script... [01:07:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321075", "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.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [01:07:31]POST & json_proto [01:07:31]process_json_proto [01:07:31]json parsed OK: [01:07:31]protocol is kg_v1.0 [01:07:31]action value=close_receipt [01:07:31]process_action close_receipt [01:07:31]cmd_close_receipt [01:07:31]MH_GetDate [01:07:31]Write to MH i2c: F0 00 00 19 63 6B [01:07:31]Write i2c OK [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: F0 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: F0 09 00 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: F0 09 00 19 63 00 7B 75 77 66 BC EC 60 65 AE [01:07:31]GetLastDocTimeStamp 1719104821 [01:07:31]current date 1719104891 [01:07:31]FM_GetShiftState [01:07:31]SAM_PROTO_GetShiftState [01:07:31]wFMCommunicate request_size=4 [01:07:31]MH_SAM_APDU [01:07:31]CAPDU: 80 13 01 00 [01:07:31]Write to MH i2c: E2 08 00 1A 63 80 13 01 00 00 00 00 00 FA [01:07:31]Write i2c OK [01:07:31]MH_I2C_Read... [01:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:31]Read from MH i2c: E2 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 0E 00 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 0E 00 1A 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 2F [01:07:31]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:07:31]wFMCommunicate OK [01:07:31]SAM_PROTO_GetShiftState done [01:07:31]FM_GetShiftState done [01:07:31]opened in 1719020067 [01:07:31]opened+sec_in_day 1719106467 [01:07:31]quantity*price = 35059 [01:07:31]sum+1 = 35060 [01:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 262 23.06.2024 01:08 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112396 ФПД: 77176297604721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010811&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112396&fm=77176297604721&tin=02508201610067®Number=0000000000092771&sum=35000 [01:07:32]StoreToDocumentArchive [01:07:32]shift 391 fd 112396 [01:07:32]save to /storage/0391/doc_00112396 [01:07:32]save last doc name /storage/0391/doc_00112396 to /storage/kkm_last_doc_name [01:07:32]save OK [01:07:32]Clear old archive folders... [01:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:07:32]tlvbuf is 011D1660 [01:07:32]SAM_PROTO_ClearQueue [01:07:32]wFMCommunicate request_size=4 [01:07:32]MH_SAM_APDU [01:07:32]CAPDU: 80 09 00 00 [01:07:32]Write to MH i2c: E2 08 00 27 63 80 09 00 00 00 00 00 00 FC [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:32]Read from MH i2c: E2 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 27 63 00 90 00 FE [01:07:32]RAPDU: 90 00 [01:07:32]wFMCommunicate OK [01:07:32]SAM_PROTO_ClearQueue done [01:07:32]KKMCreateOFDPacket [01:07:32]OFDProtocolAddRootSTLVToBuf [01:07:32]FM_MakeSignedData [01:07:32]FM_MakeSignedData [01:07:32]SAM_PROTO_SignData [01:07:32]wFMCommunicate request_size=4 [01:07:32]MH_SAM_APDU [01:07:32]CAPDU: 80 0D 01 02 [01:07:32]Write to MH i2c: E2 08 00 28 63 80 0D 01 02 00 00 00 00 04 [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:32]Read from MH i2c: E2 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 28 63 00 90 00 FF [01:07:32]RAPDU: 90 00 [01:07:32]wFMCommunicate OK [01:07:32]wFMCommunicate request_size=255 [01:07:32]MH_SAM_APDU [01:07:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 06 01 00 00 F4 03 04 00 7B 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B7 01 00 35 04 06 00 46 [01:07:32]Write to MH i2c: E2 02 01 29 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 06 01 00 00 F4 03 04 00 7B 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B7 01 00 35 04 06 00 46 00 00 FC [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:32]Read from MH i2c: E2 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 29 63 00 90 00 00 [01:07:32]RAPDU: 90 00 [01:07:32]wFMCommunicate OK [01:07:32]wFMCommunicate request_size=10 [01:07:32]MH_SAM_APDU [01:07:32]CAPDU: 80 0D 02 02 05 31 01 CD C6 71 [01:07:32]Write to MH i2c: E2 0D 00 2A 63 80 0D 02 02 05 00 31 01 CD C6 71 00 00 47 [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:32]Read from MH i2c: E2 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 03 00 2A 63 00 90 00 01 [01:07:32]RAPDU: 90 00 [01:07:32]wFMCommunicate OK [01:07:32]wFMCommunicate request_size=4 [01:07:32]MH_SAM_APDU [01:07:32]CAPDU: 80 0D 03 02 [01:07:32]Write to MH i2c: E2 08 00 2B 63 80 0D 03 02 00 00 00 00 09 [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:32]Read from MH i2c: E2 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 0B 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 0B 00 2B 63 00 54 D2 38 E3 CB A8 6E 22 90 00 4E [01:07:32]RAPDU: 54 D2 38 E3 CB A8 6E 22 90 00 [01:07:32]wFMCommunicate OK [01:07:32]SAM_PROTO_SignData done [01:07:32]FM_MakeSignedData done [01:07:32]CreateOFDProtocolMessage [01:07:32]wFMCommunicate request_size=4 [01:07:32]MH_SAM_APDU [01:07:32]CAPDU: 80 11 00 00 [01:07:32]Write to MH i2c: E2 08 00 2C 63 80 11 00 00 00 00 00 00 09 [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:32]Read from MH i2c: E2 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 17 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: E2 17 00 2C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [01:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:07:32]wFMCommunicate OK [01:07:32]CreateOFDProtocolMessage done [01:07:32]OFDSenderStorePacket 112396 [01:07:32]StoreOFDPacket docnum=112396 [01:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 8C 07 01 1A 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 06 01 00 00 F4 03 04 00 7B 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B7 01 00 35 04 06 00 46 31 01 CD C6 71 54 D2 38 E3 CB A8 6E 22 [01:07:32]CheckFolder [01:07:32]dirname=/storage/ofd_packets [01:07:32]CheckFolder done [01:07:32]ProducePacketName [01:07:32]name=ofd_packets/00112396 [01:07:32]NVStorageSaveData ofd_packets/00112396 [01:07:32]File name is /storage/ofd_packets/00112396 [01:07:32]Write 301 bytes [01:07:32]NVStorageSaveData done [01:07:32]OFDSenderStorePacket done [01:07:32]KKMCreateOFDPacket done [01:07:32]NVStorageSaveData kkm_last_timestamp [01:07:32]File name is /storage/kkm_last_timestamp [01:07:32]Write 4 bytes [01:07:32]NVStorageSaveData done [01:07:32]ExternCall_PrintAddStr [01:07:32]wPrintStart [01:07:32]Write to MH i2c: 01 00 00 2D 63 90 [01:07:32]Write i2c OK [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: 01 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: 01 07 00 [01:07:32]MH_I2C_Read... [01:07:32]Read from MH i2c: 01 07 00 2D 63 00 00 00 00 00 FF 0F A5 [01:07:32]RasterBufferAndPrint [01:07:32]line Счет N : (1)321075 [01:07:32]line ИНН: 02508201610067 [01:07:32]line Контрольно-Кассовый Чек [01:07:32]line ПРОДАЖА [01:07:32]line ТРК (МРК, ГНК) : 11 [01:07:32]line Товар: 2710124130 [01:07:32]line Аи-92-К-5 [01:07:32]line 5.280 * 66.40 [01:07:32]line = 350.59 [01:07:32]line НДС 12% НСП 1% [01:07:32]line > о реализуемом товаре [01:07:32]line ОКРУГЛЕНИЕ: -0.59 [01:07:32]line ИТОГО: 350.00 [01:07:32]line Внесено: 350.00 [01:07:32]line СДАЧА: 0.00 [01:07:32]line НСП 1% : 3.10 [01:07:32]line НДС 12% : 37.23 [01:07:32]line Наличными: 350.00 [01:07:32]line Безнал.: 0.00 [01:07:32]line Место: АЗС № 65 "Партнер Нефть" [01:07:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:07:32]line СНО: Общий режим [01:07:32]line Чек 262 23.06.2024 01:08 [01:07:32]line Смена: 391 ФФД: 1.0 [01:07:32]line ЗНМ: 0300000198 [01:07:32]line РНМ: 0000000000092771 [01:07:32]line Версия ККМ: 001 [01:07:32]line ФМ: 0000000000875083 [01:07:32]line ФД: 112396 [01:07:32]line ФПД: 77176297604721 [01:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T010811&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112396&fm=77176297604721&tin=02508201610067®Number=0000000000092771&sum=35000 [01:07:32]written 0, free lines is 4095 [01:07:33]OFD Sender: Processing packet 112396 [packets to send 38, broken 37] [01:07:33]ProducePacketName [01:07:33]name=ofd_packets/00112396 [01:07:33]OFD Sender: To server: pG, [01:07:33]CommunicateWithHost lk.salyk.kg:30040 [01:07:33]ConnectInit lk.salyk.kg [01:07:33]Connected sock=10 [01:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 8C 07 01 1A 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 06 01 00 00 F4 03 04 00 7B 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B7 01 00 35 04 06 00 46 31 01 CD C6 71 54 D2 38 E3 CB A8 6E 22 [01:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 78 32 47 00 3E D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B7 01 00 F4 03 04 00 77 0C 77 66 B6 04 01 00 00 B3 2D 9E C8 48 A2 85 47 [01:07:33]CommunicateWithHost err = 0 [01:07:33]CheckOFDResponse [01:07:33]1017 (14) - 77093643461234 [01:07:33]1041 (16) - 0000000000875083 [01:07:33]1040 (4) - 112396 [01:07:33]1012 (4) - 22.06.2024 17:40 [01:07:33]1206 (1) - 0 [01:07:33]OFD Sender: Remove packet 112396 [01:07:33]ProducePacketName [01:07:33]name=ofd_packets/00112396 [01:07:33]NVStorageDeleteData [01:07:33]Write to MH i2c: 01 00 00 58 63 BB [01:07:33]Write i2c OK [01:07:33]MH_I2C_Read... [01:07:33]Read from MH i2c: 01 [01:07:33]MH_I2C_Read... [01:07:33]Read from MH i2c: 01 07 00 [01:07:33]MH_I2C_Read... [01:07:33]Read from MH i2c: 01 07 00 58 63 00 00 00 00 00 E0 0C AE [01:07:33]RasterBufferAndPrint [01:07:33]line [01:07:33]line [01:07:33]line [01:07:33]line [01:07:33]line [01:07:33]written 0, free lines is 3302 [01:07:33]MH_Cut [01:07:33]Write to MH i2c: D1 01 00 5F 63 01 94 [01:07:33]Write i2c OK [01:07:33]MH_I2C_Read... [01:07:33]Read from MH i2c: D1 [01:07:33]MH_I2C_Read... [01:07:33]Read from MH i2c: D1 01 00 [01:07:33]MH_I2C_Read... [01:07:33]Read from MH i2c: D1 01 00 5F 63 00 93 [01:07:33]Write to MH i2c: 01 00 00 60 63 C3 [01:07:33]Write i2c OK [01:07:33]MH_I2C_Read... [01:07:33]OFD Sender: No OFD packet to send [01:07:34]*** Cut start [01:07:34]*** Partial cut [01:07:34]*** CUTSNS_PIN = 1 [01:07:34]*** CUTSNS_PIN = 0 [01:07:34]*** Brake cut motor [01:07:34]Read from MH i2c: 01 [01:07:34]MH_I2C_Read... [01:07:34]*** Stop cut motor [01:07:34]*** Cut end [01:07:34]Read from MH i2c: 01 07 00 [01:07:34]MH_I2C_Read... [01:07:34]Read from MH i2c: 01 07 00 60 63 00 00 00 00 00 FF 0F D8 [01:07:34]process_action close_receipt done [01:07:34]requested_data is exist [01:07:34]produce_requested_data [01:07:34]requested_item fm.sn is exist - process it [01:07:34]wFMCommunicate request_size=4 [01:07:34]MH_SAM_APDU [01:07:34]CAPDU: 80 11 00 00 [01:07:34]Write to MH i2c: E2 08 00 61 63 80 11 00 00 00 00 00 00 3E [01:07:34]Write i2c OK [01:07:34]MH_I2C_Read... [01:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:34]Read from MH i2c: E2 [01:07:34]MH_I2C_Read... [01:07:34]Read from MH i2c: E2 17 00 [01:07:34]MH_I2C_Read... [01:07:34]Read from MH i2c: E2 17 00 61 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [01:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:07:34]wFMCommunicate OK [01:07:34]requested_item fd.num is exist - process it [01:07:34]SAM_PROTO_GetFieldsCounters [01:07:34]wFMCommunicate request_size=4 [01:07:34]MH_SAM_APDU [01:07:34]CAPDU: 80 13 00 00 [01:07:34]Write to MH i2c: E2 08 00 62 63 80 13 00 00 00 00 00 00 41 [01:07:34]Write i2c OK [01:07:34]MH_I2C_Read... [01:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:34]Read from MH i2c: E2 [01:07:34]MH_I2C_Read... [01:07:34]Read from MH i2c: E2 62 00 [01:07:34]MH_I2C_Read... [01:07:34]Read from MH i2c: E2 62 00 62 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [01:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:35]wFMCommunicate OK [01:07:35]SAM_PROTO_GetFieldsCounters done [01:07:35]requested_item shift.num is exist - process it [01:07:35]requested_item shift.opened is exist - process it [01:07:35]req_shift_opened [01:07:35]FM_GetShiftState [01:07:35]SAM_PROTO_GetShiftState [01:07:35]wFMCommunicate request_size=4 [01:07:35]MH_SAM_APDU [01:07:35]CAPDU: 80 13 01 00 [01:07:35]Write to MH i2c: E2 08 00 63 63 80 13 01 00 00 00 00 00 43 [01:07:35]Write i2c OK [01:07:35]MH_I2C_Read... [01:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:35]Read from MH i2c: E2 [01:07:35]MH_I2C_Read... [01:07:35]Read from MH i2c: E2 0E 00 [01:07:35]MH_I2C_Read... [01:07:35]Read from MH i2c: E2 0E 00 63 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 78 [01:07:35]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:07:35]wFMCommunicate OK [01:07:35]SAM_PROTO_GetShiftState done [01:07:35]FM_GetShiftState done [01:07:35]req_shift_opened done [01:07:35]requested_item shift.open_date is exist - process it [01:07:35]req_shift_open_date [01:07:35]req_shift_open_date done [01:07:35]produce_requested_data done [01:07:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112396,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:07:35]process_action_free close_receipt [01:07:35]json_value_free [01:07:35]json_value_free done [01:07:35]process_json_proto returns [01:07:35]Send response to host [01:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112396,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:07:35]free response buf [01:07:35]execute_script done [01:07:35]execute_script returns [01:07:35]free content buf [01:07:35]Sock 7.Close socket [01:07:35]Sock 7.Thread stoped [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:37]accept exits with 9 [01:09:37]New connection [01:09:37]New thread 3066813796 created [01:09:37]Thread 3066957156 joined [01:09:37]Waiting for new connection... [01:09:37] Sock 9.Parse request [01:09:37]Sock 9.Check first char [01:09:37]Sock 9.First char is OK [01:09:37]request: POST /json_proto HTTP/1.0 [01:09:37]Method: POST [01:09:37]URL: /json_proto [01:09:37]Method is POST - this is cgi request [01:09:37]url: /json_proto [01:09:37]query_string will be loaded in cgi processing [01:09:37]execute_cgi json_proto POST (null) [01:09:37]execute_cgi path=json_proto method=POST [01:09:37]POST find Content-Length [01:09:37]Host: 172.17.59.68:8080 [01:09:37]Content-Length: 677 [01:09:37]Content-Type: application/json [01:09:37] [01:09:37]POST finish read [01:09:37]Found Content-Length = 677 [01:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321076", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [01:09:37]execute_script... [01:09: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)321076", "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.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [01:09:37]POST & json_proto [01:09:37]process_json_proto [01:09:37]json parsed OK: [01:09:37]protocol is kg_v1.0 [01:09:37]action value=close_receipt [01:09:37]process_action close_receipt [01:09:37]cmd_close_receipt [01:09:37]MH_GetDate [01:09:37]Write to MH i2c: F0 00 00 64 63 B6 [01:09:37]Write i2c OK [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: F0 [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: F0 09 00 [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: F0 09 00 64 63 00 F9 75 77 66 BC EC 60 65 77 [01:09:37]GetLastDocTimeStamp 1719104891 [01:09:37]current date 1719105017 [01:09:37]FM_GetShiftState [01:09:37]SAM_PROTO_GetShiftState [01:09:37]wFMCommunicate request_size=4 [01:09:37]MH_SAM_APDU [01:09:37]CAPDU: 80 13 01 00 [01:09:37]Write to MH i2c: E2 08 00 65 63 80 13 01 00 00 00 00 00 45 [01:09:37]Write i2c OK [01:09:37]MH_I2C_Read... [01:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:37]Read from MH i2c: E2 [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: E2 0E 00 [01:09:37]MH_I2C_Read... [01:09:37]Read from MH i2c: E2 0E 00 65 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7A [01:09:37]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:09:37]wFMCommunicate OK [01:09:37]SAM_PROTO_GetShiftState done [01:09:37]FM_GetShiftState done [01:09:37]opened in 1719020067 [01:09:37]opened+sec_in_day 1719106467 [01:09:37]quantity*price = 40039 [01:09:37]sum+1 = 40040 [01:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 263 23.06.2024 01:10 Смена: 391 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112397 ФПД: 9393383176538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T011017&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112397&fm=9393383176538&tin=02508201610067®Number=0000000000092771&sum=40000 [01:09:38]StoreToDocumentArchive [01:09:38]shift 391 fd 112397 [01:09:38]save to /storage/0391/doc_00112397 [01:09:38]save last doc name /storage/0391/doc_00112397 to /storage/kkm_last_doc_name [01:09:38]save OK [01:09:38]Clear old archive folders... [01:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:09:38]tlvbuf is 012BAA10 [01:09:38]SAM_PROTO_ClearQueue [01:09:38]wFMCommunicate request_size=4 [01:09:38]MH_SAM_APDU [01:09:38]CAPDU: 80 09 00 00 [01:09:38]Write to MH i2c: E2 08 00 72 63 80 09 00 00 00 00 00 00 47 [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 [01:09:38]MH_I2C_Read... [01:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:38]Read from MH i2c: E2 03 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 03 00 72 63 00 90 00 49 [01:09:38]RAPDU: 90 00 [01:09:38]wFMCommunicate OK [01:09:38]SAM_PROTO_ClearQueue done [01:09:38]KKMCreateOFDPacket [01:09:38]OFDProtocolAddRootSTLVToBuf [01:09:38]FM_MakeSignedData [01:09:38]FM_MakeSignedData [01:09:38]SAM_PROTO_SignData [01:09:38]wFMCommunicate request_size=4 [01:09:38]MH_SAM_APDU [01:09:38]CAPDU: 80 0D 01 02 [01:09:38]Write to MH i2c: E2 08 00 73 63 80 0D 01 02 00 00 00 00 4F [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 [01:09:38]MH_I2C_Read... [01:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:38]Read from MH i2c: E2 03 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 03 00 73 63 00 90 00 4A [01:09:38]RAPDU: 90 00 [01:09:38]wFMCommunicate OK [01:09:38]wFMCommunicate request_size=255 [01:09:38]MH_SAM_APDU [01:09: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 07 01 00 00 F4 03 04 00 F9 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B7 01 00 35 04 06 00 08 [01:09:38]Write to MH i2c: E2 02 01 74 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 07 01 00 00 F4 03 04 00 F9 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B7 01 00 35 04 06 00 08 00 00 79 [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:38]Read from MH i2c: E2 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 03 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 03 00 74 63 00 90 00 4B [01:09:38]RAPDU: 90 00 [01:09:38]wFMCommunicate OK [01:09:38]wFMCommunicate request_size=10 [01:09:38]MH_SAM_APDU [01:09:38]CAPDU: 80 0D 02 02 05 8B 11 44 79 5A [01:09:38]Write to MH i2c: E2 0D 00 75 63 80 0D 02 02 05 00 8B 11 44 79 5A 00 00 0F [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:38]Read from MH i2c: E2 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 03 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 03 00 75 63 00 90 00 4C [01:09:38]RAPDU: 90 00 [01:09:38]wFMCommunicate OK [01:09:38]wFMCommunicate request_size=4 [01:09:38]MH_SAM_APDU [01:09:38]CAPDU: 80 0D 03 02 [01:09:38]Write to MH i2c: E2 08 00 76 63 80 0D 03 02 00 00 00 00 54 [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:38]Read from MH i2c: E2 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 0B 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 0B 00 76 63 00 E5 03 0B AD 97 93 5F 96 90 00 14 [01:09:38]RAPDU: E5 03 0B AD 97 93 5F 96 90 00 [01:09:38]wFMCommunicate OK [01:09:38]SAM_PROTO_SignData done [01:09:38]FM_MakeSignedData done [01:09:38]CreateOFDProtocolMessage [01:09:38]wFMCommunicate request_size=4 [01:09:38]MH_SAM_APDU [01:09:38]CAPDU: 80 11 00 00 [01:09:38]Write to MH i2c: E2 08 00 77 63 80 11 00 00 00 00 00 00 54 [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:38]Read from MH i2c: E2 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 17 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: E2 17 00 77 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [01:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:09:38]wFMCommunicate OK [01:09:38]CreateOFDProtocolMessage done [01:09:38]OFDSenderStorePacket 112397 [01:09:38]StoreOFDPacket docnum=112397 [01:09:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 A6 07 01 F4 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 07 01 00 00 F4 03 04 00 F9 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B7 01 00 35 04 06 00 08 8B 11 44 79 5A E5 03 0B AD 97 93 5F 96 [01:09:38]CheckFolder [01:09:38]dirname=/storage/ofd_packets [01:09:38]CheckFolder done [01:09:38]ProducePacketName [01:09:38]name=ofd_packets/00112397 [01:09:38]NVStorageSaveData ofd_packets/00112397 [01:09:38]File name is /storage/ofd_packets/00112397 [01:09:38]Write 301 bytes [01:09:38]NVStorageSaveData done [01:09:38]OFDSenderStorePacket done [01:09:38]KKMCreateOFDPacket done [01:09:38]NVStorageSaveData kkm_last_timestamp [01:09:38]File name is /storage/kkm_last_timestamp [01:09:38]Write 4 bytes [01:09:38]NVStorageSaveData done [01:09:38]ExternCall_PrintAddStr [01:09:38]wPrintStart [01:09:38]Write to MH i2c: 01 00 00 78 63 DB [01:09:38]Write i2c OK [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: 01 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: 01 07 00 [01:09:38]MH_I2C_Read... [01:09:38]Read from MH i2c: 01 07 00 78 63 00 00 00 00 00 FF 0F F0 [01:09:38]RasterBufferAndPrint [01:09:38]line Счет N : (1)321076 [01:09:38]line ИНН: 02508201610067 [01:09:38]line Контрольно-Кассовый Чек [01:09:38]line ПРОДАЖА [01:09:38]line ТРК (МРК, ГНК) : 11 [01:09:38]line Товар: 2710124130 [01:09:38]line Аи-92-К-5 [01:09:38]line 6.030 * 66.40 [01:09:38]line = 400.39 [01:09:38]line НДС 12% НСП 1% [01:09:38]line > о реализуемом товаре [01:09:38]line ОКРУГЛЕНИЕ: -0.39 [01:09:38]line ИТОГО: 400.00 [01:09:38]line Внесено: 400.00 [01:09:38]line СДАЧА: 0.00 [01:09:38]line НСП 1% : 3.54 [01:09:38]line НДС 12% : 42.52 [01:09:38]line Наличными: 400.00 [01:09:38]line Безнал.: 0.00 [01:09:38]line Место: АЗС № 65 "Партнер Нефть" [01:09:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:09:38]line СНО: Общий режим [01:09:38]line Чек 263 23.06.2024 01:10 [01:09:38]line Смена: 391 ФФД: 1.0 [01:09:38]line ЗНМ: 0300000198 [01:09:38]line РНМ: 0000000000092771 [01:09:38]line Версия ККМ: 001 [01:09:38]line ФМ: 0000000000875083 [01:09:38]line ФД: 112397 [01:09:38]line ФПД: 9393383176538 [01:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T011017&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112397&fm=9393383176538&tin=02508201610067®Number=0000000000092771&sum=40000 [01:09:39]OFD Sender: Processing packet 112397 [packets to send 38, broken 37] [01:09:39]ProducePacketName [01:09:39]name=ofd_packets/00112397 [01:09:39]OFD Sender: To server: pG, [01:09:39]CommunicateWithHost lk.salyk.kg:30040 [01:09:39]ConnectInit lk.salyk.kg [01:09:39]written 0, free lines is 4095 [01:09:39]Connected sock=10 [01:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 A6 07 01 F4 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 07 01 00 00 F4 03 04 00 F9 75 77 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B7 01 00 35 04 06 00 08 8B 11 44 79 5A E5 03 0B AD 97 93 5F 96 [01:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 31 47 00 47 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B7 01 00 F4 03 04 00 F5 0C 77 66 B6 04 01 00 00 38 A7 FB 21 E6 73 E2 07 [01:09:39]CommunicateWithHost err = 0 [01:09:39]CheckOFDResponse [01:09:39]1017 (14) - 77093643461234 [01:09:39]1041 (16) - 0000000000875083 [01:09:39]1040 (4) - 112397 [01:09:39]1012 (4) - 22.06.2024 17:42 [01:09:39]1206 (1) - 0 [01:09:39]OFD Sender: Remove packet 112397 [01:09:39]ProducePacketName [01:09:39]name=ofd_packets/00112397 [01:09:39]NVStorageDeleteData [01:09:39]Write to MH i2c: 01 00 00 A3 63 06 [01:09:39]Write i2c OK [01:09:39]MH_I2C_Read... [01:09:39]Read from MH i2c: 01 [01:09:39]MH_I2C_Read... [01:09:39]Read from MH i2c: 01 07 00 [01:09:39]MH_I2C_Read... [01:09:39]Read from MH i2c: 01 07 00 A3 63 00 00 00 00 00 E4 0C FD [01:09:39]RasterBufferAndPrint [01:09:39]line [01:09:39]line [01:09:39]line [01:09:39]line [01:09:39]line [01:09:39]written 0, free lines is 3309 [01:09:39]MH_Cut [01:09:39]Write to MH i2c: D1 01 00 AA 63 01 DF [01:09:39]Write i2c OK [01:09:39]MH_I2C_Read... [01:09:39]Read from MH i2c: D1 [01:09:39]MH_I2C_Read... [01:09:39]Read from MH i2c: D1 01 00 [01:09:39]MH_I2C_Read... [01:09:39]Read from MH i2c: D1 01 00 AA 63 00 DE [01:09:39]Write to MH i2c: 01 00 00 AB 63 0E [01:09:39]Write i2c OK [01:09:39]MH_I2C_Read... [01:09:40]OFD Sender: No OFD packet to send [01:09:40]*** Cut start [01:09:40]*** Partial cut [01:09:40]*** CUTSNS_PIN = 1 [01:09:40]*** CUTSNS_PIN = 0 [01:09:40]*** Brake cut motor [01:09:41]Read from MH i2c: 01 [01:09:41]MH_I2C_Read... [01:09:41]*** Stop cut motor [01:09:41]*** Cut end [01:09:41]Read from MH i2c: 01 07 00 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: 01 07 00 AB 63 00 00 00 00 00 FF 0F 23 [01:09:41]process_action close_receipt done [01:09:41]requested_data is exist [01:09:41]produce_requested_data [01:09:41]requested_item fm.sn is exist - process it [01:09:41]wFMCommunicate request_size=4 [01:09:41]MH_SAM_APDU [01:09:41]CAPDU: 80 11 00 00 [01:09:41]Write to MH i2c: E2 08 00 AC 63 80 11 00 00 00 00 00 00 89 [01:09:41]Write i2c OK [01:09:41]MH_I2C_Read... [01:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:41]Read from MH i2c: E2 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 17 00 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 17 00 AC 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [01:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:09:41]wFMCommunicate OK [01:09:41]requested_item fd.num is exist - process it [01:09:41]SAM_PROTO_GetFieldsCounters [01:09:41]wFMCommunicate request_size=4 [01:09:41]MH_SAM_APDU [01:09:41]CAPDU: 80 13 00 00 [01:09:41]Write to MH i2c: E2 08 00 AD 63 80 13 00 00 00 00 00 00 8C [01:09:41]Write i2c OK [01:09:41]MH_I2C_Read... [01:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:41]Read from MH i2c: E2 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 62 00 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 62 00 AD 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [01:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:41]wFMCommunicate OK [01:09:41]SAM_PROTO_GetFieldsCounters done [01:09:41]requested_item shift.num is exist - process it [01:09:41]requested_item shift.opened is exist - process it [01:09:41]req_shift_opened [01:09:41]FM_GetShiftState [01:09:41]SAM_PROTO_GetShiftState [01:09:41]wFMCommunicate request_size=4 [01:09:41]MH_SAM_APDU [01:09:41]CAPDU: 80 13 01 00 [01:09:41]Write to MH i2c: E2 08 00 AE 63 80 13 01 00 00 00 00 00 8E [01:09:41]Write i2c OK [01:09:41]MH_I2C_Read... [01:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:41]Read from MH i2c: E2 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 0E 00 [01:09:41]MH_I2C_Read... [01:09:41]Read from MH i2c: E2 0E 00 AE 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C3 [01:09:41]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:09:41]wFMCommunicate OK [01:09:41]SAM_PROTO_GetShiftState done [01:09:41]FM_GetShiftState done [01:09:41]req_shift_opened done [01:09:41]requested_item shift.open_date is exist - process it [01:09:41]req_shift_open_date [01:09:41]req_shift_open_date done [01:09:41]produce_requested_data done [01:09:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:09:41]process_action_free close_receipt [01:09:41]json_value_free [01:09:41]json_value_free done [01:09:41]process_json_proto returns [01:09:41]Send response to host [01:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:09:41]free response buf [01:09:41]execute_script done [01:09:41]execute_script returns [01:09:41]free content buf [01:09:41]Sock 9.Close socket [01:09:41]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27: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:10]accept exits with 7 [01:29:10]New connection [01:29:10]New thread 3066957156 created [01:29:10]Thread 3066813796 joined [01:29:10]Waiting for new connection... [01:29:10] Sock 7.Parse request [01:29:10]Sock 7.Check first char [01:29:10]Sock 7.First char is OK [01:29:10]request: POST /json_proto HTTP/1.0 [01:29:10]Method: POST [01:29:10]URL: /json_proto [01:29:10]Method is POST - this is cgi request [01:29:10]url: /json_proto [01:29:10]query_string will be loaded in cgi processing [01:29:10]execute_cgi json_proto POST (null) [01:29:10]execute_cgi path=json_proto method=POST [01:29:10]POST find Content-Length [01:29:10]Host: 172.17.59.68:8080 [01:29:10]Content-Length: 215 [01:29:10]Content-Type: application/json [01:29:10] [01:29:10]POST finish read [01:29:10]Found Content-Length = 215 [01:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:10]execute_script... [01:29:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:10]POST & json_proto [01:29:10]process_json_proto [01:29:10]json parsed OK: [01:29:10]protocol is kg_v1.0 [01:29:10]action value=get_value [01:29:10]process_action get_value [01:29:10]cmd_get_value [01:29:10]process_action get_value done [01:29:10]requested_data is exist [01:29:10]produce_requested_data [01:29:10]requested_item kkm.sn is exist - process it [01:29:10]requested_item kkm.ver is exist - process it [01:29:10]requested_item fm.sn is exist - process it [01:29:10]wFMCommunicate request_size=4 [01:29:10]MH_SAM_APDU [01:29:10]CAPDU: 80 11 00 00 [01:29:10]Write to MH i2c: E2 08 00 AF 63 80 11 00 00 00 00 00 00 8C [01:29:10]Write i2c OK [01:29:10]MH_I2C_Read... [01:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:10]Read from MH i2c: E2 [01:29:10]MH_I2C_Read... [01:29:10]Read from MH i2c: E2 17 00 [01:29:10]MH_I2C_Read... [01:29:10]Read from MH i2c: E2 17 00 AF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [01:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:29:10]wFMCommunicate OK [01:29:10]requested_item fd.num is exist - process it [01:29:10]SAM_PROTO_GetFieldsCounters [01:29:10]wFMCommunicate request_size=4 [01:29:10]MH_SAM_APDU [01:29:10]CAPDU: 80 13 00 00 [01:29:10]Write to MH i2c: E2 08 00 B0 63 80 13 00 00 00 00 00 00 8F [01:29:10]Write i2c OK [01:29:10]MH_I2C_Read... [01:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:10]Read from MH i2c: E2 [01:29:10]MH_I2C_Read... [01:29:10]Read from MH i2c: E2 62 00 [01:29:10]MH_I2C_Read... [01:29:10]Read from MH i2c: E2 62 00 B0 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [01:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:10]wFMCommunicate OK [01:29:10]SAM_PROTO_GetFieldsCounters done [01:29:10]requested_item shift.num is exist - process it [01:29:10]requested_item shift.opened is exist - process it [01:29:10]req_shift_opened [01:29:10]FM_GetShiftState [01:29:10]SAM_PROTO_GetShiftState [01:29:10]wFMCommunicate request_size=4 [01:29:10]MH_SAM_APDU [01:29:10]CAPDU: 80 13 01 00 [01:29:10]Write to MH i2c: E2 08 00 B1 63 80 13 01 00 00 00 00 00 91 [01:29:10]Write i2c OK [01:29:10]MH_I2C_Read... [01:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:10]Read from MH i2c: E2 [01:29:10]MH_I2C_Read... [01:29:10]Read from MH i2c: E2 0E 00 [01:29:10]MH_I2C_Read... [01:29:10]Read from MH i2c: E2 0E 00 B1 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 C6 [01:29:10]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:29:10]wFMCommunicate OK [01:29:10]SAM_PROTO_GetShiftState done [01:29:10]FM_GetShiftState done [01:29:10]req_shift_opened done [01:29:10]requested_item shift.open_date is exist - process it [01:29:10]req_shift_open_date [01:29:10]req_shift_open_date done [01:29:10]produce_requested_data done [01:29:10]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:29:10]process_action_free get_value [01:29:10]json_value_free [01:29:10]json_value_free done [01:29:10]process_json_proto returns [01:29:10]Send response to host [01:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:29:10]free response buf [01:29:10]execute_script done [01:29:10]execute_script returns [01:29:10]free content buf [01:29:10]Sock 7.Close socket [01:29:10]Sock 7.Thread stoped [01:29:10]accept exits with 9 [01:29:10]New connection [01:29:10]New thread 3066813796 created [01:29:10]Thread 3066957156 joined [01:29:10]Waiting for new connection... [01:29:10] Sock 9.Parse request [01:29:10]Sock 9.Check first char [01:29:10]Sock 9.First char is OK [01:29:10]request: POST /json_proto HTTP/1.0 [01:29:10]Method: POST [01:29:10]URL: /json_proto [01:29:10]Method is POST - this is cgi request [01:29:10]url: /json_proto [01:29:10]query_string will be loaded in cgi processing [01:29:10]execute_cgi json_proto POST (null) [01:29:10]execute_cgi path=json_proto method=POST [01:29:10]POST find Content-Length [01:29:10]Host: 172.17.59.68:8080 [01:29:10]Content-Length: 331 [01:29:10]Content-Type: application/json [01:29:10] [01:29:10]POST finish read [01:29:10]Found Content-Length = 331 [01:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:10]execute_script... [01:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:11]POST & json_proto [01:29:11]process_json_proto [01:29:11]json parsed OK: [01:29:11]protocol is kg_v1.0 [01:29:11]action value=get_value [01:29:11]process_action get_value [01:29:11]cmd_get_value [01:29:11]process_action get_value done [01:29:11]requested_data is exist [01:29:11]produce_requested_data [01:29:11]requested_item fm.sale.total is exist - process it [01:29:11]SAM_PROTO_GetFMData [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 13 03 00 [01:29:11]Write to MH i2c: E2 08 00 B2 63 80 13 03 00 00 00 00 00 94 [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:11]OFD Sender: No OFD packet to send [01:29:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:11]Read from MH i2c: E2 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 FD 00 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 FD 00 B2 63 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 CC [01:29:11]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:29:11]wFMCommunicate OK [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 17 00 00 [01:29:11]Write to MH i2c: E2 08 00 B3 63 80 17 00 00 00 00 00 00 96 [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:11]Read from MH i2c: E2 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 FD 00 [01:29:11]MH_I2C_Read... [01:29:11]Read from MH i2c: E2 FD 00 B3 63 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [01:29:11]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:11]wFMCommunicate OK [01:29:11]wFMCommunicate request_size=4 [01:29:11]MH_SAM_APDU [01:29:11]CAPDU: 80 17 00 00 [01:29:11]Write to MH i2c: E2 08 00 B4 63 80 17 00 00 00 00 00 00 97 [01:29:11]Write i2c OK [01:29:11]MH_I2C_Read... [01:29:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 B4 63 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C9 [01:29:12]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:12]wFMCommunicate OK [01:29:12]wFMCommunicate request_size=4 [01:29:12]MH_SAM_APDU [01:29:12]CAPDU: 80 17 00 00 [01:29:12]Write to MH i2c: E2 08 00 B5 63 80 17 00 00 00 00 00 00 98 [01:29:12]Write i2c OK [01:29:12]MH_I2C_Read... [01:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 B5 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0F [01:29:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:12]wFMCommunicate OK [01:29:12]wFMCommunicate request_size=4 [01:29:12]MH_SAM_APDU [01:29:12]CAPDU: 80 17 00 00 [01:29:12]Write to MH i2c: E2 08 00 B6 63 80 17 00 00 00 00 00 00 99 [01:29:12]Write i2c OK [01:29:12]MH_I2C_Read... [01:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 DA 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 DA 00 B6 63 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7A [01:29:12]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:12]wFMCommunicate OK [01:29:12]SAM_PROTO_GetFMData done [01:29:12]requested_item fm.sale_refund.total is exist - process it [01:29:12]requested_item fm.buy.total is exist - process it [01:29:12]requested_item shift.sale.total is exist - process it [01:29:12]SAM_PROTO_GetShiftData [01:29:12]wFMCommunicate request_size=4 [01:29:12]MH_SAM_APDU [01:29:12]CAPDU: 80 13 02 00 [01:29:12]Write to MH i2c: E2 08 00 B7 63 80 13 02 00 00 00 00 00 98 [01:29:12]Write i2c OK [01:29:12]MH_I2C_Read... [01:29:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:29:12]Read from MH i2c: E2 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 [01:29:12]MH_I2C_Read... [01:29:12]Read from MH i2c: E2 FD 00 B7 63 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 11 [01:29:12]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:29:13]wFMCommunicate OK [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 17 00 00 [01:29:13]Write to MH i2c: E2 08 00 B8 63 80 17 00 00 00 00 00 00 9B [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:13]Read from MH i2c: E2 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 B8 63 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 B4 [01:29:13]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 [01:29:13]wFMCommunicate OK [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 17 00 00 [01:29:13]Write to MH i2c: E2 08 00 B9 63 80 17 00 00 00 00 00 00 9C [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:13]Read from MH i2c: E2 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 B9 63 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 55 [01:29:13]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 [01:29:13]wFMCommunicate OK [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 17 00 00 [01:29:13]Write to MH i2c: E2 08 00 BA 63 80 17 00 00 00 00 00 00 9D [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:13]Read from MH i2c: E2 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 [01:29:13]MH_I2C_Read... [01:29:13]Read from MH i2c: E2 FD 00 BA 63 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 15 [01:29:13]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 [01:29:13]wFMCommunicate OK [01:29:13]wFMCommunicate request_size=4 [01:29:13]MH_SAM_APDU [01:29:13]CAPDU: 80 17 00 00 [01:29:13]Write to MH i2c: E2 08 00 BB 63 80 17 00 00 00 00 00 00 9E [01:29:13]Write i2c OK [01:29:13]MH_I2C_Read... [01:29:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:29:14]Read from MH i2c: E2 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 CE 00 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 CE 00 BB 63 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 83 [01:29:14]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 [01:29:14]wFMCommunicate OK [01:29:14]SAM_PROTO_GetShiftData done [01:29:14]requested_item shift.sale.total_cash is exist - process it [01:29:14]requested_item shift.sale_refund.total is exist - process it [01:29:14]requested_item shift.sale_refund.total_cash is exist - process it [01:29:14]requested_item shift.buy.total is exist - process it [01:29:14]requested_item shift.buy.total_cash is exist - process it [01:29:14]produce_requested_data done [01:29:14]produce_requested_data return {"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:29:14]process_action_free get_value [01:29:14]json_value_free [01:29:14]json_value_free done [01:29:14]process_json_proto returns [01:29:14]Send response to host [01:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:29:14]free response buf [01:29:14]execute_script done [01:29:14]execute_script returns [01:29:14]free content buf [01:29:14]Sock 9.Close socket [01:29:14]Sock 9.Thread stoped [01:29:14]accept exits with 7 [01:29:14]New connection [01:29:14]New thread 3066957156 created [01:29:14]Thread 3066813796 joined [01:29:14]Waiting for new connection... [01:29:14] Sock 7.Parse request [01:29:14]Sock 7.Check first char [01:29:14]Sock 7.First char is OK [01:29:14]request: POST /json_proto HTTP/1.0 [01:29:14]Method: POST [01:29:14]URL: /json_proto [01:29:14]Method is POST - this is cgi request [01:29:14]url: /json_proto [01:29:14]query_string will be loaded in cgi processing [01:29:14]execute_cgi json_proto POST (null) [01:29:14]execute_cgi path=json_proto method=POST [01:29:14]POST find Content-Length [01:29:14]Host: 172.17.59.68:8080 [01:29:14]Content-Length: 331 [01:29:14]Content-Type: application/json [01:29:14] [01:29:14]POST finish read [01:29:14]Found Content-Length = 331 [01:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:14]execute_script... [01:29:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:14]POST & json_proto [01:29:14]process_json_proto [01:29:14]json parsed OK: [01:29:14]protocol is kg_v1.0 [01:29:14]action value=get_value [01:29:14]process_action get_value [01:29:14]cmd_get_value [01:29:14]process_action get_value done [01:29:14]requested_data is exist [01:29:14]produce_requested_data [01:29:14]requested_item fm.sale.total is exist - process it [01:29:14]SAM_PROTO_GetFMData [01:29:14]wFMCommunicate request_size=4 [01:29:14]MH_SAM_APDU [01:29:14]CAPDU: 80 13 03 00 [01:29:14]Write to MH i2c: E2 08 00 BC 63 80 13 03 00 00 00 00 00 9E [01:29:14]Write i2c OK [01:29:14]MH_I2C_Read... [01:29:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:14]Read from MH i2c: E2 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 [01:29:14]MH_I2C_Read... [01:29:14]Read from MH i2c: E2 FD 00 BC 63 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 D6 [01:29:14]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:29:14]wFMCommunicate OK [01:29:14]wFMCommunicate request_size=4 [01:29:14]MH_SAM_APDU [01:29:14]CAPDU: 80 17 00 00 [01:29:14]Write to MH i2c: E2 08 00 BD 63 80 17 00 00 00 00 00 00 A0 [01:29:14]Write i2c OK [01:29:14]MH_I2C_Read... [01:29:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:15]Read from MH i2c: E2 [01:29:15]MH_I2C_Read... [01:29:15]Read from MH i2c: E2 FD 00 [01:29:15]MH_I2C_Read... [01:29:15]Read from MH i2c: E2 FD 00 BD 63 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [01:29:15]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:15]wFMCommunicate OK [01:29:15]wFMCommunicate request_size=4 [01:29:15]MH_SAM_APDU [01:29:15]CAPDU: 80 17 00 00 [01:29:15]Write to MH i2c: E2 08 00 BE 63 80 17 00 00 00 00 00 00 A1 [01:29:15]Write i2c OK [01:29:15]MH_I2C_Read... [01:29:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:15]Read from MH i2c: E2 [01:29:15]MH_I2C_Read... [01:29:15]Read from MH i2c: E2 FD 00 [01:29:15]MH_I2C_Read... [01:29:15]Read from MH i2c: E2 FD 00 BE 63 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D3 [01:29:15]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:15]wFMCommunicate OK [01:29:15]wFMCommunicate request_size=4 [01:29:15]MH_SAM_APDU [01:29:15]CAPDU: 80 17 00 00 [01:29:15]Write to MH i2c: E2 08 00 BF 63 80 17 00 00 00 00 00 00 A2 [01:29:15]Write i2c OK [01:29:15]MH_I2C_Read... [01:29:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:15]Read from MH i2c: E2 [01:29:15]MH_I2C_Read... [01:29:15]Read from MH i2c: E2 FD 00 [01:29:15]MH_I2C_Read... [01:29:15]Read from MH i2c: E2 FD 00 BF 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 19 [01:29:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:15]wFMCommunicate OK [01:29:15]wFMCommunicate request_size=4 [01:29:15]MH_SAM_APDU [01:29:15]CAPDU: 80 17 00 00 [01:29:15]Write to MH i2c: E2 08 00 C0 63 80 17 00 00 00 00 00 00 A3 [01:29:15]Write i2c OK [01:29:15]MH_I2C_Read... [01:29:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:29:16]Read from MH i2c: E2 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: E2 DA 00 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: E2 DA 00 C0 63 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [01:29:16]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 84 [01:29:16]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:16]wFMCommunicate OK [01:29:16]SAM_PROTO_GetFMData done [01:29:16]requested_item fm.sale_refund.total is exist - process it [01:29:16]requested_item fm.buy.total is exist - process it [01:29:16]requested_item shift.sale.total is exist - process it [01:29:16]SAM_PROTO_GetShiftData [01:29:16]wFMCommunicate request_size=4 [01:29:16]MH_SAM_APDU [01:29:16]CAPDU: 80 13 02 00 [01:29:16]Write to MH i2c: E2 08 00 C1 63 80 13 02 00 00 00 00 00 A2 [01:29:16]Write i2c OK [01:29:16]MH_I2C_Read... [01:29:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:29:16]Read from MH i2c: E2 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: E2 FD 00 [01:29:16]MH_I2C_Read... [01:29:16]Read from MH i2c: E2 FD 00 C1 63 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 1B [01:29:16]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:29:16]wFMCommunicate OK [01:29:16]wFMCommunicate request_size=4 [01:29:16]MH_SAM_APDU [01:29:16]CAPDU: 80 17 00 00 [01:29:16]Write to MH i2c: E2 08 00 C2 63 80 17 00 00 00 00 00 00 A5 [01:29:16]Write i2c OK [01:29:16]MH_I2C_Read... [01:29:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:17]Read from MH i2c: E2 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 FD 00 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 FD 00 C2 63 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 BE [01:29:17]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 [01:29:17]wFMCommunicate OK [01:29:17]wFMCommunicate request_size=4 [01:29:17]MH_SAM_APDU [01:29:17]CAPDU: 80 17 00 00 [01:29:17]Write to MH i2c: E2 08 00 C3 63 80 17 00 00 00 00 00 00 A6 [01:29:17]Write i2c OK [01:29:17]MH_I2C_Read... [01:29:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:17]Read from MH i2c: E2 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 FD 00 [01:29:17]MH_I2C_Read... [01:29:17]Read from MH i2c: E2 FD 00 C3 63 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 5F [01:29: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 [01:29:17]wFMCommunicate OK [01:29:17]wFMCommunicate request_size=4 [01:29:17]MH_SAM_APDU [01:29:17]CAPDU: 80 17 00 00 [01:29:17]Write to MH i2c: E2 08 00 C4 63 80 17 00 00 00 00 00 00 A7 [01:29:17]Write i2c OK [01:29:17]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 FD 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 FD 00 C4 63 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 1F [01:29: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 [01:29:18]wFMCommunicate OK [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 17 00 00 [01:29:18]Write to MH i2c: E2 08 00 C5 63 80 17 00 00 00 00 00 00 A8 [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 CE 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 CE 00 C5 63 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 8D [01:29: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 [01:29:18]wFMCommunicate OK [01:29:18]SAM_PROTO_GetShiftData done [01:29:18]requested_item shift.sale.total_cash is exist - process it [01:29:18]requested_item shift.sale_refund.total is exist - process it [01:29:18]requested_item shift.sale_refund.total_cash is exist - process it [01:29:18]requested_item shift.buy.total is exist - process it [01:29:18]requested_item shift.buy.total_cash is exist - process it [01:29:18]produce_requested_data done [01:29:18]produce_requested_data return {"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:29:18]process_action_free get_value [01:29:18]json_value_free [01:29:18]json_value_free done [01:29:18]process_json_proto returns [01:29:18]Send response to host [01:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:29:18]free response buf [01:29:18]execute_script done [01:29:18]execute_script returns [01:29:18]free content buf [01:29:18]Sock 7.Close socket [01:29:18]Sock 7.Thread stoped [01:29:18]accept exits with 9 [01:29:18]New connection [01:29:18]New thread 3066813796 created [01:29:18]Thread 3066957156 joined [01:29:18]Waiting for new connection... [01:29:18] Sock 9.Parse request [01:29:18]Sock 9.Check first char [01:29:18]Sock 9.First char is OK [01:29:18]request: POST /json_proto HTTP/1.0 [01:29:18]Method: POST [01:29:18]URL: /json_proto [01:29:18]Method is POST - this is cgi request [01:29:18]url: /json_proto [01:29:18]query_string will be loaded in cgi processing [01:29:18]execute_cgi json_proto POST (null) [01:29:18]execute_cgi path=json_proto method=POST [01:29:18]POST find Content-Length [01:29:18]Host: 172.17.59.68:8080 [01:29:18]Content-Length: 263 [01:29:18]Content-Type: application/json [01:29:18] [01:29:18]POST finish read [01:29:18]Found Content-Length = 263 [01:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:18]execute_script... [01:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:18]POST & json_proto [01:29:18]process_json_proto [01:29:18]json parsed OK: [01:29:18]protocol is kg_v1.0 [01:29:18]action value=x_report [01:29:18]process_action x_report [01:29:18]cmd_x_report [01:29:18]MH_GetDate [01:29:18]Write to MH i2c: F0 00 00 C6 63 18 [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: F0 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: F0 09 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: F0 09 00 C6 63 00 97 7A 77 66 BC EC 60 65 7C [01:29:18]GetLastDocTimeStamp 1719105017 [01:29:18]current date 1719106199 [01:29:18]FM_GetShiftState [01:29:18]SAM_PROTO_GetShiftState [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 13 01 00 [01:29:18]Write to MH i2c: E2 08 00 C7 63 80 13 01 00 00 00 00 00 A7 [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 0E 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 0E 00 C7 63 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 DC [01:29:18]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:29:18]wFMCommunicate OK [01:29:18]SAM_PROTO_GetShiftState done [01:29:18]FM_GetShiftState done [01:29:18]KKMCreateXReportDocument [01:29:18]Load OK [01:29:18]Malloc new data [01:29:18]MH_GetDate [01:29:18]Write to MH i2c: F0 00 00 C8 63 1A [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: F0 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: F0 09 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: F0 09 00 C8 63 00 97 7A 77 66 BC EC 60 65 7E [01:29:18]Malloc new data [01:29:18]Malloc new data [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 11 00 00 [01:29:18]Write to MH i2c: E2 08 00 C9 63 80 11 00 00 00 00 00 00 A6 [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 17 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 17 00 C9 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F8 [01:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:29:18]wFMCommunicate OK [01:29:18]SAM_PROTO_GetFieldsCounters [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 13 00 00 [01:29:18]Write to MH i2c: E2 08 00 CA 63 80 13 00 00 00 00 00 00 A9 [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:18]Read from MH i2c: E2 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 62 00 [01:29:18]MH_I2C_Read... [01:29:18]Read from MH i2c: E2 62 00 CA 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [01:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:18]wFMCommunicate OK [01:29:18]SAM_PROTO_GetFieldsCounters done [01:29:18]Malloc new data [01:29:18]Malloc new data [01:29:18]Malloc new data [01:29:18]KKMCreateXReportDocument OK [01:29:18]KKMSetXReportData OK [01:29:18]KKMPrepareXReportFMData [01:29:18]SAM_PROTO_GetShiftData [01:29:18]wFMCommunicate request_size=4 [01:29:18]MH_SAM_APDU [01:29:18]CAPDU: 80 13 02 00 [01:29:18]Write to MH i2c: E2 08 00 CB 63 80 13 02 00 00 00 00 00 AC [01:29:18]Write i2c OK [01:29:18]MH_I2C_Read... [01:29:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:29:19]Read from MH i2c: E2 [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: E2 FD 00 [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: E2 FD 00 CB 63 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 25 [01:29:19]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:29:19]wFMCommunicate OK [01:29:19]wFMCommunicate request_size=4 [01:29:19]MH_SAM_APDU [01:29:19]CAPDU: 80 17 00 00 [01:29:19]Write to MH i2c: E2 08 00 CC 63 80 17 00 00 00 00 00 00 AF [01:29:19]Write i2c OK [01:29:19]MH_I2C_Read... [01:29:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:19]Read from MH i2c: E2 [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: E2 FD 00 [01:29:19]MH_I2C_Read... [01:29:19]Read from MH i2c: E2 FD 00 CC 63 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 C8 [01:29:19]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 [01:29:20]wFMCommunicate OK [01:29:20]wFMCommunicate request_size=4 [01:29:20]MH_SAM_APDU [01:29:20]CAPDU: 80 17 00 00 [01:29:20]Write to MH i2c: E2 08 00 CD 63 80 17 00 00 00 00 00 00 B0 [01:29:20]Write i2c OK [01:29:20]MH_I2C_Read... [01:29:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:20]Read from MH i2c: E2 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 FD 00 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 FD 00 CD 63 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 69 [01:29:20]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 [01:29:20]wFMCommunicate OK [01:29:20]wFMCommunicate request_size=4 [01:29:20]MH_SAM_APDU [01:29:20]CAPDU: 80 17 00 00 [01:29:20]Write to MH i2c: E2 08 00 CE 63 80 17 00 00 00 00 00 00 B1 [01:29:20]Write i2c OK [01:29:20]MH_I2C_Read... [01:29:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:20]Read from MH i2c: E2 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 FD 00 [01:29:20]MH_I2C_Read... [01:29:20]Read from MH i2c: E2 FD 00 CE 63 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 29 [01:29:20]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 [01:29:20]wFMCommunicate OK [01:29:20]wFMCommunicate request_size=4 [01:29:20]MH_SAM_APDU [01:29:20]CAPDU: 80 17 00 00 [01:29:20]Write to MH i2c: E2 08 00 CF 63 80 17 00 00 00 00 00 00 B2 [01:29:20]Write i2c OK [01:29:20]MH_I2C_Read... [01:29:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:29:21]Read from MH i2c: E2 [01:29:21]MH_I2C_Read... [01:29:21]Read from MH i2c: E2 CE 00 [01:29:21]MH_I2C_Read... [01:29:21]Read from MH i2c: E2 CE 00 CF 63 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 97 [01:29:21]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 OFD Sender: No OFD packet to send [01:29:21]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:21]wFMCommunicate OK [01:29:21]SAM_PROTO_GetShiftData done [01:29:21]1194 (1197) - счетчики итогов смены [01:29:21] 1134 (4) - 263 - количество чеков со всеми признаками расчетов [01:29:21] 1129 (158) - счетчики операций «приход» [01:29:21] 1135 (4) - 263 - количество чеков по признаку расчетов [01:29:21] 1201 (4) - 237620.10 - общая итоговая сумма в чеках [01:29:21] 1136 (4) - 210173.00 - итоговая сумма в чеках наличными [01:29:21] 1138 (3) - 27447.10 - итоговая сумма в чеках безналичными [01:29:21] 1024 (123) - суммы налогов [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 0% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1006 (12) - суммы НДС [01:29:21] 1010 (1) - 12% - код ставки НДС [01:29:21] 1011 (3) - 25245.07 - сумма НДС по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (12) - суммы НСП [01:29:21] 1014 (1) - 1% - код ставки НСП [01:29:21] 1015 (3) - 2103.40 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 2% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 3% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 5% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1130 (141) - счетчики операций «возврат прихода» [01:29:21] 1135 (4) - 0 - количество чеков по признаку расчетов [01:29:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:29:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:29:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:29:21] 1024 (117) - суммы налогов [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 0% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 12% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 2% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 3% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 5% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1131 (141) - счетчики операций «расход» [01:29:21] 1135 (4) - 0 - количество чеков по признаку расчетов [01:29:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:29:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:29:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:29:21] 1024 (117) - суммы налогов [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 0% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 12% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 2% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 3% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 5% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1132 (141) - счетчики операций «возврат расхода» [01:29:21] 1135 (4) - 0 - количество чеков по признаку расчетов [01:29:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:29:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:29:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:29:21] 1024 (117) - суммы налогов [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 0% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1006 (9) - суммы НДС [01:29:21] 1010 (1) - 12% - код ставки НДС [01:29:21] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 2% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 3% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 5% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 0,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1007 (9) - суммы НСП [01:29:21] 1014 (1) - 1,50% - код ставки НСП [01:29:21] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:21] 1133 (588) - - счетчики коррекции - не используются [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1194 (04AA) [01:29:21]Load OK [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1134 (046E) [01:29:21]Malloc new data [01:29:21]Processing tag 1129 (0469) [01:29:21]Load OK [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1135 (046F) [01:29:21]Malloc new data [01:29:21]Processing tag 1201 (04B1) [01:29:21]Malloc new data [01:29:21]Processing tag 1136 (0470) [01:29:21]Malloc new data [01:29:21]Processing tag 1138 (0472) [01:29:21]Malloc new data [01:29:21]Processing tag 1024 (0400) [01:29:21]Load OK [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1006 (03EE) [01:29:21]Load OK [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1010 (03F2) [01:29:21]Malloc new data [01:29:21]Processing tag 1011 (03F3) [01:29:21]Malloc new data [01:29:21]SetTLVBufToDocument err=0 [01:29:21]Processing tag 1006 (03EE) [01:29:21]Load OK [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1010 (03F2) [01:29:21]Malloc new data [01:29:21]Processing tag 1011 (03F3) [01:29:21]Malloc new data [01:29:21]SetTLVBufToDocument err=0 [01:29:21]Processing tag 1007 (03EF) [01:29:21]Load OK [01:29:21]SetTLVBufToDocument [01:29:21]Processing tag 1014 (03F6) [01:29:21]Malloc new data [01:29:21]Processing tag 1015 (03F7) [01:29:21]Malloc new data [01:29:21]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1130 (046A) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1135 (046F) [01:29:22]Malloc new data [01:29:22]Processing tag 1201 (04B1) [01:29:22]Malloc new data [01:29:22]Processing tag 1136 (0470) [01:29:22]Malloc new data [01:29:22]Processing tag 1138 (0472) [01:29:22]Malloc new data [01:29:22]Processing tag 1024 (0400) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1006 (03EE) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1010 (03F2) [01:29:22]Malloc new data [01:29:22]Processing tag 1011 (03F3) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1006 (03EE) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1010 (03F2) [01:29:22]Malloc new data [01:29:22]Processing tag 1011 (03F3) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1131 (046B) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1135 (046F) [01:29:22]Malloc new data [01:29:22]Processing tag 1201 (04B1) [01:29:22]Malloc new data [01:29:22]Processing tag 1136 (0470) [01:29:22]Malloc new data [01:29:22]Processing tag 1138 (0472) [01:29:22]Malloc new data [01:29:22]Processing tag 1024 (0400) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1006 (03EE) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1010 (03F2) [01:29:22]Malloc new data [01:29:22]Processing tag 1011 (03F3) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1006 (03EE) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1010 (03F2) [01:29:22]Malloc new data [01:29:22]Processing tag 1011 (03F3) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1132 (046C) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1135 (046F) [01:29:22]Malloc new data [01:29:22]Processing tag 1201 (04B1) [01:29:22]Malloc new data [01:29:22]Processing tag 1136 (0470) [01:29:22]Malloc new data [01:29:22]Processing tag 1138 (0472) [01:29:22]Malloc new data [01:29:22]Processing tag 1024 (0400) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1006 (03EE) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1010 (03F2) [01:29:22]Malloc new data [01:29:22]Processing tag 1011 (03F3) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1006 (03EE) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1010 (03F2) [01:29:22]Malloc new data [01:29:22]Processing tag 1011 (03F3) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1007 (03EF) [01:29:22]Load OK [01:29:22]SetTLVBufToDocument [01:29:22]Processing tag 1014 (03F6) [01:29:22]Malloc new data [01:29:22]Processing tag 1015 (03F7) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Processing tag 1133 (046D) [01:29:22]Malloc new data [01:29:22]SetTLVBufToDocument err=0 [01:29:22]SetTLVBufToDocument err=0 [01:29:22]Malloc new data [01:29:22]SAM_PROTO_GetFMData [01:29:22]wFMCommunicate request_size=4 [01:29:22]MH_SAM_APDU [01:29:22]CAPDU: 80 13 03 00 [01:29:22]Write to MH i2c: E2 08 00 D0 63 80 13 03 00 00 00 00 00 B2 [01:29:22]Write i2c OK [01:29:22]MH_I2C_Read... [01:29:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:22]Read from MH i2c: E2 [01:29:22]MH_I2C_Read... [01:29:22]Read from MH i2c: E2 FD 00 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 FD 00 D0 63 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 EA [01:29:23]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:29:23]wFMCommunicate OK [01:29:23]wFMCommunicate request_size=4 [01:29:23]MH_SAM_APDU [01:29:23]CAPDU: 80 17 00 00 [01:29:23]Write to MH i2c: E2 08 00 D1 63 80 17 00 00 00 00 00 00 B4 [01:29:23]Write i2c OK [01:29:23]MH_I2C_Read... [01:29:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:23]Read from MH i2c: E2 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 FD 00 [01:29:23]MH_I2C_Read... [01:29:23]Read from MH i2c: E2 FD 00 D1 63 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [01:29:23]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:23]wFMCommunicate OK [01:29:23]wFMCommunicate request_size=4 [01:29:23]MH_SAM_APDU [01:29:23]CAPDU: 80 17 00 00 [01:29:23]Write to MH i2c: E2 08 00 D2 63 80 17 00 00 00 00 00 00 B5 [01:29:23]Write i2c OK [01:29:23]MH_I2C_Read... [01:29:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:24]Read from MH i2c: E2 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 FD 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 FD 00 D2 63 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E7 [01:29:24]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:24]wFMCommunicate OK [01:29:24]wFMCommunicate request_size=4 [01:29:24]MH_SAM_APDU [01:29:24]CAPDU: 80 17 00 00 [01:29:24]Write to MH i2c: E2 08 00 D3 63 80 17 00 00 00 00 00 00 B6 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:24]Read from MH i2c: E2 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 FD 00 [01:29:24]MH_I2C_Read... [01:29:24]Read from MH i2c: E2 FD 00 D3 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2D [01:29:24]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:24]wFMCommunicate OK [01:29:24]wFMCommunicate request_size=4 [01:29:24]MH_SAM_APDU [01:29:24]CAPDU: 80 17 00 00 [01:29:24]Write to MH i2c: E2 08 00 D4 63 80 17 00 00 00 00 00 00 B7 [01:29:24]Write i2c OK [01:29:24]MH_I2C_Read... [01:29:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:29:25]Read from MH i2c: E2 [01:29:25]MH_I2C_Read... [01:29:25]Read from MH i2c: E2 DA 00 [01:29:25]MH_I2C_Read... [01:29:25]Read from MH i2c: E2 DA 00 D4 63 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [01:29:25]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:25]wFMCommunicate OK [01:29:25]SAM_PROTO_GetFMData done [01:29:25]FM_GetFMData:85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:29:25]oper:6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:29:26]total:01 9B 13 F8 01 [01:29:26]Malloc new data [01:29:26]oper:6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:29:26]total:84 4E [01:29:26]Malloc new data [01:29:26]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 [01:29:26]total: [01:29:26]Malloc new data [01:29:26]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 [01:29:26]total: [01:29:26]Malloc new data [01:29:26]KKMPrepareXReportFMData err=0 [01:29:26]Х отчет ИНН: 02508201610067 Кассир: Амантуров Р. 23.06.2024 01:29 Смена: 266 РНМ: 0000000000092771 ЗНМ: 0300000198 СНО: Общий режим Всего чеков: 263 ИТОГИ ПРИХОД Чеков: 263 Общий итог: 237620.10 Итого наличными: 210173.00 Итого безнал.: 27447.10 НДС 0% : 0.00 НДС 12% : 25245.07 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2103.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 210173.00 НС Приход: 84570017.29 НС Возвр.Прихода: 201.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875083 [01:29:26]StoreToDocumentArchive [01:29:26]MH_GetDate [01:29:26]Write to MH i2c: F0 00 00 D5 63 27 [01:29:26]Write i2c OK [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: F0 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: F0 09 00 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: F0 09 00 D5 63 00 9F 7A 77 66 BC EC 60 65 93 [01:29:26]shift 266 fd 1719106207 [01:29:26]Create dir for shift 0266 [01:29:26]save to /storage/0266/doc_1719106207 [01:29:26]save last doc name /storage/0266/doc_1719106207 to /storage/kkm_last_doc_name [01:29:26]save OK [01:29:26]Clear old archive folders... [01:29:26]NVStorageSaveData kkm_last_timestamp [01:29:26]File name is /storage/kkm_last_timestamp [01:29:26]Write 4 bytes [01:29:26]NVStorageSaveData done [01:29:26]ExternCall_PrintAddStr [01:29:26]wPrintStart [01:29:26]Write to MH i2c: 01 00 00 D6 63 39 [01:29:26]OFD Sender: No OFD packet to send [01:29:26]Write i2c OK [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: 01 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: 01 07 00 [01:29:26]MH_I2C_Read... [01:29:26]Read from MH i2c: 01 07 00 D6 63 00 00 00 00 00 FF 0F 4E [01:29:26]RasterBufferAndPrint [01:29:26]line Х отчет [01:29:26]line ИНН: 02508201610067 [01:29:26]line Кассир: Амантуров Р. [01:29:26]line 23.06.2024 01:29 [01:29:26]line Смена: 266 [01:29:26]line РНМ: 0000000000092771 [01:29:26]line ЗНМ: 0300000198 [01:29:26]line СНО: Общий режим [01:29:26]line Всего чеков: 263 [01:29:26]line ИТОГИ ПРИХОД [01:29:26]line Чеков: 263 [01:29:26]line Общий итог: 237620.10 [01:29:26]line Итого наличными: 210173.00 [01:29:26]line Итого безнал.: 27447.10 [01:29:26]line НДС 0% : 0.00 [01:29:26]line НДС 12% : 25245.07 [01:29:26]line НСП 0% : 0.00 [01:29:26]line НСП 1,50% : 0.00 [01:29:26]line НСП 0,50% : 0.00 [01:29:26]line НСП 5% : 0.00 [01:29:26]line НСП 3% : 0.00 [01:29:26]line НСП 2% : 0.00 [01:29:26]line НСП 1% : 2103.40 [01:29:26]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:29:26]line Чеков: 0 [01:29:26]line Общий итог: 0.00 [01:29:26]line Итого наличными: 0.00 [01:29:26]line Итого безнал.: 0.00 [01:29:26]line НДС 0% : 0.00 [01:29:26]line НДС 12% : 0.00 [01:29:26]line НСП 0% : 0.00 [01:29:26]line НСП 1,50% : 0.00 [01:29:26]line НСП 0,50% : 0.00 [01:29:26]line НСП 5% : 0.00 [01:29:26]line НСП 3% : 0.00 [01:29:26]line НСП 2% : 0.00 [01:29:26]line НСП 1% : 0.00 [01:29:26]line ИТОГИ РАСХОД [01:29:26]line Чеков: 0 [01:29:26]line Общий итог: 0.00 [01:29:26]line Итого наличными: 0.00 [01:29:26]line Итого безнал.: 0.00 [01:29:26]line НДС 0% : 0.00 [01:29:26]line НДС 12% : 0.00 [01:29:26]line НСП 0% : 0.00 [01:29:26]line НСП 1,50% : 0.00 [01:29:26]line НСП 0,50% : 0.00 [01:29:26]line НСП 5% : 0.00 [01:29:26]line НСП 3% : 0.00 [01:29:26]line НСП 2% : 0.00 [01:29:26]line НСП 1% : 0.00 [01:29:26]line ИТОГИ ВОЗВРАТ РАСХОДА [01:29:26]line Чеков: 0 [01:29:26]line Общий итог: 0.00 [01:29:26]line Итого наличными: 0.00 [01:29:26]line Итого безнал.: 0.00 [01:29:26]line НДС 0% : 0.00 [01:29:26]line НДС 12% : 0.00 [01:29:26]line НСП 0% : 0.00 [01:29:26]line НСП 1,50% : 0.00 [01:29:26]line НСП 0,50% : 0.00 [01:29:26]line НСП 5% : 0.00 [01:29:26]line НСП 3% : 0.00 [01:29:26]line НСП 2% : 0.00 [01:29:26]line НСП 1% : 0.00 [01:29:26]line Сумма внесений: 0.00 [01:29:26]line Сумма выплат: 0.00 [01:29:26]line Нал. в кассе: 210173.00 [01:29:26]line НС Приход: 84570017.29 [01:29:26]line НС Возвр.Прихода: 201.00 [01:29:26]line НС Расход: 0.00 [01:29:26]line НС Возвр.Расхода: 0.00 [01:29:26]line ФМ: 0000000000875083 [01:29:26]written 0, free lines is 4095 [01:29:27]Write to MH i2c: 01 00 00 21 64 85 [01:29:27]Write i2c OK [01:29:27]MH_I2C_Read... [01:29:27]Read from MH i2c: 01 [01:29:27]MH_I2C_Read... [01:29:27]Read from MH i2c: 01 07 00 [01:29:27]MH_I2C_Read... [01:29:27]Read from MH i2c: 01 07 00 21 64 00 00 00 00 00 98 0A 2E [01:29:27]RasterBufferAndPrint [01:29:27]line [01:29:27]line [01:29:27]line [01:29:27]line [01:29:27]line [01:29:27]written 0, free lines is 2744 [01:29:27]MH_Cut [01:29:27]Write to MH i2c: D1 01 00 28 64 01 5E [01:29:27]Write i2c OK [01:29:27]MH_I2C_Read... [01:29:27]Read from MH i2c: D1 [01:29:27]MH_I2C_Read... [01:29:27]Read from MH i2c: D1 01 00 [01:29:27]MH_I2C_Read... [01:29:27]Read from MH i2c: D1 01 00 28 64 00 5D [01:29:27]Write to MH i2c: 01 00 00 29 64 8D [01:29:27]Write i2c OK [01:29:27]MH_I2C_Read... [01:29:28]*** Cut start [01:29:28]*** Partial cut [01:29:28]*** CUTSNS_PIN = 1 [01:29:28]*** CUTSNS_PIN = 0 [01:29:28]*** Brake cut motor [01:29:28]Read from MH i2c: 01 [01:29:28]MH_I2C_Read... [01:29:28]*** Stop cut motor [01:29:28]*** Cut end [01:29:28]Read from MH i2c: 01 07 00 [01:29:28]MH_I2C_Read... [01:29:28]Read from MH i2c: 01 07 00 29 64 00 00 00 00 00 FF 0F A2 [01:29:28]process_action x_report done [01:29:28]requested_data is exist [01:29:28]produce_requested_data [01:29:28]requested_item fd.num is exist - process it [01:29:28]SAM_PROTO_GetFieldsCounters [01:29:28]wFMCommunicate request_size=4 [01:29:28]MH_SAM_APDU [01:29:28]CAPDU: 80 13 00 00 [01:29:28]Write to MH i2c: E2 08 00 2A 64 80 13 00 00 00 00 00 00 0A [01:29:28]Write i2c OK [01:29:28]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 62 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 62 00 2A 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [01:29:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:29]wFMCommunicate OK [01:29:29]SAM_PROTO_GetFieldsCounters done [01:29:29]requested_item shift.num is exist - process it [01:29:29]requested_item shift.opened is exist - process it [01:29:29]req_shift_opened [01:29:29]FM_GetShiftState [01:29:29]SAM_PROTO_GetShiftState [01:29:29]wFMCommunicate request_size=4 [01:29:29]MH_SAM_APDU [01:29:29]CAPDU: 80 13 01 00 [01:29:29]Write to MH i2c: E2 08 00 2B 64 80 13 01 00 00 00 00 00 0C [01:29:29]Write i2c OK [01:29:29]MH_I2C_Read... [01:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:29]Read from MH i2c: E2 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 0E 00 [01:29:29]MH_I2C_Read... [01:29:29]Read from MH i2c: E2 0E 00 2B 64 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 41 [01:29:29]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:29:29]wFMCommunicate OK [01:29:29]SAM_PROTO_GetShiftState done [01:29:29]FM_GetShiftState done [01:29:29]req_shift_opened done [01:29:29]requested_item shift.open_date is exist - process it [01:29:29]req_shift_open_date [01:29:29]req_shift_open_date done [01:29:29]produce_requested_data done [01:29:29]produce_requested_data return {"fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:29:29]process_action_free x_report [01:29:29]json_value_free [01:29:29]json_value_free done [01:29:29]process_json_proto returns [01:29:29]Send response to host [01:29:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:29:29]free response buf [01:29:29]execute_script done [01:29:29]execute_script returns [01:29:29]free content buf [01:29:29]Sock 9.Close socket [01:29:29]Sock 9.Thread stoped [01:29:31]OFD Sender: No OFD packet to send [01:29:34]accept exits with 7 [01:29:34]New connection [01:29:34]New thread 3066957156 created [01:29:34]Thread 3066813796 joined [01:29:34]Waiting for new connection... [01:29:34] Sock 7.Parse request [01:29:34]Sock 7.Check first char [01:29:34]Sock 7.First char is OK [01:29:34]request: POST /json_proto HTTP/1.0 [01:29:34]Method: POST [01:29:34]URL: /json_proto [01:29:34]Method is POST - this is cgi request [01:29:34]url: /json_proto [01:29:34]query_string will be loaded in cgi processing [01:29:34]execute_cgi json_proto POST (null) [01:29:34]execute_cgi path=json_proto method=POST [01:29:34]POST find Content-Length [01:29:34]Host: 172.17.59.68:8080 [01:29:34]Content-Length: 215 [01:29:34]Content-Type: application/json [01:29:34] [01:29:34]POST finish read [01:29:34]Found Content-Length = 215 [01:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:34]execute_script... [01:29:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:34]POST & json_proto [01:29:34]process_json_proto [01:29:34]json parsed OK: [01:29:34]protocol is kg_v1.0 [01:29:34]action value=get_value [01:29:34]process_action get_value [01:29:34]cmd_get_value [01:29:34]process_action get_value done [01:29:34]requested_data is exist [01:29:34]produce_requested_data [01:29:34]requested_item kkm.sn is exist - process it [01:29:34]requested_item kkm.ver is exist - process it [01:29:34]requested_item fm.sn is exist - process it [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 11 00 00 [01:29:34]Write to MH i2c: E2 08 00 2C 64 80 11 00 00 00 00 00 00 0A [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 17 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 17 00 2C 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [01:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:29:34]wFMCommunicate OK [01:29:34]requested_item fd.num is exist - process it [01:29:34]SAM_PROTO_GetFieldsCounters [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 13 00 00 [01:29:34]Write to MH i2c: E2 08 00 2D 64 80 13 00 00 00 00 00 00 0D [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 62 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 62 00 2D 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [01:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:29:34]wFMCommunicate OK [01:29:34]SAM_PROTO_GetFieldsCounters done [01:29:34]requested_item shift.num is exist - process it [01:29:34]requested_item shift.opened is exist - process it [01:29:34]req_shift_opened [01:29:34]FM_GetShiftState [01:29:34]SAM_PROTO_GetShiftState [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 13 01 00 [01:29:34]Write to MH i2c: E2 08 00 2E 64 80 13 01 00 00 00 00 00 0F [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:34]Read from MH i2c: E2 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 0E 00 [01:29:34]MH_I2C_Read... [01:29:34]Read from MH i2c: E2 0E 00 2E 64 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 44 [01:29:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:29:34]wFMCommunicate OK [01:29:34]SAM_PROTO_GetShiftState done [01:29:34]FM_GetShiftState done [01:29:34]req_shift_opened done [01:29:34]requested_item shift.open_date is exist - process it [01:29:34]req_shift_open_date [01:29:34]req_shift_open_date done [01:29:34]produce_requested_data done [01:29:34]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:29:34]process_action_free get_value [01:29:34]json_value_free [01:29:34]json_value_free done [01:29:34]process_json_proto returns [01:29:34]Send response to host [01:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112397,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:29:34]free response buf [01:29:34]execute_script done [01:29:34]execute_script returns [01:29:34]free content buf [01:29:34]Sock 7.Close socket [01:29:34]Sock 7.Thread stoped [01:29:34]accept exits with 9 [01:29:34]New connection [01:29:34]New thread 3066813796 created [01:29:34]Thread 3066957156 joined [01:29:34]Waiting for new connection... [01:29:34] Sock 9.Parse request [01:29:34]Sock 9.Check first char [01:29:34]Sock 9.First char is OK [01:29:34]request: POST /json_proto HTTP/1.0 [01:29:34]Method: POST [01:29:34]URL: /json_proto [01:29:34]Method is POST - this is cgi request [01:29:34]url: /json_proto [01:29:34]query_string will be loaded in cgi processing [01:29:34]execute_cgi json_proto POST (null) [01:29:34]execute_cgi path=json_proto method=POST [01:29:34]POST find Content-Length [01:29:34]Host: 172.17.59.68:8080 [01:29:34]Content-Length: 331 [01:29:34]Content-Type: application/json [01:29:34] [01:29:34]POST finish read [01:29:34]Found Content-Length = 331 [01:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:34]execute_script... [01:29:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:34]POST & json_proto [01:29:34]process_json_proto [01:29:34]json parsed OK: [01:29:34]protocol is kg_v1.0 [01:29:34]action value=get_value [01:29:34]process_action get_value [01:29:34]cmd_get_value [01:29:34]process_action get_value done [01:29:34]requested_data is exist [01:29:34]produce_requested_data [01:29:34]requested_item fm.sale.total is exist - process it [01:29:34]SAM_PROTO_GetFMData [01:29:34]wFMCommunicate request_size=4 [01:29:34]MH_SAM_APDU [01:29:34]CAPDU: 80 13 03 00 [01:29:34]Write to MH i2c: E2 08 00 2F 64 80 13 03 00 00 00 00 00 12 [01:29:34]Write i2c OK [01:29:34]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 FD 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 FD 00 2F 64 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 4A [01:29:35]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:29:35]wFMCommunicate OK [01:29:35]wFMCommunicate request_size=4 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 17 00 00 [01:29:35]Write to MH i2c: E2 08 00 30 64 80 17 00 00 00 00 00 00 14 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:35]Read from MH i2c: E2 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 FD 00 [01:29:35]MH_I2C_Read... [01:29:35]Read from MH i2c: E2 FD 00 30 64 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [01:29:35]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:35]wFMCommunicate OK [01:29:35]wFMCommunicate request_size=4 [01:29:35]MH_SAM_APDU [01:29:35]CAPDU: 80 17 00 00 [01:29:35]Write to MH i2c: E2 08 00 31 64 80 17 00 00 00 00 00 00 15 [01:29:35]Write i2c OK [01:29:35]MH_I2C_Read... [01:29:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:36]Read from MH i2c: E2 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 FD 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 FD 00 31 64 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 47 [01:29:36]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [01:29:36]03 09 00 F6 03 01 00 04 90 00 [01:29:36]wFMCommunicate OK [01:29:36]wFMCommunicate request_size=4 [01:29:36]MH_SAM_APDU [01:29:36]CAPDU: 80 17 00 00 [01:29:36]Write to MH i2c: E2 08 00 32 64 80 17 00 00 00 00 00 00 16 [01:29:36]Write i2c OK [01:29:36]MH_I2C_Read... [01:29:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:36]Read from MH i2c: E2 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 FD 00 [01:29:36]MH_I2C_Read... [01:29:36]Read from MH i2c: E2 FD 00 32 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 8D [01:29:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:37]wFMCommunicate OK [01:29:37]wFMCommunicate request_size=4 [01:29:37]MH_SAM_APDU [01:29:37]CAPDU: 80 17 00 00 [01:29:37]Write to MH i2c: E2 08 00 33 64 80 17 00 00 00 00 00 00 17 [01:29:37]Write i2c OK [01:29:37]MH_I2C_Read... [01:29:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:29:37]Read from MH i2c: E2 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 DA 00 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 DA 00 33 64 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F8 [01:29:37]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:37]wFMCommunicate OK [01:29:37]SAM_PROTO_GetFMData done [01:29:37]requested_item fm.sale_refund.total is exist - process it [01:29:37]requested_item fm.buy.total is exist - process it [01:29:37]requested_item shift.sale.total is exist - process it [01:29:37]SAM_PROTO_GetShiftData [01:29:37]wFMCommunicate request_size=4 [01:29:37]MH_SAM_APDU [01:29:37]CAPDU: 80 13 02 00 [01:29:37]Write to MH i2c: E2 08 00 34 64 80 13 02 00 00 00 00 00 16 [01:29:37]Write i2c OK [01:29:37]MH_I2C_Read... [01:29:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:29:37]Read from MH i2c: E2 [01:29:37]MH_I2C_Read... [01:29:37]Read from MH i2c: E2 FD 00 [01:29:38]MH_I2C_Read... [01:29:38]Read from MH i2c: E2 FD 00 34 64 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 8F [01:29:38]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:29:38]wFMCommunicate OK [01:29:38]wFMCommunicate request_size=4 [01:29:38]MH_SAM_APDU [01:29:38]CAPDU: 80 17 00 00 [01:29:38]Write to MH i2c: E2 08 00 35 64 80 17 00 00 00 00 00 00 19 [01:29:38]Write i2c OK [01:29:38]MH_I2C_Read... [01:29:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:38]Read from MH i2c: E2 [01:29:38]MH_I2C_Read... [01:29:38]Read from MH i2c: E2 FD 00 [01:29:38]MH_I2C_Read... [01:29:38]Read from MH i2c: E2 FD 00 35 64 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 32 [01:29:38]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 [01:29:38]wFMCommunicate OK [01:29:38]wFMCommunicate request_size=4 [01:29:38]MH_SAM_APDU [01:29:38]CAPDU: 80 17 00 00 [01:29:38]Write to MH i2c: E2 08 00 36 64 80 17 00 00 00 00 00 00 1A [01:29:38]Write i2c OK [01:29:38]MH_I2C_Read... [01:29:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:39]Read from MH i2c: E2 [01:29:39]MH_I2C_Read... [01:29:39]Read from MH i2c: E2 FD 00 [01:29:39]MH_I2C_Read... [01:29:39]Read from MH i2c: E2 FD 00 36 64 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 D3 [01:29:39]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 [01:29:39]wFMCommunicate OK [01:29:39]wFMCommunicate request_size=4 [01:29:39]MH_SAM_APDU [01:29:39]CAPDU: 80 17 00 00 [01:29:39]Write to MH i2c: E2 08 00 37 64 80 17 00 00 00 00 00 00 1B [01:29:39]Write i2c OK [01:29:39]MH_I2C_Read... [01:29:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:39]Read from MH i2c: E2 [01:29:39]MH_I2C_Read... [01:29:39]Read from MH i2c: E2 FD 00 [01:29:39]MH_I2C_Read... [01:29:39]Read from MH i2c: E2 FD 00 37 64 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 93 [01:29:39]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 [01:29:40]wFMCommunicate OK [01:29:40]wFMCommunicate request_size=4 [01:29:40]MH_SAM_APDU [01:29:40]CAPDU: 80 17 00 00 [01:29:40]Write to MH i2c: E2 08 00 38 64 80 17 00 00 00 00 00 00 1C [01:29:40]Write i2c OK [01:29:40]MH_I2C_Read... [01:29:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:29:40]Read from MH i2c: E2 [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: E2 CE 00 [01:29:40]MH_I2C_Read... [01:29:40]Read from MH i2c: E2 CE 00 38 64 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 01 [01:29:40]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 [01:29:40]wFMCommunicate OK [01:29:40]SAM_PROTO_GetShiftData done [01:29:40]requested_item shift.sale.total_cash is exist - process it [01:29:40]requested_item shift.sale_refund.total is exist - process it [01:29:40]requested_item shift.sale_refund.total_cash is exist - process it [01:29:40]requested_item shift.buy.total is exist - process it [01:29:40]requested_item shift.buy.total_cash is exist - process it [01:29:40]produce_requested_data done [01:29:40]produce_requested_data return {"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:29:40]process_action_free get_value [01:29:40]json_value_free [01:29:40]json_value_free done [01:29:40]process_json_proto returns [01:29:40]Send response to host [01:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:29:40]free response buf [01:29:40]execute_script done [01:29:40]execute_script returns [01:29:40]free content buf [01:29:40]Sock 9.Close socket [01:29:40]Sock 9.Thread stoped [01:29:40]accept exits with 7 [01:29:40]New connection [01:29:40]New thread 3066957156 created [01:29:40]Thread 3066813796 joined [01:29:40]Waiting for new connection... [01:29:40] Sock 7.Parse request [01:29:40]Sock 7.Check first char [01:29:40]Sock 7.First char is OK [01:29:40]request: POST /json_proto HTTP/1.0 [01:29:40]Method: POST [01:29:40]URL: /json_proto [01:29:40]Method is POST - this is cgi request [01:29:40]url: /json_proto [01:29:40]query_string will be loaded in cgi processing [01:29:40]execute_cgi json_proto POST (null) [01:29:40]execute_cgi path=json_proto method=POST [01:29:40]POST find Content-Length [01:29:40]Host: 172.17.59.68:8080 [01:29:40]Content-Length: 331 [01:29:40]Content-Type: application/json [01:29:40] [01:29:40]POST finish read [01:29:40]Found Content-Length = 331 [01:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:40]execute_script... [01:29:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:29:40]POST & json_proto [01:29:40]process_json_proto [01:29:40]json parsed OK: [01:29:40]protocol is kg_v1.0 [01:29:40]action value=get_value [01:29:40]process_action get_value [01:29:40]cmd_get_value [01:29:40]process_action get_value done [01:29:40]requested_data is exist [01:29:40]produce_requested_data [01:29:40]requested_item fm.sale.total is exist - process it [01:29:40]SAM_PROTO_GetFMData [01:29:40]wFMCommunicate request_size=4 [01:29:40]MH_SAM_APDU [01:29:40]CAPDU: 80 13 03 00 [01:29:40]Write to MH i2c: E2 08 00 39 64 80 13 03 00 00 00 00 00 1C [01:29:40]Write i2c OK [01:29:40]MH_I2C_Read... [01:29:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:41]Read from MH i2c: E2 [01:29:41]MH_I2C_Read... [01:29:41]Read from MH i2c: E2 FD 00 [01:29:41]MH_I2C_Read... [01:29:41]Read from MH i2c: E2 FD 00 39 64 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 54 [01:29:41]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:29:41]wFMCommunicate OK [01:29:41]wFMCommunicate request_size=4 [01:29:41]MH_SAM_APDU [01:29:41]CAPDU: 80 17 00 00 [01:29:41]Write to MH i2c: E2 08 00 3A 64 80 17 00 00 00 00 00 00 1E [01:29:41]Write i2c OK [01:29:41]MH_I2C_Read... [01:29:41]OFD Sender: No OFD packet to send [01:29:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:41]Read from MH i2c: E2 [01:29:41]MH_I2C_Read... [01:29:41]Read from MH i2c: E2 FD 00 [01:29:41]MH_I2C_Read... [01:29:41]Read from MH i2c: E2 FD 00 3A 64 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [01:29:41]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:41]wFMCommunicate OK [01:29:41]wFMCommunicate request_size=4 [01:29:41]MH_SAM_APDU [01:29:41]CAPDU: 80 17 00 00 [01:29:41]Write to MH i2c: E2 08 00 3B 64 80 17 00 00 00 00 00 00 1F [01:29:41]Write i2c OK [01:29:41]MH_I2C_Read... [01:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:42]Read from MH i2c: E2 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 FD 00 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 FD 00 3B 64 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 51 [01:29:42]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:42]wFMCommunicate OK [01:29:42]wFMCommunicate request_size=4 [01:29:42]MH_SAM_APDU [01:29:42]CAPDU: 80 17 00 00 [01:29:42]Write to MH i2c: E2 08 00 3C 64 80 17 00 00 00 00 00 00 20 [01:29:42]Write i2c OK [01:29:42]MH_I2C_Read... [01:29:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:42]Read from MH i2c: E2 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 FD 00 [01:29:42]MH_I2C_Read... [01:29:42]Read from MH i2c: E2 FD 00 3C 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 97 [01:29:43]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:43]wFMCommunicate OK [01:29:43]wFMCommunicate request_size=4 [01:29:43]MH_SAM_APDU [01:29:43]CAPDU: 80 17 00 00 [01:29:43]Write to MH i2c: E2 08 00 3D 64 80 17 00 00 00 00 00 00 21 [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:29:43]Read from MH i2c: E2 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 DA 00 [01:29:43]MH_I2C_Read... [01:29:43]Read from MH i2c: E2 DA 00 3D 64 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [01:29:43]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:43]wFMCommunicate OK [01:29:43]SAM_PROTO_GetFMData done [01:29:43]requested_item fm.sale_refund.total is exist - process it [01:29:43]requested_item fm.buy.total is exist - process it [01:29:43]requested_item shift.sale.total is exist - process it [01:29:43]SAM_PROTO_GetShiftData [01:29:43]wFMCommunicate request_size=4 [01:29:43]MH_SAM_APDU [01:29:43]CAPDU: 80 13 02 00 [01:29:43]Write to MH i2c: E2 08 00 3E 64 80 13 02 00 00 00 00 00 20 [01:29:43]Write i2c OK [01:29:43]MH_I2C_Read... [01:29:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:29:44]Read from MH i2c: E2 [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: E2 FD 00 [01:29:44]MH_I2C_Read... [01:29:44]Read from MH i2c: E2 FD 00 3E 64 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 99 [01:29:44]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:29:44]wFMCommunicate OK [01:29:44]wFMCommunicate request_size=4 [01:29:44]MH_SAM_APDU [01:29:44]CAPDU: 80 17 00 00 [01:29:44]Write to MH i2c: E2 08 00 3F 64 80 17 00 00 00 00 00 00 23 [01:29:44]Write i2c OK [01:29:44]MH_I2C_Read... [01:29:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:45]Read from MH i2c: E2 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 FD 00 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 FD 00 3F 64 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 3C [01:29:45]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 [01:29:45]wFMCommunicate OK [01:29:45]wFMCommunicate request_size=4 [01:29:45]MH_SAM_APDU [01:29:45]CAPDU: 80 17 00 00 [01:29:45]Write to MH i2c: E2 08 00 40 64 80 17 00 00 00 00 00 00 24 [01:29:45]Write i2c OK [01:29:45]MH_I2C_Read... [01:29:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:45]Read from MH i2c: E2 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 FD 00 [01:29:45]MH_I2C_Read... [01:29:45]Read from MH i2c: E2 FD 00 40 64 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 DD [01:29:45]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 [01:29:46]wFMCommunicate OK [01:29:46]wFMCommunicate request_size=4 [01:29:46]MH_SAM_APDU [01:29:46]CAPDU: 80 17 00 00 [01:29:46]Write to MH i2c: E2 08 00 41 64 80 17 00 00 00 00 00 00 25 [01:29:46]Write i2c OK [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 [01:29:46]MH_I2C_Read... [01:29:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:46]Read from MH i2c: E2 FD 00 [01:29:46]MH_I2C_Read... [01:29:46]Read from MH i2c: E2 FD 00 41 64 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 9D [01:29:46]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 OFD Sender: No OFD packet to send [01:29:46]02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:29:46]wFMCommunicate OK [01:29:46]wFMCommunicate request_size=4 [01:29:46]MH_SAM_APDU [01:29:46]CAPDU: 80 17 00 00 [01:29:46]Write to MH i2c: E2 08 00 42 64 80 17 00 00 00 00 00 00 26 [01:29:46]Write i2c OK [01:29:46]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 CE 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 CE 00 42 64 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 0B [01:29:47]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 [01:29:47]wFMCommunicate OK [01:29:47]SAM_PROTO_GetShiftData done [01:29:47]requested_item shift.sale.total_cash is exist - process it [01:29:47]requested_item shift.sale_refund.total is exist - process it [01:29:47]requested_item shift.sale_refund.total_cash is exist - process it [01:29:47]requested_item shift.buy.total is exist - process it [01:29:47]requested_item shift.buy.total_cash is exist - process it [01:29:47]produce_requested_data done [01:29:47]produce_requested_data return {"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:29:47]process_action_free get_value [01:29:47]json_value_free [01:29:47]json_value_free done [01:29:47]process_json_proto returns [01:29:47]Send response to host [01:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:29:47]free response buf [01:29:47]execute_script done [01:29:47]execute_script returns [01:29:47]free content buf [01:29:47]Sock 7.Close socket [01:29:47]Sock 7.Thread stoped [01:29:47]accept exits with 9 [01:29:47]New connection [01:29:47]New thread 3066813796 created [01:29:47]Thread 3066957156 joined [01:29:47]Waiting for new connection... [01:29:47] Sock 9.Parse request [01:29:47]Sock 9.Check first char [01:29:47]Sock 9.First char is OK [01:29:47]request: POST /json_proto HTTP/1.0 [01:29:47]Method: POST [01:29:47]URL: /json_proto [01:29:47]Method is POST - this is cgi request [01:29:47]url: /json_proto [01:29:47]query_string will be loaded in cgi processing [01:29:47]execute_cgi json_proto POST (null) [01:29:47]execute_cgi path=json_proto method=POST [01:29:47]POST find Content-Length [01:29:47]Host: 172.17.59.68:8080 [01:29:47]Content-Length: 266 [01:29:47]Content-Type: application/json [01:29:47] [01:29:47]POST finish read [01:29:47]Found Content-Length = 266 [01:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:47]execute_script... [01:29:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:29:47]POST & json_proto [01:29:47]process_json_proto [01:29:47]json parsed OK: [01:29:47]protocol is kg_v1.0 [01:29:47]action value=close_shift [01:29:47]process_action close_shift [01:29:47]cmd_close_shift [01:29:47]MH_GetDate [01:29:47]Write to MH i2c: F0 00 00 43 64 96 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 09 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 09 00 43 64 00 B4 7A 77 66 BC EC 60 65 17 [01:29:47]GetLastDocTimeStamp 1719106199 [01:29:47]current date 1719106228 [01:29:47]FM_GetShiftState [01:29:47]SAM_PROTO_GetShiftState [01:29:47]wFMCommunicate request_size=4 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 13 01 00 [01:29:47]Write to MH i2c: E2 08 00 44 64 80 13 01 00 00 00 00 00 25 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 0E 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 0E 00 44 64 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 5A [01:29:47]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:29:47]wFMCommunicate OK [01:29:47]SAM_PROTO_GetShiftState done [01:29:47]FM_GetShiftState done [01:29:47]KKMCreateCloseShiftDocument [01:29:47]Load OK [01:29:47]Malloc new data [01:29:47]MH_GetDate [01:29:47]Write to MH i2c: F0 00 00 45 64 98 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 09 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: F0 09 00 45 64 00 B4 7A 77 66 BC EC 60 65 19 [01:29:47]Malloc new data [01:29:47]Malloc new data [01:29:47]Malloc new data [01:29:47]Malloc new data [01:29:47]KKMCreateCloseShiftDocument OK [01:29:47]KKMSetCloseShiftData OK [01:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=73 [01:29:47]tlvbuf is 013A7490 [01:29:47]KKMLoadAndSignCloseShiftData [01:29:47]SAM_PROTO_ProcessDocument [01:29:47]wFMCommunicate request_size=9 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 15 01 00 04 05 00 49 00 [01:29:47]Write to MH i2c: E2 0C 00 46 64 80 15 01 00 04 00 05 00 49 00 00 00 7F [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 46 64 00 90 00 1E [01:29:47]RAPDU: 90 00 [01:29:47]wFMCommunicate OK [01:29:47]wFMCommunicate request_size=23 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:29:47]Write to MH i2c: E2 1A 00 47 64 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 20 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:29:47]Read from MH i2c: E2 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 [01:29:47]MH_I2C_Read... [01:29:47]Read from MH i2c: E2 03 00 47 64 00 90 00 1F [01:29:47]RAPDU: 90 00 [01:29:47]wFMCommunicate OK [01:29:47]wFMCommunicate request_size=32 [01:29:47]MH_SAM_APDU [01:29:47]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 [01:29:47]Write to MH i2c: E2 23 00 48 64 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 00 00 58 [01:29:47]Write i2c OK [01:29:47]MH_I2C_Read... [01:29:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:29:47]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 48 64 00 90 00 20 [01:29:48]RAPDU: 90 00 [01:29:48]wFMCommunicate OK [01:29:48]wFMCommunicate request_size=13 [01:29:48]MH_SAM_APDU [01:29:48]CAPDU: 80 15 02 00 08 F4 03 04 00 B4 7A 77 66 [01:29:48]Write to MH i2c: E2 10 00 49 64 80 15 02 00 08 00 F4 03 04 00 B4 7A 77 66 00 00 43 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 49 64 00 90 00 21 [01:29:48]RAPDU: 90 00 [01:29:48]wFMCommunicate OK [01:29:48]wFMCommunicate request_size=25 [01:29:48]MH_SAM_APDU [01:29:48]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [01:29:48]Write to MH i2c: E2 1C 00 4A 64 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 91 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 03 00 4A 64 00 90 00 22 [01:29:48]RAPDU: 90 00 [01:29:48]wFMCommunicate OK [01:29:48]wFMCommunicate request_size=4 [01:29:48]MH_SAM_APDU [01:29:48]CAPDU: 80 15 03 00 [01:29:48]Write to MH i2c: E2 08 00 4B 64 80 15 03 00 00 00 00 00 30 [01:29:48]Write i2c OK [01:29:48]MH_I2C_Read... [01:29:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [01:29:48]Read from MH i2c: E2 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 FD 00 [01:29:48]MH_I2C_Read... [01:29:48]Read from MH i2c: E2 FD 00 4B 64 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B7 01 00 0E 04 04 00 87 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 9B [01:29:48]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B7 01 00 0E 04 04 00 87 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:29:49]wFMCommunicate OK [01:29:49]SAM_PROTO_ProcessDocument answer len = 1268 [01:29:49]SAM_PROTO_ProcessDocument remain to read = 1020 [01:29:49]wFMCommunicate request_size=4 [01:29:49]MH_SAM_APDU [01:29:49]CAPDU: 80 17 00 00 [01:29:49]Write to MH i2c: E2 08 00 4C 64 80 17 00 00 00 00 00 00 30 [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:49]Read from MH i2c: E2 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: E2 FD 00 [01:29:49]MH_I2C_Read... [01:29:49]Read from MH i2c: E2 FD 00 4C 64 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 84 [01:29:49]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 [01:29:49]wFMCommunicate OK [01:29:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:29:49]SAM_PROTO_ProcessDocument remain to read = 770 [01:29:49]wFMCommunicate request_size=4 [01:29:49]MH_SAM_APDU [01:29:49]CAPDU: 80 17 00 00 [01:29:49]Write to MH i2c: E2 08 00 4D 64 80 17 00 00 00 00 00 00 31 [01:29:49]Write i2c OK [01:29:49]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 FD 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 FD 00 4D 64 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 93 [01:29:50]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 [01:29:50]wFMCommunicate OK [01:29:50]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:29:50]SAM_PROTO_ProcessDocument remain to read = 520 [01:29:50]wFMCommunicate request_size=4 [01:29:50]MH_SAM_APDU [01:29:50]CAPDU: 80 17 00 00 [01:29:50]Write to MH i2c: E2 08 00 4E 64 80 17 00 00 00 00 00 00 32 [01:29:50]Write i2c OK [01:29:50]MH_I2C_Read... [01:29:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:50]Read from MH i2c: E2 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 FD 00 [01:29:50]MH_I2C_Read... [01:29:50]Read from MH i2c: E2 FD 00 4E 64 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 BA [01:29:51]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 [01:29:51]wFMCommunicate OK [01:29:51]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:29:51]SAM_PROTO_ProcessDocument remain to read = 270 [01:29:51]wFMCommunicate request_size=4 [01:29:51]MH_SAM_APDU [01:29:51]CAPDU: 80 17 00 00 [01:29:51]Write to MH i2c: E2 08 00 4F 64 80 17 00 00 00 00 00 00 33 [01:29:51]Write i2c OK [01:29:51]MH_I2C_Read... [01:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:51]Read from MH i2c: E2 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: E2 FD 00 [01:29:51]MH_I2C_Read... [01:29:51]Read from MH i2c: E2 FD 00 4F 64 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 FD [01:29:51]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 OFD Sender: No OFD packet to send [01:29:51]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 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 [01:29:52]wFMCommunicate OK [01:29:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:29:52]SAM_PROTO_ProcessDocument remain to read = 20 [01:29:52]wFMCommunicate request_size=4 [01:29:52]MH_SAM_APDU [01:29:52]CAPDU: 80 17 00 00 [01:29:52]Write to MH i2c: E2 08 00 50 64 80 17 00 00 00 00 00 00 34 [01:29:52]Write i2c OK [01:29:52]MH_I2C_Read... [01:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [01:29:52]Read from MH i2c: E2 [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: E2 17 00 [01:29:52]MH_I2C_Read... [01:29:52]Read from MH i2c: E2 17 00 50 64 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 C2 1D FF 65 6C 5F 90 00 83 [01:29:52]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 C2 1D FF 65 6C 5F 90 00 [01:29:52]wFMCommunicate OK [01:29:52]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [01:29:52]SAM_PROTO_ProcessDocument done [01:29:52]1209 (1) - 1.0 - номер версии ФФД [01:29:52]1041 (16) - 0000000000875083 - номер ФМ [01:29:52]1040 (4) - 112398 - номер ФД [01:29:52]1038 (4) - 391 - номер смены [01:29:52]1118 (4) - 263 - количество кассовых чеков за смену [01:29:52]1111 (4) - 265 - общее количество ФД за смену [01:29:52]1194 (1197) - счетчики итогов смены [01:29:52] 1134 (4) - 263 - количество чеков со всеми признаками расчетов [01:29:52] 1129 (158) - счетчики операций «приход» [01:29:52] 1135 (4) - 263 - количество чеков по признаку расчетов [01:29:52] 1201 (4) - 237620.10 - общая итоговая сумма в чеках [01:29:52] 1136 (4) - 210173.00 - итоговая сумма в чеках наличными [01:29:52] 1138 (3) - 27447.10 - итоговая сумма в чеках безналичными [01:29:52] 1024 (123) - суммы налогов [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 0% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1006 (12) - суммы НДС [01:29:52] 1010 (1) - 12% - код ставки НДС [01:29:52] 1011 (3) - 25245.07 - сумма НДС по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (12) - суммы НСП [01:29:52] 1014 (1) - 1% - код ставки НСП [01:29:52] 1015 (3) - 2103.40 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 2% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 3% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 5% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1130 (141) - счетчики операций «возврат прихода» [01:29:52] 1135 (4) - 0 - количество чеков по признаку расчетов [01:29:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:29:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:29:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:29:52] 1024 (117) - суммы налогов [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 0% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 12% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 2% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 3% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 5% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1131 (141) - счетчики операций «расход» [01:29:52] 1135 (4) - 0 - количество чеков по признаку расчетов [01:29:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:29:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:29:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:29:52] 1024 (117) - суммы налогов [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 0% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 12% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 2% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 3% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 5% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1132 (141) - счетчики операций «возврат расхода» [01:29:52] 1135 (4) - 0 - количество чеков по признаку расчетов [01:29:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:29:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:29:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:29:52] 1024 (117) - суммы налогов [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 0% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1006 (9) - суммы НДС [01:29:52] 1010 (1) - 12% - код ставки НДС [01:29:52] 1011 (0) - 0.00 - сумма НДС по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 2% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 3% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 5% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 0,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1007 (9) - суммы НСП [01:29:52] 1014 (1) - 1,50% - код ставки НСП [01:29:52] 1015 (0) - 0.00 - сумма НСП по ставке [01:29:52] 1133 (588) - - счетчики коррекции - не используются [01:29:52]1077 (6) - 213434094677087 - ФПД [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1209 (04B9) [01:29:52]Malloc new data [01:29:52]Processing tag 1041 (0411) [01:29:52]Processing tag 1040 (0410) [01:29:52]Malloc new data [01:29:52]Processing tag 1038 (040E) [01:29:52]Malloc new data [01:29:52]Processing tag 1118 (045E) [01:29:52]Malloc new data [01:29:52]Processing tag 1111 (0457) [01:29:52]Malloc new data [01:29:52]Processing tag 1194 (04AA) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1134 (046E) [01:29:52]Malloc new data [01:29:52]Processing tag 1129 (0469) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1135 (046F) [01:29:52]Malloc new data [01:29:52]Processing tag 1201 (04B1) [01:29:52]Malloc new data [01:29:52]Processing tag 1136 (0470) [01:29:52]Malloc new data [01:29:52]Processing tag 1138 (0472) [01:29:52]Malloc new data [01:29:52]Processing tag 1024 (0400) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1006 (03EE) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1010 (03F2) [01:29:52]Malloc new data [01:29:52]Processing tag 1011 (03F3) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1006 (03EE) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1010 (03F2) [01:29:52]Malloc new data [01:29:52]Processing tag 1011 (03F3) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]SetTLVBufToDocument err=0 [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1130 (046A) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1135 (046F) [01:29:52]Malloc new data [01:29:52]Processing tag 1201 (04B1) [01:29:52]Malloc new data [01:29:52]Processing tag 1136 (0470) [01:29:52]Malloc new data [01:29:52]Processing tag 1138 (0472) [01:29:52]Malloc new data [01:29:52]Processing tag 1024 (0400) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1006 (03EE) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1010 (03F2) [01:29:52]Malloc new data [01:29:52]Processing tag 1011 (03F3) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1006 (03EE) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1010 (03F2) [01:29:52]Malloc new data [01:29:52]Processing tag 1011 (03F3) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]SetTLVBufToDocument err=0 [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1131 (046B) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1135 (046F) [01:29:52]Malloc new data [01:29:52]Processing tag 1201 (04B1) [01:29:52]Malloc new data [01:29:52]Processing tag 1136 (0470) [01:29:52]Malloc new data [01:29:52]Processing tag 1138 (0472) [01:29:52]Malloc new data [01:29:52]Processing tag 1024 (0400) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1006 (03EE) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1010 (03F2) [01:29:52]Malloc new data [01:29:52]Processing tag 1011 (03F3) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1006 (03EE) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1010 (03F2) [01:29:52]Malloc new data [01:29:52]Processing tag 1011 (03F3) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:52]Processing tag 1007 (03EF) [01:29:52]Load OK [01:29:52]SetTLVBufToDocument [01:29:52]Processing tag 1014 (03F6) [01:29:52]Malloc new data [01:29:52]Processing tag 1015 (03F7) [01:29:52]Malloc new data [01:29:52]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]SetTLVBufToDocument err=0 [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1132 (046C) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1135 (046F) [01:29:53]Malloc new data [01:29:53]Processing tag 1201 (04B1) [01:29:53]Malloc new data [01:29:53]Processing tag 1136 (0470) [01:29:53]Malloc new data [01:29:53]Processing tag 1138 (0472) [01:29:53]Malloc new data [01:29:53]Processing tag 1024 (0400) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1006 (03EE) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1010 (03F2) [01:29:53]Malloc new data [01:29:53]Processing tag 1011 (03F3) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1006 (03EE) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1010 (03F2) [01:29:53]Malloc new data [01:29:53]Processing tag 1011 (03F3) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1007 (03EF) [01:29:53]Load OK [01:29:53]SetTLVBufToDocument [01:29:53]Processing tag 1014 (03F6) [01:29:53]Malloc new data [01:29:53]Processing tag 1015 (03F7) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]SetTLVBufToDocument err=0 [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1133 (046D) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Processing tag 1077 (0435) [01:29:53]Malloc new data [01:29:53]SetTLVBufToDocument err=0 [01:29:53]Malloc new data [01:29:53]SAM_PROTO_GetFMData [01:29:53]wFMCommunicate request_size=4 [01:29:53]MH_SAM_APDU [01:29:53]CAPDU: 80 13 03 00 [01:29:53]Write to MH i2c: E2 08 00 51 64 80 13 03 00 00 00 00 00 34 [01:29:53]Write i2c OK [01:29:53]MH_I2C_Read... [01:29:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:29:53]Read from MH i2c: E2 [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: E2 FD 00 [01:29:53]MH_I2C_Read... [01:29:53]Read from MH i2c: E2 FD 00 51 64 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 6C [01:29:53]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:29:54]wFMCommunicate OK [01:29:54]wFMCommunicate request_size=4 [01:29:54]MH_SAM_APDU [01:29:54]CAPDU: 80 17 00 00 [01:29:54]Write to MH i2c: E2 08 00 52 64 80 17 00 00 00 00 00 00 36 [01:29:54]Write i2c OK [01:29:54]MH_I2C_Read... [01:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:54]Read from MH i2c: E2 [01:29:54]MH_I2C_Read... [01:29:54]Read from MH i2c: E2 FD 00 [01:29:54]MH_I2C_Read... [01:29:54]Read from MH i2c: E2 FD 00 52 64 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [01:29:54]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:29:54]wFMCommunicate OK [01:29:54]wFMCommunicate request_size=4 [01:29:54]MH_SAM_APDU [01:29:54]CAPDU: 80 17 00 00 [01:29:54]Write to MH i2c: E2 08 00 53 64 80 17 00 00 00 00 00 00 37 [01:29:54]Write i2c OK [01:29:54]MH_I2C_Read... [01:29:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:55]Read from MH i2c: E2 [01:29:55]MH_I2C_Read... [01:29:55]Read from MH i2c: E2 FD 00 [01:29:55]MH_I2C_Read... [01:29:55]Read from MH i2c: E2 FD 00 53 64 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 69 [01:29:55]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:55]wFMCommunicate OK [01:29:55]wFMCommunicate request_size=4 [01:29:55]MH_SAM_APDU [01:29:55]CAPDU: 80 17 00 00 [01:29:55]Write to MH i2c: E2 08 00 54 64 80 17 00 00 00 00 00 00 38 [01:29:55]Write i2c OK [01:29:55]MH_I2C_Read... [01:29:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:29:55]Read from MH i2c: E2 [01:29:55]MH_I2C_Read... [01:29:55]Read from MH i2c: E2 FD 00 [01:29:55]MH_I2C_Read... [01:29:55]Read from MH i2c: E2 FD 00 54 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 AF [01:29:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:29:56]wFMCommunicate OK [01:29:56]wFMCommunicate request_size=4 [01:29:56]MH_SAM_APDU [01:29:56]CAPDU: 80 17 00 00 [01:29:56]Write to MH i2c: E2 08 00 55 64 80 17 00 00 00 00 00 00 39 [01:29:56]Write i2c OK [01:29:56]MH_I2C_Read... [01:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:29:56]Read from MH i2c: E2 [01:29:56]MH_I2C_Read... [01:29:56]Read from MH i2c: E2 DA 00 [01:29:56]MH_I2C_Read... [01:29:56]Read from MH i2c: E2 DA 00 55 64 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [01:29:56]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [01:29:57]03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:29:57]wFMCommunicate OK [01:29:57]SAM_PROTO_GetFMData done [01:29:57]Malloc new data [01:29:57]Malloc new data [01:29:57]Malloc new data [01:29:57]Malloc new data [01:29:57]KKMLoadAndSignCloseShiftData err=0 [01:29:57]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Амантуров Р. 23.06.2024 01:30 Смена: 391 РНМ: 0000000000092771 ЗНМ: 0300000198 СНО: Общий режим Чеков за смену: 263 ФД за смену: 265 Всего чеков: 263 ИТОГИ ПРИХОД Чеков: 263 Общий итог: 237620.10 Итого наличными: 210173.00 Итого безнал.: 27447.10 НДС 0% : 0.00 НДС 12% : 25245.07 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2103.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 210173.00 НС Приход: 84570017.29 НС Возвр.Прихода: 201.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 112398 ФМ: 0000000000875083 ФПД: 213434094677087 [01:29:57]StoreToDocumentArchive [01:29:57]shift 391 fd 112398 [01:29:57]save to /storage/0391/doc_00112398 [01:29:57]save last doc name /storage/0391/doc_00112398 to /storage/kkm_last_doc_name [01:29:57]save OK [01:29:57]Clear old archive folders... [01:29:57]Remove dir /storage/0266 [01:29:57]opendir ok [01:29:57]file . [01:29:57]file .. [01:29:57]file doc_1719106207 [01:29:57]remove file /storage/0266/doc_1719106207 [01:29:57]remove dir /storage/0266 [01:29:57]NVStorageSaveData kkm_registers [01:29:57]File name is /storage/kkm_registers [01:29:57]Write 24 bytes [01:29:57]NVStorageSaveData done [01:29:57]NVStorageSaveData kkm_registers [01:29:57]File name is /storage/kkm_registers [01:29:57]Write 24 bytes [01:29:57]NVStorageSaveData done [01:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [01:29:57]tlvbuf is 0144E000 [01:29:57]SAM_PROTO_ClearQueue [01:29:57]wFMCommunicate request_size=4 [01:29:57]MH_SAM_APDU [01:29:57]CAPDU: 80 09 00 00 [01:29:57]Write to MH i2c: E2 08 00 56 64 80 09 00 00 00 00 00 00 2C [01:29:57]Write i2c OK [01:29:57]MH_I2C_Read... [01:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:29:57]Read from MH i2c: E2 [01:29:57]MH_I2C_Read... [01:29:57]Read from MH i2c: E2 03 00 [01:29:57]MH_I2C_Read... [01:29:57]Read from MH i2c: E2 03 00 56 64 00 90 00 2E [01:29:57]RAPDU: 90 00 [01:29:57]wFMCommunicate OK [01:29:57]SAM_PROTO_ClearQueue done [01:29:57]KKMCreateOFDPacket [01:29:57]OFDProtocolAddRootSTLVToBuf [01:29:57]FM_MakeSignedData [01:29:57]FM_MakeSignedData [01:29:57]SAM_PROTO_SignData [01:29:57]wFMCommunicate request_size=4 [01:29:57]MH_SAM_APDU [01:29:57]CAPDU: 80 0D 01 02 [01:29:57]Write to MH i2c: E2 08 00 57 64 80 0D 01 02 00 00 00 00 34 [01:29:57]Write i2c OK [01:29:57]MH_I2C_Read... [01:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:29:57]Read from MH i2c: E2 [01:29:57]MH_I2C_Read... [01:29:57]Read from MH i2c: E2 03 00 [01:29:57]MH_I2C_Read... [01:29:57]Read from MH i2c: E2 03 00 57 64 00 90 00 2F [01:29:57]RAPDU: 90 00 [01:29:57]wFMCommunicate OK [01:29:57]wFMCommunicate request_size=255 [01:29:57]MH_SAM_APDU [01:29:57]CAPDU: 80 0D 02 02 FA 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 B4 7A 77 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 29 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 5B 85 26 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 [01:29:57]Write to MH i2c: E2 02 01 58 64 80 0D 02 02 FA 00 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 B4 7A 77 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 29 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 5B 85 26 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 00 F6 [01:29:58]Write i2c OK [01:29:58]MH_I2C_Read... [01:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:58]Read from MH i2c: E2 [01:29:58]MH_I2C_Read... [01:29:58]Read from MH i2c: E2 03 00 [01:29:58]MH_I2C_Read... [01:29:58]Read from MH i2c: E2 03 00 58 64 00 90 00 30 [01:29:58]RAPDU: 90 00 [01:29:58]wFMCommunicate OK [01:29:58]wFMCommunicate request_size=255 [01:29:58]MH_SAM_APDU [01:29:58]CAPDU: 80 0D 02 02 FA 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 A4 35 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:29:58]Write to MH i2c: E2 02 01 59 64 80 0D 02 02 FA 00 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 A4 35 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 00 00 81 [01:29:58]Write i2c OK [01:29:58]MH_I2C_Read... [01:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:29:59]Read from MH i2c: E2 [01:29:59]MH_I2C_Read... [01:29:59]Read from MH i2c: E2 03 00 [01:29:59]MH_I2C_Read... [01:29:59]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [01:29:59]RAPDU: 90 00 [01:29:59]wFMCommunicate OK [01:29:59]wFMCommunicate request_size=255 [01:29:59]MH_SAM_APDU [01:29:59]CAPDU: 80 0D 02 02 FA 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:29:59]Write to MH i2c: E2 02 01 5A 64 80 0D 02 02 FA 00 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 00 00 FE [01:29:59]Write i2c OK [01:29:59]MH_I2C_Read... [01:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:00]Read from MH i2c: E2 [01:30:00]MH_I2C_Read... [01:30:00]Read from MH i2c: E2 03 00 [01:30:00]MH_I2C_Read... [01:30:00]Read from MH i2c: E2 03 00 5A 64 00 90 00 32 [01:30:00]RAPDU: 90 00 [01:30:00]wFMCommunicate OK [01:30:00]wFMCommunicate request_size=255 [01:30:00]MH_SAM_APDU [01:30:00]CAPDU: 80 0D 02 02 FA 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 [01:30:00]Write to MH i2c: E2 02 01 5B 64 80 0D 02 02 FA 00 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 00 00 FB [01:30:00]Write i2c OK [01:30:00]MH_I2C_Read... [01:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:00]Read from MH i2c: E2 [01:30:00]MH_I2C_Read... [01:30:00]Read from MH i2c: E2 03 00 [01:30:00]MH_I2C_Read... [01:30:00]Read from MH i2c: E2 03 00 5B 64 00 90 00 33 [01:30:00]RAPDU: 90 00 [01:30:00]wFMCommunicate OK [01:30:00]wFMCommunicate request_size=255 [01:30:00]MH_SAM_APDU [01:30:00]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:30:01]Write to MH i2c: E2 02 01 5C 64 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 D3 [01:30:01]Write i2c OK [01:30:01]MH_I2C_Read... [01:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:01]Read from MH i2c: E2 [01:30:01]MH_I2C_Read... [01:30:01]Read from MH i2c: E2 03 00 [01:30:01]MH_I2C_Read... [01:30:01]Read from MH i2c: E2 03 00 5C 64 00 90 00 34 [01:30:01]RAPDU: 90 00 [01:30:01]wFMCommunicate OK [01:30:01]wFMCommunicate request_size=143 [01:30:01]MH_SAM_APDU [01:30:01]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 0E B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 C2 1D FF 65 6C 5F [01:30:01]Write to MH i2c: E2 92 00 5D 64 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 0E B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 C2 1D FF 65 6C 5F 00 00 49 [01:30:01]Write i2c OK [01:30:01]MH_I2C_Read... [01:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:02]Read from MH i2c: E2 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: E2 03 00 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: E2 03 00 5D 64 00 90 00 35 [01:30:02]RAPDU: 90 00 [01:30:02]wFMCommunicate OK [01:30:02]wFMCommunicate request_size=4 [01:30:02]MH_SAM_APDU [01:30:02]CAPDU: 80 0D 03 02 [01:30:02]Write to MH i2c: E2 08 00 5E 64 80 0D 03 02 00 00 00 00 3D [01:30:02]Write i2c OK [01:30:02]MH_I2C_Read... [01:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:02]Read from MH i2c: E2 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: E2 0B 00 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: E2 0B 00 5E 64 00 CA 58 73 00 AC B8 9F 15 90 00 EB [01:30:02]RAPDU: CA 58 73 00 AC B8 9F 15 90 00 [01:30:02]wFMCommunicate OK [01:30:02]SAM_PROTO_SignData done [01:30:02]FM_MakeSignedData done [01:30:02]CreateOFDProtocolMessage [01:30:02]wFMCommunicate request_size=4 [01:30:02]MH_SAM_APDU [01:30:02]CAPDU: 80 11 00 00 [01:30:02]Write to MH i2c: E2 08 00 5F 64 80 11 00 00 00 00 00 00 3D [01:30:02]Write i2c OK [01:30:02]MH_I2C_Read... [01:30:02]OFD Sender: No OFD packet to send [01:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:02]Read from MH i2c: E2 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: E2 17 00 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: E2 17 00 5F 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [01:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:30:02]wFMCommunicate OK [01:30:02]CreateOFDProtocolMessage done [01:30:02]OFDSenderStorePacket 112398 [01:30:02]StoreOFDPacket docnum=112398 [01:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7C 05 00 00 B2 E9 74 05 BB BA 5A 05 01 00 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 B4 7A 77 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 29 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 5B 85 26 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 A4 35 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 0E B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 C2 1D FF 65 6C 5F CA 58 73 00 AC B8 9F 15 [01:30:02]CheckFolder [01:30:02]dirname=/storage/ofd_packets [01:30:02]CheckFolder done [01:30:02]ProducePacketName [01:30:02]name=ofd_packets/00112398 [01:30:02]NVStorageSaveData ofd_packets/00112398 [01:30:02]File name is /storage/ofd_packets/00112398 [01:30:02]Write 1434 bytes [01:30:02]NVStorageSaveData done [01:30:02]OFDSenderStorePacket done [01:30:02]KKMCreateOFDPacket done [01:30:02]NVStorageSaveData kkm_last_timestamp [01:30:02]File name is /storage/kkm_last_timestamp [01:30:02]Write 4 bytes [01:30:02]NVStorageSaveData done [01:30:02]ExternCall_PrintAddStr [01:30:02]wPrintStart [01:30:02]Write to MH i2c: 01 00 00 60 64 C4 [01:30:02]Write i2c OK [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: 01 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: 01 07 00 [01:30:02]MH_I2C_Read... [01:30:02]Read from MH i2c: 01 07 00 60 64 00 00 00 00 00 FF 0F D9 [01:30:02]RasterBufferAndPrint [01:30:02]line Отчет о закрытии смены [01:30:02]line ФФД: 1.0 [01:30:02]line ИНН: 02508201610067 [01:30:02]line Кассир: Амантуров Р. [01:30:02]line 23.06.2024 01:30 [01:30:02]line Смена: 391 [01:30:02]line РНМ: 0000000000092771 [01:30:02]line ЗНМ: 0300000198 [01:30:02]line СНО: Общий режим [01:30:02]line Чеков за смену: 263 [01:30:02]OFD Sender: Processing packet 112398 [packets to send 38, broken 37] [01:30:02]ProducePacketName [01:30:02]name=ofd_packets/00112398 [01:30:02]OFD Sender: To server: pG, [01:30:02]CommunicateWithHost lk.salyk.kg:30040 [01:30:02]ConnectInit lk.salyk.kg [01:30:02]line ФД за смену: 265 [01:30:02]line Всего чеков: 263 [01:30:02]line ИТОГИ ПРИХОД [01:30:02]line Чеков: 263 [01:30:02]line Общий итог: 237620.10 [01:30:02]line Итого наличными: 210173.00 [01:30:02]line Итого безнал.: 27447.10 [01:30:02]line НДС 0% : 0.00 [01:30:02]line НДС 12% : 25245.07 [01:30:02]line НСП 0% : 0.00 [01:30:02]line НСП 1,50% : 0.00 [01:30:02]line НСП 0,50% : 0.00 [01:30:02]line НСП 5% : 0.00 [01:30:02]line НСП 3% : 0.00 [01:30:02]line НСП 2% : 0.00 [01:30:02]line НСП 1% : 2103.40 [01:30:02]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:30:02]line Чеков: 0 [01:30:02]line Общий итог: 0.00 [01:30:02]line Итого наличными: 0.00 [01:30:02]line Итого безнал.: 0.00 [01:30:02]line НДС 0% : 0.00 [01:30:02]line НДС 12% : 0.00 [01:30:02]line НСП 0% : 0.00 [01:30:02]line НСП 1,50% : 0.00 [01:30:02]line НСП 0,50% : 0.00 [01:30:02]line НСП 5% : 0.00 [01:30:02]line НСП 3% : 0.00 [01:30:02]line НСП 2% : 0.00 [01:30:02]line НСП 1% : 0.00 [01:30:02]line ИТОГИ РАСХОД [01:30:02]line Чеков: 0 [01:30:02]line Общий итог: 0.00 [01:30:02]line Итого наличными: 0.00 [01:30:02]line Итого безнал.: 0.00 [01:30:02]line НДС 0% : 0.00 [01:30:02]line НДС 12% : 0.00 [01:30:02]line НСП 0% : 0.00 [01:30:02]line НСП 1,50% : 0.00 [01:30:02]line НСП 0,50% : 0.00 [01:30:02]line НСП 5% : 0.00 [01:30:02]line НСП 3% : 0.00 [01:30:02]line НСП 2% : 0.00 [01:30:02]line НСП 1% : 0.00 [01:30:02]line ИТОГИ ВОЗВРАТ РАСХОДА [01:30:02]line Чеков: 0 [01:30:02]line Общий итог: 0.00 [01:30:02]line Итого наличными: 0.00 [01:30:02]line Итого безнал.: 0.00 [01:30:02]line НДС 0% : 0.00 [01:30:02]line НДС 12% : 0.00 [01:30:02]line НСП 0% : 0.00 [01:30:02]line НСП 1,50% : 0.00 [01:30:02]line НСП 0,50% : 0.00 [01:30:02]line НСП 5% : 0.00 [01:30:02]line НСП 3% : 0.00 [01:30:02]line НСП 2% : 0.00 [01:30:02]line НСП 1% : 0.00 [01:30:02]line Сумма внесений: 0.00 [01:30:02]line Сумма выплат: 0.00 [01:30:02]line Нал. в кассе: 210173.00 [01:30:02]line НС Приход: 84570017.29 [01:30:02]line НС Возвр.Прихода: 201.00 [01:30:02]Connected sock=10 [01:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7C 05 00 00 B2 E9 74 05 BB BA 5A 05 01 00 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 line НС Расход: 0.00 [01:30:03]00 line НС Возвр.Расхода: 0.00 [01:30:03]B4 line ФД: 112398 [01:30:03]7A line ФМ: 0000000000875083 [01:30:03]77 line ФПД: 213434094677087 [01:30:03]66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 29 00 04 82 00 EE 03 written 0, free lines is 4095 [01:30: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 5B 85 26 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 A4 35 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 Write to MH i2c: 00 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 00 B0 F2 64 03 14 01 [01:30:04]00 Write i2c OK [01:30:04]00 MH_I2C_Read... [01:30:04]F3 Read from MH i2c: 03 01 00 [01:30:04]00 MH_I2C_Read... [01:30:04]EE 03 09 00 F2 03 01 Read from MH i2c: 00 01 01 07 F3 00 03 [01:30:04]00 MH_I2C_Read... [01:30:04]00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 07 00 00 F7 B0 03 00 00 EF 03 09 00 F6 03 01 64 00 00 01 00 F7 00 03 00 00 00 EF 03 09 00 F6 03 01 00 00 02 A8 F7 0A 03 CD 00 [01:30:04]00 RasterBufferAndPrint [01:30:04]EF line [01:30:04]03 line [01:30:04]09 line [01:30:04]00 F6 03 01 00 03 F7 03 00 00 EF line [01:30:04]03 line [01:30:04]09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 written 0, free lines is 2948 [01:30:04]00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 MH_Cut [01:30:04]00 Write to MH i2c: 00 D1 EF 01 03 00 09 B7 00 64 F6 01 03 ED 01 [01:30:04]00 02 F7 03 00 00 EF 03 09 Write i2c OK [01:30:04]00 MH_I2C_Read... [01:30:04]F6 Read from MH i2c: 03 D1 01 [01:30:04]00 MH_I2C_Read... [01:30:04]03 Read from MH i2c: F7 D1 03 01 00 00 EF 03 09 00 F6 03 01 00 00 04 [01:30:04]F7 MH_I2C_Read... [01:30:04]03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 B7 03 01 00 05 F7 03 00 00 EF 03 64 09 00 00 EC F6 [01:30:04]03 Write to MH i2c: 01 01 00 00 06 00 F7 B8 03 64 00 1C 00 [01:30:04]D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 Write i2c OK [01:30:04]00 MH_I2C_Read... [01:30:04]70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 0E B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 C2 1D FF 65 6C 5F CA 58 73 00 AC B8 9F 15 [01:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B6 42 47 00 EF 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B7 01 00 F4 03 04 00 BF 11 77 66 B6 04 01 00 00 81 18 ED 40 F1 B5 CA A3 [01:30:05]CommunicateWithHost err = 0 [01:30:05]CheckOFDResponse [01:30:05]1017 (14) - 77093643461234 [01:30:05]1041 (16) - 0000000000875083 [01:30:05]1040 (4) - 112398 [01:30:05]1012 (4) - 22.06.2024 18:02 [01:30:05]1206 (1) - 0 [01:30:05]OFD Sender: Remove packet 112398 [01:30:05]ProducePacketName [01:30:05]name=ofd_packets/00112398 [01:30:05]NVStorageDeleteData [01:30:05]*** Cut start [01:30:05]*** Partial cut [01:30:05]*** CUTSNS_PIN = 1 [01:30:05]*** CUTSNS_PIN = 0 [01:30:05]*** Brake cut motor [01:30:05]OFD Sender: No OFD packet to send [01:30:05]Read from MH i2c: 01 [01:30:05]MH_I2C_Read... [01:30:05]*** Stop cut motor [01:30:05]*** Cut end [01:30:05]Read from MH i2c: 01 07 00 [01:30:05]MH_I2C_Read... [01:30:05]Read from MH i2c: 01 07 00 B8 64 00 00 00 00 00 FF 0F 31 [01:30:05]process_action close_shift done [01:30:05]requested_data is exist [01:30:05]produce_requested_data [01:30:05]requested_item fd.num is exist - process it [01:30:05]SAM_PROTO_GetFieldsCounters [01:30:05]wFMCommunicate request_size=4 [01:30:05]MH_SAM_APDU [01:30:05]CAPDU: 80 13 00 00 [01:30:05]Write to MH i2c: E2 08 00 B9 64 80 13 00 00 00 00 00 00 99 [01:30:05]Write i2c OK [01:30:05]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 62 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 62 00 B9 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [01:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:06]wFMCommunicate OK [01:30:06]SAM_PROTO_GetFieldsCounters done [01:30:06]requested_item shift.num is exist - process it [01:30:06]requested_item shift.opened is exist - process it [01:30:06]req_shift_opened [01:30:06]FM_GetShiftState [01:30:06]SAM_PROTO_GetShiftState [01:30:06]wFMCommunicate request_size=4 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 13 01 00 [01:30:06]Write to MH i2c: E2 08 00 BA 64 80 13 01 00 00 00 00 00 9B [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 0E 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 0E 00 BA 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A6 [01:30:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:30:06]wFMCommunicate OK [01:30:06]SAM_PROTO_GetShiftState done [01:30:06]FM_GetShiftState done [01:30:06]req_shift_opened done [01:30:06]requested_item shift.open_date is exist - process it [01:30:06]req_shift_open_date [01:30:06]FM_GetShiftState [01:30:06]SAM_PROTO_GetShiftState [01:30:06]wFMCommunicate request_size=4 [01:30:06]MH_SAM_APDU [01:30:06]CAPDU: 80 13 01 00 [01:30:06]Write to MH i2c: E2 08 00 BB 64 80 13 01 00 00 00 00 00 9C [01:30:06]Write i2c OK [01:30:06]MH_I2C_Read... [01:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:06]Read from MH i2c: E2 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 0E 00 [01:30:06]MH_I2C_Read... [01:30:06]Read from MH i2c: E2 0E 00 BB 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A7 [01:30:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:30:06]wFMCommunicate OK [01:30:06]SAM_PROTO_GetShiftState done [01:30:06]FM_GetShiftState done [01:30:06]req_shift_open_date done [01:30:06]produce_requested_data done [01:30:06]produce_requested_data return {"fd.num":112398,"shift.num":391,"shift.opened":0,"shift.open_date":0} [01:30:06]process_action_free close_shift [01:30:06]json_value_free [01:30:06]json_value_free done [01:30:06]process_json_proto returns [01:30:06]Send response to host [01:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112398,"shift.num":391,"shift.opened":0,"shift.open_date":0}}} [01:30:06]free response buf [01:30:06]execute_script done [01:30:06]execute_script returns [01:30:06]free content buf [01:30:06]Sock 9.Close socket [01:30:06]Sock 9.Thread stoped [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:05]accept exits with 7 [01:34:05]New connection [01:34:05]New thread 3066957156 created [01:34:05]Thread 3066813796 joined [01:34:05]Waiting for new connection... [01:34:05] Sock 7.Parse request [01:34:05]Sock 7.Check first char [01:34:05]Sock 7.First char is OK [01:34:05]request: POST /json_proto HTTP/1.0 [01:34:05]Method: POST [01:34:05]URL: /json_proto [01:34:05]Method is POST - this is cgi request [01:34:05]url: /json_proto [01:34:05]query_string will be loaded in cgi processing [01:34:05]execute_cgi json_proto POST (null) [01:34:05]execute_cgi path=json_proto method=POST [01:34:05]POST find Content-Length [01:34:05]Host: 172.17.59.68:8080 [01:34:05]Content-Length: 215 [01:34:05]Content-Type: application/json [01:34:05] [01:34:05]POST finish read [01:34:05]Found Content-Length = 215 [01:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:05]execute_script... [01:34:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:05]POST & json_proto [01:34:05]process_json_proto [01:34:05]json parsed OK: [01:34:05]protocol is kg_v1.0 [01:34:05]action value=get_value [01:34:05]process_action get_value [01:34:05]cmd_get_value [01:34:05]process_action get_value done [01:34:05]requested_data is exist [01:34:05]produce_requested_data [01:34:05]requested_item kkm.sn is exist - process it [01:34:05]requested_item kkm.ver is exist - process it [01:34:05]requested_item fm.sn is exist - process it [01:34:05]wFMCommunicate request_size=4 [01:34:05]MH_SAM_APDU [01:34:05]CAPDU: 80 11 00 00 [01:34:05]Write to MH i2c: E2 08 00 BC 64 80 11 00 00 00 00 00 00 9A [01:34:05]Write i2c OK [01:34:05]MH_I2C_Read... [01:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:05]Read from MH i2c: E2 [01:34:05]MH_I2C_Read... [01:34:05]Read from MH i2c: E2 17 00 [01:34:05]MH_I2C_Read... [01:34:05]Read from MH i2c: E2 17 00 BC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [01:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:34:05]wFMCommunicate OK [01:34:05]requested_item fd.num is exist - process it [01:34:05]SAM_PROTO_GetFieldsCounters [01:34:05]wFMCommunicate request_size=4 [01:34:05]MH_SAM_APDU [01:34:05]CAPDU: 80 13 00 00 [01:34:05]Write to MH i2c: E2 08 00 BD 64 80 13 00 00 00 00 00 00 9D [01:34:05]Write i2c OK [01:34:05]MH_I2C_Read... [01:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:05]Read from MH i2c: E2 [01:34:05]MH_I2C_Read... [01:34:05]Read from MH i2c: E2 62 00 [01:34:05]MH_I2C_Read... [01:34:05]Read from MH i2c: E2 62 00 BD 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [01:34:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B7 01 00 0E 04 04 00 87 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:05]wFMCommunicate OK [01:34:05]SAM_PROTO_GetFieldsCounters done [01:34:05]requested_item shift.num is exist - process it [01:34:05]requested_item shift.opened is exist - process it [01:34:05]req_shift_opened [01:34:05]FM_GetShiftState [01:34:05]SAM_PROTO_GetShiftState [01:34:05]wFMCommunicate request_size=4 [01:34:05]MH_SAM_APDU [01:34:05]CAPDU: 80 13 01 00 [01:34:05]Write to MH i2c: E2 08 00 BE 64 80 13 01 00 00 00 00 00 9F [01:34:05]Write i2c OK [01:34:05]MH_I2C_Read... [01:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:05]Read from MH i2c: E2 [01:34:05]MH_I2C_Read... [01:34:05]Read from MH i2c: E2 0E 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 0E 00 BE 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AA [01:34:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:34:06]wFMCommunicate OK [01:34:06]SAM_PROTO_GetShiftState done [01:34:06]FM_GetShiftState done [01:34:06]req_shift_opened done [01:34:06]requested_item shift.open_date is exist - process it [01:34:06]req_shift_open_date [01:34:06]FM_GetShiftState [01:34:06]SAM_PROTO_GetShiftState [01:34:06]wFMCommunicate request_size=4 [01:34:06]MH_SAM_APDU [01:34:06]CAPDU: 80 13 01 00 [01:34:06]Write to MH i2c: E2 08 00 BF 64 80 13 01 00 00 00 00 00 A0 [01:34:06]Write i2c OK [01:34:06]MH_I2C_Read... [01:34:06]OFD Sender: No OFD packet to send [01:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:06]Read from MH i2c: E2 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 0E 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 0E 00 BF 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AB [01:34:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:34:06]wFMCommunicate OK [01:34:06]SAM_PROTO_GetShiftState done [01:34:06]FM_GetShiftState done [01:34:06]req_shift_open_date done [01:34:06]produce_requested_data done [01:34:06]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112398,"shift.num":391,"shift.opened":0,"shift.open_date":0} [01:34:06]process_action_free get_value [01:34:06]json_value_free [01:34:06]json_value_free done [01:34:06]process_json_proto returns [01:34:06]Send response to host [01:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112398,"shift.num":391,"shift.opened":0,"shift.open_date":0}}} [01:34:06]free response buf [01:34:06]execute_script done [01:34:06]execute_script returns [01:34:06]free content buf [01:34:06]Sock 7.Close socket [01:34:06]Sock 7.Thread stoped [01:34:06]accept exits with 9 [01:34:06]New connection [01:34:06]New thread 3066813796 created [01:34:06]Thread 3066957156 joined [01:34:06]Waiting for new connection... [01:34:06] Sock 9.Parse request [01:34:06]Sock 9.Check first char [01:34:06]Sock 9.First char is OK [01:34:06]request: POST /json_proto HTTP/1.0 [01:34:06]Method: POST [01:34:06]URL: /json_proto [01:34:06]Method is POST - this is cgi request [01:34:06]url: /json_proto [01:34:06]query_string will be loaded in cgi processing [01:34:06]execute_cgi json_proto POST (null) [01:34:06]execute_cgi path=json_proto method=POST [01:34:06]POST find Content-Length [01:34:06]Host: 172.17.59.68:8080 [01:34:06]Content-Length: 331 [01:34:06]Content-Type: application/json [01:34:06] [01:34:06]POST finish read [01:34:06]Found Content-Length = 331 [01:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:34:06]execute_script... [01:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:34:06]POST & json_proto [01:34:06]process_json_proto [01:34:06]json parsed OK: [01:34:06]protocol is kg_v1.0 [01:34:06]action value=get_value [01:34:06]process_action get_value [01:34:06]cmd_get_value [01:34:06]process_action get_value done [01:34:06]requested_data is exist [01:34:06]produce_requested_data [01:34:06]requested_item fm.sale.total is exist - process it [01:34:06]SAM_PROTO_GetFMData [01:34:06]wFMCommunicate request_size=4 [01:34:06]MH_SAM_APDU [01:34:06]CAPDU: 80 13 03 00 [01:34:06]Write to MH i2c: E2 08 00 C0 64 80 13 03 00 00 00 00 00 A3 [01:34:06]Write i2c OK [01:34:06]MH_I2C_Read... [01:34:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:34:06]Read from MH i2c: E2 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 FD 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 FD 00 C0 64 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 DB [01:34:06]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:34:06]wFMCommunicate OK [01:34:06]wFMCommunicate request_size=4 [01:34:06]MH_SAM_APDU [01:34:06]CAPDU: 80 17 00 00 [01:34:06]Write to MH i2c: E2 08 00 C1 64 80 17 00 00 00 00 00 00 A5 [01:34:06]Write i2c OK [01:34:06]MH_I2C_Read... [01:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:07]Read from MH i2c: E2 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 FD 00 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 FD 00 C1 64 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [01:34:07]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:07]wFMCommunicate OK [01:34:07]wFMCommunicate request_size=4 [01:34:07]MH_SAM_APDU [01:34:07]CAPDU: 80 17 00 00 [01:34:07]Write to MH i2c: E2 08 00 C2 64 80 17 00 00 00 00 00 00 A6 [01:34:07]Write i2c OK [01:34:07]MH_I2C_Read... [01:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:07]Read from MH i2c: E2 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 FD 00 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 FD 00 C2 64 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D8 [01:34:07]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:34:07]wFMCommunicate OK [01:34:07]wFMCommunicate request_size=4 [01:34:07]MH_SAM_APDU [01:34:07]CAPDU: 80 17 00 00 [01:34:07]Write to MH i2c: E2 08 00 C3 64 80 17 00 00 00 00 00 00 A7 [01:34:07]Write i2c OK [01:34:07]MH_I2C_Read... [01:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:07]Read from MH i2c: E2 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 FD 00 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 FD 00 C3 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1E [01:34:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:34:07]wFMCommunicate OK [01:34:07]wFMCommunicate request_size=4 [01:34:07]MH_SAM_APDU [01:34:07]CAPDU: 80 17 00 00 [01:34:07]Write to MH i2c: E2 08 00 C4 64 80 17 00 00 00 00 00 00 A8 [01:34:07]Write i2c OK [01:34:07]MH_I2C_Read... [01:34:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:34:07]Read from MH i2c: E2 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 DA 00 [01:34:07]MH_I2C_Read... [01:34:07]Read from MH i2c: E2 DA 00 C4 64 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [01:34:07]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:34:07]wFMCommunicate OK [01:34:07]SAM_PROTO_GetFMData done [01:34:07]requested_item fm.sale_refund.total is exist - process it [01:34:07]requested_item fm.buy.total is exist - process it [01:34:07]requested_item shift.sale.total is exist - process it [01:34:07]SAM_PROTO_GetShiftData [01:34:07]wFMCommunicate request_size=4 [01:34:07]MH_SAM_APDU [01:34:07]CAPDU: 80 13 02 00 [01:34:07]Write to MH i2c: E2 08 00 C5 64 80 13 02 00 00 00 00 00 A7 [01:34:07]Write i2c OK [01:34:07]MH_I2C_Read... [01:34:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:34:08]Read from MH i2c: E2 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: E2 FD 00 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: E2 FD 00 C5 64 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 20 [01:34:08]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 5A 94 6A 01 70 04 04 00 D4 B2 40 01 72 04 03 00 86 E1 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 5B 85 26 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 A4 35 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 [01:34:08]wFMCommunicate OK [01:34:08]wFMCommunicate request_size=4 [01:34:08]MH_SAM_APDU [01:34:08]CAPDU: 80 17 00 00 [01:34:08]Write to MH i2c: E2 08 00 C6 64 80 17 00 00 00 00 00 00 AA [01:34:08]Write i2c OK [01:34:08]MH_I2C_Read... [01:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:08]Read from MH i2c: E2 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: E2 FD 00 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: E2 FD 00 C6 64 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 C3 [01:34:08]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 [01:34:08]wFMCommunicate OK [01:34:08]wFMCommunicate request_size=4 [01:34:08]MH_SAM_APDU [01:34:08]CAPDU: 80 17 00 00 [01:34:08]Write to MH i2c: E2 08 00 C7 64 80 17 00 00 00 00 00 00 AB [01:34:08]Write i2c OK [01:34:08]MH_I2C_Read... [01:34:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:08]Read from MH i2c: E2 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: E2 FD 00 [01:34:08]MH_I2C_Read... [01:34:08]Read from MH i2c: E2 FD 00 C7 64 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 64 [01:34:08]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 [01:34:08]wFMCommunicate OK [01:34:08]wFMCommunicate request_size=4 [01:34:08]MH_SAM_APDU [01:34:08]CAPDU: 80 17 00 00 [01:34:08]Write to MH i2c: E2 08 00 C8 64 80 17 00 00 00 00 00 00 AC [01:34:08]Write i2c OK [01:34:08]MH_I2C_Read... [01:34:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:09]Read from MH i2c: E2 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 FD 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 FD 00 C8 64 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 24 [01:34:09]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 [01:34:09]wFMCommunicate OK [01:34:09]wFMCommunicate request_size=4 [01:34:09]MH_SAM_APDU [01:34:09]CAPDU: 80 17 00 00 [01:34:09]Write to MH i2c: E2 08 00 C9 64 80 17 00 00 00 00 00 00 AD [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:34:09]Read from MH i2c: E2 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 CE 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 CE 00 C9 64 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 92 [01:34:09]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 [01:34:09]wFMCommunicate OK [01:34:09]SAM_PROTO_GetShiftData done [01:34:09]requested_item shift.sale.total_cash is exist - process it [01:34:09]requested_item shift.sale_refund.total is exist - process it [01:34:09]requested_item shift.sale_refund.total_cash is exist - process it [01:34:09]requested_item shift.buy.total is exist - process it [01:34:09]requested_item shift.buy.total_cash is exist - process it [01:34:09]produce_requested_data done [01:34:09]produce_requested_data return {"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:34:09]process_action_free get_value [01:34:09]json_value_free [01:34:09]json_value_free done [01:34:09]process_json_proto returns [01:34:09]Send response to host [01:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84570017.29,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":237620.10,"shift.sale.total_cash":210173.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:34:09]free response buf [01:34:09]execute_script done [01:34:09]execute_script returns [01:34:09]free content buf [01:34:09]Sock 9.Close socket [01:34:09]Sock 9.Thread stoped [01:34:09]accept exits with 7 [01:34:09]New connection [01:34:09]New thread 3066957156 created [01:34:09]Thread 3066813796 joined [01:34:09]Waiting for new connection... [01:34:09] Sock 7.Parse request [01:34:09]Sock 7.Check first char [01:34:09]Sock 7.First char is OK [01:34:09]request: POST /json_proto HTTP/1.0 [01:34:09]Method: POST [01:34:09]URL: /json_proto [01:34:09]Method is POST - this is cgi request [01:34:09]url: /json_proto [01:34:09]query_string will be loaded in cgi processing [01:34:09]execute_cgi json_proto POST (null) [01:34:09]execute_cgi path=json_proto method=POST [01:34:09]POST find Content-Length [01:34:09]Host: 172.17.59.68:8080 [01:34:09]Content-Length: 277 [01:34:09]Content-Type: application/json [01:34:09] [01:34:09]POST finish read [01:34:09]Found Content-Length = 277 [01:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:09]execute_script... [01:34:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:09]POST & json_proto [01:34:09]process_json_proto [01:34:09]json parsed OK: [01:34:09]protocol is kg_v1.0 [01:34:09]action value=open_shift [01:34:09]process_action open_shift [01:34:09]cmd_open_shift [01:34:09]MH_GetDate [01:34:09]Write to MH i2c: F0 00 00 CA 64 1D [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: F0 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: F0 09 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: F0 09 00 CA 64 00 BA 7B 77 66 BC EC 60 65 A5 [01:34:09]GetLastDocTimeStamp 1719106228 [01:34:09]current date 1719106490 [01:34:09]FM_GetShiftState [01:34:09]SAM_PROTO_GetShiftState [01:34:09]wFMCommunicate request_size=4 [01:34:09]MH_SAM_APDU [01:34:09]CAPDU: 80 13 01 00 [01:34:09]Write to MH i2c: E2 08 00 CB 64 80 13 01 00 00 00 00 00 AC [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:09]Read from MH i2c: E2 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 0E 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 0E 00 CB 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B7 [01:34:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:34:09]wFMCommunicate OK [01:34:09]SAM_PROTO_GetShiftState done [01:34:09]FM_GetShiftState done [01:34:09]KKMCreateOpenShiftDocument [01:34:09]Load OK [01:34:09]Malloc new data [01:34:09]MH_GetDate [01:34:09]Write to MH i2c: F0 00 00 CC 64 1F [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: F0 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: F0 09 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: F0 09 00 CC 64 00 BA 7B 77 66 BC EC 60 65 A7 [01:34:09]Malloc new data [01:34:09]KKMCreateOpenShiftDocument OK [01:34:09]KKMSetOpenShiftData OK [01:34:09]ProcessDocumentItem done err = 0, tmpTLVsize=210 [01:34:09]tlvbuf is 01217AC0 [01:34:09]KKMLoadAndSignOpenShiftData [01:34:09]SAM_PROTO_ProcessDocument [01:34:09]wFMCommunicate request_size=9 [01:34:09]MH_SAM_APDU [01:34:09]CAPDU: 80 15 01 00 04 02 00 D2 00 [01:34:09]Write to MH i2c: E2 0C 00 CD 64 80 15 01 00 04 00 02 00 D2 00 00 00 8C [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:34:09]Read from MH i2c: E2 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 03 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 03 00 CD 64 00 90 00 A5 [01:34:09]RAPDU: 90 00 [01:34:09]wFMCommunicate OK [01:34:09]wFMCommunicate request_size=23 [01:34:09]MH_SAM_APDU [01:34:09]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:34:09]Write to MH i2c: E2 1A 00 CE 64 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 A7 [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:09]Read from MH i2c: E2 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 03 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 03 00 CE 64 00 90 00 A6 [01:34:09]RAPDU: 90 00 [01:34:09]wFMCommunicate OK [01:34:09]wFMCommunicate request_size=36 [01:34:09]MH_SAM_APDU [01:34:09]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 [01:34:09]Write to MH i2c: E2 27 00 CF 64 80 15 02 00 1F 00 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 00 00 54 [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:09]Read from MH i2c: E2 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 03 00 [01:34:09]MH_I2C_Read... [01:34:09]Read from MH i2c: E2 03 00 CF 64 00 90 00 A7 [01:34:09]RAPDU: 90 00 [01:34:09]wFMCommunicate OK [01:34:09]wFMCommunicate request_size=93 [01:34:09]MH_SAM_APDU [01:34:09]CAPDU: 80 15 02 00 58 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 [01:34:09]Write to MH i2c: E2 60 00 D0 64 80 15 02 00 58 00 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 00 00 7F [01:34:09]Write i2c OK [01:34:09]MH_I2C_Read... [01:34:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:10]Read from MH i2c: E2 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 D0 64 00 90 00 A8 [01:34:10]RAPDU: 90 00 [01:34:10]wFMCommunicate OK [01:34:10]wFMCommunicate request_size=50 [01:34:10]MH_SAM_APDU [01:34:10]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 [01:34:10]Write to MH i2c: E2 35 00 D1 64 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 2F [01:34:10]Write i2c OK [01:34:10]MH_I2C_Read... [01:34:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:10]Read from MH i2c: E2 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 D1 64 00 90 00 A9 [01:34:10]RAPDU: 90 00 [01:34:10]wFMCommunicate OK [01:34:10]wFMCommunicate request_size=13 [01:34:10]MH_SAM_APDU [01:34:10]CAPDU: 80 15 02 00 08 F4 03 04 00 BA 7B 77 66 [01:34:10]Write to MH i2c: E2 10 00 D2 64 80 15 02 00 08 00 F4 03 04 00 BA 7B 77 66 00 00 D3 [01:34:10]Write i2c OK [01:34:10]MH_I2C_Read... [01:34:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:10]Read from MH i2c: E2 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 D2 64 00 90 00 AA [01:34:10]RAPDU: 90 00 [01:34:10]wFMCommunicate OK [01:34:10]wFMCommunicate request_size=25 [01:34:10]MH_SAM_APDU [01:34:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [01:34:10]Write to MH i2c: E2 1C 00 D3 64 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 1A [01:34:10]Write i2c OK [01:34:10]MH_I2C_Read... [01:34:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:10]Read from MH i2c: E2 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 03 00 D3 64 00 90 00 AB [01:34:10]RAPDU: 90 00 [01:34:10]wFMCommunicate OK [01:34:10]wFMCommunicate request_size=4 [01:34:10]MH_SAM_APDU [01:34:10]CAPDU: 80 15 03 00 [01:34:10]Write to MH i2c: E2 08 00 D4 64 80 15 03 00 00 00 00 00 B9 [01:34:10]Write i2c OK [01:34:10]MH_I2C_Read... [01:34:10]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [01:34:10]Read from MH i2c: E2 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 38 00 [01:34:10]MH_I2C_Read... [01:34:10]Read from MH i2c: E2 38 00 D4 64 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B7 01 00 0E 04 04 00 88 01 00 00 35 04 06 00 78 8A 6F E3 26 9D 90 00 EB [01:34:10]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B7 01 00 0E 04 04 00 88 01 00 00 35 04 06 00 78 8A 6F E3 26 9D 90 00 [01:34:10]wFMCommunicate OK [01:34:10]SAM_PROTO_ProcessDocument answer len = 51 [01:34:10]SAM_PROTO_ProcessDocument done [01:34:10]SetTLVBufToDocument [01:34:10]Processing tag 1209 (04B9) [01:34:10]Malloc new data [01:34:10]Processing tag 1041 (0411) [01:34:10]Processing tag 1040 (0410) [01:34:10]Malloc new data [01:34:10]Processing tag 1038 (040E) [01:34:10]Malloc new data [01:34:10]Processing tag 1077 (0435) [01:34:10]Malloc new data [01:34:10]SetTLVBufToDocument err=0 [01:34:10]KKMLoadAndSignOpenShiftData store KKM data [01:34:10]KKMLoadAndSignOpenShiftData err=0 [01:34:10]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Бейшенбеков А. Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 Место: АЗС № 65 "Партнер Нефть" 23.06.2024 01:34 Смена: 392 РНМ: 0000000000092771 ЗНМ: 0300000198 ФД: 112399 ФМ: 0000000000875083 ФПД: 132535977977501 [01:34:10]StoreToDocumentArchive [01:34:10]shift 392 fd 112399 [01:34:10]Create dir for shift 0392 [01:34:10]save to /storage/0392/doc_00112399 [01:34:10]save last doc name /storage/0392/doc_00112399 to /storage/kkm_last_doc_name [01:34:10]save OK [01:34:10]Clear old archive folders... [01:34:10]Remove dir /storage/0391 [01:34:10]opendir ok [01:34:10]file . [01:34:10]file .. [01:34:10]file doc_00112134 [01:34:10]remove file /storage/0391/doc_00112134 [01:34:10]file doc_00112135 [01:34:10]remove file /storage/0391/doc_00112135 [01:34:10]file doc_00112136 [01:34:10]remove file /storage/0391/doc_00112136 [01:34:10]file doc_00112137 [01:34:10]remove file /storage/0391/doc_00112137 [01:34:10]file doc_00112138 [01:34:10]remove file /storage/0391/doc_00112138 [01:34:10]file doc_00112139 [01:34:10]remove file /storage/0391/doc_00112139 [01:34:10]file doc_00112140 [01:34:10]remove file /storage/0391/doc_00112140 [01:34:10]file doc_00112141 [01:34:10]remove file /storage/0391/doc_00112141 [01:34:10]file doc_00112142 [01:34:10]remove file /storage/0391/doc_00112142 [01:34:10]file doc_00112143 [01:34:10]remove file /storage/0391/doc_00112143 [01:34:10]file doc_00112144 [01:34:10]remove file /storage/0391/doc_00112144 [01:34:10]file doc_00112145 [01:34:10]remove file /storage/0391/doc_00112145 [01:34:10]file doc_00112146 [01:34:10]remove file /storage/0391/doc_00112146 [01:34:10]file doc_00112147 [01:34:10]remove file /storage/0391/doc_00112147 [01:34:10]file doc_00112148 [01:34:10]remove file /storage/0391/doc_00112148 [01:34:10]file doc_00112149 [01:34:10]remove file /storage/0391/doc_00112149 [01:34:10]file doc_00112150 [01:34:10]remove file /storage/0391/doc_00112150 [01:34:10]file doc_00112151 [01:34:10]remove file /storage/0391/doc_00112151 [01:34:10]file doc_00112152 [01:34:10]remove file /storage/0391/doc_00112152 [01:34:10]file doc_00112153 [01:34:10]remove file /storage/0391/doc_00112153 [01:34:10]file doc_00112154 [01:34:10]remove file /storage/0391/doc_00112154 [01:34:10]file doc_00112155 [01:34:10]remove file /storage/0391/doc_00112155 [01:34:10]file doc_00112156 [01:34:10]remove file /storage/0391/doc_00112156 [01:34:10]file doc_00112157 [01:34:10]remove file /storage/0391/doc_00112157 [01:34:10]file doc_00112158 [01:34:10]remove file /storage/0391/doc_00112158 [01:34:10]file doc_00112159 [01:34:10]remove file /storage/0391/doc_00112159 [01:34:10]file doc_00112160 [01:34:10]remove file /storage/0391/doc_00112160 [01:34:10]file doc_00112161 [01:34:10]remove file /storage/0391/doc_00112161 [01:34:10]file doc_00112162 [01:34:10]remove file /storage/0391/doc_00112162 [01:34:10]file doc_00112163 [01:34:10]remove file /storage/0391/doc_00112163 [01:34:10]file doc_00112164 [01:34:10]remove file /storage/0391/doc_00112164 [01:34:10]file doc_00112165 [01:34:10]remove file /storage/0391/doc_00112165 [01:34:10]file doc_00112166 [01:34:10]remove file /storage/0391/doc_00112166 [01:34:10]file doc_00112167 [01:34:10]remove file /storage/0391/doc_00112167 [01:34:10]file doc_00112168 [01:34:10]remove file /storage/0391/doc_00112168 [01:34:10]file doc_00112169 [01:34:10]remove file /storage/0391/doc_00112169 [01:34:10]file doc_00112170 [01:34:10]remove file /storage/0391/doc_00112170 [01:34:10]file doc_00112171 [01:34:10]remove file /storage/0391/doc_00112171 [01:34:10]file doc_00112172 [01:34:10]remove file /storage/0391/doc_00112172 [01:34:10]file doc_00112173 [01:34:10]remove file /storage/0391/doc_00112173 [01:34:10]file doc_00112174 [01:34:10]remove file /storage/0391/doc_00112174 [01:34:10]file doc_00112175 [01:34:10]remove file /storage/0391/doc_00112175 [01:34:10]file doc_00112176 [01:34:10]remove file /storage/0391/doc_00112176 [01:34:10]file doc_00112177 [01:34:10]remove file /storage/0391/doc_00112177 [01:34:10]file doc_00112178 [01:34:10]remove file /storage/0391/doc_00112178 [01:34:10]file doc_00112179 [01:34:10]remove file /storage/0391/doc_00112179 [01:34:10]file doc_00112180 [01:34:10]remove file /storage/0391/doc_00112180 [01:34:10]file doc_00112181 [01:34:10]remove file /storage/0391/doc_00112181 [01:34:10]file doc_00112182 [01:34:10]remove file /storage/0391/doc_00112182 [01:34:10]file doc_00112183 [01:34:10]remove file /storage/0391/doc_00112183 [01:34:10]file doc_00112184 [01:34:10]remove file /storage/0391/doc_00112184 [01:34:10]file doc_00112185 [01:34:10]remove file /storage/0391/doc_00112185 [01:34:10]file doc_00112186 [01:34:10]remove file /storage/0391/doc_00112186 [01:34:10]file doc_00112187 [01:34:10]remove file /storage/0391/doc_00112187 [01:34:10]file doc_00112188 [01:34:10]remove file /storage/0391/doc_00112188 [01:34:10]file doc_00112189 [01:34:10]remove file /storage/0391/doc_00112189 [01:34:10]file doc_00112190 [01:34:10]remove file /storage/0391/doc_00112190 [01:34:10]file doc_00112191 [01:34:10]remove file /storage/0391/doc_00112191 [01:34:10]file doc_00112192 [01:34:10]remove file /storage/0391/doc_00112192 [01:34:10]file doc_00112193 [01:34:10]remove file /storage/0391/doc_00112193 [01:34:10]file doc_00112194 [01:34:10]remove file /storage/0391/doc_00112194 [01:34:10]file doc_00112195 [01:34:10]remove file /storage/0391/doc_00112195 [01:34:11]file doc_00112196 [01:34:11]remove file /storage/0391/doc_00112196 [01:34:11]file doc_00112197 [01:34:11]remove file /storage/0391/doc_00112197 [01:34:11]file doc_00112198 [01:34:11]remove file /storage/0391/doc_00112198 [01:34:11]file doc_00112199 [01:34:11]remove file /storage/0391/doc_00112199 [01:34:11]file doc_00112200 [01:34:11]remove file /storage/0391/doc_00112200 [01:34:11]file doc_00112201 [01:34:11]remove file /storage/0391/doc_00112201 [01:34:11]file doc_00112202 [01:34:11]remove file /storage/0391/doc_00112202 [01:34:11]file doc_00112203 [01:34:11]remove file /storage/0391/doc_00112203 [01:34:11]file doc_00112204 [01:34:11]remove file /storage/0391/doc_00112204 [01:34:11]file doc_00112205 [01:34:11]remove file /storage/0391/doc_00112205 [01:34:11]file doc_00112206 [01:34:11]remove file /storage/0391/doc_00112206 [01:34:11]file doc_00112207 [01:34:11]remove file /storage/0391/doc_00112207 [01:34:11]file doc_00112208 [01:34:11]remove file /storage/0391/doc_00112208 [01:34:11]file doc_00112209 [01:34:11]remove file /storage/0391/doc_00112209 [01:34:11]file doc_00112210 [01:34:11]remove file /storage/0391/doc_00112210 [01:34:11]file doc_00112211 [01:34:11]remove file /storage/0391/doc_00112211 [01:34:11]file doc_00112212 [01:34:11]remove file /storage/0391/doc_00112212 [01:34:11]file doc_00112213 [01:34:11]remove file /storage/0391/doc_00112213 [01:34:11]file doc_00112214 [01:34:11]remove file /storage/0391/doc_00112214 [01:34:11]file doc_00112215 [01:34:11]remove file /storage/0391/doc_00112215 [01:34:11]file doc_00112216 [01:34:11]remove file /storage/0391/doc_00112216 [01:34:11]file doc_00112217 [01:34:11]remove file /storage/0391/doc_00112217 [01:34:11]file doc_00112218 [01:34:11]remove file /storage/0391/doc_00112218 [01:34:11]file doc_00112219 [01:34:11]remove file /storage/0391/doc_00112219 [01:34:11]file doc_00112220 [01:34:11]remove file /storage/0391/doc_00112220 [01:34:11]file doc_00112221 [01:34:11]remove file /storage/0391/doc_00112221 [01:34:11]file doc_00112222 [01:34:11]remove file /storage/0391/doc_00112222 [01:34:11]file doc_00112223 [01:34:11]remove file /storage/0391/doc_00112223 [01:34:11]file doc_00112224 [01:34:11]remove file /storage/0391/doc_00112224 [01:34:11]file doc_00112225 [01:34:11]remove file /storage/0391/doc_00112225 [01:34:11]file doc_00112226 [01:34:11]remove file /storage/0391/doc_00112226 [01:34:11]file doc_00112227 [01:34:11]remove file /storage/0391/doc_00112227 [01:34:11]file doc_00112228 [01:34:11]remove file /storage/0391/doc_00112228 [01:34:11]file doc_00112229 [01:34:11]remove file /storage/0391/doc_00112229 [01:34:11]file doc_00112230 [01:34:11]remove file /storage/0391/doc_00112230 [01:34:11]file doc_00112231 [01:34:11]remove file /storage/0391/doc_00112231 [01:34:11]file doc_00112232 [01:34:11]remove file /storage/0391/doc_00112232 [01:34:11]file doc_00112233 [01:34:11]remove file /storage/0391/doc_00112233 [01:34:11]file doc_00112234 [01:34:11]remove file /storage/0391/doc_00112234 [01:34:11]file doc_00112235 [01:34:11]remove file /storage/0391/doc_00112235 [01:34:11]file doc_00112236 [01:34:11]remove file /storage/0391/doc_00112236 [01:34:11]file doc_00112237 [01:34:11]remove file /storage/0391/doc_00112237 [01:34:11]file doc_00112238 [01:34:11]remove file /storage/0391/doc_00112238 [01:34:11]file doc_00112239 [01:34:11]remove file /storage/0391/doc_00112239 [01:34:11]file doc_00112240 [01:34:11]remove file /storage/0391/doc_00112240 [01:34:11]file doc_00112241 [01:34:11]remove file /storage/0391/doc_00112241 [01:34:11]file doc_00112242 [01:34:11]remove file /storage/0391/doc_00112242 [01:34:11]file doc_00112243 [01:34:11]remove file /storage/0391/doc_00112243 [01:34:11]file doc_00112244 [01:34:11]remove file /storage/0391/doc_00112244 [01:34:11]OFD Sender: No OFD packet to send [01:34:11]file doc_00112245 [01:34:11]remove file /storage/0391/doc_00112245 [01:34:11]file doc_00112246 [01:34:11]remove file /storage/0391/doc_00112246 [01:34:11]file doc_00112247 [01:34:11]remove file /storage/0391/doc_00112247 [01:34:11]file doc_00112248 [01:34:11]remove file /storage/0391/doc_00112248 [01:34:11]file doc_00112249 [01:34:11]remove file /storage/0391/doc_00112249 [01:34:11]file doc_00112250 [01:34:11]remove file /storage/0391/doc_00112250 [01:34:11]file doc_00112251 [01:34:11]remove file /storage/0391/doc_00112251 [01:34:11]file doc_00112252 [01:34:11]remove file /storage/0391/doc_00112252 [01:34:11]file doc_00112253 [01:34:11]remove file /storage/0391/doc_00112253 [01:34:11]file doc_00112254 [01:34:11]remove file /storage/0391/doc_00112254 [01:34:11]file doc_00112255 [01:34:11]remove file /storage/0391/doc_00112255 [01:34:11]file doc_00112256 [01:34:11]remove file /storage/0391/doc_00112256 [01:34:11]file doc_00112257 [01:34:11]remove file /storage/0391/doc_00112257 [01:34:11]file doc_00112258 [01:34:11]remove file /storage/0391/doc_00112258 [01:34:11]file doc_00112259 [01:34:11]remove file /storage/0391/doc_00112259 [01:34:11]file doc_00112260 [01:34:11]remove file /storage/0391/doc_00112260 [01:34:11]file doc_00112261 [01:34:11]remove file /storage/0391/doc_00112261 [01:34:11]file doc_00112262 [01:34:11]remove file /storage/0391/doc_00112262 [01:34:11]file doc_00112263 [01:34:11]remove file /storage/0391/doc_00112263 [01:34:11]file doc_00112264 [01:34:11]remove file /storage/0391/doc_00112264 [01:34:11]file doc_00112265 [01:34:11]remove file /storage/0391/doc_00112265 [01:34:11]file doc_00112266 [01:34:11]remove file /storage/0391/doc_00112266 [01:34:11]file doc_00112267 [01:34:11]remove file /storage/0391/doc_00112267 [01:34:11]file doc_00112268 [01:34:11]remove file /storage/0391/doc_00112268 [01:34:11]file doc_00112269 [01:34:11]remove file /storage/0391/doc_00112269 [01:34:11]file doc_00112270 [01:34:11]remove file /storage/0391/doc_00112270 [01:34:11]file doc_00112271 [01:34:11]remove file /storage/0391/doc_00112271 [01:34:11]file doc_00112272 [01:34:11]remove file /storage/0391/doc_00112272 [01:34:11]file doc_00112273 [01:34:11]remove file /storage/0391/doc_00112273 [01:34:11]file doc_00112274 [01:34:11]remove file /storage/0391/doc_00112274 [01:34:11]file doc_00112275 [01:34:11]remove file /storage/0391/doc_00112275 [01:34:11]file doc_00112276 [01:34:11]remove file /storage/0391/doc_00112276 [01:34:11]file doc_00112277 [01:34:11]remove file /storage/0391/doc_00112277 [01:34:11]file doc_00112278 [01:34:11]remove file /storage/0391/doc_00112278 [01:34:11]file doc_00112279 [01:34:11]remove file /storage/0391/doc_00112279 [01:34:11]file doc_00112280 [01:34:11]remove file /storage/0391/doc_00112280 [01:34:11]file doc_00112281 [01:34:11]remove file /storage/0391/doc_00112281 [01:34:11]file doc_00112282 [01:34:11]remove file /storage/0391/doc_00112282 [01:34:11]file doc_00112283 [01:34:11]remove file /storage/0391/doc_00112283 [01:34:11]file doc_00112284 [01:34:11]remove file /storage/0391/doc_00112284 [01:34:11]file doc_00112285 [01:34:11]remove file /storage/0391/doc_00112285 [01:34:11]file doc_00112286 [01:34:11]remove file /storage/0391/doc_00112286 [01:34:11]file doc_00112287 [01:34:11]remove file /storage/0391/doc_00112287 [01:34:11]file doc_00112288 [01:34:11]remove file /storage/0391/doc_00112288 [01:34:11]file doc_00112289 [01:34:11]remove file /storage/0391/doc_00112289 [01:34:11]file doc_00112290 [01:34:11]remove file /storage/0391/doc_00112290 [01:34:11]file doc_00112291 [01:34:11]remove file /storage/0391/doc_00112291 [01:34:11]file doc_00112292 [01:34:11]remove file /storage/0391/doc_00112292 [01:34:11]file doc_00112293 [01:34:11]remove file /storage/0391/doc_00112293 [01:34:11]file doc_00112294 [01:34:11]remove file /storage/0391/doc_00112294 [01:34:11]file doc_00112295 [01:34:11]remove file /storage/0391/doc_00112295 [01:34:11]file doc_00112296 [01:34:11]remove file /storage/0391/doc_00112296 [01:34:11]file doc_00112297 [01:34:11]remove file /storage/0391/doc_00112297 [01:34:11]file doc_00112298 [01:34:11]remove file /storage/0391/doc_00112298 [01:34:11]file doc_00112299 [01:34:11]remove file /storage/0391/doc_00112299 [01:34:11]file doc_00112300 [01:34:11]remove file /storage/0391/doc_00112300 [01:34:11]file doc_00112301 [01:34:11]remove file /storage/0391/doc_00112301 [01:34:11]file doc_00112302 [01:34:11]remove file /storage/0391/doc_00112302 [01:34:11]file doc_00112303 [01:34:11]remove file /storage/0391/doc_00112303 [01:34:11]file doc_00112304 [01:34:11]remove file /storage/0391/doc_00112304 [01:34:11]file doc_00112305 [01:34:11]remove file /storage/0391/doc_00112305 [01:34:11]file doc_00112306 [01:34:11]remove file /storage/0391/doc_00112306 [01:34:11]file doc_00112307 [01:34:11]remove file /storage/0391/doc_00112307 [01:34:11]file doc_00112308 [01:34:11]remove file /storage/0391/doc_00112308 [01:34:11]file doc_00112309 [01:34:11]remove file /storage/0391/doc_00112309 [01:34:11]file doc_00112310 [01:34:11]remove file /storage/0391/doc_00112310 [01:34:11]file doc_00112311 [01:34:11]remove file /storage/0391/doc_00112311 [01:34:11]file doc_00112312 [01:34:11]remove file /storage/0391/doc_00112312 [01:34:11]file doc_00112313 [01:34:11]remove file /storage/0391/doc_00112313 [01:34:11]file doc_00112314 [01:34:11]remove file /storage/0391/doc_00112314 [01:34:11]file doc_00112315 [01:34:11]remove file /storage/0391/doc_00112315 [01:34:11]file doc_00112316 [01:34:11]remove file /storage/0391/doc_00112316 [01:34:11]file doc_00112317 [01:34:11]remove file /storage/0391/doc_00112317 [01:34:11]file doc_00112318 [01:34:11]remove file /storage/0391/doc_00112318 [01:34:11]file doc_00112319 [01:34:11]remove file /storage/0391/doc_00112319 [01:34:11]file doc_00112320 [01:34:11]remove file /storage/0391/doc_00112320 [01:34:11]file doc_00112321 [01:34:11]remove file /storage/0391/doc_00112321 [01:34:11]file doc_00112322 [01:34:11]remove file /storage/0391/doc_00112322 [01:34:11]file doc_00112323 [01:34:11]remove file /storage/0391/doc_00112323 [01:34:11]file doc_00112324 [01:34:11]remove file /storage/0391/doc_00112324 [01:34:11]file doc_00112325 [01:34:11]remove file /storage/0391/doc_00112325 [01:34:11]file doc_00112326 [01:34:11]remove file /storage/0391/doc_00112326 [01:34:11]file doc_00112327 [01:34:11]remove file /storage/0391/doc_00112327 [01:34:11]file doc_00112328 [01:34:11]remove file /storage/0391/doc_00112328 [01:34:11]file doc_00112329 [01:34:11]remove file /storage/0391/doc_00112329 [01:34:11]file doc_00112330 [01:34:11]remove file /storage/0391/doc_00112330 [01:34:11]file doc_00112331 [01:34:11]remove file /storage/0391/doc_00112331 [01:34:11]file doc_00112332 [01:34:11]remove file /storage/0391/doc_00112332 [01:34:11]file doc_00112333 [01:34:11]remove file /storage/0391/doc_00112333 [01:34:11]file doc_00112334 [01:34:11]remove file /storage/0391/doc_00112334 [01:34:11]file doc_00112335 [01:34:11]remove file /storage/0391/doc_00112335 [01:34:11]file doc_00112336 [01:34:11]remove file /storage/0391/doc_00112336 [01:34:11]file doc_00112337 [01:34:11]remove file /storage/0391/doc_00112337 [01:34:11]file doc_00112338 [01:34:11]remove file /storage/0391/doc_00112338 [01:34:11]file doc_00112339 [01:34:11]remove file /storage/0391/doc_00112339 [01:34:11]file doc_00112340 [01:34:11]remove file /storage/0391/doc_00112340 [01:34:11]file doc_00112341 [01:34:11]remove file /storage/0391/doc_00112341 [01:34:11]file doc_00112342 [01:34:11]remove file /storage/0391/doc_00112342 [01:34:11]file doc_00112343 [01:34:11]remove file /storage/0391/doc_00112343 [01:34:11]file doc_00112344 [01:34:11]remove file /storage/0391/doc_00112344 [01:34:11]file doc_00112345 [01:34:11]remove file /storage/0391/doc_00112345 [01:34:11]file doc_00112346 [01:34:11]remove file /storage/0391/doc_00112346 [01:34:11]file doc_00112347 [01:34:11]remove file /storage/0391/doc_00112347 [01:34:11]file doc_00112348 [01:34:11]remove file /storage/0391/doc_00112348 [01:34:11]file doc_00112349 [01:34:11]remove file /storage/0391/doc_00112349 [01:34:11]file doc_00112350 [01:34:11]remove file /storage/0391/doc_00112350 [01:34:11]file doc_00112351 [01:34:11]remove file /storage/0391/doc_00112351 [01:34:11]file doc_00112352 [01:34:11]remove file /storage/0391/doc_00112352 [01:34:11]file doc_00112353 [01:34:11]remove file /storage/0391/doc_00112353 [01:34:11]file doc_00112354 [01:34:11]remove file /storage/0391/doc_00112354 [01:34:11]file doc_00112355 [01:34:11]remove file /storage/0391/doc_00112355 [01:34:11]file doc_00112356 [01:34:11]remove file /storage/0391/doc_00112356 [01:34:11]file doc_00112357 [01:34:11]remove file /storage/0391/doc_00112357 [01:34:11]file doc_00112358 [01:34:11]remove file /storage/0391/doc_00112358 [01:34:11]file doc_00112359 [01:34:11]remove file /storage/0391/doc_00112359 [01:34:11]file doc_00112360 [01:34:11]remove file /storage/0391/doc_00112360 [01:34:11]file doc_00112361 [01:34:11]remove file /storage/0391/doc_00112361 [01:34:11]file doc_00112362 [01:34:11]remove file /storage/0391/doc_00112362 [01:34:11]file doc_00112363 [01:34:11]remove file /storage/0391/doc_00112363 [01:34:11]file doc_00112364 [01:34:11]remove file /storage/0391/doc_00112364 [01:34:11]file doc_00112365 [01:34:11]remove file /storage/0391/doc_00112365 [01:34:11]file doc_00112366 [01:34:11]remove file /storage/0391/doc_00112366 [01:34:11]file doc_00112367 [01:34:11]remove file /storage/0391/doc_00112367 [01:34:11]file doc_00112368 [01:34:11]remove file /storage/0391/doc_00112368 [01:34:11]file doc_00112369 [01:34:11]remove file /storage/0391/doc_00112369 [01:34:11]file doc_00112370 [01:34:11]remove file /storage/0391/doc_00112370 [01:34:11]file doc_00112371 [01:34:11]remove file /storage/0391/doc_00112371 [01:34:11]file doc_00112372 [01:34:11]remove file /storage/0391/doc_00112372 [01:34:11]file doc_00112373 [01:34:11]remove file /storage/0391/doc_00112373 [01:34:11]file doc_00112374 [01:34:11]remove file /storage/0391/doc_00112374 [01:34:11]file doc_00112375 [01:34:11]remove file /storage/0391/doc_00112375 [01:34:11]file doc_00112376 [01:34:11]remove file /storage/0391/doc_00112376 [01:34:11]file doc_00112377 [01:34:11]remove file /storage/0391/doc_00112377 [01:34:11]file doc_00112378 [01:34:11]remove file /storage/0391/doc_00112378 [01:34:11]file doc_00112379 [01:34:11]remove file /storage/0391/doc_00112379 [01:34:11]file doc_00112380 [01:34:11]remove file /storage/0391/doc_00112380 [01:34:11]file doc_00112381 [01:34:11]remove file /storage/0391/doc_00112381 [01:34:11]file doc_00112382 [01:34:11]remove file /storage/0391/doc_00112382 [01:34:11]file doc_00112383 [01:34:11]remove file /storage/0391/doc_00112383 [01:34:11]file doc_00112384 [01:34:11]remove file /storage/0391/doc_00112384 [01:34:11]file doc_00112385 [01:34:11]remove file /storage/0391/doc_00112385 [01:34:11]file doc_00112386 [01:34:11]remove file /storage/0391/doc_00112386 [01:34:11]file doc_00112387 [01:34:11]remove file /storage/0391/doc_00112387 [01:34:11]file doc_00112388 [01:34:11]remove file /storage/0391/doc_00112388 [01:34:11]file doc_00112389 [01:34:11]remove file /storage/0391/doc_00112389 [01:34:11]file doc_00112390 [01:34:11]remove file /storage/0391/doc_00112390 [01:34:11]file doc_00112391 [01:34:11]remove file /storage/0391/doc_00112391 [01:34:11]file doc_00112392 [01:34:11]remove file /storage/0391/doc_00112392 [01:34:11]file doc_00112393 [01:34:11]remove file /storage/0391/doc_00112393 [01:34:11]file doc_00112394 [01:34:11]remove file /storage/0391/doc_00112394 [01:34:11]file doc_00112395 [01:34:11]remove file /storage/0391/doc_00112395 [01:34:11]file doc_00112396 [01:34:11]remove file /storage/0391/doc_00112396 [01:34:11]file doc_00112397 [01:34:11]remove file /storage/0391/doc_00112397 [01:34:11]file doc_00112398 [01:34:11]remove file /storage/0391/doc_00112398 [01:34:11]remove dir /storage/0391 [01:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=261 [01:34:11]tlvbuf is 0113FE90 [01:34:11]SAM_PROTO_ClearQueue [01:34:11]wFMCommunicate request_size=4 [01:34:11]MH_SAM_APDU [01:34:11]CAPDU: 80 09 00 00 [01:34:11]Write to MH i2c: E2 08 00 D5 64 80 09 00 00 00 00 00 00 AB [01:34:11]Write i2c OK [01:34:11]MH_I2C_Read... [01:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:11]Read from MH i2c: E2 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 [01:34:11]MH_I2C_Read... [01:34:11]Read from MH i2c: E2 03 00 D5 64 00 90 00 AD [01:34:11]RAPDU: 90 00 [01:34:11]wFMCommunicate OK [01:34:11]SAM_PROTO_ClearQueue done [01:34:11]KKMCreateOFDPacket [01:34:11]OFDProtocolAddRootSTLVToBuf [01:34:11]FM_MakeSignedData [01:34:11]FM_MakeSignedData [01:34:11]SAM_PROTO_SignData [01:34:12]wFMCommunicate request_size=4 [01:34:12]MH_SAM_APDU [01:34:12]CAPDU: 80 0D 01 02 [01:34:12]Write to MH i2c: E2 08 00 D6 64 80 0D 01 02 00 00 00 00 B3 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:12]Read from MH i2c: E2 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 03 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 03 00 D6 64 00 90 00 AE [01:34:12]RAPDU: 90 00 [01:34:12]wFMCommunicate OK [01:34:12]wFMCommunicate request_size=255 [01:34:12]MH_SAM_APDU [01:34:12]CAPDU: 80 0D 02 02 FA 02 00 05 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 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 BA 7B 77 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [01:34:12]Write to MH i2c: E2 02 01 D7 64 80 0D 02 02 FA 00 02 00 05 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 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 BA 7B 77 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 E3 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:12]Read from MH i2c: E2 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 03 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 03 00 D7 64 00 90 00 AF [01:34:12]RAPDU: 90 00 [01:34:12]wFMCommunicate OK [01:34:12]wFMCommunicate request_size=20 [01:34:12]MH_SAM_APDU [01:34:12]CAPDU: 80 0D 02 02 0F 37 35 30 38 33 35 04 06 00 78 8A 6F E3 26 9D [01:34:12]Write to MH i2c: E2 17 00 D8 64 80 0D 02 02 0F 00 37 35 30 38 33 35 04 06 00 78 8A 6F E3 26 9D 00 00 31 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:12]Read from MH i2c: E2 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 03 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 03 00 D8 64 00 90 00 B0 [01:34:12]RAPDU: 90 00 [01:34:12]wFMCommunicate OK [01:34:12]wFMCommunicate request_size=4 [01:34:12]MH_SAM_APDU [01:34:12]CAPDU: 80 0D 03 02 [01:34:12]Write to MH i2c: E2 08 00 D9 64 80 0D 03 02 00 00 00 00 B8 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:12]Read from MH i2c: E2 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 0B 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 0B 00 D9 64 00 8E 98 8B 56 01 A6 27 B3 90 00 41 [01:34:12]RAPDU: 8E 98 8B 56 01 A6 27 B3 90 00 [01:34:12]wFMCommunicate OK [01:34:12]SAM_PROTO_SignData done [01:34:12]FM_MakeSignedData done [01:34:12]CreateOFDProtocolMessage [01:34:12]wFMCommunicate request_size=4 [01:34:12]MH_SAM_APDU [01:34:12]CAPDU: 80 11 00 00 [01:34:12]Write to MH i2c: E2 08 00 DA 64 80 11 00 00 00 00 00 00 B8 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:12]Read from MH i2c: E2 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 17 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: E2 17 00 DA 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [01:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:34:12]wFMCommunicate OK [01:34:12]CreateOFDProtocolMessage done [01:34:12]OFDSenderStorePacket 112399 [01:34:12]StoreOFDPacket docnum=112399 [01:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 19 01 00 00 05 55 11 01 CC 16 5A 02 01 00 02 00 05 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 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 BA 7B 77 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 78 8A 6F E3 26 9D 8E 98 8B 56 01 A6 27 B3 [01:34:12]CheckFolder [01:34:12]dirname=/storage/ofd_packets [01:34:12]CheckFolder done [01:34:12]ProducePacketName [01:34:12]name=ofd_packets/00112399 [01:34:12]NVStorageSaveData ofd_packets/00112399 [01:34:12]File name is /storage/ofd_packets/00112399 [01:34:12]Write 311 bytes [01:34:12]NVStorageSaveData done [01:34:12]OFDSenderStorePacket done [01:34:12]KKMCreateOFDPacket done [01:34:12]NVStorageSaveData kkm_last_timestamp [01:34:12]File name is /storage/kkm_last_timestamp [01:34:12]Write 4 bytes [01:34:12]NVStorageSaveData done [01:34:12]ExternCall_PrintAddStr [01:34:12]wPrintStart [01:34:12]Write to MH i2c: 01 00 00 DB 64 3F [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 07 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 07 00 DB 64 00 00 00 00 00 FF 0F 54 [01:34:12]RasterBufferAndPrint [01:34:12]line Отчет об открытии смены [01:34:12]line ФФД: 1.0 [01:34:12]line ИНН: 02508201610067 [01:34:12]line Кассир: Бейшенбеков А. [01:34:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:34:12]line Место: АЗС № 65 "Партнер Нефть" [01:34:12]line 23.06.2024 01:34 [01:34:12]line Смена: 392 [01:34:12]line РНМ: 0000000000092771 [01:34:12]line ЗНМ: 0300000198 [01:34:12]line ФД: 112399 [01:34:12]line ФМ: 0000000000875083 [01:34:12]line ФПД: 132535977977501 [01:34:12]written 0, free lines is 4095 [01:34:12]OFD Sender: Processing packet 112399 [packets to send 38, broken 37] [01:34:12]ProducePacketName [01:34:12]name=ofd_packets/00112399 [01:34:12]OFD Sender: To server: pG, [01:34:12]CommunicateWithHost lk.salyk.kg:30040 [01:34:12]ConnectInit lk.salyk.kg [01:34:12]Connected sock=10 [01:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 19 01 00 00 05 55 11 01 CC 16 5A 02 01 00 02 00 05 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 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 BA 7B 77 66 0E 04 04 00 88 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 78 8A 6F E3 26 9D 8E 98 8B 56 01 A6 27 B3 [01:34:12]Write to MH i2c: 01 00 00 ED 64 51 [01:34:12]Write i2c OK [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 07 00 [01:34:12]MH_I2C_Read... [01:34:12]Read from MH i2c: 01 07 00 ED 64 00 00 00 00 00 93 0E F9 [01:34:13]RasterBufferAndPrint [01:34:13]line [01:34:13]line [01:34:13]line [01:34:13]line [01:34:13]line [01:34:13]written 0, free lines is 3750 [01:34:13]MH_Cut [01:34:13]Write to MH i2c: D1 01 00 F4 64 01 2A [01:34:13]Write i2c OK [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: D1 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: D1 01 00 [01:34:13]MH_I2C_Read... [01:34:13]Read from MH i2c: D1 01 00 F4 64 00 29 [01:34:13]Write to MH i2c: 01 00 00 F5 64 59 [01:34:13]Write i2c OK [01:34:13]MH_I2C_Read... [01:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 71 2A 47 00 10 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B7 01 00 F4 03 04 00 B7 12 77 66 B6 04 01 00 00 C3 DF 02 D3 A5 3A 53 2B [01:34:13]CommunicateWithHost err = 0 [01:34:13]CheckOFDResponse [01:34:13]1017 (14) - 77093643461234 [01:34:13]1041 (16) - 0000000000875083 [01:34:13]1040 (4) - 112399 [01:34:13]1012 (4) - 22.06.2024 18:06 [01:34:13]1206 (1) - 0 [01:34:13]OFD Sender: Remove packet 112399 [01:34:13]ProducePacketName [01:34:13]name=ofd_packets/00112399 [01:34:13]NVStorageDeleteData [01:34:13]*** Cut start [01:34:13]*** Partial cut [01:34:13]*** CUTSNS_PIN = 1 [01:34:13]*** CUTSNS_PIN = 0 [01:34:13]*** Brake cut motor [01:34:13]OFD Sender: No OFD packet to send [01:34:14]Read from MH i2c: 01 [01:34:14]MH_I2C_Read... [01:34:14]*** Stop cut motor [01:34:14]*** Cut end [01:34:14]Read from MH i2c: 01 07 00 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: 01 07 00 F5 64 00 00 00 00 00 FF 0F 6E [01:34:14]process_action open_shift done [01:34:14]requested_data is exist [01:34:14]produce_requested_data [01:34:14]requested_item fd.num is exist - process it [01:34:14]SAM_PROTO_GetFieldsCounters [01:34:14]wFMCommunicate request_size=4 [01:34:14]MH_SAM_APDU [01:34:14]CAPDU: 80 13 00 00 [01:34:14]Write to MH i2c: E2 08 00 F6 64 80 13 00 00 00 00 00 00 D6 [01:34:14]Write i2c OK [01:34:14]MH_I2C_Read... [01:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:14]Read from MH i2c: E2 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: E2 62 00 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: E2 62 00 F6 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [01:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:14]wFMCommunicate OK [01:34:14]SAM_PROTO_GetFieldsCounters done [01:34:14]requested_item shift.num is exist - process it [01:34:14]requested_item shift.opened is exist - process it [01:34:14]req_shift_opened [01:34:14]FM_GetShiftState [01:34:14]SAM_PROTO_GetShiftState [01:34:14]wFMCommunicate request_size=4 [01:34:14]MH_SAM_APDU [01:34:14]CAPDU: 80 13 01 00 [01:34:14]Write to MH i2c: E2 08 00 F7 64 80 13 01 00 00 00 00 00 D8 [01:34:14]Write i2c OK [01:34:14]MH_I2C_Read... [01:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:14]Read from MH i2c: E2 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: E2 0E 00 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: E2 0E 00 F7 64 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 F6 [01:34:14]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [01:34:14]wFMCommunicate OK [01:34:14]SAM_PROTO_GetShiftState done [01:34:14]FM_GetShiftState done [01:34:14]req_shift_opened done [01:34:14]requested_item shift.open_date is exist - process it [01:34:14]req_shift_open_date [01:34:14]req_shift_open_date done [01:34:14]produce_requested_data done [01:34:14]produce_requested_data return {"fd.num":112399,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [01:34:14]process_action_free open_shift [01:34:14]json_value_free [01:34:14]json_value_free done [01:34:14]process_json_proto returns [01:34:14]Send response to host [01:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112399,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [01:34:14]free response buf [01:34:14]execute_script done [01:34:14]execute_script returns [01:34:14]free content buf [01:34:14]Sock 7.Close socket [01:34:14]Sock 7.Thread stoped [01:34:14]accept exits with 9 [01:34:14]New connection [01:34:14]New thread 3066813796 created [01:34:14]Thread 3066957156 joined [01:34:14]Waiting for new connection... [01:34:14] Sock 9.Parse request [01:34:14]Sock 9.Check first char [01:34:14]Sock 9.First char is OK [01:34:14]request: POST /json_proto HTTP/1.0 [01:34:14]Method: POST [01:34:14]URL: /json_proto [01:34:14]Method is POST - this is cgi request [01:34:14]url: /json_proto [01:34:14]query_string will be loaded in cgi processing [01:34:14]execute_cgi json_proto POST (null) [01:34:14]execute_cgi path=json_proto method=POST [01:34:14]POST find Content-Length [01:34:14]Host: 172.17.59.68:8080 [01:34:14]Content-Length: 331 [01:34:14]Content-Type: application/json [01:34:14] [01:34:14]POST finish read [01:34:14]Found Content-Length = 331 [01:34:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:34:14]execute_script... [01:34:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:34:14]POST & json_proto [01:34:14]process_json_proto [01:34:14]json parsed OK: [01:34:14]protocol is kg_v1.0 [01:34:14]action value=get_value [01:34:14]process_action get_value [01:34:14]cmd_get_value [01:34:14]process_action get_value done [01:34:14]requested_data is exist [01:34:14]produce_requested_data [01:34:14]requested_item fm.sale.total is exist - process it [01:34:14]SAM_PROTO_GetFMData [01:34:14]wFMCommunicate request_size=4 [01:34:14]MH_SAM_APDU [01:34:14]CAPDU: 80 13 03 00 [01:34:14]Write to MH i2c: E2 08 00 F8 64 80 13 03 00 00 00 00 00 DB [01:34:14]Write i2c OK [01:34:14]MH_I2C_Read... [01:34:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:34:14]Read from MH i2c: E2 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: E2 FD 00 [01:34:14]MH_I2C_Read... [01:34:14]Read from MH i2c: E2 FD 00 F8 64 00 BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 13 [01:34:14]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 00 B4 01 00 69 04 A3 00 6F 04 04 00 FE B3 01 00 B1 04 05 00 01 9B 13 F8 01 70 04 05 00 20 15 51 E6 01 72 04 04 00 E1 85 C2 11 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 58 A2 8C 35 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 0D 41 76 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:34:14]wFMCommunicate OK [01:34:14]wFMCommunicate request_size=4 [01:34:14]MH_SAM_APDU [01:34:14]CAPDU: 80 17 00 00 [01:34:14]Write to MH i2c: E2 08 00 F9 64 80 17 00 00 00 00 00 00 DD [01:34:14]Write i2c OK [01:34:14]MH_I2C_Read... [01:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:15]Read from MH i2c: E2 [01:34:15]MH_I2C_Read... [01:34:15]Read from MH i2c: E2 FD 00 [01:34:15]MH_I2C_Read... [01:34:15]Read from MH i2c: E2 FD 00 F9 64 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [01:34:15]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:15]wFMCommunicate OK [01:34:15]wFMCommunicate request_size=4 [01:34:15]MH_SAM_APDU [01:34:15]CAPDU: 80 17 00 00 [01:34:15]Write to MH i2c: E2 08 00 FA 64 80 17 00 00 00 00 00 00 DE [01:34:15]Write i2c OK [01:34:15]MH_I2C_Read... [01:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:15]Read from MH i2c: E2 [01:34:15]MH_I2C_Read... [01:34:15]Read from MH i2c: E2 FD 00 [01:34:15]MH_I2C_Read... [01:34:15]Read from MH i2c: E2 FD 00 FA 64 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 10 [01:34:15]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:34:15]wFMCommunicate OK [01:34:15]wFMCommunicate request_size=4 [01:34:15]MH_SAM_APDU [01:34:15]CAPDU: 80 17 00 00 [01:34:15]Write to MH i2c: E2 08 00 FB 64 80 17 00 00 00 00 00 00 DF [01:34:15]Write i2c OK [01:34:15]MH_I2C_Read... [01:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:15]Read from MH i2c: E2 [01:34:15]MH_I2C_Read... [01:34:15]Read from MH i2c: E2 FD 00 [01:34:15]MH_I2C_Read... [01:34:15]Read from MH i2c: E2 FD 00 FB 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 56 [01:34:16]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:34:16]wFMCommunicate OK [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 17 00 00 [01:34:16]Write to MH i2c: E2 08 00 FC 64 80 17 00 00 00 00 00 00 E0 [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 DA 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 DA 00 FC 64 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [01:34:16]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:34:16]wFMCommunicate OK [01:34:16]SAM_PROTO_GetFMData done [01:34:16]requested_item fm.sale_refund.total is exist - process it [01:34:16]requested_item fm.buy.total is exist - process it [01:34:16]requested_item shift.sale.total is exist - process it [01:34:16]SAM_PROTO_GetShiftData [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 13 02 00 [01:34:16]Write to MH i2c: E2 08 00 FD 64 80 13 02 00 00 00 00 00 DF [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 FD 64 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 52 [01:34:17]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 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 17 00 00 [01:34:17]Write to MH i2c: E2 08 00 FE 64 80 17 00 00 00 00 00 00 E2 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 FE 64 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 EA [01:34:17]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 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 17 00 00 [01:34:17]Write to MH i2c: E2 08 00 FF 64 80 17 00 00 00 00 00 00 E3 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 FF 64 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 B5 [01:34:18]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 [01:34:18]wFMCommunicate OK [01:34:18]wFMCommunicate request_size=4 [01:34:18]MH_SAM_APDU [01:34:18]CAPDU: 80 17 00 00 [01:34:18]Write to MH i2c: E2 08 00 00 65 80 17 00 00 00 00 00 00 E5 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:18]Read from MH i2c: E2 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 FD 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 FD 00 00 65 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 57 [01:34:18]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 [01:34:18]wFMCommunicate OK [01:34:18]wFMCommunicate request_size=4 [01:34:18]MH_SAM_APDU [01:34:18]CAPDU: 80 17 00 00 [01:34:18]Write to MH i2c: E2 08 00 01 65 80 17 00 00 00 00 00 00 E6 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]OFD Sender: No OFD packet to send [01:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:34:18]Read from MH i2c: E2 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 BD 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 BD 00 01 65 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 CC [01:34:19]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 [01:34:19]wFMCommunicate OK [01:34:19]SAM_PROTO_GetShiftData done [01:34:19]requested_item shift.sale.total_cash is exist - process it [01:34:19]requested_item shift.sale_refund.total is exist - process it [01:34:19]requested_item shift.sale_refund.total_cash is exist - process it [01:34:19]requested_item shift.buy.total is exist - process it [01:34:19]requested_item shift.buy.total_cash is exist - process it [01:34:19]produce_requested_data done [01:34:19]produce_requested_data return {"fm.sale.total":84570017.29,"fm.sale_refund.total":201.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} [01:34:19]process_action_free get_value [01:34:19]json_value_free [01:34:19]json_value_free done [01:34:19]process_json_proto returns [01:34:19]Send response to host [01:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84570017.29,"fm.sale_refund.total":201.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}}} [01:34:19]free response buf [01:34:19]execute_script done [01:34:19]execute_script returns [01:34:19]free content buf [01:34:19]Sock 9.Close socket [01:34:19]Sock 9.Thread stoped [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:30]accept exits with 7 [01:35:30]New connection [01:35:30]New thread 3066957156 created [01:35:30]Thread 3066813796 joined [01:35:30]Waiting for new connection... [01:35:30] Sock 7.Parse request [01:35:30]Sock 7.Check first char [01:35:30]Sock 7.First char is OK [01:35:30]request: POST /json_proto HTTP/1.0 [01:35:30]Method: POST [01:35:30]URL: /json_proto [01:35:30]Method is POST - this is cgi request [01:35:30]url: /json_proto [01:35:30]query_string will be loaded in cgi processing [01:35:30]execute_cgi json_proto POST (null) [01:35:30]execute_cgi path=json_proto method=POST [01:35:30]POST find Content-Length [01:35:30]Host: 172.17.59.68:8080 [01:35:30]Content-Length: 678 [01:35:30]Content-Type: application/json [01:35:30] [01:35:30]POST finish read [01:35:30]Found Content-Length = 678 [01:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321078", "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.40, "quantity" : 12.050, "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:35:30]execute_script... [01:35: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)321078", "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.40, "quantity" : 12.050, "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:35:30]POST & json_proto [01:35:30]process_json_proto [01:35:30]json parsed OK: [01:35:30]protocol is kg_v1.0 [01:35:30]action value=close_receipt [01:35:30]process_action close_receipt [01:35:30]cmd_close_receipt [01:35:30]MH_GetDate [01:35:30]Write to MH i2c: F0 00 00 02 65 56 [01:35:30]Write i2c OK [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: F0 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: F0 09 00 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: F0 09 00 02 65 00 0B 7C 77 66 BC EC 60 65 30 [01:35:30]GetLastDocTimeStamp 1719106490 [01:35:30]current date 1719106571 [01:35:30]FM_GetShiftState [01:35:30]SAM_PROTO_GetShiftState [01:35:30]wFMCommunicate request_size=4 [01:35:30]MH_SAM_APDU [01:35:30]CAPDU: 80 13 01 00 [01:35:30]Write to MH i2c: E2 08 00 03 65 80 13 01 00 00 00 00 00 E5 [01:35:30]Write i2c OK [01:35:30]MH_I2C_Read... [01:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:30]Read from MH i2c: E2 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: E2 0E 00 [01:35:30]MH_I2C_Read... [01:35:30]Read from MH i2c: E2 0E 00 03 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 03 [01:35:30]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [01:35:30]wFMCommunicate OK [01:35:30]SAM_PROTO_GetShiftState done [01:35:30]FM_GetShiftState done [01:35:30]opened in 1719106490 [01:35:30]opened+sec_in_day 1719192890 [01:35:30]quantity*price = 80012 [01:35:30]sum+1 = 80013 [01:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 1 23.06.2024 01:36 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112400 ФПД: 281003612538730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013611&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112400&fm=281003612538730&tin=02508201610067®Number=0000000000092771&sum=80000 [01:35:31]StoreToDocumentArchive [01:35:31]shift 392 fd 112400 [01:35:31]save to /storage/0392/doc_00112400 [01:35:31]save last doc name /storage/0392/doc_00112400 to /storage/kkm_last_doc_name [01:35:31]save OK [01:35:31]Clear old archive folders... [01:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:35:31]tlvbuf is B6F593F0 [01:35:31]SAM_PROTO_ClearQueue [01:35:31]wFMCommunicate request_size=4 [01:35:31]MH_SAM_APDU [01:35:31]CAPDU: 80 09 00 00 [01:35:31]Write to MH i2c: E2 08 00 10 65 80 09 00 00 00 00 00 00 E7 [01:35:31]Write i2c OK [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 [01:35:31]MH_I2C_Read... [01:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:31]Read from MH i2c: E2 03 00 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 03 00 10 65 00 90 00 E9 [01:35:31]RAPDU: 90 00 [01:35:31]wFMCommunicate OK [01:35:31]SAM_PROTO_ClearQueue done [01:35:31]KKMCreateOFDPacket [01:35:31]OFDProtocolAddRootSTLVToBuf [01:35:31]FM_MakeSignedData [01:35:31]FM_MakeSignedData [01:35:31]SAM_PROTO_SignData [01:35:31]wFMCommunicate request_size=4 [01:35:31]MH_SAM_APDU [01:35:31]CAPDU: 80 0D 01 02 [01:35:31]Write to MH i2c: E2 08 00 11 65 80 0D 01 02 00 00 00 00 EF [01:35:31]Write i2c OK [01:35:31]MH_I2C_Read... [01:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:31]Read from MH i2c: E2 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 03 00 [01:35:31]MH_I2C_Read... [01:35:31]Read from MH i2c: E2 03 00 11 65 00 90 00 EA [01:35:31]RAPDU: 90 00 [01:35:31]wFMCommunicate OK [01:35:31]wFMCommunicate request_size=255 [01:35:31]MH_SAM_APDU [01:35: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 01 00 00 00 F4 03 04 00 0B 7C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B7 01 00 35 04 06 00 FF [01:35:31]Write to MH i2c: E2 02 01 12 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 01 00 00 00 F4 03 04 00 0B 7C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B7 01 00 35 04 06 00 FF 00 00 47 [01:35:31]Write i2c OK [01:35:31]MH_I2C_Read... [01:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:32]Read from MH i2c: E2 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 03 00 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 03 00 12 65 00 90 00 EB [01:35:32]RAPDU: 90 00 [01:35:32]wFMCommunicate OK [01:35:32]wFMCommunicate request_size=10 [01:35:32]MH_SAM_APDU [01:35:32]CAPDU: 80 0D 02 02 05 92 40 81 87 6A [01:35:32]Write to MH i2c: E2 0D 00 13 65 80 0D 02 02 05 00 92 40 81 87 6A 00 00 40 [01:35:32]Write i2c OK [01:35:32]MH_I2C_Read... [01:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:32]Read from MH i2c: E2 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 03 00 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 03 00 13 65 00 90 00 EC [01:35:32]RAPDU: 90 00 [01:35:32]wFMCommunicate OK [01:35:32]wFMCommunicate request_size=4 [01:35:32]MH_SAM_APDU [01:35:32]CAPDU: 80 0D 03 02 [01:35:32]Write to MH i2c: E2 08 00 14 65 80 0D 03 02 00 00 00 00 F4 [01:35:32]Write i2c OK [01:35:32]MH_I2C_Read... [01:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:32]Read from MH i2c: E2 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 0B 00 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 0B 00 14 65 00 E9 7D 51 06 60 18 02 01 90 00 2D [01:35:32]RAPDU: E9 7D 51 06 60 18 02 01 90 00 [01:35:32]wFMCommunicate OK [01:35:32]SAM_PROTO_SignData done [01:35:32]FM_MakeSignedData done [01:35:32]CreateOFDProtocolMessage [01:35:32]wFMCommunicate request_size=4 [01:35:32]MH_SAM_APDU [01:35:32]CAPDU: 80 11 00 00 [01:35:32]Write to MH i2c: E2 08 00 15 65 80 11 00 00 00 00 00 00 F4 [01:35:32]Write i2c OK [01:35:32]MH_I2C_Read... [01:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:32]Read from MH i2c: E2 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 17 00 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: E2 17 00 15 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [01:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:35:32]wFMCommunicate OK [01:35:32]CreateOFDProtocolMessage done [01:35:32]OFDSenderStorePacket 112400 [01:35:32]StoreOFDPacket docnum=112400 [01:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC 62 07 01 C0 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 01 00 00 00 F4 03 04 00 0B 7C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B7 01 00 35 04 06 00 FF 92 40 81 87 6A E9 7D 51 06 60 18 02 01 [01:35:32]CheckFolder [01:35:32]dirname=/storage/ofd_packets [01:35:32]CheckFolder done [01:35:32]ProducePacketName [01:35:32]name=ofd_packets/00112400 [01:35:32]NVStorageSaveData ofd_packets/00112400 [01:35:32]File name is /storage/ofd_packets/00112400 [01:35:32]Write 301 bytes [01:35:32]NVStorageSaveData done [01:35:32]OFDSenderStorePacket done [01:35:32]KKMCreateOFDPacket done [01:35:32]NVStorageSaveData kkm_last_timestamp [01:35:32]File name is /storage/kkm_last_timestamp [01:35:32]Write 4 bytes [01:35:32]NVStorageSaveData done [01:35:32]ExternCall_PrintAddStr [01:35:32]wPrintStart [01:35:32]Write to MH i2c: 01 00 00 16 65 7B [01:35:32]Write i2c OK [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: 01 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: 01 07 00 [01:35:32]MH_I2C_Read... [01:35:32]Read from MH i2c: 01 07 00 16 65 00 00 00 00 00 FF 0F 90 [01:35:32]RasterBufferAndPrint [01:35:32]line Счет N : (1)321078 [01:35:32]line ИНН: 02508201610067 [01:35:32]line Контрольно-Кассовый Чек [01:35:32]line ПРОДАЖА [01:35:32]line ТРК (МРК, ГНК) : 11 [01:35:32]line Товар: 2710124130 [01:35:32]line Аи-92-К-5 [01:35:32]line 12.050 * 66.40 [01:35:32]line = 800.12 [01:35:32]line НДС 12% НСП 1% [01:35:32]line > о реализуемом товаре [01:35:32]line ОКРУГЛЕНИЕ: -0.12 [01:35:32]line ИТОГО: 800.00 [01:35:32]line Внесено: 800.00 [01:35:32]line СДАЧА: 0.00 [01:35:32]line НСП 1% : 7.08 [01:35:32]line НДС 12% : 84.97 [01:35:32]line Наличными: 800.00 [01:35:32]line Безнал.: 0.00 [01:35:32]line Место: АЗС № 65 "Партнер Нефть" [01:35:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:35:32]line СНО: Общий режим [01:35:32]line Чек 1 23.06.2024 01:36 [01:35:32]line Смена: 392 ФФД: 1.0 [01:35:32]line ЗНМ: 0300000198 [01:35:32]line РНМ: 0000000000092771 [01:35:32]line Версия ККМ: 001 [01:35:32]line ФМ: 0000000000875083 [01:35:32]line ФД: 112400 [01:35:32]line ФПД: 281003612538730 [01:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013611&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112400&fm=281003612538730&tin=02508201610067®Number=0000000000092771&sum=80000 [01:35:32]OFD Sender: Processing packet 112400 [packets to send 38, broken 37] [01:35:32]ProducePacketName [01:35:32]name=ofd_packets/00112400 [01:35:32]OFD Sender: To server: pG, [01:35:32]CommunicateWithHost lk.salyk.kg:30040 [01:35:32]ConnectInit lk.salyk.kg [01:35:32]written 0, free lines is 4095 [01:35:32]Connected sock=11 [01:35:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC 62 07 01 C0 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 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 01 00 00 00 F4 03 04 00 0B 7C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B7 01 00 35 04 06 00 FF 92 40 81 87 6A E9 7D 51 06 60 18 02 01 [01:35:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 69 3D 47 00 20 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B7 01 00 F4 03 04 00 07 13 77 66 B6 04 01 00 00 63 33 80 03 25 42 E4 50 [01:35:32]CommunicateWithHost err = 0 [01:35:32]CheckOFDResponse [01:35:32]1017 (14) - 77093643461234 [01:35:32]1041 (16) - 0000000000875083 [01:35:32]1040 (4) - 112400 [01:35:32]1012 (4) - 22.06.2024 18:08 [01:35:32]1206 (1) - 0 [01:35:32]OFD Sender: Remove packet 112400 [01:35:32]ProducePacketName [01:35:32]name=ofd_packets/00112400 [01:35:32]NVStorageDeleteData [01:35:33]Write to MH i2c: 01 00 00 41 65 A6 [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: 01 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: 01 07 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: 01 07 00 41 65 00 00 00 00 00 CA 0C 83 [01:35:33]RasterBufferAndPrint [01:35:33]line [01:35:33]line [01:35:33]line [01:35:33]line [01:35:33]line [01:35:33]written 0, free lines is 3281 [01:35:33]MH_Cut [01:35:33]Write to MH i2c: D1 01 00 48 65 01 7F [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: D1 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: D1 01 00 [01:35:33]MH_I2C_Read... [01:35:33]Read from MH i2c: D1 01 00 48 65 00 7E [01:35:33]Write to MH i2c: 01 00 00 49 65 AE [01:35:33]Write i2c OK [01:35:33]MH_I2C_Read... [01:35:33]OFD Sender: No OFD packet to send [01:35:33]*** Cut start [01:35:33]*** Partial cut [01:35:33]*** CUTSNS_PIN = 1 [01:35:33]*** CUTSNS_PIN = 0 [01:35:34]*** Brake cut motor [01:35:34]Read from MH i2c: 01 [01:35:34]MH_I2C_Read... [01:35:34]*** Stop cut motor [01:35:34]*** Cut end [01:35:34]Read from MH i2c: 01 07 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: 01 07 00 49 65 00 00 00 00 00 FF 0F C3 [01:35:34]process_action close_receipt done [01:35:34]requested_data is exist [01:35:34]produce_requested_data [01:35:34]requested_item fm.sn is exist - process it [01:35:34]wFMCommunicate request_size=4 [01:35:34]MH_SAM_APDU [01:35:34]CAPDU: 80 11 00 00 [01:35:34]Write to MH i2c: E2 08 00 4A 65 80 11 00 00 00 00 00 00 29 [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:34]Read from MH i2c: E2 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: E2 17 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: E2 17 00 4A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [01:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:35:34]wFMCommunicate OK [01:35:34]requested_item fd.num is exist - process it [01:35:34]SAM_PROTO_GetFieldsCounters [01:35:34]wFMCommunicate request_size=4 [01:35:34]MH_SAM_APDU [01:35:34]CAPDU: 80 13 00 00 [01:35:34]Write to MH i2c: E2 08 00 4B 65 80 13 00 00 00 00 00 00 2C [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:34]Read from MH i2c: E2 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: E2 62 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: E2 62 00 4B 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [01:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:35:34]wFMCommunicate OK [01:35:34]SAM_PROTO_GetFieldsCounters done [01:35:34]requested_item shift.num is exist - process it [01:35:34]requested_item shift.opened is exist - process it [01:35:34]req_shift_opened [01:35:34]FM_GetShiftState [01:35:34]SAM_PROTO_GetShiftState [01:35:34]wFMCommunicate request_size=4 [01:35:34]MH_SAM_APDU [01:35:34]CAPDU: 80 13 01 00 [01:35:34]Write to MH i2c: E2 08 00 4C 65 80 13 01 00 00 00 00 00 2E [01:35:34]Write i2c OK [01:35:34]MH_I2C_Read... [01:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:34]Read from MH i2c: E2 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: E2 0E 00 [01:35:34]MH_I2C_Read... [01:35:34]Read from MH i2c: E2 0E 00 4C 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4C [01:35:34]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [01:35:34]wFMCommunicate OK [01:35:34]SAM_PROTO_GetShiftState done [01:35:34]FM_GetShiftState done [01:35:34]req_shift_opened done [01:35:34]requested_item shift.open_date is exist - process it [01:35:34]req_shift_open_date [01:35:34]req_shift_open_date done [01:35:34]produce_requested_data done [01:35:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112400,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [01:35:34]process_action_free close_receipt [01:35:34]json_value_free [01:35:34]json_value_free done [01:35:34]process_json_proto returns [01:35:34]Send response to host [01:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112400,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [01:35:34]free response buf [01:35:34]execute_script done [01:35:34]execute_script returns [01:35:34]free content buf [01:35:34]Sock 7.Close socket [01:35:34]Sock 7.Thread stoped [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:55]accept exits with 9 [01:52:55]New connection [01:52:55]New thread 3066813796 created [01:52:55]Thread 3066957156 joined [01:52:55]Waiting for new connection... [01:52:55] Sock 9.Parse request [01:52:55]Sock 9.Check first char [01:52:55]Sock 9.First char is OK [01:52:55]request: POST /json_proto HTTP/1.0 [01:52:55]Method: POST [01:52:55]URL: /json_proto [01:52:55]Method is POST - this is cgi request [01:52:55]url: /json_proto [01:52:55]query_string will be loaded in cgi processing [01:52:55]execute_cgi json_proto POST (null) [01:52:55]execute_cgi path=json_proto method=POST [01:52:55]POST find Content-Length [01:52:55]Host: 172.17.59.68:8080 [01:52:55]Content-Length: 806 [01:52:55]Content-Type: application/json [01:52:55] [01:52:55]POST finish read [01:52:55]Found Content-Length = 806 [01:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321079", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:55]execute_script... [01:52: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)321079", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:52:55]POST & json_proto [01:52:55]process_json_proto [01:52:55]json parsed OK: [01:52:55]protocol is kg_v1.0 [01:52:55]action value=close_receipt [01:52:55]process_action close_receipt [01:52:55]cmd_close_receipt [01:52:55]MH_GetDate [01:52:55]Write to MH i2c: F0 00 00 4D 65 A1 [01:52:55]Write i2c OK [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: F0 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: F0 09 00 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: F0 09 00 4D 65 00 21 80 77 66 BC EC 60 65 95 [01:52:55]GetLastDocTimeStamp 1719106571 [01:52:55]current date 1719107617 [01:52:55]FM_GetShiftState [01:52:55]SAM_PROTO_GetShiftState [01:52:55]wFMCommunicate request_size=4 [01:52:55]MH_SAM_APDU [01:52:55]CAPDU: 80 13 01 00 [01:52:55]Write to MH i2c: E2 08 00 4E 65 80 13 01 00 00 00 00 00 30 [01:52:55]Write i2c OK [01:52:55]MH_I2C_Read... [01:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:55]Read from MH i2c: E2 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: E2 0E 00 [01:52:55]MH_I2C_Read... [01:52:55]Read from MH i2c: E2 0E 00 4E 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 4E [01:52:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [01:52:55]wFMCommunicate OK [01:52:55]SAM_PROTO_GetShiftState done [01:52:55]FM_GetShiftState done [01:52:55]opened in 1719106490 [01:52:55]opened+sec_in_day 1719192890 [01:52:55]quantity*price = 70052 [01:52:55]sum+1 = 70053 [01:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 2 23.06.2024 01:53 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 112401 ФПД: 241321984025708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T015337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112401&fm=241321984025708&tin=02508201610067®Number=0000000000092771&sum=70052 [01:52:56]StoreToDocumentArchive [01:52:56]shift 392 fd 112401 [01:52:56]save to /storage/0392/doc_00112401 [01:52:56]save last doc name /storage/0392/doc_00112401 to /storage/kkm_last_doc_name [01:52:56]save OK [01:52:56]Clear old archive folders... [01:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:52:56]tlvbuf is 01307410 [01:52:56]SAM_PROTO_ClearQueue [01:52:56]wFMCommunicate request_size=4 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 09 00 00 [01:52:56]Write to MH i2c: E2 08 00 5B 65 80 09 00 00 00 00 00 00 32 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 5B 65 00 90 00 34 [01:52:56]RAPDU: 90 00 [01:52:56]wFMCommunicate OK [01:52:56]SAM_PROTO_ClearQueue done [01:52:56]KKMCreateOFDPacket [01:52:56]OFDProtocolAddRootSTLVToBuf [01:52:56]FM_MakeSignedData [01:52:56]FM_MakeSignedData [01:52:56]SAM_PROTO_SignData [01:52:56]wFMCommunicate request_size=4 [01:52:56]MH_SAM_APDU [01:52:56]CAPDU: 80 0D 01 02 [01:52:56]Write to MH i2c: E2 08 00 5C 65 80 0D 01 02 00 00 00 00 3A [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:52:56]Read from MH i2c: E2 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 [01:52:56]MH_I2C_Read... [01:52:56]Read from MH i2c: E2 03 00 5C 65 00 90 00 35 [01:52:56]RAPDU: 90 00 [01:52:56]wFMCommunicate OK [01:52:56]wFMCommunicate request_size=255 [01:52:56]MH_SAM_APDU [01:52: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 80 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B7 01 00 35 04 06 00 DB [01:52:56]Write to MH i2c: E2 02 01 5D 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 80 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B7 01 00 35 04 06 00 DB 00 00 15 [01:52:56]Write i2c OK [01:52:56]MH_I2C_Read... [01:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:57]Read from MH i2c: E2 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 03 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 03 00 5D 65 00 90 00 36 [01:52:57]RAPDU: 90 00 [01:52:57]wFMCommunicate OK [01:52:57]wFMCommunicate request_size=10 [01:52:57]MH_SAM_APDU [01:52:57]CAPDU: 80 0D 02 02 05 7B 27 22 64 6C [01:52:57]Write to MH i2c: E2 0D 00 5E 65 80 0D 02 02 05 00 7B 27 22 64 6C 00 00 DB [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:52:57]Read from MH i2c: E2 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 03 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 03 00 5E 65 00 90 00 37 [01:52:57]RAPDU: 90 00 [01:52:57]wFMCommunicate OK [01:52:57]wFMCommunicate request_size=4 [01:52:57]MH_SAM_APDU [01:52:57]CAPDU: 80 0D 03 02 [01:52:57]Write to MH i2c: E2 08 00 5F 65 80 0D 03 02 00 00 00 00 3F [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:52:57]Read from MH i2c: E2 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 0B 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 0B 00 5F 65 00 6F E3 39 D7 11 70 CF DB 90 00 CD [01:52:57]RAPDU: 6F E3 39 D7 11 70 CF DB 90 00 [01:52:57]wFMCommunicate OK [01:52:57]SAM_PROTO_SignData done [01:52:57]FM_MakeSignedData done [01:52:57]CreateOFDProtocolMessage [01:52:57]wFMCommunicate request_size=4 [01:52:57]MH_SAM_APDU [01:52:57]CAPDU: 80 11 00 00 [01:52:57]Write to MH i2c: E2 08 00 60 65 80 11 00 00 00 00 00 00 3F [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:57]Read from MH i2c: E2 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 17 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: E2 17 00 60 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [01:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:52:57]wFMCommunicate OK [01:52:57]CreateOFDProtocolMessage done [01:52:57]OFDSenderStorePacket 112401 [01:52:57]StoreOFDPacket docnum=112401 [01:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7D CD 07 01 2A 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 80 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B7 01 00 35 04 06 00 DB 7B 27 22 64 6C 6F E3 39 D7 11 70 CF DB [01:52:57]CheckFolder [01:52:57]dirname=/storage/ofd_packets [01:52:57]CheckFolder done [01:52:57]ProducePacketName [01:52:57]name=ofd_packets/00112401 [01:52:57]NVStorageSaveData ofd_packets/00112401 [01:52:57]File name is /storage/ofd_packets/00112401 [01:52:57]Write 301 bytes [01:52:57]NVStorageSaveData done [01:52:57]OFDSenderStorePacket done [01:52:57]KKMCreateOFDPacket done [01:52:57]NVStorageSaveData kkm_last_timestamp [01:52:57]File name is /storage/kkm_last_timestamp [01:52:57]Write 4 bytes [01:52:57]NVStorageSaveData done [01:52:57]ExternCall_PrintAddStr [01:52:57]wPrintStart [01:52:57]Write to MH i2c: 01 00 00 61 65 C6 [01:52:57]Write i2c OK [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: 01 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: 01 07 00 [01:52:57]MH_I2C_Read... [01:52:57]Read from MH i2c: 01 07 00 61 65 00 00 00 00 00 FF 0F DB [01:52:57]RasterBufferAndPrint [01:52:57]line Счет N : (1)321079 [01:52:57]line ИНН: 02508201610067 [01:52:57]line Контрольно-Кассовый Чек [01:52:57]line ПРОДАЖА [01:52:57]line ТРК (МРК, ГНК) : 11 [01:52:57]line Товар: 2710124130 [01:52:57]line Аи-92-К-5 [01:52:57]line 10.550 * 66.40 [01:52:57]line = 700.52 [01:52:57]line НДС 12% НСП 1% [01:52:57]line > о реализуемом товаре [01:52:57]line ИТОГО: 700.52 [01:52:57]line НСП 1% : 6.20 [01:52:57]line НДС 12% : 74.39 [01:52:57]line Наличными: 0.00 [01:52:57]line Безнал.: 700.52 [01:52:57]line Место: АЗС № 65 "Партнер Нефть" [01:52:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:52:57]line СНО: Общий режим [01:52:57]line Чек 2 23.06.2024 01:53 [01:52:57]line Смена: 392 ФФД: 1.0 [01:52:57]line ЗНМ: 0300000198 [01:52:57]line РНМ: 0000000000092771 [01:52:57]line Версия ККМ: 001 [01:52:57]line Платежная система: О! деньги [01:52:57]line ФМ: 0000000000875083 [01:52:57]line ФД: 112401 [01:52:57]line ФПД: 241321984025708 [01:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T015337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112401&fm=241321984025708&tin=02508201610067®Number=0000000000092771&sum=70052 [01:52:57]written 0, free lines is 4095 [01:52:57]OFD Sender: Processing packet 112401 [packets to send 38, broken 37] [01:52:57]ProducePacketName [01:52:57]name=ofd_packets/00112401 [01:52:57]OFD Sender: To server: pG, [01:52:57]CommunicateWithHost lk.salyk.kg:30040 [01:52:57]ConnectInit lk.salyk.kg [01:52:57]Connected sock=10 [01:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7D CD 07 01 2A 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 80 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B7 01 00 35 04 06 00 DB 7B 27 22 64 6C 6F E3 39 D7 11 70 CF DB [01:52:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 32 B2 47 00 D3 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B7 01 00 F4 03 04 00 1C 17 77 66 B6 04 01 00 00 00 6E 13 53 BE 87 51 C2 [01:52:57]CommunicateWithHost err = 0 [01:52:57]CheckOFDResponse [01:52:57]1017 (14) - 77093643461234 [01:52:57]1041 (16) - 0000000000875083 [01:52:57]1040 (4) - 112401 [01:52:57]1012 (4) - 22.06.2024 18:25 [01:52:57]1206 (1) - 0 [01:52:57]OFD Sender: Remove packet 112401 [01:52:57]ProducePacketName [01:52:57]name=ofd_packets/00112401 [01:52:57]NVStorageDeleteData [01:52:58]Write to MH i2c: 01 00 00 8B 65 F0 [01:52:58]Write i2c OK [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: 01 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: 01 07 00 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: 01 07 00 8B 65 00 00 00 00 00 DE 0C E1 [01:52:58]RasterBufferAndPrint [01:52:58]line [01:52:58]line [01:52:58]line [01:52:58]line [01:52:58]line [01:52:58]written 0, free lines is 3303 [01:52:58]MH_Cut [01:52:58]Write to MH i2c: D1 01 00 92 65 01 C9 [01:52:58]Write i2c OK [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: D1 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: D1 01 00 [01:52:58]MH_I2C_Read... [01:52:58]Read from MH i2c: D1 01 00 92 65 00 C8 [01:52:58]Write to MH i2c: 01 00 00 93 65 F8 [01:52:58]Write i2c OK [01:52:58]MH_I2C_Read... [01:52:58]OFD Sender: No OFD packet to send [01:52:58]*** Cut start [01:52:58]*** Partial cut [01:52:58]*** CUTSNS_PIN = 1 [01:52:58]*** CUTSNS_PIN = 0 [01:52:59]*** Brake cut motor [01:52:59]Read from MH i2c: 01 [01:52:59]MH_I2C_Read... [01:52:59]*** Stop cut motor [01:52:59]*** Cut end [01:52:59]Read from MH i2c: 01 07 00 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: 01 07 00 93 65 00 00 00 00 00 FF 0F 0D [01:52:59]process_action close_receipt done [01:52:59]requested_data is exist [01:52:59]produce_requested_data [01:52:59]requested_item fm.sn is exist - process it [01:52:59]wFMCommunicate request_size=4 [01:52:59]MH_SAM_APDU [01:52:59]CAPDU: 80 11 00 00 [01:52:59]Write to MH i2c: E2 08 00 94 65 80 11 00 00 00 00 00 00 73 [01:52:59]Write i2c OK [01:52:59]MH_I2C_Read... [01:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:52:59]Read from MH i2c: E2 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 17 00 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 17 00 94 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [01:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:52:59]wFMCommunicate OK [01:52:59]requested_item fd.num is exist - process it [01:52:59]SAM_PROTO_GetFieldsCounters [01:52:59]wFMCommunicate request_size=4 [01:52:59]MH_SAM_APDU [01:52:59]CAPDU: 80 13 00 00 [01:52:59]Write to MH i2c: E2 08 00 95 65 80 13 00 00 00 00 00 00 76 [01:52:59]Write i2c OK [01:52:59]MH_I2C_Read... [01:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:52:59]Read from MH i2c: E2 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 62 00 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 62 00 95 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [01:52:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:52:59]wFMCommunicate OK [01:52:59]SAM_PROTO_GetFieldsCounters done [01:52:59]requested_item shift.num is exist - process it [01:52:59]requested_item shift.opened is exist - process it [01:52:59]req_shift_opened [01:52:59]FM_GetShiftState [01:52:59]SAM_PROTO_GetShiftState [01:52:59]wFMCommunicate request_size=4 [01:52:59]MH_SAM_APDU [01:52:59]CAPDU: 80 13 01 00 [01:52:59]Write to MH i2c: E2 08 00 96 65 80 13 01 00 00 00 00 00 78 [01:52:59]Write i2c OK [01:52:59]MH_I2C_Read... [01:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:52:59]Read from MH i2c: E2 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 0E 00 [01:52:59]MH_I2C_Read... [01:52:59]Read from MH i2c: E2 0E 00 96 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 96 [01:52:59]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [01:52:59]wFMCommunicate OK [01:52:59]SAM_PROTO_GetShiftState done [01:52:59]FM_GetShiftState done [01:52:59]req_shift_opened done [01:52:59]requested_item shift.open_date is exist - process it [01:52:59]req_shift_open_date [01:52:59]req_shift_open_date done [01:52:59]produce_requested_data done [01:52:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112401,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [01:52:59]process_action_free close_receipt [01:52:59]json_value_free [01:52:59]json_value_free done [01:52:59]process_json_proto returns [01:52:59]Send response to host [01:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112401,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [01:52:59]free response buf [01:52:59]execute_script done [01:52:59]execute_script returns [01:52:59]free content buf [01:52:59]Sock 9.Close socket [01:52:59]Sock 9.Thread stoped [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]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: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]accept exits with 7 [02:01:48]New connection [02:01:48]New thread 3066957156 created [02:01:48]Thread 3066813796 joined [02:01:48]Waiting for new connection... [02:01:48] Sock 7.Parse request [02:01:48]Sock 7.Check first char [02:01:48]Sock 7.First char is OK [02:01:48]request: POST /json_proto HTTP/1.0 [02:01:48]Method: POST [02:01:48]URL: /json_proto [02:01:48]Method is POST - this is cgi request [02:01:48]url: /json_proto [02:01:48]query_string will be loaded in cgi processing [02:01:48]execute_cgi json_proto POST (null) [02:01:48]execute_cgi path=json_proto method=POST [02:01:48]POST find Content-Length [02:01:48]Host: 172.17.59.68:8080 [02:01:48]Content-Length: 682 [02:01:48]Content-Type: application/json [02:01:48] [02:01:48]POST finish read [02:01:48]Found Content-Length = 682 [02:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321080", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:48]execute_script... [02:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321080", "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.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:48]POST & json_proto [02:01:48]process_json_proto [02:01:48]json parsed OK: [02:01:48]protocol is kg_v1.0 [02:01:48]action value=close_receipt [02:01:48]process_action close_receipt [02:01:48]cmd_close_receipt [02:01:48]MH_GetDate [02:01:48]Write to MH i2c: F0 00 00 97 65 EB [02:01:48]Write i2c OK [02:01:48]MH_I2C_Read... [02:01:48]Read from MH i2c: F0 [02:01:48]MH_I2C_Read... [02:01:48]Read from MH i2c: F0 09 00 [02:01:48]MH_I2C_Read... [02:01:48]Read from MH i2c: F0 09 00 97 65 00 35 82 77 66 BC EC 60 65 F5 [02:01:48]GetLastDocTimeStamp 1719107617 [02:01:48]current date 1719108149 [02:01:48]FM_GetShiftState [02:01:48]SAM_PROTO_GetShiftState [02:01:48]wFMCommunicate request_size=4 [02:01:48]MH_SAM_APDU [02:01:48]CAPDU: 80 13 01 00 [02:01:48]Write to MH i2c: E2 08 00 98 65 80 13 01 00 00 00 00 00 7A [02:01:48]Write i2c OK [02:01:48]MH_I2C_Read... [02:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:48]Read from MH i2c: E2 [02:01:48]MH_I2C_Read... [02:01:48]Read from MH i2c: E2 0E 00 [02:01:48]MH_I2C_Read... [02:01:48]Read from MH i2c: E2 0E 00 98 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 98 [02:01:48]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [02:01:48]wFMCommunicate OK [02:01:48]SAM_PROTO_GetShiftState done [02:01:48]FM_GetShiftState done [02:01:48]opened in 1719106490 [02:01:48]opened+sec_in_day 1719192890 [02:01:48]quantity*price = 100064 [02:01:48]sum+1 = 100066 [02:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 3 23.06.2024 02:02 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112402 ФПД: 175580609638784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T020229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112402&fm=175580609638784&tin=02508201610067®Number=0000000000092771&sum=100000 [02:01:49]StoreToDocumentArchive [02:01:49]shift 392 fd 112402 [02:01:49]save to /storage/0392/doc_00112402 [02:01:49]save last doc name /storage/0392/doc_00112402 to /storage/kkm_last_doc_name [02:01:49]save OK [02:01:49]Clear old archive folders... [02:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:01:49]tlvbuf is 011857D0 [02:01:49]SAM_PROTO_ClearQueue [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 09 00 00 [02:01:49]Write to MH i2c: E2 08 00 A5 65 80 09 00 00 00 00 00 00 7C [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 A5 65 00 90 00 7E [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]SAM_PROTO_ClearQueue done [02:01:49]KKMCreateOFDPacket [02:01:49]OFDProtocolAddRootSTLVToBuf [02:01:49]FM_MakeSignedData [02:01:49]FM_MakeSignedData [02:01:49]SAM_PROTO_SignData [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 01 02 [02:01:49]Write to MH i2c: E2 08 00 A6 65 80 0D 01 02 00 00 00 00 84 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 A6 65 00 90 00 7F [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]wFMCommunicate request_size=255 [02:01:49]MH_SAM_APDU [02: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 35 82 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B7 01 00 35 04 06 00 9F [02:01:49]Write to MH i2c: E2 02 01 A7 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 35 82 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B7 01 00 35 04 06 00 9F 00 00 11 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 A7 65 00 90 00 80 [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]wFMCommunicate request_size=10 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 02 02 05 B0 8B DD F1 80 [02:01:49]Write to MH i2c: E2 0D 00 A8 65 80 0D 02 02 05 00 B0 8B DD F1 80 00 00 1A [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 A8 65 00 90 00 81 [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 03 02 [02:01:49]Write to MH i2c: E2 08 00 A9 65 80 0D 03 02 00 00 00 00 89 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 0B 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 0B 00 A9 65 00 9C 9A 59 0D 6E 5F 02 44 90 00 39 [02:01:49]RAPDU: 9C 9A 59 0D 6E 5F 02 44 90 00 [02:01:49]wFMCommunicate OK [02:01:49]SAM_PROTO_SignData done [02:01:49]FM_MakeSignedData done [02:01:49]CreateOFDProtocolMessage [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 11 00 00 [02:01:49]Write to MH i2c: E2 08 00 AA 65 80 11 00 00 00 00 00 00 89 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 17 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 17 00 AA 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [02:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:01:49]wFMCommunicate OK [02:01:49]CreateOFDProtocolMessage done [02:01:49]OFDSenderStorePacket 112402 [02:01:49]StoreOFDPacket docnum=112402 [02:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 13 07 01 E9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 35 82 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B7 01 00 35 04 06 00 9F B0 8B DD F1 80 9C 9A 59 0D 6E 5F 02 44 [02:01:49]CheckFolder [02:01:49]dirname=/storage/ofd_packets [02:01:49]CheckFolder done [02:01:49]ProducePacketName [02:01:49]name=ofd_packets/00112402 [02:01:49]NVStorageSaveData ofd_packets/00112402 [02:01:49]File name is /storage/ofd_packets/00112402 [02:01:49]Write 301 bytes [02:01:49]NVStorageSaveData done [02:01:49]OFDSenderStorePacket done [02:01:49]KKMCreateOFDPacket done [02:01:49]NVStorageSaveData kkm_last_timestamp [02:01:49]File name is /storage/kkm_last_timestamp [02:01:49]Write 4 bytes [02:01:49]NVStorageSaveData done [02:01:49]ExternCall_PrintAddStr [02:01:49]wPrintStart [02:01:49]Write to MH i2c: 01 00 00 AB 65 10 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: 01 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: 01 07 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: 01 07 00 AB 65 00 00 00 00 00 FF 0F 25 [02:01:49]RasterBufferAndPrint [02:01:49]line Счет N : (1)321080 [02:01:49]line ИНН: 02508201610067 [02:01:49]line Контрольно-Кассовый Чек [02:01:49]line ПРОДАЖА [02:01:49]line ТРК (МРК, ГНК) : 11 [02:01:49]line Товар: 2710124130 [02:01:49]line Аи-92-К-5 [02:01:49]line 15.070 * 66.40 [02:01:49]line = 1000.65 [02:01:49]line НДС 12% НСП 1% [02:01:49]line > о реализуемом товаре [02:01:49]line ОКРУГЛЕНИЕ: -0.65 [02:01:49]line ИТОГО: 1000.00 [02:01:49]line Внесено: 1000.00 [02:01:49]line СДАЧА: 0.00 [02:01:49]line НСП 1% : 8.85 [02:01:49]line НДС 12% : 106.26 [02:01:49]line Наличными: 1000.00 [02:01:49]line Безнал.: 0.00 [02:01:49]line Место: АЗС № 65 "Партнер Нефть" [02:01:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:01:49]line СНО: Общий режим [02:01:49]line Чек 3 23.06.2024 02:02 [02:01:49]line Смена: 392 ФФД: 1.0 [02:01:49]line ЗНМ: 0300000198 [02:01:49]line РНМ: 0000000000092771 [02:01:49]line Версия ККМ: 001 [02:01:49]line ФМ: 0000000000875083 [02:01:49]line ФД: 112402 [02:01:49]line ФПД: 175580609638784 [02:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T020229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112402&fm=175580609638784&tin=02508201610067®Number=0000000000092771&sum=100000 [02:01:50]OFD Sender: Processing packet 112402 [packets to send 38, broken 37] [02:01:50]ProducePacketName [02:01:50]name=ofd_packets/00112402 [02:01:50]OFD Sender: To server: pG, [02:01:50]CommunicateWithHost lk.salyk.kg:30040 [02:01:50]ConnectInit lk.salyk.kg [02:01:50]written 0, free lines is 4095 [02:01:50]Connected sock=11 [02:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 13 07 01 E9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 35 82 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B7 01 00 35 04 06 00 9F B0 8B DD F1 80 9C 9A 59 0D 6E 5F 02 44 [02:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D 7F 47 00 6F 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B7 01 00 F4 03 04 00 30 19 77 66 B6 04 01 00 00 52 39 79 96 14 A2 01 39 [02:01:50]CommunicateWithHost err = 0 [02:01:50]CheckOFDResponse [02:01:50]1017 (14) - 77093643461234 [02:01:50]1041 (16) - 0000000000875083 [02:01:50]1040 (4) - 112402 [02:01:50]1012 (4) - 22.06.2024 18:34 [02:01:50]1206 (1) - 0 [02:01:50]OFD Sender: Remove packet 112402 [02:01:50]ProducePacketName [02:01:50]name=ofd_packets/00112402 [02:01:50]NVStorageDeleteData [02:01:50]Write to MH i2c: 01 00 00 D6 65 3B [02:01:50]Write i2c OK [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: 01 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: 01 07 00 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: 01 07 00 D6 65 00 00 00 00 00 D0 0C 1E [02:01:50]RasterBufferAndPrint [02:01:50]line [02:01:50]line [02:01:50]line [02:01:50]line [02:01:50]line [02:01:50]written 0, free lines is 3287 [02:01:50]MH_Cut [02:01:50]Write to MH i2c: D1 01 00 DD 65 01 14 [02:01:50]Write i2c OK [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: D1 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: D1 01 00 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: D1 01 00 DD 65 00 13 [02:01:50]Write to MH i2c: 01 00 00 DE 65 43 [02:01:50]Write i2c OK [02:01:50]MH_I2C_Read... [02:01:51]OFD Sender: No OFD packet to send [02:01:51]*** Cut start [02:01:51]*** Partial cut [02:01:51]*** CUTSNS_PIN = 1 [02:01:51]*** CUTSNS_PIN = 0 [02:01:51]*** Brake cut motor [02:01:51]Read from MH i2c: 01 [02:01:51]MH_I2C_Read... [02:01:51]*** Stop cut motor [02:01:51]*** Cut end [02:01:51]Read from MH i2c: 01 07 00 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: 01 07 00 DE 65 00 00 00 00 00 FF 0F 58 [02:01:51]process_action close_receipt done [02:01:51]requested_data is exist [02:01:51]produce_requested_data [02:01:51]requested_item fm.sn is exist - process it [02:01:51]wFMCommunicate request_size=4 [02:01:51]MH_SAM_APDU [02:01:51]CAPDU: 80 11 00 00 [02:01:51]Write to MH i2c: E2 08 00 DF 65 80 11 00 00 00 00 00 00 BE [02:01:51]Write i2c OK [02:01:51]MH_I2C_Read... [02:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:52]Read from MH i2c: E2 [02:01:52]MH_I2C_Read... [02:01:52]Read from MH i2c: E2 17 00 [02:01:52]MH_I2C_Read... [02:01:52]Read from MH i2c: E2 17 00 DF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [02:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:01:52]wFMCommunicate OK [02:01:52]requested_item fd.num is exist - process it [02:01:52]SAM_PROTO_GetFieldsCounters [02:01:52]wFMCommunicate request_size=4 [02:01:52]MH_SAM_APDU [02:01:52]CAPDU: 80 13 00 00 [02:01:52]Write to MH i2c: E2 08 00 E0 65 80 13 00 00 00 00 00 00 C1 [02:01:52]Write i2c OK [02:01:52]MH_I2C_Read... [02:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:52]Read from MH i2c: E2 [02:01:52]MH_I2C_Read... [02:01:52]Read from MH i2c: E2 62 00 [02:01:52]MH_I2C_Read... [02:01:52]Read from MH i2c: E2 62 00 E0 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [02:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:01:52]wFMCommunicate OK [02:01:52]SAM_PROTO_GetFieldsCounters done [02:01:52]requested_item shift.num is exist - process it [02:01:52]requested_item shift.opened is exist - process it [02:01:52]req_shift_opened [02:01:52]FM_GetShiftState [02:01:52]SAM_PROTO_GetShiftState [02:01:52]wFMCommunicate request_size=4 [02:01:52]MH_SAM_APDU [02:01:52]CAPDU: 80 13 01 00 [02:01:52]Write to MH i2c: E2 08 00 E1 65 80 13 01 00 00 00 00 00 C3 [02:01:52]Write i2c OK [02:01:52]MH_I2C_Read... [02:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:52]Read from MH i2c: E2 [02:01:52]MH_I2C_Read... [02:01:52]Read from MH i2c: E2 0E 00 [02:01:52]MH_I2C_Read... [02:01:52]Read from MH i2c: E2 0E 00 E1 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E1 [02:01:52]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [02:01:52]wFMCommunicate OK [02:01:52]SAM_PROTO_GetShiftState done [02:01:52]FM_GetShiftState done [02:01:52]req_shift_opened done [02:01:52]requested_item shift.open_date is exist - process it [02:01:52]req_shift_open_date [02:01:52]req_shift_open_date done [02:01:52]produce_requested_data done [02:01:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112402,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [02:01:52]process_action_free close_receipt [02:01:52]json_value_free [02:01:52]json_value_free done [02:01:52]process_json_proto returns [02:01:52]Send response to host [02:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112402,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [02:01:52]free response buf [02:01:52]execute_script done [02:01:52]execute_script returns [02:01:52]free content buf [02:01:52]Sock 7.Close socket [02:01:52]Sock 7.Thread stoped [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:18:58]accept exits with 9 [02:18:58]New connection [02:18:58]New thread 3066813796 created [02:18:58]Thread 3066957156 joined [02:18:58]Waiting for new connection... [02:18:58] Sock 9.Parse request [02:18:58]Sock 9.Check first char [02:18:58]Sock 9.First char is OK [02:18:58]request: POST /json_proto HTTP/1.0 [02:18:58]Method: POST [02:18:58]URL: /json_proto [02:18:58]Method is POST - this is cgi request [02:18:58]url: /json_proto [02:18:58]query_string will be loaded in cgi processing [02:18:58]execute_cgi json_proto POST (null) [02:18:58]execute_cgi path=json_proto method=POST [02:18:58]POST find Content-Length [02:18:58]Host: 172.17.59.68:8080 [02:18:58]Content-Length: 677 [02:18:58]Content-Type: application/json [02:18:58] [02:18:58]POST finish read [02:18:58]Found Content-Length = 677 [02:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321081", "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.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [02:18:58]execute_script... [02:18: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)321081", "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.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [02:18:58]POST & json_proto [02:18:58]process_json_proto [02:18:58]json parsed OK: [02:18:58]protocol is kg_v1.0 [02:18:58]action value=close_receipt [02:18:58]process_action close_receipt [02:18:58]cmd_close_receipt [02:18:58]MH_GetDate [02:18:58]Write to MH i2c: F0 00 00 E2 65 36 [02:18:58]Write i2c OK [02:18:58]MH_I2C_Read... [02:18:58]Read from MH i2c: F0 [02:18:58]MH_I2C_Read... [02:18:58]Read from MH i2c: F0 09 00 [02:18:58]MH_I2C_Read... [02:18:58]Read from MH i2c: F0 09 00 E2 65 00 3C 86 77 66 BC EC 60 65 4B [02:18:58]GetLastDocTimeStamp 1719108149 [02:18:58]current date 1719109180 [02:18:58]FM_GetShiftState [02:18:58]SAM_PROTO_GetShiftState [02:18:58]wFMCommunicate request_size=4 [02:18:58]MH_SAM_APDU [02:18:58]CAPDU: 80 13 01 00 [02:18:58]Write to MH i2c: E2 08 00 E3 65 80 13 01 00 00 00 00 00 C5 [02:18:58]Write i2c OK [02:18:58]MH_I2C_Read... [02:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:58]Read from MH i2c: E2 [02:18:58]MH_I2C_Read... [02:18:58]Read from MH i2c: E2 0E 00 [02:18:58]MH_I2C_Read... [02:18:58]Read from MH i2c: E2 0E 00 E3 65 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 E3 [02:18:58]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [02:18:58]wFMCommunicate OK [02:18:58]SAM_PROTO_GetShiftState done [02:18:58]FM_GetShiftState done [02:18:58]opened in 1719106490 [02:18:58]opened+sec_in_day 1719192890 [02:18:58]quantity*price = 25032 [02:18:58]sum+1 = 25034 [02:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 4 23.06.2024 02:19 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112403 ФПД: 187885760475523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T021940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112403&fm=187885760475523&tin=02508201610067®Number=0000000000092771&sum=25000 [02:19:00]StoreToDocumentArchive [02:19:00]shift 392 fd 112403 [02:19:00]save to /storage/0392/doc_00112403 [02:19:00]save last doc name /storage/0392/doc_00112403 to /storage/kkm_last_doc_name [02:19:00]save OK [02:19:00]Clear old archive folders... [02:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:19:00]tlvbuf is 01348980 [02:19:00]SAM_PROTO_ClearQueue [02:19:00]wFMCommunicate request_size=4 [02:19:00]MH_SAM_APDU [02:19:00]CAPDU: 80 09 00 00 [02:19:00]Write to MH i2c: E2 08 00 F0 65 80 09 00 00 00 00 00 00 C7 [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:00]Read from MH i2c: E2 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 F0 65 00 90 00 C9 [02:19:00]RAPDU: 90 00 [02:19:00]wFMCommunicate OK [02:19:00]SAM_PROTO_ClearQueue done [02:19:00]KKMCreateOFDPacket [02:19:00]OFDProtocolAddRootSTLVToBuf [02:19:00]FM_MakeSignedData [02:19:00]FM_MakeSignedData [02:19:00]SAM_PROTO_SignData [02:19:00]wFMCommunicate request_size=4 [02:19:00]MH_SAM_APDU [02:19:00]CAPDU: 80 0D 01 02 [02:19:00]Write to MH i2c: E2 08 00 F1 65 80 0D 01 02 00 00 00 00 CF [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:00]Read from MH i2c: E2 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 F1 65 00 90 00 CA [02:19:00]RAPDU: 90 00 [02:19:00]wFMCommunicate OK [02:19:00]wFMCommunicate request_size=255 [02:19:00]MH_SAM_APDU [02:19: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 04 00 00 00 F4 03 04 00 3C 86 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B7 01 00 35 04 06 00 AA [02:19:00]Write to MH i2c: E2 02 01 F2 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 04 00 00 00 F4 03 04 00 3C 86 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B7 01 00 35 04 06 00 AA 00 00 D0 [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:00]Read from MH i2c: E2 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 F2 65 00 90 00 CB [02:19:00]RAPDU: 90 00 [02:19:00]wFMCommunicate OK [02:19:00]wFMCommunicate request_size=10 [02:19:00]MH_SAM_APDU [02:19:00]CAPDU: 80 0D 02 02 05 E1 90 02 F1 83 [02:19:00]Write to MH i2c: E2 0D 00 F3 65 80 0D 02 02 05 00 E1 90 02 F1 83 00 00 C3 [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:00]Read from MH i2c: E2 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 03 00 F3 65 00 90 00 CC [02:19:00]RAPDU: 90 00 [02:19:00]wFMCommunicate OK [02:19:00]wFMCommunicate request_size=4 [02:19:00]MH_SAM_APDU [02:19:00]CAPDU: 80 0D 03 02 [02:19:00]Write to MH i2c: E2 08 00 F4 65 80 0D 03 02 00 00 00 00 D4 [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:00]Read from MH i2c: E2 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 0B 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 0B 00 F4 65 00 F8 11 D7 5D 91 38 95 CA 90 00 3A [02:19:00]RAPDU: F8 11 D7 5D 91 38 95 CA 90 00 [02:19:00]wFMCommunicate OK [02:19:00]SAM_PROTO_SignData done [02:19:00]FM_MakeSignedData done [02:19:00]CreateOFDProtocolMessage [02:19:00]wFMCommunicate request_size=4 [02:19:00]MH_SAM_APDU [02:19:00]CAPDU: 80 11 00 00 [02:19:00]Write to MH i2c: E2 08 00 F5 65 80 11 00 00 00 00 00 00 D4 [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:00]Read from MH i2c: E2 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 17 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: E2 17 00 F5 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [02:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:19:00]wFMCommunicate OK [02:19:00]CreateOFDProtocolMessage done [02:19:00]OFDSenderStorePacket 112403 [02:19:00]StoreOFDPacket docnum=112403 [02:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 72 07 01 7A 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 04 00 00 00 F4 03 04 00 3C 86 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B7 01 00 35 04 06 00 AA E1 90 02 F1 83 F8 11 D7 5D 91 38 95 CA [02:19:00]CheckFolder [02:19:00]dirname=/storage/ofd_packets [02:19:00]CheckFolder done [02:19:00]ProducePacketName [02:19:00]name=ofd_packets/00112403 [02:19:00]NVStorageSaveData ofd_packets/00112403 [02:19:00]File name is /storage/ofd_packets/00112403 [02:19:00]Write 301 bytes [02:19:00]NVStorageSaveData done [02:19:00]OFDSenderStorePacket done [02:19:00]KKMCreateOFDPacket done [02:19:00]NVStorageSaveData kkm_last_timestamp [02:19:00]File name is /storage/kkm_last_timestamp [02:19:00]Write 4 bytes [02:19:00]NVStorageSaveData done [02:19:00]ExternCall_PrintAddStr [02:19:00]wPrintStart [02:19:00]Write to MH i2c: 01 00 00 F6 65 5B [02:19:00]Write i2c OK [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: 01 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: 01 07 00 [02:19:00]MH_I2C_Read... [02:19:00]Read from MH i2c: 01 07 00 F6 65 00 00 00 00 00 FF 0F 70 [02:19:00]RasterBufferAndPrint [02:19:00]line Счет N : (1)321081 [02:19:00]line ИНН: 02508201610067 [02:19:00]line Контрольно-Кассовый Чек [02:19:00]line ПРОДАЖА [02:19:00]line ТРК (МРК, ГНК) : 11 [02:19:00]line Товар: 2710124130 [02:19:00]line Аи-92-К-5 [02:19:00]line 3.770 * 66.40 [02:19:00]line = 250.33 [02:19:00]line НДС 12% НСП 1% [02:19:00]line > о реализуемом товаре [02:19:00]line ОКРУГЛЕНИЕ: -0.33 [02:19:00]line ИТОГО: 250.00 [02:19:00]line Внесено: 250.00 [02:19:00]line СДАЧА: 0.00 [02:19:00]line НСП 1% : 2.21 [02:19:00]line НДС 12% : 26.58 [02:19:00]line Наличными: 250.00 [02:19:00]line Безнал.: 0.00 [02:19:00]line Место: АЗС № 65 "Партнер Нефть" [02:19:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:19:00]line СНО: Общий режим [02:19:00]line Чек 4 23.06.2024 02:19 [02:19:00]line Смена: 392 ФФД: 1.0 [02:19:00]line ЗНМ: 0300000198 [02:19:00]line РНМ: 0000000000092771 [02:19:00]line Версия ККМ: 001 [02:19:00]line ФМ: 0000000000875083 [02:19:00]line ФД: 112403 [02:19:00]line ФПД: 187885760475523 [02:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T021940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112403&fm=187885760475523&tin=02508201610067®Number=0000000000092771&sum=25000 [02:19:00]OFD Sender: Processing packet 112403 [packets to send 38, broken 37] [02:19:00]ProducePacketName [02:19:00]name=ofd_packets/00112403 [02:19:00]OFD Sender: To server: pG, [02:19:00]CommunicateWithHost lk.salyk.kg:30040 [02:19:00]ConnectInit lk.salyk.kg [02:19:00]written 0, free lines is 4095 [02:19:00]Connected sock=11 [02:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 79 72 07 01 7A 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 04 00 00 00 F4 03 04 00 3C 86 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B7 01 00 35 04 06 00 AA E1 90 02 F1 83 F8 11 D7 5D 91 38 95 CA [02:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D 53 47 00 B6 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B7 01 00 F4 03 04 00 37 1D 77 66 B6 04 01 00 00 4F C1 18 08 0C 94 87 29 [02:19:01]CommunicateWithHost err = 0 [02:19:01]CheckOFDResponse [02:19:01]1017 (14) - 77093643461234 [02:19:01]1041 (16) - 0000000000875083 [02:19:01]1040 (4) - 112403 [02:19:01]1012 (4) - 22.06.2024 18:51 [02:19:01]1206 (1) - 0 [02:19:01]OFD Sender: Remove packet 112403 [02:19:01]ProducePacketName [02:19:01]name=ofd_packets/00112403 [02:19:01]NVStorageDeleteData [02:19:01]Write to MH i2c: 01 00 00 21 66 87 [02:19:01]Write i2c OK [02:19:01]MH_I2C_Read... [02:19:01]Read from MH i2c: 01 [02:19:01]MH_I2C_Read... [02:19:01]Read from MH i2c: 01 07 00 [02:19:01]MH_I2C_Read... [02:19:01]Read from MH i2c: 01 07 00 21 66 00 00 00 00 00 D0 0C 6A [02:19:01]RasterBufferAndPrint [02:19:01]line [02:19:01]line [02:19:01]line [02:19:01]line [02:19:01]line [02:19:01]written 0, free lines is 3287 [02:19:01]MH_Cut [02:19:01]Write to MH i2c: D1 01 00 28 66 01 60 [02:19:01]Write i2c OK [02:19:01]MH_I2C_Read... [02:19:01]Read from MH i2c: D1 [02:19:01]MH_I2C_Read... [02:19:01]Read from MH i2c: D1 01 00 [02:19:01]MH_I2C_Read... [02:19:01]Read from MH i2c: D1 01 00 28 66 00 5F [02:19:01]Write to MH i2c: 01 00 00 29 66 8F [02:19:01]Write i2c OK [02:19:01]MH_I2C_Read... [02:19:01]OFD Sender: No OFD packet to send [02:19:02]*** Cut start [02:19:02]*** Partial cut [02:19:02]*** CUTSNS_PIN = 1 [02:19:02]*** CUTSNS_PIN = 0 [02:19:02]*** Brake cut motor [02:19:02]Read from MH i2c: 01 [02:19:02]MH_I2C_Read... [02:19:02]*** Stop cut motor [02:19:02]*** Cut end [02:19:02]Read from MH i2c: 01 07 00 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: 01 07 00 29 66 00 00 00 00 00 FF 0F A4 [02:19:02]process_action close_receipt done [02:19:02]requested_data is exist [02:19:02]produce_requested_data [02:19:02]requested_item fm.sn is exist - process it [02:19:02]wFMCommunicate request_size=4 [02:19:02]MH_SAM_APDU [02:19:02]CAPDU: 80 11 00 00 [02:19:02]Write to MH i2c: E2 08 00 2A 66 80 11 00 00 00 00 00 00 0A [02:19:02]Write i2c OK [02:19:02]MH_I2C_Read... [02:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:02]Read from MH i2c: E2 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: E2 17 00 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: E2 17 00 2A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [02:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:19:02]wFMCommunicate OK [02:19:02]requested_item fd.num is exist - process it [02:19:02]SAM_PROTO_GetFieldsCounters [02:19:02]wFMCommunicate request_size=4 [02:19:02]MH_SAM_APDU [02:19:02]CAPDU: 80 13 00 00 [02:19:02]Write to MH i2c: E2 08 00 2B 66 80 13 00 00 00 00 00 00 0D [02:19:02]Write i2c OK [02:19:02]MH_I2C_Read... [02:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:02]Read from MH i2c: E2 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: E2 62 00 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: E2 62 00 2B 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [02:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:19:02]wFMCommunicate OK [02:19:02]SAM_PROTO_GetFieldsCounters done [02:19:02]requested_item shift.num is exist - process it [02:19:02]requested_item shift.opened is exist - process it [02:19:02]req_shift_opened [02:19:02]FM_GetShiftState [02:19:02]SAM_PROTO_GetShiftState [02:19:02]wFMCommunicate request_size=4 [02:19:02]MH_SAM_APDU [02:19:02]CAPDU: 80 13 01 00 [02:19:02]Write to MH i2c: E2 08 00 2C 66 80 13 01 00 00 00 00 00 0F [02:19:02]Write i2c OK [02:19:02]MH_I2C_Read... [02:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:02]Read from MH i2c: E2 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: E2 0E 00 [02:19:02]MH_I2C_Read... [02:19:02]Read from MH i2c: E2 0E 00 2C 66 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2D [02:19:02]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [02:19:02]wFMCommunicate OK [02:19:02]SAM_PROTO_GetShiftState done [02:19:02]FM_GetShiftState done [02:19:02]req_shift_opened done [02:19:02]requested_item shift.open_date is exist - process it [02:19:02]req_shift_open_date [02:19:02]req_shift_open_date done [02:19:02]produce_requested_data done [02:19:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112403,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [02:19:02]process_action_free close_receipt [02:19:02]json_value_free [02:19:02]json_value_free done [02:19:02]process_json_proto returns [02:19:02]Send response to host [02:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112403,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [02:19:02]free response buf [02:19:02]execute_script done [02:19:02]execute_script returns [02:19:02]free content buf [02:19:02]Sock 9.Close socket [02:19:02]Sock 9.Thread stoped [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]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:50]accept exits with 7 [02:44:50]New connection [02:44:50]New thread 3066957156 created [02:44:50]Thread 3066813796 joined [02:44:50]Waiting for new connection... [02:44:50] Sock 7.Parse request [02:44:50]Sock 7.Check first char [02:44:50]Sock 7.First char is OK [02:44:50]request: POST /json_proto HTTP/1.0 [02:44:50]Method: POST [02:44:50]URL: /json_proto [02:44:50]Method is POST - this is cgi request [02:44:50]url: /json_proto [02:44:50]query_string will be loaded in cgi processing [02:44:50]execute_cgi json_proto POST (null) [02:44:50]execute_cgi path=json_proto method=POST [02:44:50]POST find Content-Length [02:44:50]Host: 172.17.59.68:8080 [02:44:50]Content-Length: 678 [02:44:50]Content-Type: application/json [02:44:50] [02:44:50]POST finish read [02:44:50]Found Content-Length = 678 [02:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)321082", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:50]execute_script... [02:44: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)321082", "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.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:50]POST & json_proto [02:44:50]process_json_proto [02:44:50]json parsed OK: [02:44:50]protocol is kg_v1.0 [02:44:50]action value=close_receipt [02:44:50]process_action close_receipt [02:44:50]cmd_close_receipt [02:44:50]MH_GetDate [02:44:50]Write to MH i2c: F0 00 00 2D 66 82 [02:44:50]Write i2c OK [02:44:50]MH_I2C_Read... [02:44:50]Read from MH i2c: F0 [02:44:50]MH_I2C_Read... [02:44:50]Read from MH i2c: F0 09 00 [02:44:50]MH_I2C_Read... [02:44:50]Read from MH i2c: F0 09 00 2D 66 00 4D 8C 77 66 BC EC 60 65 AE [02:44:50]GetLastDocTimeStamp 1719109180 [02:44:50]current date 1719110733 [02:44:50]FM_GetShiftState [02:44:50]SAM_PROTO_GetShiftState [02:44:50]wFMCommunicate request_size=4 [02:44:50]MH_SAM_APDU [02:44:50]CAPDU: 80 13 01 00 [02:44:50]Write to MH i2c: E2 08 00 2E 66 80 13 01 00 00 00 00 00 11 [02:44:50]Write i2c OK [02:44:50]MH_I2C_Read... [02:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:51]Read from MH i2c: E2 [02:44:51]MH_I2C_Read... [02:44:51]Read from MH i2c: E2 0E 00 [02:44:51]MH_I2C_Read... [02:44:51]Read from MH i2c: E2 0E 00 2E 66 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 2F [02:44:51]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [02:44:51]wFMCommunicate OK [02:44:51]SAM_PROTO_GetShiftState done [02:44:51]FM_GetShiftState done [02:44:51]opened in 1719106490 [02:44:51]opened+sec_in_day 1719192890 [02:44:51]quantity*price = 70052 [02:44:51]sum+1 = 70053 [02:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 5 23.06.2024 02:45 Смена: 392 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 112404 ФПД: 12518962163448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T024533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112404&fm=12518962163448&tin=02508201610067®Number=0000000000092771&sum=70000 [02:44:52]StoreToDocumentArchive [02:44:52]shift 392 fd 112404 [02:44:52]save to /storage/0392/doc_00112404 [02:44:52]save last doc name /storage/0392/doc_00112404 to /storage/kkm_last_doc_name [02:44:52]save OK [02:44:52]Clear old archive folders... [02:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:44:52]tlvbuf is B6F598A0 [02:44:52]SAM_PROTO_ClearQueue [02:44:52]wFMCommunicate request_size=4 [02:44:52]MH_SAM_APDU [02:44:52]CAPDU: 80 09 00 00 [02:44:52]Write to MH i2c: E2 08 00 3B 66 80 09 00 00 00 00 00 00 13 [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:44:52]Read from MH i2c: E2 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 3B 66 00 90 00 15 [02:44:52]RAPDU: 90 00 [02:44:52]wFMCommunicate OK [02:44:52]SAM_PROTO_ClearQueue done [02:44:52]KKMCreateOFDPacket [02:44:52]OFDProtocolAddRootSTLVToBuf [02:44:52]FM_MakeSignedData [02:44:52]FM_MakeSignedData [02:44:52]SAM_PROTO_SignData [02:44:52]wFMCommunicate request_size=4 [02:44:52]MH_SAM_APDU [02:44:52]CAPDU: 80 0D 01 02 [02:44:52]Write to MH i2c: E2 08 00 3C 66 80 0D 01 02 00 00 00 00 1B [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:44:52]Read from MH i2c: E2 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 3C 66 00 90 00 16 [02:44:52]RAPDU: 90 00 [02:44:52]wFMCommunicate OK [02:44:52]wFMCommunicate request_size=255 [02:44:52]MH_SAM_APDU [02:44: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 4D 8C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B7 01 00 35 04 06 00 0B [02:44:52]Write to MH i2c: E2 02 01 3D 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 4D 8C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B7 01 00 35 04 06 00 0B 00 00 FC [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:52]Read from MH i2c: E2 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 3D 66 00 90 00 17 [02:44:52]RAPDU: 90 00 [02:44:52]wFMCommunicate OK [02:44:52]wFMCommunicate request_size=10 [02:44:52]MH_SAM_APDU [02:44:52]CAPDU: 80 0D 02 02 05 62 CC 4A EE F8 [02:44:52]Write to MH i2c: E2 0D 00 3E 66 80 0D 02 02 05 00 62 CC 4A EE F8 00 00 86 [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:52]Read from MH i2c: E2 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 03 00 3E 66 00 90 00 18 [02:44:52]RAPDU: 90 00 [02:44:52]wFMCommunicate OK [02:44:52]wFMCommunicate request_size=4 [02:44:52]MH_SAM_APDU [02:44:52]CAPDU: 80 0D 03 02 [02:44:52]Write to MH i2c: E2 08 00 3F 66 80 0D 03 02 00 00 00 00 20 [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:44:52]Read from MH i2c: E2 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 0B 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 0B 00 3F 66 00 E9 D1 B2 A0 2E A2 0F 3E 90 00 4A [02:44:52]RAPDU: E9 D1 B2 A0 2E A2 0F 3E 90 00 [02:44:52]wFMCommunicate OK [02:44:52]SAM_PROTO_SignData done [02:44:52]FM_MakeSignedData done [02:44:52]CreateOFDProtocolMessage [02:44:52]wFMCommunicate request_size=4 [02:44:52]MH_SAM_APDU [02:44:52]CAPDU: 80 11 00 00 [02:44:52]Write to MH i2c: E2 08 00 40 66 80 11 00 00 00 00 00 00 20 [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:52]Read from MH i2c: E2 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 17 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: E2 17 00 40 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [02:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:44:52]wFMCommunicate OK [02:44:52]CreateOFDProtocolMessage done [02:44:52]OFDSenderStorePacket 112404 [02:44:52]StoreOFDPacket docnum=112404 [02:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 E9 07 01 DC 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 4D 8C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B7 01 00 35 04 06 00 0B 62 CC 4A EE F8 E9 D1 B2 A0 2E A2 0F 3E [02:44:52]CheckFolder [02:44:52]dirname=/storage/ofd_packets [02:44:52]CheckFolder done [02:44:52]ProducePacketName [02:44:52]name=ofd_packets/00112404 [02:44:52]NVStorageSaveData ofd_packets/00112404 [02:44:52]File name is /storage/ofd_packets/00112404 [02:44:52]Write 301 bytes [02:44:52]NVStorageSaveData done [02:44:52]OFDSenderStorePacket done [02:44:52]KKMCreateOFDPacket done [02:44:52]NVStorageSaveData kkm_last_timestamp [02:44:52]File name is /storage/kkm_last_timestamp [02:44:52]Write 4 bytes [02:44:52]NVStorageSaveData done [02:44:52]ExternCall_PrintAddStr [02:44:52]wPrintStart [02:44:52]Write to MH i2c: 01 00 00 41 66 A7 [02:44:52]Write i2c OK [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: 01 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: 01 07 00 [02:44:52]MH_I2C_Read... [02:44:52]Read from MH i2c: 01 07 00 41 66 00 00 00 00 00 FF 0F BC [02:44:52]RasterBufferAndPrint [02:44:52]line Счет N : (1)321082 [02:44:52]line ИНН: 02508201610067 [02:44:52]line Контрольно-Кассовый Чек [02:44:52]line ПРОДАЖА [02:44:52]line ТРК (МРК, ГНК) : 11 [02:44:52]line Товар: 2710124130 [02:44:52]line Аи-92-К-5 [02:44:52]line 10.550 * 66.40 [02:44:52]line = 700.52 [02:44:52]line НДС 12% НСП 1% [02:44:52]line > о реализуемом товаре [02:44:52]line ОКРУГЛЕНИЕ: -0.52 [02:44:52]line ИТОГО: 700.00 [02:44:52]line Внесено: 700.00 [02:44:52]line СДАЧА: 0.00 [02:44:52]line НСП 1% : 6.20 [02:44:52]line НДС 12% : 74.39 [02:44:52]line Наличными: 700.00 [02:44:52]line Безнал.: 0.00 [02:44:52]line Место: АЗС № 65 "Партнер Нефть" [02:44:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:44:52]line СНО: Общий режим [02:44:52]line Чек 5 23.06.2024 02:45 [02:44:52]line Смена: 392 ФФД: 1.0 [02:44:52]line ЗНМ: 0300000198 [02:44:52]line РНМ: 0000000000092771 [02:44:52]line Версия ККМ: 001 [02:44:52]line ФМ: 0000000000875083 [02:44:52]line ФД: 112404 [02:44:52]line ФПД: 12518962163448 [02:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T024533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112404&fm=12518962163448&tin=02508201610067®Number=0000000000092771&sum=70000 [02:44:52]OFD Sender: Processing packet 112404 [packets to send 38, broken 37] [02:44:52]ProducePacketName [02:44:53]name=ofd_packets/00112404 [02:44:53]OFD Sender: To server: pG, [02:44:53]CommunicateWithHost lk.salyk.kg:30040 [02:44:53]ConnectInit lk.salyk.kg [02:44:53]written 0, free lines is 4095 [02:44:53]Connected sock=10 [02:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 E9 07 01 DC 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 4D 8C 77 66 0E 04 04 00 88 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B7 01 00 35 04 06 00 0B 62 CC 4A EE F8 E9 D1 B2 A0 2E A2 0F 3E [02:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F4 C0 47 00 98 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B7 01 00 F4 03 04 00 47 23 77 66 B6 04 01 00 00 B6 80 3E 81 88 B1 64 94 [02:44:53]CommunicateWithHost err = 0 [02:44:53]CheckOFDResponse [02:44:53]1017 (14) - 77093643461234 [02:44:53]1041 (16) - 0000000000875083 [02:44:53]1040 (4) - 112404 [02:44:53]1012 (4) - 22.06.2024 19:17 [02:44:53]1206 (1) - 0 [02:44:53]OFD Sender: Remove packet 112404 [02:44:53]ProducePacketName [02:44:53]name=ofd_packets/00112404 [02:44:53]NVStorageDeleteData [02:44:53]Write to MH i2c: 01 00 00 6C 66 D2 [02:44:53]Write i2c OK [02:44:53]MH_I2C_Read... [02:44:53]Read from MH i2c: 01 [02:44:53]MH_I2C_Read... [02:44:53]Read from MH i2c: 01 07 00 [02:44:53]MH_I2C_Read... [02:44:53]Read from MH i2c: 01 07 00 6C 66 00 00 00 00 00 CD 0C B2 [02:44:53]RasterBufferAndPrint [02:44:53]line [02:44:53]line [02:44:53]line [02:44:53]line [02:44:53]line [02:44:53]written 0, free lines is 3283 [02:44:53]MH_Cut [02:44:53]Write to MH i2c: D1 01 00 73 66 01 AB [02:44:53]Write i2c OK [02:44:53]MH_I2C_Read... [02:44:53]Read from MH i2c: D1 [02:44:53]MH_I2C_Read... [02:44:53]Read from MH i2c: D1 01 00 [02:44:53]MH_I2C_Read... [02:44:53]Read from MH i2c: D1 01 00 73 66 00 AA [02:44:53]Write to MH i2c: 01 00 00 74 66 DA [02:44:53]Write i2c OK [02:44:53]MH_I2C_Read... [02:44:53]OFD Sender: No OFD packet to send [02:44:54]*** Cut start [02:44:54]*** Partial cut [02:44:54]*** CUTSNS_PIN = 1 [02:44:54]*** CUTSNS_PIN = 0 [02:44:54]*** Brake cut motor [02:44:54]Read from MH i2c: 01 [02:44:54]MH_I2C_Read... [02:44:54]*** Stop cut motor [02:44:54]*** Cut end [02:44:54]Read from MH i2c: 01 07 00 [02:44:54]MH_I2C_Read... [02:44:54]Read from MH i2c: 01 07 00 74 66 00 00 00 00 00 FF 0F EF [02:44:54]process_action close_receipt done [02:44:54]requested_data is exist [02:44:54]produce_requested_data [02:44:54]requested_item fm.sn is exist - process it [02:44:54]wFMCommunicate request_size=4 [02:44:54]MH_SAM_APDU [02:44:54]CAPDU: 80 11 00 00 [02:44:54]Write to MH i2c: E2 08 00 75 66 80 11 00 00 00 00 00 00 55 [02:44:54]Write i2c OK [02:44:54]MH_I2C_Read... [02:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:54]Read from MH i2c: E2 [02:44:54]MH_I2C_Read... [02:44:54]Read from MH i2c: E2 17 00 [02:44:54]MH_I2C_Read... [02:44:54]Read from MH i2c: E2 17 00 75 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [02:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:44:54]wFMCommunicate OK [02:44:54]requested_item fd.num is exist - process it [02:44:54]SAM_PROTO_GetFieldsCounters [02:44:54]wFMCommunicate request_size=4 [02:44:54]MH_SAM_APDU [02:44:54]CAPDU: 80 13 00 00 [02:44:54]Write to MH i2c: E2 08 00 76 66 80 13 00 00 00 00 00 00 58 [02:44:54]Write i2c OK [02:44:54]MH_I2C_Read... [02:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:44:54]Read from MH i2c: E2 [02:44:54]MH_I2C_Read... [02:44:54]Read from MH i2c: E2 62 00 [02:44:54]MH_I2C_Read... [02:44:54]Read from MH i2c: E2 62 00 76 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [02:44:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B7 01 00 0E 04 04 00 88 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:44:54]wFMCommunicate OK [02:44:54]SAM_PROTO_GetFieldsCounters done [02:44:54]requested_item shift.num is exist - process it [02:44:54]requested_item shift.opened is exist - process it [02:44:54]req_shift_opened [02:44:54]FM_GetShiftState [02:44:54]SAM_PROTO_GetShiftState [02:44:54]wFMCommunicate request_size=4 [02:44:54]MH_SAM_APDU [02:44:54]CAPDU: 80 13 01 00 [02:44:54]Write to MH i2c: E2 08 00 77 66 80 13 01 00 00 00 00 00 5A [02:44:54]Write i2c OK [02:44:54]MH_I2C_Read... [02:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:55]Read from MH i2c: E2 [02:44:55]MH_I2C_Read... [02:44:55]Read from MH i2c: E2 0E 00 [02:44:55]MH_I2C_Read... [02:44:55]Read from MH i2c: E2 0E 00 77 66 00 09 00 01 BA 7B 77 66 00 00 00 00 90 00 78 [02:44:55]RAPDU: 09 00 01 BA 7B 77 66 00 00 00 00 90 00 [02:44:55]wFMCommunicate OK [02:44:55]SAM_PROTO_GetShiftState done [02:44:55]FM_GetShiftState done [02:44:55]req_shift_opened done [02:44:55]requested_item shift.open_date is exist - process it [02:44:55]req_shift_open_date [02:44:55]req_shift_open_date done [02:44:55]produce_requested_data done [02:44:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112404,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490} [02:44:55]process_action_free close_receipt [02:44:55]json_value_free [02:44:55]json_value_free done [02:44:55]process_json_proto returns [02:44:55]Send response to host [02:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112404,"shift.num":392,"shift.opened":1,"shift.open_date":1719106490}}} [02:44:55]free response buf [02:44:55]execute_script done [02:44:55]execute_script returns [02:44:55]free content buf [02:44:55]Sock 7.Close socket [02:44:55]Sock 7.Thread stoped [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:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]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:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]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:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send